/* NeuroTeam Walldorf - One-Page Website */
:root {
    --sage: #8fbaaf; /* brain-left */
    --sage-soft: #eef6f3;
    --slate: #658690; /* brain-right */
    --slate-dark: #173d5f;
    --berry: #8b5e67; /* brain-center */
    --berry-dark: #744d56;
    --white: #ffffff;
    --text: #284752;
    --muted: #607782;
    --line: rgba(101, 134, 144, .22);
    --shadow: 0 22px 60px rgba(23, 61, 95, .12);
    --shadow-soft: 0 12px 35px rgba(23, 61, 95, .10);
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

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

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

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto
}

.narrow {
    max-width: 900px
}

.section {
    padding: 96px 0
}

.section-soft {
    background: linear-gradient(180deg, #fff 0%, var(--sage-soft) 100%)
}

.eyebrow {
    color: var(--berry);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
    margin: 0 0 10px
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    color: var(--slate-dark);
    margin: 0 0 18px
}

.section-lead {
    font-size: 1.16rem;
    color: var(--muted);
    max-width: 820px;
    margin: 0 auto 42px
}

.text-center {
    text-align: center
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    background: #fff;
    color: var(--slate-dark);
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 9999
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 82px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(101, 134, 144, .18);
    z-index: 1000;
    transition: box-shadow .25s ease, height .25s ease
}

.header.scrolled {
    height: 72px;
    box-shadow: 0 10px 30px rgba(23, 61, 95, .08)
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px
}

.brand svg {
    width: 220px;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(23, 61, 95, .20))
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0
}

.nav-menu a {
    display: inline-flex;
    padding: 10px 13px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--slate-dark);
    font-size: .96rem
}

.nav-menu a:hover, .nav-menu a.active {
    background: var(--sage-soft);
    color: var(--berry)
}

.nav-cta {
    background: var(--berry);
    color: #fff !important;
    padding-inline: 18px !important;
    box-shadow: 0 12px 24px rgba(139, 94, 103, .24)
}

.nav-cta:hover {
    background: var(--berry-dark) !important;
    color: #fff !important
}

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 16px;
    background: var(--sage-soft);
    cursor: pointer;
    position: relative
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-dark);
    margin: 5px auto;
    border-radius: 3px;
    transition: .25s ease
}

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

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

.hamburger[aria-expanded="true"] span:nth-child(3) {
    opacity: 0
}

.hamburger[aria-expanded="true"] span:nth-child(4) {
    opacity: 0
}

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

.hero {
    min-height: 100vh;
    padding: 142px 0 84px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 48%, rgba(255, 255, 255, .75) 100%), url('../assets/hero_grid_background.jpg') center/cover no-repeat
}

.hero:after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(143, 186, 175, .42), rgba(143, 186, 175, 0) 70%);
    pointer-events: none
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(300px, .65fr);
    gap: 54px;
    align-items: center
}

.hero-card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 32px;
    padding: 42px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px)
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.02;
    margin: 0 0 22px;
    color: var(--slate-dark);
    letter-spacing: -.04em
}

.hero-sub {
    font-size: 1.22rem;
    color: #48636c;
    margin: 0 0 34px;
    max-width: 720px
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    min-height: 52px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: var(--berry);
    color: #fff;
    box-shadow: 0 16px 32px rgba(139, 94, 103, .28)
}

.btn-primary:hover {
    background: var(--berry-dark)
}

.btn-secondary {
    background: var(--slate);
    color: #fff;
    box-shadow: 0 16px 30px rgba(101, 134, 144, .26)
}

.btn-secondary:hover {
    background: #54737d
}

.btn-tertiary {
    background: var(--sage);
    color: #fff;
    box-shadow: 0 16px 30px rgba(101, 134, 144, .26)
}

.btn-tertiary:hover {
    background: #779e94
}

.btn-quaternary {
    background: #324146;
    color: #fff;
    box-shadow: 0 16px 30px rgba(101, 134, 144, .26)
}

.btn-quaternary:hover {
    background: #242f32
}

.hero-aside {
    display: grid;
    gap: 18px
}

.info-pill {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(101, 134, 144, .16);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft)
}

.info-pill strong {
    display: block;
    color: var(--slate-dark);
    font-size: 1.05rem
}

.info-pill span {
    color: var(--muted);
    font-size: .96rem
}

.cards-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 24px
}

.doctor-card, .service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease
}

.doctor-card:hover, .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.doctor-img {
    height: 430px;
    background: var(--sage-soft);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center
}

.doctor-content {
    padding: 24px
}

.doctor-icon, .service-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--sage-soft);
    display: grid;
    place-items: center;
    color: var(--slate);
    margin-bottom: 16px;
    display: none;
    visibility: hidden;
}

.doctor-card h3, .service-card h3 {
    color: var(--slate-dark);
    line-height: 1.22;
    margin: 0 0 8px;
    font-size: 1.28rem
}

.doctor-card p, .service-card p {
    margin: 0;
    color: var(--muted)
}

.team-note {
    display: grid;
    grid-template-columns:.75fr 1.25fr;
    gap: 30px;
    align-items: center;
    margin-top: 42px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 26px;
    box-shadow: var(--shadow-soft)
}

.team-img {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--sage-soft), rgba(143, 186, 175, .52));
    display: grid;
    place-items: center;
    color: var(--slate-dark);
    font-weight: 900;
    text-align: center;
    overflow: hidden;
}

.team-note p {
    font-size: 1.12rem;
    margin: 0;
    color: #49656f
}

.service-card {
    padding: 28px
}

.contact-wrap {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 28px
}

.contact-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-soft)
}

.contact-box h3 {
    margin: 0 0 18px;
    color: var(--slate-dark);
    font-size: 1.5rem
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px
}

.contact-list li {
    display: grid;
    grid-template-columns:34px 1fr;
    gap: 10px;
    color: var(--muted)
}

.contact-list svg {
    color: var(--slate);
    margin-top: 3px
}

.hours {
    width: 100%;
    border-collapse: collapse
}

.hours tr {
    border-bottom: 1px solid var(--line)
}

.hours tr:last-child {
    border: 0
}

.hours th, .hours td {
    text-align: left;
    padding: 13px 0;
    vertical-align: top
}

.hours th {
    color: var(--slate-dark);
    width: 80px
}

.hours td {
    color: var(--muted)
}

.legal-cta {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.footer {
    background: var(--slate-dark);
    color: rgba(255, 255, 255, .78);
    padding: 36px 0
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.footer svg {
    width: auto;
    height: 100px;
    display: block;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .24))
}

.footer a:hover {
    color: #fff
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.cmp {
    position: fixed;
    inset: auto 18px 18px auto;
    width: min(520px, calc(100% - 36px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(23, 61, 95, .22);
    padding: 24px;
    z-index: 2000;
    display: none
}

.cmp.visible {
    display: block
}

.cmp h2 {
    font-size: 1.35rem;
    margin: 0 0 8px;
    color: var(--slate-dark)
}

.cmp p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .95rem
}

.cmp-options {
    display: grid;
    gap: 10px;
    margin: 16px 0
}

.cmp-option {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center
}

.cmp-option strong {
    color: var(--slate-dark)
}

.cmp-option small {
    display: block;
    color: var(--muted)
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex: 0 0 auto
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #c4d3d7;
    border-radius: 999px;
    transition: .2s
}

.slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2)
}

.switch input:checked + .slider {
    background: var(--berry)
}

.switch input:checked + .slider:before {
    transform: translateX(20px)
}

.cmp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.cmp-actions .btn {
    min-height: 44px;
    padding: 10px 16px
}

.btn-light {
    background: var(--sage-soft);
    color: var(--slate-dark)
}

.btn-outline {
    background: #fff;
    color: var(--slate-dark);
    border: 1px solid var(--line)
}

.legal-page {
    padding: 132px 0 80px
}

.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 38px;
    box-shadow: var(--shadow-soft)
}

.legal-card h1 {
    color: var(--slate-dark);
    line-height: 1.1
}

.legal-card h2 {
    color: var(--slate-dark);
    margin-top: 32px
}

.legal-card p, .legal-card li {
    color: var(--muted)
}

@media (max-width: 980px) {
    .cards-grid {
        grid-template-columns:1fr 1fr
    }

    .hero-grid, .team-note, .contact-wrap {
        grid-template-columns:1fr
    }

    .hero {
        padding-top: 120px
    }

    .hero-aside {
        grid-template-columns:1fr 1fr
    }

    .section {
        padding: 76px 0
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--max))
    }

    .hamburger {
        display: block
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 14px;
        left: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow);
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch
    }

    .nav-menu.open {
        display: flex
    }

    .nav-menu a {
        justify-content: center
    }

    .hero-grid, .hero-aside, .cards-grid {
        grid-template-columns:1fr
    }

    .hero-card {
        padding: 28px
    }

    .hero h1 {
        font-size: 2.55rem
    }

    .actions .btn {
        width: 100%
    }

    .doctor-img {
        height: 400px
    }

    .footer-grid {
        flex-direction: column;
        text-align: center
    }

    .footer-links {
        justify-content: center
    }

    .section {
        padding: 64px 0
    }

    .cmp {
        inset: auto 12px 12px 12px;
        width: auto
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none
    }

    .btn:hover, .doctor-card:hover, .service-card:hover {
        transform: none
    }
}
