/* ==========================================================================
   HZA — Hausärzte Zentrum Aarau
   ========================================================================== */

/* Albert Sans (variable, 400–800), self-hosted — no Google request needed */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/albert-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/albert-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0B2545;
  --navy-light: #123A63;
  --teal: #35C4BB;
  --teal-hover: #4FD6CD;
  --teal-dark: #1E9C93;
  --teal-icon: #2AB5AC;
  --grey-bg: #F2F7F9;
  --text-muted: #3D5570;
  --line: #E3ECF1;
  --line-soft: #E8EEF2;
  --white: #FFFFFF;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--white); }
body { font-family: 'Albert Sans', 'Helvetica Neue', sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared type ---------- */
.overline { color: var(--teal-dark); font-size: 14px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.overline--light { color: var(--teal); }
.h2 { font-size: 42px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-size: 16px; font-weight: 700; padding: 15px 32px; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--navy); }
.btn--teal:hover { background: var(--teal-hover); color: var(--navy); }
.btn--outline { border: 2px solid var(--navy); color: var(--navy); padding: 13px 30px; }
.btn--outline:hover { background: rgba(11,37,69,0.06); color: var(--navy); }
.btn--sm { font-size: 15px; padding: 12px 24px; }
.btn--outline-light { border: 2px solid rgba(255,255,255,0.7); color: var(--white); padding: 13px 30px; }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }

/* ---------- Announcement bar ---------- */
.announce { background: var(--teal); color: var(--navy); text-align: center; padding: 10px 20px; font-size: 15px; font-weight: 600; }
.announce a { color: var(--navy); font-weight: 700; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header__logo { display: flex; align-items: center; flex: none; border-radius: 4px; }
.header__logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; color: var(--text-muted); text-decoration: none; font-size: 15.5px; font-weight: 600; white-space: nowrap; padding: 10px 11px; border-radius: 8px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current], .nav a.is-current { color: var(--navy); }
.nav a[aria-current]::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__extra { display: none; }
/* «Medikamentenanfrage»: a teal pill at the end of the menu */
.nav a.nav__med { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 9px 16px; border: 2px solid var(--teal); border-radius: 999px; color: var(--navy); transition: background-color .2s; }
.nav a.nav__med svg { width: 17px; height: 17px; flex: none; color: var(--teal-dark); }
.nav a.nav__med::after { content: none; }
.nav a.nav__med:hover { background: rgba(53,196,187,0.14); }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-size: 15.5px; font-weight: 700; white-space: nowrap; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.header__phone svg { width: 18px; height: 18px; color: var(--teal-dark); flex: none; }
.header__phone:hover { background: var(--grey-bg); color: var(--navy); }
.nav-toggle { display: none; appearance: none; background: none; border: none; width: 44px; height: 44px; padding: 11px 10px; border-radius: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle:hover { background: var(--grey-bg); }
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(82vh, 780px); min-height: 580px; background: var(--navy); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.1s ease; z-index: 1; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,37,69,0.92) 0%, rgba(11,37,69,0.62) 46%, rgba(11,37,69,0.14) 100%); pointer-events: none; }
.slide__content { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.slide__content .container { width: 100%; padding-bottom: 40px; }
.slide__text { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.slide__kicker { color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.slide__title { color: var(--white); font-size: clamp(42px, 4.5vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.slide__sub { color: rgba(255,255,255,0.85); font-size: 20px; line-height: 1.55; max-width: 520px; }
/* Only the visible slide's button may take clicks: the hidden slides lie on top of each other,
   and their buttons sit at the same spot (on phones a tap hit the last slide's «Termin» button). */
.slide.is-active .btn { pointer-events: auto; }

.hero__tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: linear-gradient(180deg, rgba(11,37,69,0) 0%, rgba(11,37,69,0.55) 100%); }
.hero__tabs .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.hero__tab { appearance: none; background: transparent; border: none; border-top: 3px solid rgba(255,255,255,0.25); padding: 16px 4px 18px; cursor: pointer; text-align: left; color: var(--white); opacity: 0.55; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: opacity .3s, border-color .3s; }
.hero__tab:hover { opacity: 0.85; }
.hero__tab.is-active { border-top-color: var(--teal); opacity: 1; }

/* ---------- Sections ---------- */
.section { scroll-margin-top: 96px; padding: 110px 0; }
.section--white { background: var(--white); }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); }
.section__head { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 10px; }
.fact { display: flex; align-items: flex-start; gap: 14px; }
.fact__icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(53,196,187,0.14); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.fact__body { display: flex; flex-direction: column; gap: 3px; }
.fact__title { font-size: 16.5px; font-weight: 700; }
.fact__desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }

/* All practice photos are landscape (3:2), so every tile keeps that shape: one wide photo on top,
   two below. The tiles never crop a photo to a narrow portrait strip. */
.collage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; min-width: 0; }
.collage__img { position: relative; min-width: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 3 / 2; }
.collage__img:first-child, .collage__img:nth-child(2):last-child { grid-column: 1 / -1; }
.collage__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Leistungen ---------- */
.services { background: var(--white); border-radius: 20px; padding: 40px 52px; }
.services__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; list-style: none; margin: 0; padding: 0; }
.service { display: flex; align-items: center; gap: 18px; padding: 15px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.service svg { flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: var(--teal-icon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Team ---------- */
.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor { appearance: none; background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.doctor img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 16px; display: block; transition: transform .3s ease; }
.doctor:hover img { transform: translateY(-3px); }
.doctor__name { font-size: 20px; font-weight: 700; }
.doctor__role { font-size: 15px; color: var(--text-muted); margin-top: -8px; line-height: 1.5; }
.doctor__more { font-size: 15px; font-weight: 700; color: var(--teal-dark); margin-top: -6px; }
.doctor:hover .doctor__more { color: var(--teal); }

.team-sub { margin: 28px 0 0; font-size: 30px; font-weight: 700; }
/* 3 per row, but narrower than the doctor photos so the doctors stay the largest */
.staff { display: grid; grid-template-columns: repeat(3, minmax(0, 330px)); gap: 28px; }
.staff__item { display: flex; flex-direction: column; gap: 10px; }
.staff__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; display: block; }
.staff__name { font-size: 17px; font-weight: 700; }
.staff__role { font-size: 14px; color: var(--text-muted); margin-top: -6px; line-height: 1.45; }

/* ---------- Profil-Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(11,37,69,0.6); display: flex; align-items: center; justify-content: center; padding: 40px; }
.modal[hidden] { display: none; }
.modal__box { background: var(--white); border-radius: 20px; max-width: 920px; width: 100%; max-height: 86vh; overflow: hidden; display: grid; grid-template-columns: 340px 1fr; position: relative; }
.modal__img { width: 100%; height: 100%; min-height: 480px; background-color: var(--grey-bg); background-size: cover; background-position: center top; }
.modal__body { padding: 44px 48px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.modal__head { display: flex; flex-direction: column; gap: 8px; padding-right: 44px; }
.modal__name { font-size: 30px; font-weight: 700; }
.modal__role { font-size: 16.5px; color: var(--teal-dark); font-weight: 600; line-height: 1.5; }
.modal__field { display: flex; flex-direction: column; gap: 4px; }
.modal__label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }
.modal__value { font-size: 16.5px; line-height: 1.55; color: var(--navy); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 999px; border: none; background: var(--grey-bg); color: var(--navy); font-size: 20px; font-weight: 600; cursor: pointer; line-height: 1; }
.modal__close:hover { background: var(--line); }
body.modal-open { overflow: hidden; }

/* ---------- Termin ---------- */
.termin__head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.termin__head .h2 { color: var(--white); }
.termin__head .lead { color: rgba(255,255,255,0.8); }
.termin__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.termin__phone { color: var(--white); text-decoration: none; font-size: 26px; font-weight: 700; }
.termin__phone:hover { color: var(--teal); }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--navy-light); border-radius: 16px; padding: 32px 34px; display: flex; flex-direction: column; gap: 12px; }
.info-card__title { color: var(--teal); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.info-card__text { color: rgba(255,255,255,0.85); font-size: 16.5px; line-height: 1.65; }
.stack-44 { display: flex; flex-direction: column; gap: 44px; }
.termin__booking { scroll-margin-top: 96px; background: var(--white); border-radius: 16px; padding: 24px; }
.termin__booking iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; align-items: stretch; }
.contact__card { background: var(--navy); border-radius: 24px; padding: 44px 46px; display: flex; flex-direction: column; gap: 26px; }
.contact__card .h2 { font-size: 38px; color: var(--white); }
.contact__block { display: flex; flex-direction: column; gap: 6px; }
.contact__label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.contact__text { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.9); }
.contact__text--sm { font-size: 15.5px; color: rgba(255,255,255,0.85); }
.contact__text a { color: var(--teal); font-weight: 700; }
.contact__phone { font-size: 21px; font-weight: 700; color: var(--white); text-decoration: none; }
.contact__mail { font-size: 16px; color: rgba(255,255,255,0.85); text-decoration: none; }
.contact__phone:hover, .contact__mail:hover { color: var(--teal); }
.contact__btn { align-self: flex-start; margin-top: 4px; }
.contact__map { width: 100%; height: 100%; min-height: 620px; border: none; border-radius: 24px; display: block; }

/* ---------- Partner ---------- */
.partners-section { padding: 90px 0; }
.partners { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.partners img { filter: grayscale(1) invert(1) brightness(1.4); mix-blend-mode: screen; opacity: 0.9; width: auto; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); padding: 70px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__brand img { height: 46px; display: block; }
.footer__about { color: rgba(255,255,255,0.7); font-size: 15.5px; line-height: 1.65; max-width: 380px; }
.footer__title { color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__phone { color: var(--white); text-decoration: none; font-size: 16px; font-weight: 600; }
.footer__link, .footer__text { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 15.5px; line-height: 1.6; }
.footer__link:hover, .footer__phone:hover { color: var(--teal); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy, .footer__legal a { color: rgba(255,255,255,0.55); font-size: 14px; text-decoration: none; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--white); }
.stack-48-footer { display: flex; flex-direction: column; gap: 48px; }

/* ==========================================================================
   Offene Stellen (stellen.html)
   ========================================================================== */
.hero--jobs { height: 520px; min-height: 0; }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.benefit { background: var(--grey-bg); border-radius: 16px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.benefit__title { font-size: 18px; font-weight: 700; }
.benefit__text { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }

.jobs { display: flex; flex-direction: column; gap: 16px; margin-top: -8px; }
.job { background: var(--white); border-radius: 18px; overflow: hidden; }
.job__head { list-style: none; cursor: pointer; padding: 28px 34px; display: flex; align-items: center; gap: 24px; }
.job__head::-webkit-details-marker { display: none; }
.job__head:hover .job__title { color: var(--navy-light); }
.job__headmain { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.job__title { font-size: 22px; font-weight: 700; }
.job__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: var(--grey-bg); color: var(--text-muted); font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.chip--strong { background: rgba(53,196,187,0.14); color: #16766F; font-weight: 700; }
.job__toggle { width: 44px; height: 44px; border-radius: 999px; background: var(--navy); flex-shrink: 0; position: relative; }
.job__toggle::before, .job__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--white); transform: translate(-50%, -50%); }
.job__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.job[open] .job__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.job__body { border-top: 1px solid var(--line-soft); padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 48px; align-items: start; }
.job__main { display: flex; flex-direction: column; gap: 32px; }
.job__intro { font-size: 17.5px; line-height: 1.7; text-wrap: pretty; }
.job__blocktitle { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }
.job__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job__list li { position: relative; padding-left: 21px; font-size: 16.5px; line-height: 1.65; color: var(--text-muted); }
.job__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.job__list strong { color: var(--navy); }
.job__equal { font-size: 15px; line-height: 1.6; color: var(--text-muted); font-weight: 600; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.job__side { background: var(--grey-bg); border-radius: 16px; padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.job__sidetitle { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.job__fact { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.job__factk { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }
.job__factv { font-size: 16px; font-weight: 600; }
.job__contact { padding: 16px 0 6px; display: flex; flex-direction: column; gap: 3px; }
.job__cname { font-size: 16px; font-weight: 700; }
.job__crole { font-size: 15px; color: var(--text-muted); }
.job__apply { margin-top: 14px; text-align: center; }
.job__note { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin-top: 10px; text-align: center; }

.jobs-spont { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.jobs-spont__head { display: flex; flex-direction: column; gap: 20px; }
.jobs-spont__head .h2 { color: var(--white); }
.jobs-spont__text { color: rgba(255,255,255,0.8); font-size: 18px; line-height: 1.7; max-width: 560px; }
.jobs-spont__card { background: var(--navy-light); border-radius: 20px; padding: 36px 40px; display: flex; flex-direction: column; gap: 6px; }
.jobs-spont__big { font-size: 20px; font-weight: 700; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.jobs-spont__big:hover { color: var(--teal); }
.jobs-spont__card .contact__label + .jobs-spont__big { margin-bottom: 12px; }
.jobs-spont__card .btn { margin-top: 16px; align-self: flex-start; }

/* ==========================================================================
   Impressum & Datenschutz (impressum.html, datenschutz.html)
   ========================================================================== */
.legal-hero { padding: 90px 0 70px; }
.legal-hero .h2 { color: var(--white); }
.legal-hero .lead { color: rgba(255,255,255,0.8); }
.legal-body { padding-top: 80px; }
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 40px; }
.legal p { font-size: 17px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; overflow-wrap: break-word; }
.legal__intro { margin-top: -20px; }
.legal__intro:first-child { margin-top: 0; }
.legal__section { display: flex; flex-direction: column; gap: 14px; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.legal__heading { font-size: 24px; font-weight: 700; line-height: 1.3; }
.legal__address { font-style: normal; background: var(--grey-bg); border-radius: 16px; padding: 30px 32px; font-size: 17px; line-height: 1.7; color: var(--navy); }
.legal__address strong { font-size: 18px; }
.legal__address a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.legal__address a:hover { color: var(--teal); }
.legal .legal__notice { background: rgba(53,196,187,0.14); color: var(--navy); font-weight: 600; border-radius: 12px; padding: 18px 22px; font-size: 16px; }

/* Seite nicht gefunden (404) — die Karten sind Links */
.notfound__links { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.notfound__links .benefit { text-decoration: none; color: var(--navy); transition: background-color .2s, transform .2s; }
.notfound__links .benefit:hover { background: rgba(53,196,187,0.14); transform: translateY(-2px); }
.notfound__links .benefit__title span { color: var(--teal-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .header__phone span { display: none; }
  .header__phone { padding: 12px; background: var(--grey-bg); }
  .header__phone:hover { background: var(--line); }
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .header__inner { height: 76px; }
  .header__logo img { height: 42px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; box-shadow: 0 24px 40px rgba(11,37,69,0.14), 0 0 0 100vmax rgba(11,37,69,0.35); clip-path: inset(0 0 -100vmax 0); display: none; }
  .nav a { padding: 16px 0 16px 18px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 18px; color: var(--navy); }
  .nav a::after { left: 0; right: auto; top: 16px; bottom: 16px; width: 3px; height: auto; transform: scaleY(0); }
  .nav a[aria-current]::after, .nav a.is-current::after { transform: scaleY(1); }
  .nav a[aria-current], .nav a.is-current { color: var(--teal-dark); }
  .nav > a:last-of-type { border-bottom: none; }
  .nav a.nav__med { justify-content: center; margin: 16px 0 0; padding: 14px 24px; font-size: 17px; border-radius: 999px; border-bottom: 2px solid var(--teal); }
  .nav a.nav__med svg { width: 19px; height: 19px; }
  .nav-open .nav { display: flex; }
}

/* Header with the «Medikamentenanfrage» pill: a little wider, phone as icon only, and the
   menu folds into the ☰ button earlier (same rules as at 1180 px above) */
.header--med .header__inner { max-width: 1440px; gap: 24px; }
.header--med .header__phone span { display: none; }
.header--med .header__phone { padding: 12px; background: var(--grey-bg); }
.header--med .header__phone:hover { background: var(--line); }
@media (max-width: 1439px) {
  .header--med .nav-toggle { display: block; }
  .header--med .header__inner { height: 76px; }
  .header--med .header__logo img { height: 42px; }
  .header--med .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; box-shadow: 0 24px 40px rgba(11,37,69,0.14), 0 0 0 100vmax rgba(11,37,69,0.35); clip-path: inset(0 0 -100vmax 0); display: none; }
  .header--med .nav > a { padding: 16px 0 16px 18px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 18px; color: var(--navy); }
  .header--med .nav > a::after { left: 0; right: auto; top: 16px; bottom: 16px; width: 3px; height: auto; transform: scaleY(0); }
  .header--med .nav > a[aria-current]::after { transform: scaleY(1); }
  .header--med .nav > a[aria-current] { color: var(--teal-dark); }
  .header--med .nav > a:last-of-type { border-bottom: none; }
  .header--med .nav a.nav__med { justify-content: center; margin: 16px 0 0; padding: 14px 24px; font-size: 17px; border-radius: 999px; border-bottom: 2px solid var(--teal); }
  .header--med .nav a.nav__med svg { width: 19px; height: 19px; }
  .header--med.nav-open .nav { display: flex; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }

  .section { padding: 84px 0; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .collage__img:first-child { aspect-ratio: 16 / 9; }
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .staff { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact__map { min-height: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .modal__box { grid-template-columns: 260px 1fr; }

  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job__body, .jobs-spont { grid-template-columns: 1fr; gap: 32px; }
  .job__head, .job__body { padding: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .header__inner { height: 68px; gap: 12px; }
  .header__logo { flex: 1 1 auto; min-width: 0; }
  .header__logo img { height: auto; width: 100%; max-width: 300px; }
  .header__phone, .header__actions .btn { display: none; }
  .nav { max-height: calc(100dvh - 68px); }
  .nav__extra { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .nav__extra a { border: none; padding: 15px 24px; font-size: 17px; text-align: center; border-radius: 999px; }
  .nav__extra a::after { content: none; }
  .nav__extra .nav__call { background: var(--grey-bg); color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 10px; }
  .nav__extra .nav__call svg { width: 18px; height: 18px; color: var(--teal-dark); }
  .nav__extra .btn--navy { color: var(--white); }

  /* Screen minus header and the call/booking bar, so the bar never covers the slide tabs */
  .hero { height: 88vh; height: calc(100svh - 68px - 84px); min-height: 500px; }
  .slide__overlay { background: linear-gradient(90deg, rgba(11,37,69,0.9) 0%, rgba(11,37,69,0.72) 60%, rgba(11,37,69,0.5) 100%); }
  .slide__content .container { padding-bottom: 90px; }
  .slide__text { gap: 18px; }
  .slide__title { font-size: 36px; }
  .slide__sub { font-size: 17px; }
  .hero__tabs .container { gap: 6px; }
  .hero__tab { font-size: 10px; padding: 14px 0 16px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .section { padding: 64px 0; }
  .partners-section { padding: 56px 0; }
  .h2 { font-size: 32px; }
  .lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .collage { gap: 12px; }
  .services { padding: 12px 20px; }
  .services__list { grid-template-columns: 1fr; }
  .services__list .service:last-child { border-bottom: none; }
  .doctors { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .doctor__name { font-size: 16.5px; }
  .doctor__role { font-size: 13.5px; }
  .doctor__more { font-size: 14px; }
  .team-sub { font-size: 24px; margin-top: 8px; }
  .staff { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .staff__name { font-size: 15.5px; }
  .staff__role { font-size: 13px; }
  .termin__phone { font-size: 22px; }
  .info-cards { grid-template-columns: 1fr; }
  .info-card { padding: 26px 24px; }
  .termin__booking { padding: 12px; }
  .contact__card { padding: 32px 24px; border-radius: 20px; }
  .contact__card .h2 { font-size: 30px; }
  .contact__map { min-height: 340px; border-radius: 20px; }
  .partners { justify-content: center; gap: 28px 36px; }
  .partners img { max-height: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  .modal { padding: 16px; align-items: flex-end; }
  .modal__box { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal__img { min-height: 0; height: 260px; }
  .modal__body { padding: 28px 24px 32px; overflow: visible; }
  .modal__name { font-size: 24px; }
  .modal__close { background: rgba(255,255,255,0.92); }

  .hero--jobs { height: 480px; }
  .hero--jobs .slide__content .container { padding-bottom: 40px; }
  .benefits { grid-template-columns: 1fr; gap: 14px; }
  .benefit { padding: 24px 22px; }
  .job__head { padding: 20px; gap: 14px; }
  .job__title { font-size: 18px; }
  .job__toggle { width: 38px; height: 38px; }
  .job__body { padding: 20px; }
  .job__intro { font-size: 16.5px; }
  .job__list li { font-size: 15.5px; }
  .job__side { padding: 22px 20px; }
  .jobs-spont__card { padding: 28px 24px; }

  .legal-hero { padding: 56px 0 44px; }
  .legal-body { padding-top: 48px; }
  .legal { gap: 32px; }
  .legal p { font-size: 16px; }
  .legal__intro { margin-top: -16px; }
  .legal__section { padding-top: 28px; }
  .legal__heading { font-size: 20px; }
  .legal__address { padding: 24px 22px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .hero__tab, .doctor img, .nav a::after { transition: none; }
}

/* Arzt ohne Profil (noch keine Angaben): Karte ist nicht anklickbar */
.doctor--static { cursor: default; }

/* ---------- Cookie-Banner (nur wenn Google Analytics in Sanity eingetragen ist) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; padding: 0 var(--gutter) 24px; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; max-width: 1160px; margin: 0 auto; background: var(--navy); color: var(--white); border-radius: 16px; padding: 24px 28px; box-shadow: 0 18px 40px rgba(11,37,69,0.28); display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 6px; align-items: center; }
.consent__title { font-size: 17px; font-weight: 700; color: var(--teal); }
.consent__text { grid-column: 1; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.82); }
.consent__text a { color: var(--white); }
.consent__text a:hover { color: var(--teal); }
.consent__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; }
.consent__decline { border: 2px solid rgba(255,255,255,0.6); color: var(--white); background: transparent; padding: 10px 22px; }
.consent__decline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.consent .btn { font-family: inherit; cursor: pointer; }
.consent .btn--teal { border: 2px solid var(--teal); padding: 10px 22px; }
.footer__cookies { appearance: none; background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: rgba(255,255,255,0.55); font-size: 14px; }
.footer__cookies:hover { color: var(--white); }

@media (max-width: 720px) {
  .consent { padding-bottom: 12px; }
  .consent__box { grid-template-columns: 1fr; padding: 20px; row-gap: 8px; }
  .consent__actions { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .consent__actions .btn { flex: 1; }
}

/* ---------- Google-Bewertungen ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: #F5B301; }
.stars svg.stars__off { fill: var(--line); }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.reviews__summary { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--white); border-radius: 999px; padding: 12px 22px; text-decoration: none; color: var(--navy); box-shadow: 0 6px 18px rgba(11,37,69,0.06); }
.reviews__summary:hover { color: var(--navy); box-shadow: 0 8px 22px rgba(11,37,69,0.12); }
.reviews__score { font-size: 22px; font-weight: 800; }
.reviews__count { font-size: 15px; font-weight: 600; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.reviews { display: flex; flex-direction: column; gap: 24px; }
.reviews__track { list-style: none; margin: 0; padding: 4px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { position: relative; scroll-snap-align: start; background: var(--white); border-radius: 16px; padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.review__text { flex: 1; font-size: 16px; line-height: 1.65; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 8; line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review__foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__avatar { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--teal); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.review__name { display: block; font-size: 16px; font-weight: 700; }
.review__date { display: block; font-size: 14px; color: var(--text-muted); }
.reviews__nav { display: flex; gap: 12px; justify-content: flex-end; }
.reviews__arrow { width: 46px; height: 46px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; transition: background-color .2s, opacity .2s; }
.reviews__arrow:hover:not(:disabled) { background: rgba(11,37,69,0.06); }
.reviews__arrow:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 1024px) {
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 720px) {
  .reviews__track { grid-auto-columns: 86%; gap: 14px; }
  .review { padding: 24px 22px; }
  .reviews__summary { padding: 12px 18px; border-radius: 16px; }
}

/* ---------- Floating call / booking buttons ---------- */
.float-cta { position: fixed; top: 35%; right: 0; z-index: 90; display: flex; flex-direction: column; gap: 14px; animation: float-cta-in .6s ease-out .3s both; transition: opacity .3s, visibility .3s; }
.float-cta__btn { display: flex; align-items: center; gap: 12px; min-height: 64px; background: var(--white); color: var(--navy); text-decoration: none; font-size: 18px; font-weight: 700; white-space: nowrap; padding: 20px 30px 20px 24px; border-radius: 14px 0 0 14px; box-shadow: 0 8px 24px rgba(11,37,69,0.2); transition: background-color .2s, color .2s; }
.float-cta__btn svg { width: 24px; height: 24px; flex: none; color: var(--teal-dark); transition: color .2s; }
.float-cta__btn:hover { background: var(--navy); color: var(--white); }
.float-cta__btn:hover svg { color: var(--teal); }
.float-cta__btn--book { background: var(--navy); color: var(--white); }
.float-cta__btn--book svg { color: var(--teal); }
.float-cta__btn--book:hover { background: var(--teal); color: var(--navy); }
.float-cta__btn--book:hover svg { color: var(--navy); }
/* main.js hides the buttons over the Termin section and the footer, where the same actions are right there */
.float-cta.is-hidden { opacity: 0; visibility: hidden; }
.header.nav-open ~ .float-cta, .modal-open .float-cta { display: none; }
@keyframes float-cta-in { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 720px) {
  .float-cta { top: auto; bottom: 12px; left: var(--gutter); right: var(--gutter); flex-direction: row; gap: 10px; animation-name: float-cta-up; }
  .float-cta__btn { flex: 1; justify-content: center; gap: 9px; min-height: 56px; padding: 14px 12px; border-radius: 999px; font-size: 17px; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(11,37,69,0.24); }
  .float-cta__btn svg { width: 22px; height: 22px; }
  .float-cta__btn--book { background: var(--navy); color: var(--white); }
  /* Room at the end of the page so the bar never hides the last lines */
  .footer { padding-bottom: 110px; }
  @keyframes float-cta-up { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .float-cta { animation: none; }
}

/* ---------- Partner video (e.g. Unilabs) ---------- */
.partner-video { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.14); }
.partner-video__title { margin: 0 0 14px; font-size: 28px; font-weight: 700; color: var(--white); }
.partner-video__text p { margin: 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.8); }
.partner-video__player { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }

@media (max-width: 1024px) {
  .partner-video { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .partner-video { padding-top: 32px; }
  .partner-video__title { font-size: 24px; }
  .partner-video__text p { font-size: 16px; }
  .partner-video__player { border-radius: 12px; }
}
