/* ==========================================================
   Ergotherapie con Amor
   responsive.css

   Enthält:
   - Tablet-/Mobile-Breakpoints
   - mobile Navigation
   - responsive Lebenslauf-Spalten
   - reduzierte Bewegung
   ========================================================== */


/* ==========================================================
   1. Tablet / kleinere Desktop-Breiten
   ========================================================== */

@media (max-width: 980px) {

  .hero-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .hero-logo-card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
}


/* ==========================================================
   2. Smartphone
   ========================================================== */

@media (max-width: 700px) {

  .section {
    padding: 60px 0;
  }

  .grid-3,
  .form-grid,
  .footer-grid,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0;
  }

  .hero h1 {
    font-size:
      clamp(2.3rem, 12vw, 3.25rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-logo-card {
    min-height: 280px;
    padding: 20px;
    border-radius: 24px;
  }

  .trust-list li + li {
    border-top:
      1px solid rgba(255, 255, 255, 0.14);
  }

  .brand-subtitle {
    display: none;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .contact-form,
  .concept-panel {
    padding: 22px;
  }

  .info-item {
    gap: 14px;
    padding: 18px;
  }

  .opening-hours th,
  .opening-hours td {
    display: block;
    width: 100%;
  }

  .opening-hours th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .opening-hours td {
    padding-top: 2px;
  }
}


/* ==========================================================
   3. Mobile Optimierung – Abstände und Lesbarkeit
   ========================================================== */

@media (max-width: 700px) {

  .container {
    width: min(100% - 2rem, 1200px);
  }

  section {
    padding-block: 3rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    line-height: 1.2;
  }

  h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  p,
  li {
    font-size: 1rem;
    line-height: 1.65;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}


/* ==========================================================
   4. Lebenslauf – responsive Spalten
   Desktop: 2 Spalten
   <= 1200px: 1 Spalte
   ========================================================== */

@media (max-width: 1200px) {

  #lebenslauf .cv-layout {
    display: block !important;
  }

  #lebenslauf .cv-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 2rem 0;
  }

  #lebenslauf .concept-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}


/* ==========================================================
   5. Navigation – Tablet, kleines Laptopfenster und Mobile
   ========================================================== */

@media (max-width: 1100px) {

  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-navigation {
    position: fixed;

    top: 82px;
    right: 0;
    bottom: 0;

    width: min(340px, 92vw);
    padding: 24px 24px 40px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--color-white);

    box-shadow:
      -12px 10px 30px rgba(0, 0, 0, 0.16);

    z-index: 1100;

    transform: translateX(110%);
    transition: transform 0.25s ease;
  }

  .site-navigation.open {
    transform: translateX(0);
  }

  .site-navigation a {
    display: block;
    width: 100%;
    padding: 13px;
  }

  .language-switcher {
    display: flex;
    align-self: flex-start;

    width: auto;
    max-width: 100%;

    margin: 12px 0 0;
    padding: 0;

    gap: 6px;

    flex: 0 0 auto;
  }

  .language-switcher .language-button {
    display: block;

    width: auto;
    min-width: 46px;

    visibility: visible;
    opacity: 1;

    flex: 0 0 auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }
}


/* ==========================================================
   6. Reduzierte Bewegung
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}