/* =========================================================================
   Hautarztpraxis Pankow — modern design system
   ========================================================================= */

:root {
    /* Palette — Hautarztpraxis Pankow brand (blue / white) */
    --bg:        #f6f9fb;
    --surface:   #ffffff;
    --sand:      #e9f2f7;
    --brand:     #009ee2;
    --brand-600: #0084bc;
    --brand-700: #0a4f70;
    --brand-050: #e5f5fc;
    --ink:       #1d1d1b;
    --muted:     #5a6b73;
    --line:      #dbe6ec;
    --accent:    #f7941e;
    --accent-600:#e07d0a;
    --ok:        #1f8a5b;
    --closed:    #d0453a;

    /* Type — original brand fonts */
    --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Libre Baskerville', Georgia, 'Times New Roman', serif;

    /* Rhythm */
    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 18px 50px -28px rgba(16, 48, 46, .45);
    --shadow-sm: 0 8px 24px -18px rgba(16, 48, 46, .5);
    --wrap:      1180px;
    --gap:       clamp(2.5rem, 6vw, 5.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-600); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0 0 .5em; }
h3 { font-size: 1.28rem; margin: 0 0 .4em; }

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 1rem;
}

.section { padding-block: var(--gap); }
.section--tint { background: var(--sand); }
.section--brand { background: var(--brand-700); color: #eaf6fc; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand .eyebrow { color: #a9d4ec; }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .96rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .18s ease, box-shadow .18s ease, border-color .18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #3a1c10; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-600); color: #3a1c10; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--brand-600); }
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-700); }

/* =========================================================================
   Header / navigation
   ========================================================================= */
.topbar {
    background: var(--brand-700);
    color: #cfe8f5;
    font-size: .82rem;
}
.topbar .wrap { display: flex; gap: 1.4rem; justify-content: flex-end; align-items: center; padding-block: .5rem; flex-wrap: wrap; }
.topbar a { color: #eaf6fc; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .4; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 249, 251, .9);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .7rem; }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand__logo { height: 56px; width: auto; }
.footer-logo img { height: 76px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
@media (max-width: 620px) { .brand__logo { height: 46px; } }
.brand__mark {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-head); font-size: 1.4rem;
}
.brand__name { font-family: var(--font-head); font-size: 1.24rem; line-height: 1.05; color: var(--ink); }
.brand__sub  { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Nav */
.nav { display: flex; align-items: center; gap: .3rem; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .85rem; border-radius: 10px;
    font-weight: 600; font-size: .92rem; color: var(--ink);
}
.nav__link:hover, .nav__item:hover > .nav__link { background: var(--brand-050); color: var(--brand-700); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link .chev { width: .6em; height: .6em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .2s; }
.nav__item:hover .chev { transform: rotate(225deg); margin-top: 2px; }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 244px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: .5rem;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: block; padding: .6rem .8rem; border-radius: 9px;
    color: var(--ink); font-size: .9rem; font-weight: 500;
}
.dropdown a:hover { background: var(--brand-050); color: var(--brand-700); }

.header-cta { display: flex; align-items: center; gap: .7rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

@media (max-width: 960px) {
    .header-cta .btn--brand { display: none; }
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
        background: var(--surface); flex-direction: column; align-items: stretch;
        padding: 5rem 1.3rem 2rem; gap: .1rem; overflow-y: auto;
        transform: translateX(100%); transition: transform .3s ease;
        box-shadow: var(--shadow); border-left: 1px solid var(--line);
    }
    body.nav-open .nav { transform: translateX(0); }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .nav__link { font-size: 1.05rem; padding: .8rem .6rem; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 .4rem .8rem; min-width: 0;
        display: none;
    }
    .nav__item.open .dropdown { display: block; }
    .nav__item:hover .chev { transform: rotate(45deg); }
    .nav__item.open .chev { transform: rotate(225deg); }
}

/* =========================================================================
   Status banner (live open/closed)
   ========================================================================= */
.status-banner {
    display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    padding: .7rem 1.1rem; border-radius: 999px;
    font-size: .92rem; font-weight: 600;
    background: #fff; border: 1px solid var(--line); width: max-content; max-width: 100%;
    box-shadow: var(--shadow-sm);
}
.status-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.status-dot--open   { background: var(--ok); box-shadow: 0 0 0 4px rgba(31,138,91,.18); }
.status-dot--closed { background: var(--closed); box-shadow: 0 0 0 4px rgba(180,81,63,.16); }
.status-banner .detail { color: var(--muted); font-weight: 500; }

.notice-bar {
    background: var(--accent); color: #3a1c10; text-align: center;
    font-weight: 600; font-size: .92rem; padding: .6rem 1rem;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; background: var(--brand-700); color: #eef7fc; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; }
.hero p { color: #cfe8f5; font-size: 1.18rem; max-width: 46ch; }
.hero .eyebrow { color: #a9d4ec; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__panel {
    background: linear-gradient(160deg, #0f6d99, #093f5b);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px; padding: 1.8rem;
    box-shadow: var(--shadow);
}
.hero__panel h3 { color: #fff; margin-bottom: 1rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .96rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: #cfe8f5; }
.hours-list .val { font-weight: 600; color: #fff; }
.hours-list li.is-today { color: #fff; }
.hours-list li.is-today .day::after { content: ' · heute'; color: var(--accent); font-size: .8em; }
.hours-list li.is-closed .val { color: #a9d4ec; font-weight: 500; }

/* =========================================================================
   Cards / grids
   ========================================================================= */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.7rem;
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
    width: 48px; height: 48px; border-radius: 13px; margin-bottom: 1.1rem;
    background: var(--brand-050); color: var(--brand);
    display: grid; place-items: center; font-size: 1.5rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card__more { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .9rem; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.split img, .media-frame { border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame { aspect-ratio: 4/3; background: linear-gradient(150deg, var(--brand-050), var(--sand)); display: grid; place-items: center; color: var(--brand); }

/* Service anchor sections */
.svc { padding-block: clamp(2.2rem, 5vw, 3.4rem); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:last-child { border-bottom: 0; }
.svc__grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; align-items: start; }
.svc__num { font-family: var(--font-head); font-size: 2.4rem; color: var(--brand); opacity: .5; }
@media (max-width: 760px) { .svc__grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Team */
.team-card { text-align: center; }
.team-card .avatar {
    width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 1.1rem;
    background: linear-gradient(150deg, var(--brand), var(--brand-700));
    color: #fff; display: grid; place-items: center;
    font-family: var(--font-head); font-size: 2.2rem;
}
.team-card h3 { margin-bottom: .2rem; }
.team-card .role { color: var(--muted); font-size: .92rem; }
.badge-away {
    display: inline-block; margin-top: .7rem; padding: .25rem .7rem;
    border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: #fbeae4; color: var(--closed);
}

/* Chips (sub-nav for service pages) */
.chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.chip {
    padding: .5rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--brand-700);
}
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Alerts (closures / absences on public site) */
.alert {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #fff5ef; border: 1px solid #f0d3c4; border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .8rem;
}
.alert__ico { font-size: 1.2rem; }
.alert strong { color: var(--closed); }
.alert .when { color: var(--muted); font-size: .9rem; }

/* =========================================================================
   Contact form
   ========================================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
    font: inherit; padding: .8rem .95rem; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-050);
}
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { margin-top: .25rem; }

.flash { padding: .9rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; }
.flash--ok { background: #e5f4ec; color: #14603f; border: 1px solid #b9e0cc; }
.flash--err { background: #fbeae4; color: #8f3826; border: 1px solid #f0c8ba; }

/* Contact info strip */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-card .lbl { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.info-card .val { font-family: var(--font-head); font-size: 1.3rem; margin-top: .35rem; color: var(--ink); }

.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); filter: saturate(.9); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--brand-700); color: #cfe8f5; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #eaf6fc; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: #a9d4ec; margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #a9cee0; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #a9d4ec; }

/* =========================================================================
   Page hero (interior pages)
   ========================================================================= */
.page-hero { background: var(--brand-700); color: #eef7fc; padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe8f5; max-width: 60ch; margin-bottom: 0; }
.crumbs { font-size: .82rem; color: #a9d4ec; margin-bottom: 1rem; }
.crumbs a { color: #cfe8f5; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .grid--3, .grid--2, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar .wrap { justify-content: center; }
}

/* Utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
