/* ==========================================================================
   Praxis Tamara Neumann – Stylesheet
   Mobile-first: Basis-Styles gelten für Smartphones,
   Media Queries erweitern für Tablet (ab 40em) und Desktop (ab 64em).
   Farben, Schriften und Logo gemäß Styleguide v1.1
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften – lokal eingebunden (keine Verbindung zu Google)
   Variable Fonts, gekürzt auf lateinischen Zeichensatz, Strichstärke 400–700.
   Fraunces: Achsen SOFT=0 / WONK=1 festgelegt (wie Google-Fonts-Standard),
   optische Größe (opsz 9–144) bleibt variabel und wird automatisch angewendet.
   Lizenz: SIL Open Font License 1.1, siehe fonts/OFL-*.txt
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff") format("woff");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-italic.woff") format("woff");
  font-weight: 400 700; font-style: italic; font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design-Variablen
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarben */
  --c-ton:        #9C6B4A; /* Authentizität – Punkt, große Headlines */
  --c-petrol:     #26454A; /* Professionalität – Navigation, Footer, Links */
  --c-petrol-l:   #3C6067;
  --c-bernstein:  #D3A24C; /* Zuversicht – Handlungsaufforderungen */
  --c-salbei:     #7E9A82; /* Verständnis – unterstützende Elemente */
  --c-altrosa:    #B06478; /* Mitgefühl – Zitate, persönliche Ansprache */

  /* Neutrale */
  --c-nebel:      #F3F1EB;
  --c-weiss:      #FFFFFF;
  --c-tinte:      #24282A;
  --c-tinte-soft: #5C6062;
  --c-linie:      #DAD6CC;

  /* Aufgehellte Töne für Flächen (aus Palette abgeleitet) */
  --c-salbei-hell: #E6ECE5;
  --c-altrosa-hell:#F5E9EC;
  --c-bernstein-dunkel: #C08F38; /* Hover für Buttons */

  /* Schriften */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Karla", Arial, Helvetica, sans-serif;

  /* Maße */
  --wrap: 72rem;
  --text-breite: 40rem;   /* ca. 65–70 Zeichen Zeilenlänge */
  --pad: 1.25rem;         /* Seitenrand mobil */
  --radius: 6px;
  --radius-gross: 14px;
  --abstand-sektion: 3.5rem;
  --schatten: 0 1px 2px rgba(36,40,42,.05), 0 6px 20px rgba(36,40,42,.06);
}

/* --------------------------------------------------------------------------
   3. Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Anker nicht unter dem Sticky-Header */
}

body {
  margin: 0;
  background: var(--c-nebel);
  color: var(--c-tinte);
  font-family: var(--f-body);
  font-size: 1.0625rem;   /* 17px – gut lesbar auf dem Smartphone */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--c-tinte);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }

a { color: var(--c-petrol); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--c-petrol-l); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--c-bernstein);
  outline-offset: 3px;
  border-radius: 2px;
}

strong, b { font-weight: 700; }

/* Hilfsklassen */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Sprunglink für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--c-bernstein); color: var(--c-tinte);
  padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: .5rem; }

/* Punkt der Ruhe */
.punkt {
  display: inline-block; width: .32em; height: .32em; border-radius: 50%;
  background: var(--c-ton); flex-shrink: 0;
}

/* Kicker / Auszeichner mit Punkt */
.kicker {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-tinte-soft); margin: 0 0 .75rem;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-altrosa);
}

.lead { font-size: 1.125rem; color: var(--c-tinte-soft); max-width: var(--text-breite); }

/* --------------------------------------------------------------------------
   4. Buttons – mind. 44px hoch (Touch-Ziel)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primar   { background: var(--c-bernstein); color: var(--c-tinte); }
.btn-primar:hover { background: var(--c-bernstein-dunkel); color: var(--c-tinte); text-decoration: none; }
.btn-sekundar { background: transparent; color: var(--c-petrol); border-color: var(--c-petrol); }
.btn-sekundar:hover { background: var(--c-petrol); color: var(--c-weiss); text-decoration: none; }
.btn-hell     { background: transparent; color: var(--c-weiss); border-color: rgba(255,255,255,.7); }
.btn-hell:hover { background: var(--c-weiss); color: var(--c-petrol); text-decoration: none; }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-gruppe { display: flex; flex-direction: column; gap: .75rem; }
.btn-gruppe .btn { width: 100%; }

/* Textlink mit Pfeil */
.weiter {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700;
  color: var(--c-petrol); text-decoration: none; min-height: 44px;
}
.weiter::after { content: "→"; transition: transform .2s; }
.weiter:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Kopfzeile & Navigation
   -------------------------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-petrol); color: var(--c-weiss);
}
.kopf-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}

/* Wortmarke (Kompaktversion für die Navigation) */
.wortmarke {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.wortmarke-text { display: inline-flex; flex-direction: column; }

/* Bildmarke „Konstellation“ – helle einfarbige Variante auf Petrol
   (Styleguide: Mindestgröße ca. 24px; immer zusammen mit der Wortmarke) */
.bildmarke { width: 40px; height: 40px; flex-shrink: 0; }
.wortmarke:hover { color: inherit; text-decoration: none; }
.wortmarke-name {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.1;
  white-space: nowrap;
}
.wortmarke-name .punkt { width: 7px; height: 7px; }
.wortmarke-sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  opacity: .85; margin-top: .3rem;
}

.kopf-aktionen { display: flex; align-items: center; gap: .25rem; }

/* Telefon-Schnellwahl (nur mobil sichtbar) */
.kopf-tel, .menue-knopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  color: var(--c-weiss); background: transparent; border: 0; cursor: pointer;
}
.kopf-tel svg, .menue-knopf svg { width: 24px; height: 24px; }
.kopf-tel:hover, .menue-knopf:hover { background: var(--c-petrol-l); color: var(--c-weiss); }

.menue-knopf .icon-zu { display: none; }
.menue-knopf[aria-expanded="true"] .icon-auf { display: none; }
.menue-knopf[aria-expanded="true"] .icon-zu  { display: block; }

/* Ohne JavaScript: Menü immer sichtbar, Knopf ausgeblendet */
.menue-knopf { display: none; }
.js .menue-knopf { display: inline-flex; }

.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav a {
  display: block; color: var(--c-weiss); text-decoration: none;
  font-weight: 500; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.hauptnav a:hover, .hauptnav a[aria-current="page"] { color: var(--c-bernstein); }
.hauptnav .nav-cta { margin-top: 1.25rem; border: 0; }
.hauptnav .nav-cta a {
  border: 0; text-align: center; background: var(--c-bernstein); color: var(--c-tinte);
  border-radius: var(--radius); font-weight: 700; padding: .85rem 1rem;
}
.hauptnav .nav-cta a:hover { background: var(--c-bernstein-dunkel); color: var(--c-tinte); }

/* Mobiles Menü: aufklappendes Panel unter der Kopfzeile */
.hauptnav { padding-bottom: 1.25rem; }
.js .hauptnav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-petrol); padding: .5rem var(--pad) 1.5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  max-height: calc(100vh - 4rem); overflow-y: auto;
}
.js .hauptnav.offen { display: block; }
/* ---- Untermenü „Angebot“ – mobil: Akkordeon im Menü-Panel ---- */
.untermenue-knopf {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; padding: .9rem 0; min-height: 48px;
  font: inherit; font-weight: 500; text-align: left; color: var(--c-weiss);
  background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); cursor: pointer;
}
.untermenue-knopf svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
.untermenue-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.untermenue-knopf:hover, .untermenue-knopf.aktiv { color: var(--c-bernstein); }

.hauptnav .untermenue { padding: .25rem 0 .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.hauptnav .untermenue a { padding: .7rem 0 .7rem .9rem; border-bottom: 0; border-left: 2px solid rgba(255,255,255,.2); font-weight: 400; }
.hauptnav .untermenue a:hover, .hauptnav .untermenue a[aria-current="page"] { border-left-color: var(--c-bernstein); }

/* Mit JavaScript zugeklappt, bis der Knopf es öffnet; ohne JS immer offen */
.js .untermenue { display: none; }
.js .untermenue-knopf[aria-expanded="true"] + .untermenue { display: block; }
html:not(.js) .untermenue-knopf svg { display: none; }
.js .kopf-inner { flex-wrap: nowrap; }
.kopf-inner { flex-wrap: wrap; }  /* ohne JS bricht Navigation in neue Zeile */

/* --------------------------------------------------------------------------
   6. Sektionen allgemein
   -------------------------------------------------------------------------- */
.sektion { padding: var(--abstand-sektion) 0; }
.sektion-weiss  { background: var(--c-weiss); }
.sektion-salbei { background: var(--c-salbei-hell); }
.sektion-kopf { margin-bottom: 2rem; max-width: var(--text-breite); }
.sektion-kopf p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Startseite – Hero
   -------------------------------------------------------------------------- */
.hero { padding: 1.5rem 0 var(--abstand-sektion); }
.hero-inner { display: grid; gap: 1.75rem; }
.hero-bild {
  border-radius: var(--radius-gross); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--c-salbei-hell);
}
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Farbige Bildmarke über der Überschrift – Wiedererkennung mit Briefpapier/Visitenkarte */
.hero-bildmarke { width: 84px; height: 84px; margin: 0 0 1.25rem -4px; }

.hero h1 { color: var(--c-ton); }   /* Ton für großformatige Headlines (≥ 24px) */
.hero .lead { margin-bottom: 0; }

/* Kurzinfos unter dem Hero */
.fakten {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--c-linie);
  border: 1px solid var(--c-linie); border-radius: var(--radius-gross); overflow: hidden;
}
.fakten li {
  background: var(--c-weiss); padding: 1rem 1.25rem;
  display: grid; grid-template-columns: 2.25rem 1fr; gap: .25rem .75rem; align-items: start;
}
.fakten svg { width: 26px; height: 26px; color: var(--c-salbei); grid-row: span 2; margin-top: .15rem; }
.fakten .titel { font-weight: 700; line-height: 1.3; }
.fakten .text  { color: var(--c-tinte-soft); font-size: .95rem; line-height: 1.45; }

/* --------------------------------------------------------------------------
   8. Angebotskarten
   -------------------------------------------------------------------------- */
.karten { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.karte {
  background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: var(--radius-gross);
  padding: 1.5rem; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.sektion-weiss .karte { background: var(--c-nebel); }
.karte-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-salbei-hell);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--c-petrol);
}
.sektion-weiss .karte-icon { background: var(--c-weiss); }
.karte-icon svg { width: 24px; height: 24px; }
.karte h3 { margin-bottom: .4rem; }
.karte p { color: var(--c-tinte-soft); }
.karte .weiter { margin-top: auto; }
.karte:has(.weiter:hover) { box-shadow: var(--schatten); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   9. Über mich (Teaser)
   -------------------------------------------------------------------------- */
.person { display: grid; gap: 2rem; align-items: center; }
.person-bild { position: relative; max-width: 26rem; }
.person-bild img {
  border-radius: var(--radius-gross); aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.person-bild::after { /* dezenter Salbei-Versatz hinter dem Foto */
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; z-index: -1;
  border-radius: var(--radius-gross); background: var(--c-salbei-hell);
}
.person-bild { isolation: isolate; margin-right: 1rem; }

/* Zitat – Altrosa als menschliche Note */
.zitat {
  margin: 0 0 1.5rem; padding: 0 0 0 1.25rem; border-left: 3px solid var(--c-altrosa);
  font-family: var(--f-display); font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 500; line-height: 1.4; color: var(--c-tinte);
}
.zitat p { margin: 0; }
.zitat footer, .zitat cite {
  display: block; margin-top: .75rem; font-family: var(--f-body); font-style: normal;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-tinte-soft);
}

/* --------------------------------------------------------------------------
   10. Ablauf / Schritte
   -------------------------------------------------------------------------- */
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 0; }
.schritte li {
  counter-increment: schritt; position: relative;
  padding: 0 0 2rem 3.75rem;
}
.schritte li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-petrol); color: var(--c-weiss);
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
}
.schritte li::after { /* Verbindungslinie */
  content: ""; position: absolute; left: 1.25rem; top: 2.75rem; bottom: .25rem;
  width: 2px; background: var(--c-linie); transform: translateX(-1px);
}
.schritte li:last-child { padding-bottom: 0; }
.schritte li:last-child::after { display: none; }
.schritte h3 { font-size: 1.2rem; margin: .35rem 0 .35rem; }
.schritte p { color: var(--c-tinte-soft); margin: 0; }

/* --------------------------------------------------------------------------
   11. Kontakt (Petrol-Fläche)
   -------------------------------------------------------------------------- */
.kontakt { background: var(--c-petrol); color: var(--c-weiss); }
.kontakt h2, .kontakt h3 { color: var(--c-weiss); }
.kontakt .kicker { color: #C9D7D4; }
.kontakt .lead { color: #DDE7E4; }
.kontakt a { color: var(--c-weiss); }
.kontakt-grid { display: grid; gap: 1.5rem; }
.kontakt-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-gross); padding: 1.5rem;
}
.kontakt-box h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.kontakt-liste { list-style: none; margin: 0; padding: 0; }
.kontakt-liste li { display: flex; gap: .75rem; padding: .4rem 0; align-items: flex-start; }
.kontakt-liste svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .25rem; color: var(--c-bernstein); }

.zeiten { width: 100%; border-collapse: collapse; }
.zeiten th, .zeiten td { text-align: left; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.14); vertical-align: top; }
.zeiten th { font-weight: 500; padding-right: 1rem; white-space: nowrap; }
.zeiten tr:last-child th, .zeiten tr:last-child td { border-bottom: 0; }

.kontakt .btn-gruppe { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   12. Krisenhinweis
   -------------------------------------------------------------------------- */
.krise {
  background: var(--c-altrosa-hell); border-left: 4px solid var(--c-altrosa);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 1.25rem;
}
.krise h2, .krise h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.krise p { margin-bottom: .75rem; }
.krise ul { margin: 0; padding: 0; list-style: none; }
.krise li { padding: .2rem 0; }
.krise a { font-weight: 700; white-space: nowrap; }

/* --------------------------------------------------------------------------
   13. Fußzeile
   -------------------------------------------------------------------------- */
.fuss { background: var(--c-tinte); color: #CFCFCB; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.fuss a { color: #E8E6E0; }
.fuss a:hover { color: var(--c-bernstein); }
.fuss-grid { display: grid; gap: 1.75rem; }
.fuss .wortmarke { color: var(--c-weiss); }
.fuss h2 {
  font-family: var(--f-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #9FA3A4; margin-bottom: .6rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-block; padding: .3rem 0; }
.fuss-unten {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem;
}

/* --------------------------------------------------------------------------
   14. Inhaltsseite
   -------------------------------------------------------------------------- */
.seitenkopf { padding: 1.5rem 0 2.25rem; background: var(--c-nebel); }
.seitenkopf h1 { color: var(--c-ton); margin-bottom: .5rem; }
.seitenkopf .lead { margin-bottom: 0; }
/* Seitenkopf mit Hochkant-Bild (Kontaktseite) */
.seitenkopf-grid { display: grid; gap: 1.75rem; align-items: center; }
.seitenkopf-bild { margin: 0; max-width: 15rem; }
.seitenkopf-bild img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-gross);
}
.brotkrumen { font-size: .875rem; margin-bottom: 1.25rem; color: var(--c-tinte-soft); }
.brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.brotkrumen li + li::before { content: "/"; margin-right: .35rem; color: var(--c-linie); }
.brotkrumen a { color: var(--c-tinte-soft); }

.seitenbild { margin: 0 0 0; }
.seitenbild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-gross); }

.inhalt-layout { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: var(--abstand-sektion); }

/* Fließtext-Bereich: alle typischen Elemente aus dem CMS/Editor */
.fliesstext { max-width: var(--text-breite); min-width: 0; }
.fliesstext > *:first-child { margin-top: 0; }
/* Ohne Seitenleiste: Fließtext nutzt die volle Inhaltsbreite */
.inhalt-layout:not(:has(.seitenleiste)) { grid-template-columns: minmax(0, 1fr); }
.inhalt-layout:not(:has(.seitenleiste)) .fliesstext { max-width: none; }


.fliesstext h2 { margin-top: 2.25rem; }
.fliesstext h3 { margin-top: 1.75rem; }
.fliesstext ul, .fliesstext ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.fliesstext li { margin-bottom: .4em; }
.fliesstext ul li::marker { color: var(--c-salbei); }
.fliesstext ol li::marker { color: var(--c-petrol); font-weight: 700; }
.fliesstext figure { margin: 2rem 0; }
.fliesstext figure img { border-radius: var(--radius-gross); width: 100%; }
.fliesstext figcaption { font-size: .875rem; color: var(--c-tinte-soft); margin-top: .5rem; }
.fliesstext blockquote { margin: 2rem 0; }
.fliesstext hr { border: 0; height: 1px; background: var(--c-linie); margin: 2.5rem 0; }

/* Infokasten */
.infokasten {
  background: var(--c-salbei-hell); border-radius: var(--radius-gross);
  padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.infokasten > :last-child { margin-bottom: 0; }
.infokasten h3, .infokasten h4 { margin-top: 0; }

/* Tabelle (z. B. Kosten, Sprechzeiten) – scrollt mobil horizontal */
.tabelle-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.tabelle {
  width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--c-weiss);
  border-radius: var(--radius); overflow: hidden;
}
.tabelle th, .tabelle td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--c-linie); }
.tabelle thead th {
  background: var(--c-petrol); color: var(--c-weiss); font-weight: 700; font-size: .85rem;
  letter-spacing: .04em;
}

/* Häufige Fragen (Akkordeon, ohne JavaScript) */
.faq { margin: 1.5rem 0; border-top: 1px solid var(--c-linie); }
.faq details { border-bottom: 1px solid var(--c-linie); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; padding: 1rem 0; min-height: 48px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-salbei-hell); color: var(--c-petrol);
  font-family: var(--f-body); font-size: 1.25rem; font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1rem; color: var(--c-tinte-soft); }

/* Seitenleiste */
.seitenleiste { display: grid; gap: 1.25rem; align-content: start; }
.seitenleiste-box {
  background: var(--c-weiss); border: 1px solid var(--c-linie);
  border-radius: var(--radius-gross); padding: 1.5rem;
}
.seitenleiste-box h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.seitenleiste-box p { font-size: .95rem; }
.seitenleiste-box .btn { width: 100%; }
.unternav ul { list-style: none; margin: 0; padding: 0; }
.unternav a {
  display: block; padding: .6rem 0; border-bottom: 1px solid var(--c-linie);
  text-decoration: none; color: var(--c-tinte);
}
.unternav li:last-child a { border-bottom: 0; }
.unternav a:hover, .unternav a[aria-current="page"] { color: var(--c-petrol); font-weight: 700; }
.unternav a[aria-current="page"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-ton); margin-right: .5rem; vertical-align: middle; }

/* Abschluss-Band mit Handlungsaufforderung */
.cta-band { background: var(--c-salbei-hell); padding: var(--abstand-sektion) 0; text-align: left; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band .lead { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   14a. Kontaktseite & Formular
   -------------------------------------------------------------------------- */
.kontakt-layout { display: grid; gap: 2.5rem; padding-top: 2rem; padding-bottom: var(--abstand-sektion); }

.formular-karte {
  background: var(--c-weiss); border: 1px solid var(--c-linie);
  border-radius: var(--radius-gross); padding: 1.5rem 1.25rem; min-width: 0;
}
.formular-karte > h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.formular-karte > .hinweis-oben { color: var(--c-tinte-soft); font-size: .95rem; }

.formular { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.formular fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formular legend, .feld label {
  display: block; font-weight: 700; margin-bottom: .4rem; padding: 0; line-height: 1.35;
}
.pflicht { color: var(--c-altrosa); font-weight: 700; }
.optional { font-weight: 400; color: var(--c-tinte-soft); font-size: .9rem; }

.feld-hilfe { display: block; font-size: .875rem; color: var(--c-tinte-soft); margin-top: .35rem; line-height: 1.45; }

/* Eingabefelder: mind. 16px Schrift verhindert Auto-Zoom auf iOS */
.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular select,
.formular textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--c-tinte);
  background: var(--c-nebel); border: 1.5px solid var(--c-linie); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.formular textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.formular select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326454A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
  padding-right: 2.5rem;
}
.formular input:hover, .formular select:hover, .formular textarea:hover { border-color: var(--c-salbei); }
.formular input:focus, .formular select:focus, .formular textarea:focus {
  outline: none; background: var(--c-weiss); border-color: var(--c-petrol);
  box-shadow: 0 0 0 3px rgba(211,162,76,.45);
}
/* Fehlerhinweis erst nach Interaktion (nicht schon beim Laden) */
.formular :user-invalid { border-color: var(--c-altrosa); background: var(--c-altrosa-hell); }

/* Zwei Felder nebeneinander ab Tablet */
.feld-reihe { display: grid; gap: 1.25rem; }

/* Auswahl-Kacheln (Radio) */
.auswahl { display: grid; gap: .6rem; }
.auswahl label {
  display: flex; align-items: center; gap: .75rem; min-height: 48px;
  padding: .65rem .9rem; border: 1.5px solid var(--c-linie); border-radius: var(--radius);
  background: var(--c-nebel); cursor: pointer; font-weight: 500; margin: 0;
  transition: border-color .2s, background-color .2s;
}
.auswahl label:hover { border-color: var(--c-salbei); }
.auswahl label:has(input:checked) { border-color: var(--c-petrol); background: var(--c-salbei-hell); }
.auswahl label:has(input:focus-visible) { outline: 3px solid var(--c-bernstein); outline-offset: 2px; }

.formular input[type="radio"], .formular input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; margin: 0; flex-shrink: 0; accent-color: var(--c-petrol);
}
.feld label.checkbox, .checkbox { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.checkbox input { margin-top: .2rem !important; }

/* Spam-Falle: für Menschen unsichtbar */
.honigtopf { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formular .btn { width: 100%; }
.formular-fuss { font-size: .875rem; color: var(--c-tinte-soft); margin: 0; }

/* Infobox oben im Formular */
.formular-hinweis {
  background: var(--c-salbei-hell); border-radius: var(--radius); padding: .9rem 1rem;
  font-size: .95rem; margin-top: 1.25rem;
}
.formular-hinweis p { margin: 0; }

/* Kontaktdaten-Spalte */
.kontakt-spalte { display: grid; gap: 1.25rem; align-content: start; }
.kontakt-spalte .kontakt-liste svg { color: var(--c-salbei); }
.kontakt-spalte .zeiten th, .kontakt-spalte .zeiten td { border-bottom-color: var(--c-linie); }
.karte-platzhalter {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--c-salbei-hell);
  display: grid; place-items: center; text-align: center; color: var(--c-tinte-soft);
  font-size: .9rem; padding: 1rem; margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   15a. Sehr schmale Smartphones – unter 22.5em (360px)
   -------------------------------------------------------------------------- */
@media (max-width: 22.49em) {
  :root { --pad: 1rem; }
  .bildmarke { width: 32px; height: 32px; }
  .wortmarke { gap: .5rem; }
  .wortmarke-name { font-size: 1.05rem; }
  .kopf-tel, .menue-knopf { width: 44px; height: 44px; }
  .kopf-aktionen { gap: 0; }
}

/* --------------------------------------------------------------------------
   15. Tablet – ab 40em (640px)
   -------------------------------------------------------------------------- */
@media (min-width: 40em) {
  :root { --pad: 2rem; --abstand-sektion: 4.5rem; }

  .btn-gruppe { flex-direction: row; flex-wrap: wrap; }
  .btn-gruppe .btn { width: auto; }

  .hero-bildmarke { width: 104px; height: 104px; }

  .fakten { grid-template-columns: repeat(3, 1fr); }
  .fakten li { grid-template-columns: 1fr; padding: 1.25rem; }
  .fakten svg { grid-row: auto; margin-bottom: .25rem; }

  .karten { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .kontakt-grid { grid-template-columns: repeat(2, 1fr); }

  .fuss-grid { grid-template-columns: 1.5fr 1fr 1fr; }

  .seitenleiste { grid-template-columns: repeat(2, 1fr); }

  .formular-karte { padding: 2rem; }
  .feld-reihe { grid-template-columns: 1fr 1fr; }
  .auswahl { grid-template-columns: repeat(3, 1fr); }
  .formular .btn { width: auto; justify-self: start; }
  .kontakt-spalte { grid-template-columns: repeat(2, 1fr); }
  .seitenkopf-grid { grid-template-columns: minmax(0, 1fr) 14rem; gap: 2.5rem; }
  .seitenkopf-bild { max-width: none; }
}

/* --------------------------------------------------------------------------
   16. Desktop – ab 64em (1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 64em) {
  :root { --abstand-sektion: 6rem; }
  body { font-size: 1.125rem; }

  /* Navigation horizontal, Menüknopf & Telefon-Icon ausblenden */
  .js .menue-knopf, .kopf-tel { display: none; }
  .kopf-inner { min-height: 5rem; flex-wrap: nowrap; }
  .wortmarke-name { font-size: 1.5rem; }
  .bildmarke { width: 48px; height: 48px; }
  .js .hauptnav, .hauptnav {
    display: block; position: static; background: none; padding: 0; box-shadow: none;
    max-height: none; overflow: visible;
  }
  .hauptnav > ul { display: flex; align-items: center; gap: .25rem; }
  .hauptnav a { border: 0; padding: .6rem .9rem; border-radius: var(--radius); }
  .hauptnav a:hover { background: var(--c-petrol-l); color: var(--c-weiss); }
  .hauptnav a[aria-current="page"] { color: var(--c-bernstein); }
  .hauptnav .nav-cta { margin: 0 0 0 .75rem; }
  .hauptnav .nav-cta a { padding: .7rem 1.25rem; }
  .hauptnav .nav-cta a:hover { background: var(--c-bernstein-dunkel); color: var(--c-tinte); }
/* ---- Untermenü „Angebot“ – Desktop: aufklappendes Feld unter dem Menüpunkt ---- */
.hat-untermenue { position: relative; }
.untermenue-knopf {
  width: auto; min-height: 0; padding: .6rem .9rem; border: 0; border-radius: var(--radius);
}
.untermenue-knopf:hover,
.untermenue-knopf[aria-expanded="true"] { background: var(--c-petrol-l); color: var(--c-weiss); }
.untermenue-knopf svg { width: 16px; height: 16px; }

.hauptnav .untermenue {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 60;
  min-width: 16rem; padding: .5rem; border: 0;
  background: var(--c-weiss); border-radius: var(--radius-gross);
  box-shadow: 0 12px 32px rgba(36,40,42,.18);
}
.hauptnav .untermenue::before { /* kleiner Pfeil nach oben */
  content: ""; position: absolute; top: -6px; left: 1.6rem; width: 12px; height: 12px;
  background: var(--c-weiss); transform: rotate(45deg); border-radius: 2px;
}
.hauptnav .untermenue a {
  position: relative; padding: .65rem .9rem; border: 0; border-radius: var(--radius);
  color: var(--c-tinte); font-weight: 500;
}
.hauptnav .untermenue a:hover { background: var(--c-salbei-hell); color: var(--c-petrol); }
.hauptnav .untermenue a[aria-current="page"] { color: var(--c-petrol); font-weight: 700; background: var(--c-salbei-hell); }

/* Ohne JavaScript: Untermenü per Maus/Tastaturfokus öffnen */
html:not(.js) .hauptnav .untermenue { display: none; }
html:not(.js) .hat-untermenue:hover .untermenue,
html:not(.js) .hat-untermenue:focus-within .untermenue { display: block; }

  /* Hero zweispaltig, Text links */
  .hero { padding-top: 4rem; }
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".       bild"
      "text    bild"
      "buttons bild"
      ".       bild";
    column-gap: 4rem; row-gap: 2rem;
  }
  .hero-text    { grid-area: text; }
  .hero-bild    { grid-area: bild; }
  .hero-buttons { grid-area: buttons; }
  .hero-bildmarke { width: 128px; height: 128px; margin-bottom: 1.75rem; }
  .hero-bild { aspect-ratio: 5 / 6; }

  .karten { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .karte { padding: 2rem; }

  .person { grid-template-columns: 5fr 7fr; gap: 5rem; }

  /* Ablauf als horizontale Zeitleiste */
  .schritte { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .schritte li { padding: 3.75rem 0 0 0; }
  .schritte li::after { left: 3.25rem; right: -1.25rem; top: 1.25rem; bottom: auto; width: auto; height: 2px; transform: none; }

  .kontakt-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 2rem; align-items: start; }

  /* Inhaltsseite: Fließtext + Seitenleiste */
  .seitenkopf { padding: 2.5rem 0 3rem; }
  .inhalt-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; padding-top: 3.5rem; }

  .seitenleiste { grid-template-columns: 1fr; position: sticky; top: 6.5rem; }

  .kontakt-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3.5rem; padding-top: 2.5rem; }
  .seitenkopf-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3.5rem; }
  .formular-karte { padding: 2.5rem; }
  .kontakt-spalte { grid-template-columns: 1fr; }

  .cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
  .cta-band .lead { margin-bottom: 0; }
  .cta-band .btn-gruppe { flex-shrink: 0; }
}

/* --------------------------------------------------------------------------
   17. Große Bildschirme – ab 90em (1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 90em) {
  :root { --wrap: 78rem; }
}

/* --------------------------------------------------------------------------
   18. Barrierefreiheit & Druck
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .kopf, .menue-knopf, .cta-band, .seitenleiste, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; }
}
