/* =========================================================
   Praxis für Psychotherapie Scheins — Stylesheet
   Farben & Schrift 1:1 vom Original übernommen:
   Navy #273375, Gold #D2AE02, Nunito (300/400/500/600/700)
   ========================================================= */

:root {
    --navy: #273375;
    --navy-light: #4555bf;
    --gold: #d2ae02;
    /* Abgedunkelte Gold-Variante für Text auf hellem Hintergrund: #d2ae02 auf
       Weiß hat nur ~2,1:1 Kontrast (WCAG AA verlangt 4,5:1 für Text bzw. 3:1
       für UI-Komponenten/Ränder); dieser Ton erreicht ~5,9:1. */
    --gold-text: #7a6200;
    --cream: #ffefa9;
    --text-light: #4d4d4d;
    --white: #ffffff;
    --border: #eaeaea;
    --max-width: 1200px;
    --font: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a, button {
    touch-action: manipulation;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 1rem;
    z-index: 2000;
    background: var(--navy);
    color: var(--white);
    padding: 0.7em 1.2em;
    border-radius: 4px;
    transform: translateY(-150%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(1rem);
}

/* Body-Text ist bewusst leicht (300); ohne diese Regel berechnet der Browser
   "bolder" für <strong>/<b> relativ dazu nur auf 400 statt auf echtes Fett. */
strong, b {
    font-weight: 700;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.6em;
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p {
    margin: 0 0 1.1em;
}

.eyebrow {
    display: block;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2em;
}

.divider {
    width: 80px;
    height: 1px;
    background: var(--navy);
    opacity: 0.4;
    margin: 1.2em 0 1.6em;
}

.divider.centered {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.9em 2.1em;
    border-radius: 3px;
    border: 2px solid var(--navy);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 50;
    background: var(--white);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
}

.logo {
    width: 190px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 2.4rem;
}

.main-nav a {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--navy);
    padding-bottom: 0.3em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-text);
    border-color: var(--gold-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero / Split Sections ---------- */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 640px;
}

.split-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.split-section.reverse .split-media {
    order: -1;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6vw;
}

.split-content .hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    margin-bottom: 0.7em;
}

.split-media {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 420px;
}

/* ---------- Photo Band (volle Breite) ---------- */

.photo-band {
    background-size: cover;
    background-position: center;
    min-height: 460px;
}

/* ---------- Sonnen-Band (Marken-Element: cremefarbener Hintergrund + Sonnen-Wasserzeichen) ---------- */

.sun-band {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    padding: 5rem 2rem;
}

.sun-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/sun-white.webp');
    background-repeat: no-repeat;
    background-position: -140px 50%;
    background-size: 620px;
    pointer-events: none;
}

.sun-band > * {
    position: relative;
    z-index: 1;
}

.sun-band-narrow {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sun-band-wide {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---------- Generic Section ---------- */

.section {
    padding: 5rem 2rem;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-inner.narrow {
    max-width: 820px;
}

.section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.section-header.centered {
    text-align: center;
}

.section.alt {
    background: #fafaf7;
}

/* ---------- Kachel-Grundkomponente ("Tile") ----------
   Gemeinsames Karten-Aussehen für alle Grids aus wiederholten Einträgen
   (Symptome, Qualifikationen, Wartezeit-Kategorien): weißer Hintergrund,
   dezenter Rahmen, einheitlicher Radius/Innenabstand. */

.tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem 1.3rem;
}

/* ---------- Symptom / Card Grid ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.card-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.card-item img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
}

.card-item span,
.card-item p {
    font-size: 1.02rem;
    color: var(--text-light);
    margin: 0;
    align-self: center;
}

/* ---------- Werdegang Timeline (zentrierter Zickzack) ---------- */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: rgba(39, 51, 117, 0.25);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 3rem;
}

.timeline-item.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-item.timeline-right {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item.timeline-left::before {
    right: -8px;
}

.timeline-item.timeline-right::before {
    left: -8px;
}

.timeline-item .period {
    display: block;
    font-weight: 600;
    color: var(--gold-text);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.3em;
}

.timeline-item h3 {
    margin-bottom: 0.3em;
}

.timeline-item p {
    color: var(--text-light);
    margin: 0;
}

/* ---------- Qualifications Grid ---------- */

.qual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.qual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qual-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.qual-item h3 {
    margin-bottom: 0.4em;
}

.qual-item p {
    color: var(--text-light);
    margin: 0;
}

/* ---------- Therapieangebot: Photo Band Sections ---------- */

.offer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.offer-section.reverse .offer-media {
    order: -1;
}

.offer-media img {
    border-radius: 6px;
    width: 100%;
    height: auto;
}

.offer-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.offer-list img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---------- Kontakt ---------- */

.kontakt-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
    align-items: start;
}

.kontakt-block {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.6rem;
}

.kontakt-block img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0.2em;
}

.kontakt-block h3 {
    margin-bottom: 0.4em;
}

.kontakt-block .phone-number {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
}

a[href^="tel:"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a[href^="tel:"]:hover,
a[href^="tel:"]:focus-visible {
    text-decoration-thickness: 2px;
}

.opening-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.opening-hours-list li {
    color: var(--text-light);
}

.opening-hours-list li span:first-child {
    margin-right: 0.4em;
}

.callout {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    padding: 2.4rem 2rem;
}

.callout h3 {
    color: var(--white);
    font-size: 1.4rem;
}

.callout p {
    color: #dfe2f2;
}

.steps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.steps-row .step-badge {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: var(--cream);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.steps-row .step-badge:hover,
.steps-row .step-badge:focus-visible {
    background: var(--gold);
}

.steps-row .step-badge.active {
    background: var(--navy);
    color: var(--white);
}

.steps-details {
    display: grid;
    margin: 0.5rem 0 1.5rem;
}

/* Alle Schritte liegen übereinander in derselben Grid-Zelle, damit der
   Container immer die Höhe des höchsten Inhalts hat und sich beim
   Umschalten zwischen den Schritten nicht in der Höhe ändert. */
.steps-detail {
    grid-area: 1 / 1;
    padding: 1rem 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.steps-detail.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.steps-detail h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.steps-detail p {
    margin: 0;
    color: var(--text-light);
}

.forms-list {
    list-style: none;
    margin: 1.2rem 0;
    padding: 0;
}

.forms-list li {
    border-bottom: 1px solid var(--border);
}

.forms-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6em 0;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
}

.forms-list a:hover,
.forms-list a:focus-visible {
    color: var(--navy-light);
}

.forms-list a:hover .forms-list-hint,
.forms-list a:focus-visible .forms-list-hint {
    color: var(--navy-light);
}

.forms-list-hint {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-text);
}

.waiting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.waiting-item .kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 0.5em;
}

.waiting-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4em;
}

.waiting-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Legal Pages ---------- */

.legal-content h1 {
    margin-bottom: 1em;
}

.legal-content h2 {
    margin-top: 1.6em;
    font-size: 1.5rem;
}

.legal-content p {
    color: var(--text-light);
}

/* ---------- Footer ---------- */

.site-footer {
    background: #f4f4f1;
    border-top: 1px solid var(--border);
    padding: 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-nav a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-sep {
    margin: 0 0.6em;
    color: var(--text-light);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-section .split-media,
    .split-section.reverse .split-media {
        order: -1;
        min-height: 320px;
    }

    .card-grid,
    .qual-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-section,
    .waiting-grid {
        grid-template-columns: 1fr;
    }

    .offer-section.reverse .offer-media {
        order: 0;
    }

    .kontakt-layout {
        grid-template-columns: 1fr;
    }

    .sun-band-narrow {
        max-width: 560px;
    }

    .sun-band::before {
        background-position: -180px 50%;
        background-size: 460px;
    }

    /* Zickzack-Zeitleiste auf Tablet/Mobile zu einer Spalte zusammenfalten */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.timeline-left,
    .timeline-item.timeline-right {
        left: 0;
        width: 100%;
        text-align: left;
        padding: 0 0 2.4rem 3.2rem;
    }

    .timeline-item.timeline-left::before,
    .timeline-item.timeline-right::before {
        left: 13px;
        right: auto;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        padding: 1rem 1.2rem;
    }

    .logo {
        width: 150px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 1rem 1.2rem;
        border-bottom: 1px solid var(--border);
    }

    .split-content {
        padding: 3rem 1.2rem;
    }

    .section {
        padding: 3rem 1.2rem;
    }

    .card-grid,
    .qual-grid {
        grid-template-columns: 1fr;
    }

    .sun-band {
        padding: 3.5rem 1.2rem;
    }

    .sun-band-narrow {
        max-width: 100%;
    }

    .sun-band::before {
        background-position: -220px 15%;
        background-size: 360px;
        opacity: 0.8;
    }

    .photo-band {
        min-height: 260px;
    }

    .kontakt-layout {
        padding: 3rem 1.2rem;
        gap: 2rem;
    }

    .offer-section {
        padding: 3rem 1.2rem;
        gap: 1.5rem;
    }

    .timeline-item,
    .timeline-item.timeline-left,
    .timeline-item.timeline-right {
        padding-left: 2.2rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }

    a, button, input[type="submit"] {
        -webkit-tap-highlight-color: rgba(39, 51, 117, 0.15);
    }
}

@media (max-width: 400px) {
    .logo {
        width: 128px;
    }

    .card-item {
        padding: 1.1rem 1rem;
    }

    .waiting-item {
        padding: 1.3rem 1.1rem;
    }

    .steps-row .step-badge {
        font-size: 0.8rem;
        padding: 0.5em 0.9em;
    }
}

@media (max-width: 640px) {
    @supports (padding: max(0px)) {
        .header-inner {
            padding-left: max(1.2rem, env(safe-area-inset-left));
            padding-right: max(1.2rem, env(safe-area-inset-right));
        }
    }
}
