/* Familienpraxis Weissensee – Stylesheet
   Praxisfarbe: #A8C030. Keine externen Schriften/Dienste (DSGVO-freundlich). */

:root {
  --gruen: #A8C030;          /* Praxisfarbe */
  --gruen-dunkel: #5B7012;   /* für Text/Links auf Weiß (kontraststark) */
  --gruen-tief: #34410A;     /* Footer, Überschriften */
  --gruen-hell: #EEF4DA;     /* Flächen */
  --gruen-zart: #F7FAEE;
  --sand: #FBFAF6;           /* Seitenhintergrund, warm */
  --text: #26301A;
  --text-leise: #5A6450;
  --linie: #E2E7D3;
  --rot: #B3261E;
  --rot-hell: #FCECEA;
  --weiss: #FFFFFF;
  --radius: 14px;
  --schatten: 0 2px 10px rgba(52, 65, 10, .08);
  --max: 1120px;
  font-size: 106.25%; /* ≈17px Grundschrift – gut lesbar, auch für Ältere */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 76px; /* Platz für mobile Aktionsleiste */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--gruen-tief); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--gruen-tief); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 28px; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Infoband ---------- */
.infoband {
  background: var(--gruen-tief); color: #F2F6E4; font-size: .92rem;
}
.infoband .container { display: flex; gap: 12px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.infoband a { color: #fff; font-weight: 600; }
.infoband p { margin: 0; flex: 1; }
.infoband button {
  background: transparent; border: 0; color: #F2F6E4; font-size: 1.4rem; line-height: 1;
  cursor: pointer; padding: 4px 8px;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px);
}
.kopf .container { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gruen-tief); margin-right: auto; }
.logo-zeichen {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gruen);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem; flex: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.05rem; }
.logo-text span { font-size: .8rem; color: var(--text-leise); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text); font-weight: 500; font-size: .96rem;
}
.nav a:hover { background: var(--gruen-zart); color: var(--gruen-tief); }
.nav a[aria-current="page"] { background: var(--gruen-hell); color: var(--gruen-tief); }

.menue-knopf {
  display: none; background: none; border: 1px solid var(--linie); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--gruen-tief); cursor: pointer;
}
.kopf .btn { white-space: nowrap; }

@media (max-width: 899px) {
  .menue-knopf { display: inline-flex; align-items: center; gap: 6px; }
  .kopf .btn-termin-kopf { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
    display: none;
  }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--gruen-zart); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .1s ease, background .15s ease;
  min-height: 48px; /* große Tippfläche */
}
.btn:active { transform: translateY(1px); }
.btn-primaer { background: var(--gruen); color: #1C2508; }
.btn-primaer:hover { background: #97AE24; color: #1C2508; }
.btn-sekundaer { background: #fff; color: var(--gruen-tief); border-color: var(--gruen); }
.btn-sekundaer:hover { background: var(--gruen-zart); color: var(--gruen-tief); }
.btn-gross { padding: 16px 30px; font-size: 1.12rem; min-height: 58px; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--gruen-zart), var(--sand)); padding: 40px 0 32px; }
.hero-raster { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-raster { grid-template-columns: 1.15fr .85fr; gap: 48px; } .hero { padding: 64px 0 48px; } }
.hero .einleitung { font-size: 1.12rem; color: var(--text-leise); max-width: 38em; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Status-Anzeige ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  border-radius: 999px; font-weight: 650; background: #fff; border: 1px solid var(--linie);
  font-size: .98rem;
}
.status::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: #9AA090; flex: none;
}
.status.ist-offen { background: #EAF5D5; border-color: #C9DE8F; color: #2F4A06; }
.status.ist-offen::before { background: #4E9A06; box-shadow: 0 0 0 4px rgba(78,154,6,.18); animation: puls 2s infinite; }
.status.ist-zu { background: #F5F3EE; color: #5A5244; }
.status.ist-zu::before { background: #C0392B; }
.status small { font-weight: 500; opacity: .85; }
@keyframes puls { 50% { box-shadow: 0 0 0 7px rgba(78,154,6,0); } }
@media (prefers-reduced-motion: reduce) { .status.ist-offen::before { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Karten / Abschnitte ---------- */
.abschnitt { padding: 44px 0; }
@media (min-width: 900px) { .abschnitt { padding: 64px 0; } }
.abschnitt-hell { background: #fff; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.unterzeile { color: var(--text-leise); max-width: 42em; margin-bottom: 28px; }

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--schatten);
}
.raster-2, .raster-3 { display: grid; gap: 18px; }
@media (min-width: 700px) { .raster-2 { grid-template-columns: 1fr 1fr; } .raster-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .raster-3 { grid-template-columns: repeat(3, 1fr); } }

/* Termin-Karte (prominent) */
.termin-karte {
  background: var(--gruen-tief); color: #EEF4DA; border-radius: 20px; padding: 26px;
  box-shadow: 0 10px 30px rgba(52,65,10,.22); position: relative; overflow: hidden;
}
.termin-karte::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: var(--gruen); opacity: .22;
}
.termin-karte h2, .termin-karte h3 { color: #fff; }
.termin-karte .btn-primaer { width: 100%; }
.termin-karte ul { padding-left: 1.1em; margin: 0 0 18px; }
.termin-karte li { margin-bottom: 4px; }
.termin-karte .klein { font-size: .9rem; opacity: .85; margin: 14px 0 0; }
.termin-karte a:not(.btn) { color: #fff; }

/* Schritte */
.schritte { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.schritte li { counter-increment: s; position: relative; padding-left: 52px; }
.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gruen); color: #1C2508; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Sprechzeiten-Tabelle ---------- */
.zeiten { width: 100%; border-collapse: collapse; font-size: 1.04rem; }
.zeiten th, .zeiten td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--linie); }
.zeiten th { font-weight: 600; width: 40%; }
.zeiten td { font-variant-numeric: tabular-nums; }
.zeiten tr.heute { background: var(--gruen-hell); }
.zeiten tr.heute th::after {
  content: "heute"; margin-left: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: var(--gruen); color: #1C2508; padding: 2px 8px; border-radius: 999px;
}
.zeiten .geschlossen { color: var(--text-leise); }
.hinweis {
  background: var(--gruen-zart); border-left: 4px solid var(--gruen); padding: 12px 16px;
  border-radius: 0 10px 10px 0; margin: 18px 0 0; font-size: .97rem;
}
.hinweis-warn { background: var(--rot-hell); border-left-color: var(--rot); }

/* ---------- Leistungen ---------- */
.liste-haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-haken li { position: relative; padding-left: 30px; }
.liste-haken li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2508' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.symbol {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gruen-hell); color: var(--gruen-dunkel);
  display: grid; place-items: center; margin-bottom: 12px;
}
.symbol svg { width: 24px; height: 24px; }

/* ---------- Foto-Platzhalter ---------- */
.foto {
  border-radius: var(--radius); overflow: hidden; background: var(--gruen-hell);
  aspect-ratio: 4 / 3; position: relative; margin: 0;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-platzhalter {
  display: grid; place-items: center; text-align: center; color: var(--gruen-dunkel);
  border: 2px dashed #C9D79A; font-size: .9rem; padding: 16px;
  background: repeating-linear-gradient(45deg, var(--gruen-zart), var(--gruen-zart) 12px, var(--gruen-hell) 12px, var(--gruen-hell) 24px);
}
.foto-platzhalter strong { display: block; font-size: 1rem; }
.foto-rund { aspect-ratio: 1; border-radius: 50%; max-width: 180px; }

/* ---------- Team ---------- */
.person { display: grid; gap: 20px; }
@media (min-width: 700px) { .person { grid-template-columns: 180px 1fr; align-items: start; } }
.person .rolle { color: var(--gruen-dunkel); font-weight: 600; margin-top: -6px; }
.person ul { padding-left: 1.1em; margin-top: 0; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 16px; }
.feld label { display: block; font-weight: 600; margin-bottom: 6px; }
.feld .pflicht { color: var(--rot); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #CBD3B8; background: #fff; color: var(--text); min-height: 48px;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--gruen-dunkel); outline: 3px solid rgba(168,192,48,.35); outline-offset: 0; }
.feld-zeile { display: grid; gap: 16px; }
@media (min-width: 700px) { .feld-zeile { grid-template-columns: 1fr 1fr; } }
.einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.einwilligung input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--gruen-dunkel); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 14px 18px; border-radius: 10px; font-weight: 600; display: none; }
.meldung.zeigen { display: block; }
.meldung-ok { background: #EAF5D5; color: #2F4A06; }
.meldung-fehler { background: var(--rot-hell); color: var(--rot); }

/* ---------- Notfall ---------- */
.notfall-nummer {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
}
.notfall-nummer .zahl {
  font-size: 1.7rem; font-weight: 800; color: var(--gruen-tief); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.notfall-nummer.rot .zahl { color: var(--rot); }
.karte-rot { border-color: #F0C4BF; background: #FFFBFA; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--gruen-tief); color: #D9E3BC; padding: 44px 0 28px; margin-top: 0; font-size: .96rem; }
.fuss h3 { color: #fff; font-size: 1.05rem; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; gap: 28px; }
@media (min-width: 800px) { .fuss-raster { grid-template-columns: 1.2fr 1fr 1fr; } }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 6px; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.fuss .zeiten th, .fuss .zeiten td { border-color: rgba(255,255,255,.12); padding: 4px 6px 4px 0; font-size: .92rem; }
.fuss .zeiten tr.heute { background: rgba(168,192,48,.18); }
.fuss .zeiten tr.heute th::after { display: none; }

/* ---------- Mobile Aktionsleiste ---------- */
.aktionsleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--linie); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.aktionsleiste .btn { padding: 10px 12px; font-size: .98rem; }
@media (min-width: 900px) { .aktionsleiste { display: none; } }

/* ---------- Seitenkopf Unterseiten ---------- */
.seitenkopf { background: linear-gradient(180deg, var(--gruen-zart), var(--sand)); padding: 36px 0 20px; }
.seitenkopf p { color: var(--text-leise); max-width: 42em; font-size: 1.08rem; }

.einbettung {
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; min-height: 420px; width: 100%;
}
.platzhalter-text { background: #FFF8D6; border: 1px dashed #D8B700; padding: 2px 6px; border-radius: 4px; }

@media print {
  .kopf, .aktionsleiste, .infoband, .fuss, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* Feinschliff */
h3 > svg, h2 > svg { width: 1.2em; height: 1.2em; flex: none; color: var(--gruen-dunkel); }
.nav a { white-space: nowrap; }
.status { flex-wrap: wrap; row-gap: 0; border-radius: 22px; }
@media (min-width: 900px) and (max-width: 1100px) { .logo-text span { display: none; } .nav a { padding: 8px 9px; } }
.zeiten td { white-space: nowrap; }
@media (max-width: 480px) { .zeiten th { width: auto; } .zeiten th, .zeiten td { padding: 10px 6px; } }
@media (max-width: 600px) { iframe.einbettung { height: 1100px !important; } }
[id] { scroll-margin-top: 84px; }
.rechtstext h2 { font-size: 1.25rem; margin-top: .4em; }
.rechtstext .karte p:last-child { margin-bottom: 0; }
.meldung-karte time { display: inline-block; font-size: .85rem; font-weight: 650; color: var(--gruen-dunkel); background: var(--gruen-hell); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.meldung-karte ul { padding-left: 1.2em; }
.meldung-karte li { margin-bottom: 4px; }
.meldung-karte h3 { margin-bottom: .4em; }
.meldungen { display: grid; gap: 18px; }
@media (min-width: 800px) { .meldungen[data-kurz] { grid-template-columns: 1fr 1fr; } }
.ablauf { padding-left: 1.2em; } .ablauf li { margin-bottom: 6px; }
@media (min-width: 900px) { .logo-text strong { white-space: nowrap; } }
@media (min-width: 900px) and (max-width: 1300px) { .logo-text span { display: none; } }
.foto { position: relative; }
.bildtext { position: absolute; left: 10px; bottom: 10px; background: rgba(38,48,26,.72); color: #fff; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
/* Schmale Bildschirme: nichts darf über den Rand ragen */
.raster-2 > *, .raster-3 > *, .hero-raster > * { min-width: 0; }
p, li, td, th, h1, h2, h3, span, a { overflow-wrap: break-word; }
p, li { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 600px) {
  .notfall-nummer { flex-direction: column; align-items: flex-start; gap: 6px; }
  .notfall-nummer .zahl { font-size: 1.5rem; }
}
/* Tablet quer (900–1149 px): Menü einklappen, Termin-Button oben behalten */
@media (min-width: 900px) and (max-width: 1149px) {
  .menue-knopf { display: inline-flex; align-items: center; gap: 6px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); display: none; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; padding: 8px 28px 16px; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--gruen-zart); }
  .logo-text span { display: inline; }
}
.btn { max-width: 100%; white-space: normal; text-align: center; }
.person > * { min-width: 0; }
.zeiten { table-layout: auto; }
.zeiten td { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .karte, .termin-karte { padding: 18px 16px; }
  .zeiten td { white-space: normal; }
  .zeiten th { padding-right: 4px; }
}
main .container > * { min-width: 0; }
.initialen {
  width: 140px; height: 140px; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen-dunkel);
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; letter-spacing: .02em; border: 3px solid #fff; box-shadow: var(--schatten);
}
.ersatzflaeche {
  border-radius: var(--radius); background: var(--gruen-zart); border: 1px solid var(--linie); padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 160px; color: var(--gruen-tief);
}
.ersatzflaeche span { color: var(--text-leise); }

/* Auffälliger Infekt-Hinweis (Sprechzeiten) */
.infekt-hinweis {
  margin-top: 18px; background: #FFF3CD; border: 2px solid #E0A100; border-left-width: 8px;
  border-radius: 12px; padding: 16px 18px; color: #4A3500;
}
.infekt-kopf { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 6px; color: #7A5200; }
.infekt-kopf svg { width: 28px; height: 28px; flex: none; color: #C98A00; }
.infekt-hinweis p { margin: 0 0 12px; font-size: 1.05rem; }
.infekt-aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-infekt { background: #fff; color: #4A3500; border-color: #E0A100; padding: 8px 16px; min-height: 44px; font-size: .98rem; }
.btn-infekt:hover { background: #FFE8A3; color: #4A3500; }
.infekt-hinweis p { hyphens: manual; -webkit-hyphens: manual; }
.infoband-symbol { width: 24px; height: 24px; flex: none; color: #F5C542; }
.infoband p { hyphens: manual; -webkit-hyphens: manual; }

/* Logo */
.logo-baum { height: 46px; width: auto; flex: none; }
.hero-logo { width: 190px; height: auto; margin: 0 0 18px; }
@media (min-width: 900px) { .hero-logo { width: 240px; } }
@media (min-width: 1150px) {
  .kopf .container { gap: 12px; }
  .nav a { padding: 8px 9px; }
  .logo-text strong { font-size: .98rem; }
  .logo { gap: 8px; }
}
.adressfelder { border: 1.5px solid #C9D79A; border-radius: 12px; padding: 14px 16px 4px; margin: 0; display: grid; gap: 14px; background: var(--gruen-zart); }
.adressfelder[hidden] { display: none; }
.adressfelder legend { font-weight: 700; color: var(--gruen-tief); padding: 0 6px; }

/* Telefonnummern nie umbrechen */
a[href^="tel:"] { white-space: nowrap; }

/* Notfall-Einträge */
.notfall-eintrag { display: flex; gap: 18px; align-items: flex-start; }
.notfall-eintrag .zahl {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; min-width: 9.5em;
  font-size: 1.6rem; font-weight: 800; color: var(--gruen-tief); font-variant-numeric: tabular-nums;
}
.notfall-eintrag .zahl svg { width: 22px; height: 22px; flex: none; }
.notfall-eintrag.rot .zahl { color: var(--rot); }
.notfall-eintrag .weblink { display: inline-block; margin-top: 6px; font-weight: 600; }
.karte-notdienst { display: flex; gap: 18px; align-items: flex-start; border: 2px solid var(--gruen); background: var(--gruen-zart); }
.karte-notdienst .symbol { margin: 0; flex: none; }
.karte-notdienst h2 { font-size: 1.3rem; }
@media (max-width: 600px) {
  .notfall-eintrag, .karte-notdienst { flex-direction: column; gap: 8px; }
  .notfall-eintrag .zahl { min-width: 0; font-size: 1.5rem; }
}
.symbol-mfa { width: 96px; height: 96px; border-radius: 50%; background: #fff; }
.symbol-mfa svg { width: 72px; height: 72px; }
