/* ==========================================================================
   Kinderarztpraxis Bensheim – Stylesheet
   Gestaltung nach dem Entwurf: Newsreader (Überschriften) + Public Sans (Text),
   ruhige Flächen, farbige Trennlinien statt Kästen mit Schatten.
   Die Schriften liegen lokal im Ordner /fonts (kein Google-Fonts-Aufruf).
   ========================================================================== */

/* --- Schriften ----------------------------------------------------------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-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: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-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;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/publicsans-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: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/publicsans-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;
}

/* --- Farben und Grundwerte ----------------------------------------------- */
:root {
  --navy: #232A54;        /* Überschriften, Marke */
  --ink: #4A4F6B;         /* Fließtext */
  --muted: #6B6F86;       /* Nebentext */
  --paper: #FBFAF6;       /* Seitenhintergrund */
  --line: #E4E0D3;        /* feine Trennlinien */
  --teal: #066965;        /* Links, Akzent */
  --sage: #9EC7B2;        /* heller Akzent */
  --orange: #F49821;      /* Handlungsaufforderung */
  --red: #E52A34;         /* Notfall */
  --mint: #EDF4EF;        /* Flächenfarbe grün */
  --sand: #FDF1DC;        /* Flächenfarbe gelb */
  --on-navy: #DCE3F2;
  --foot: #C3CCE4;
  --foot-muted: #8E99BC;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --breit: 1120px;
  --rand: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* --- Typografie ---------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  text-wrap: pretty;
  margin: 0;
}
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.14; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

strong { color: var(--navy); }

/* Kleine Rubrik über der Überschrift */
.rubrik {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.rubrik.rot { color: var(--red); }

.einleitung {
  font-size: 19px;
  line-height: 1.6;
  max-width: 40em;
}
.schmal { max-width: 44em; }

/* --- Farbstreifen und Kopfbereich ---------------------------------------- */
.farbstreifen {
  display: flex;
  height: 5px;
  position: sticky;
  top: 0;
  z-index: 60;
}
.farbstreifen span { flex: 1; }
.farbstreifen span:nth-child(1) { background: var(--navy); }
.farbstreifen span:nth-child(2) { background: var(--sage); }
.farbstreifen span:nth-child(3) { background: var(--teal); }
.farbstreifen span:nth-child(4) { background: var(--orange); }
.farbstreifen span:nth-child(5) { background: var(--red); }

.site-header {
  position: sticky;
  top: 5px;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--breit);
  margin: 0 auto;
  padding: 14px var(--rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marke img { height: clamp(48px, 7vw, 64px); width: auto; }
.marke span {
  font-family: var(--serif);
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.3;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --- Navigation ---------------------------------------------------------- */
.haupt-nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); }
.haupt-nav a {
  position: relative;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 16px;
  padding: 6px 2px 10px;
  white-space: nowrap;
}
.haupt-nav a:hover { color: var(--teal); }
.haupt-nav a.aktiv::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  background: var(--orange);
}
.haupt-nav a.notfall {
  margin-left: 8px;
  color: var(--paper);
  background: var(--red);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}
.haupt-nav a.notfall:hover { background: #c81f28; color: var(--paper); }
.haupt-nav a.notfall.aktiv::after { display: none; }

.nav-schalter {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-schalter span { display: block; height: 2px; background: var(--navy); }

/* Vollbild-Menü auf dem Handy */
.mobil-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  padding: 24px var(--rand) 40px;
  overflow-y: auto;
  flex-direction: column;
}
.mobil-nav.offen { display: flex; }
.mobil-nav .schliessen {
  align-self: flex-end;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}
.mobil-nav .liste { display: flex; flex-direction: column; margin-top: 8px; }
.mobil-nav .liste a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobil-nav .liste a:last-child { border-bottom: none; color: var(--red); }

@media (max-width: 900px) {
  .haupt-nav { display: none; }
  .nav-schalter { display: flex; }
}

/* --- Inhaltsbereich ------------------------------------------------------ */
main {
  flex: 1;
  width: 100%;
  max-width: var(--breit);
  margin: 0 auto;
  padding: 0 var(--rand) 72px;
}
.seitenkopf { padding-top: clamp(32px, 5vw, 56px); }

section { margin-bottom: clamp(44px, 6vw, 80px); }
section:last-child { margin-bottom: 0; }

/* --- Raster -------------------------------------------------------------- */
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 48px); }
.spalten.eng { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Abschnitt mit farbiger Oberlinie */
.block { border-top: 2px solid var(--navy); padding-top: 20px; }
.block.gruen { border-top-color: var(--teal); }
.block.salbei { border-top-color: var(--sage); }
.block.orange { border-top-color: var(--orange); }
.block.rot { border-top-color: var(--red); }
.block h2, .block h3 { margin-bottom: 12px; }

/* --- Startseite: Aufmacher ------------------------------------------------ */
.aufmacher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
  margin-bottom: 0;
}
.aufmacher h1 { margin-bottom: 20px; }
.aufmacher .einleitung { margin-bottom: 32px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; max-width: 34em; }

/* --- Schaltflächen -------------------------------------------------------- */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 17px;
  border: 1.5px solid var(--orange);
}
.knopf:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.knopf.rand { background: none; border-color: var(--navy); color: var(--navy); }
.knopf.rand:hover { background: var(--navy); color: var(--paper); }

/* --- Urlaubshinweis (dunkler Block) --------------------------------------- */
.urlaub {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.urlaub .rubrik { color: var(--orange); margin-bottom: 10px; }
.urlaub h2 { color: var(--paper); margin-bottom: 14px; }
.urlaub p { color: var(--on-navy); }
.urlaub .hinweis { font-size: 18px; margin-bottom: 20px; }
.urlaub .vertretung-titel { font-weight: 600; color: var(--paper); font-size: 15px; letter-spacing: 0.02em; margin-bottom: 10px; }
.vertretungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vertretungen div { border-top: 2px solid rgba(255, 255, 255, 0.22); padding-top: 12px; }
.vertretungen p { margin: 0 0 4px; color: var(--paper); font-weight: 600; }
.vertretungen a { color: var(--orange); text-decoration: none; font-size: 19px; font-weight: 600; }
.vertretungen a:hover { text-decoration: underline; }

/* --- Aktuelles: Zeilen mit Überschrift links ------------------------------ */
.zeilen { border-top: 2px solid var(--navy); }
.zeile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.zeile h3 { margin: 0; }
.zeile > div > p:last-child { margin-bottom: 0; }

/* --- Listen mit Trennlinien ----------------------------------------------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.liste.zweispaltig { columns: 2; column-gap: 48px; }
.liste.zweispaltig li { break-inside: avoid; padding: 14px 0; }
@media (max-width: 700px) { .liste.zweispaltig { columns: 1; } }

.linkliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.linkliste a { color: var(--teal); font-weight: 600; text-decoration: none; }
.linkliste a:hover { text-decoration: underline; }

.weiter { color: var(--teal); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--sage); }
.weiter:hover { border-bottom-color: var(--teal); }
.weiter.rot { color: var(--red); border-bottom-color: var(--red); }

/* --- Flächen -------------------------------------------------------------- */
.flaeche { padding: clamp(26px, 4vw, 40px); }
.flaeche.gruen { background: var(--mint); }
.flaeche.sand { background: var(--sand); }
.flaeche h2 { margin-bottom: 16px; }

/* --- Team ----------------------------------------------------------------- */
.team-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.team-raster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 14px; }
.team-raster h3 { font-size: 20px; margin-bottom: 2px; }
.team-raster p { margin: 0; font-size: 15px; color: var(--muted); }
.team-leitung { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 56px); align-items: start; }
.team-leitung img { width: 100%; max-width: 240px; }
.team-rolle { color: var(--teal); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 20px; }

/* --- Formulare / Downloads ------------------------------------------------ */
.download {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
}
.download:hover { background: var(--mint); }
.download .marker {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 5px;
  padding: 4px 7px;
}
.download .text { flex: 1; }
.download .titel { display: block; font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.download .zusatz { display: block; font-size: 15px; color: var(--muted); font-weight: 400; }
.download .pfeil { flex: none; color: var(--teal); font-size: 20px; }

/* --- Notfall --------------------------------------------------------------- */
.notfall-banner {
  background: var(--red);
  padding: clamp(26px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.notfall-banner .rubrik { color: #FFD9B0; margin-bottom: 6px; }
.notfall-banner p { margin: 0; color: #fff; font-size: 20px; max-width: 24em; }
.notfall-banner .nummer {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 84px);
  line-height: 1;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.gross-tel { color: var(--teal); font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); text-decoration: none; line-height: 1.1; display: inline-block; }
.tel-fett { color: var(--navy); font-size: 21px; font-weight: 600; text-decoration: none; }
.tel-spalte { display: flex; flex-direction: column; gap: 6px; }

.zeiten { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 16px; }
.zeiten dt { font-weight: 600; color: var(--navy); }
.zeiten dd { margin: 0; }

.klein { font-size: 15px; color: var(--muted); }

/* --- Fußbereich ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: var(--foot); margin-top: auto; }
.footer-inner {
  max-width: var(--breit);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--rand) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.site-footer h3 { font-size: 20px; color: var(--paper); margin: 0 0 14px; }
.site-footer h3 + .zeiten { margin-bottom: 0; }
.site-footer p { font-size: 16px; margin: 0 0 14px; }
.site-footer .zeiten dt { color: var(--paper); font-weight: 400; }
.site-footer .zeiten dd { color: var(--foot); }
.site-footer .telefon { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 19px; }
.site-footer .telefonzeit { color: var(--foot-muted); font-size: 14px; }
.site-footer .mail { color: var(--foot); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 16px; }
.footer-links a { color: var(--foot); text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-unten { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.footer-unten div {
  max-width: var(--breit);
  margin: 0 auto;
  padding: 18px var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 15px;
}
.footer-unten .copy { color: var(--foot-muted); }
.footer-unten .rechts { display: flex; gap: 20px; }
.footer-unten a { color: var(--foot); text-decoration: none; }
.footer-unten a:hover { color: var(--orange); }

/* --- Aktionsleiste am unteren Rand (nur Handy) ----------------------------- */
.mobil-aktionen { display: none; }
@media (max-width: 900px) {
  .mobil-aktionen { display: block; }
  .mobil-aktionen .platzhalter { height: 78px; }
  .mobil-aktionen .leiste {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 65;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px;
  }
  .mobil-aktionen a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    font-size: 17px;
  }
  .mobil-aktionen .anrufen { border: 1.5px solid var(--navy); color: var(--navy); }
  .mobil-aktionen .buchen { flex: 1.3; background: var(--orange); color: var(--navy); }
}

/* --- Rechtstexte ----------------------------------------------------------- */
.rechtstext { max-width: 44em; }
.rechtstext h2 { font-size: 24px; margin: 32px 0 10px; }
.rechtstext h3 { font-size: 20px; margin: 24px 0 8px; }
.rechtstext ul { margin: 0 0 16px; padding-left: 20px; }
.rechtstext li { margin-bottom: 6px; }

/* --- Druck ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .farbstreifen, .nav-schalter, .mobil-nav, .mobil-aktionen { display: none; }
  body { background: #fff; }
}
