/* brandschutz freisinger – Grundgestaltung. Keine fremden Server, Schrift lokal (Inter, OFL). */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --rot: #b3262e;          /* Signalrot wie Logo – nur Akzent */
  --rot-dunkel: #8f1d24;
  --rot-hell: #fbeaeb;
  --gruen: #00843d;        /* Fluchtweg-Grün – sehr sparsam */
  --gruen-hell: #e6f4ed;
  --text: #252a2d;
  --text-2: #4f575b;
  --text-3: #5d6568;
  --flaeche: #ffffff;
  --flaeche-2: #f6f5f2;    /* helles Warmgrau */
  --flaeche-3: #ebe9e4;
  --linie: #d9dddc;
  --graphit: #252a2d;
  --graphit-2: #30363a;
  --auf-graphit: #f3f2ef;
  --auf-graphit-2: #b9bec5;
  --fokus: #1a5fd0;
  --schatten: 0 1px 2px rgb(20 24 28 / .06), 0 8px 24px rgb(20 24 28 / .06);
  --radius: 10px;
  --radius-gross: 16px;
  --wrap: 1180px;
  --abstand: clamp(56px, 8vw, 104px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rot: #ee6a70;
    --rot-dunkel: #f4888d;
    --rot-hell: #3a1f22;
    --gruen: #3cc47f;
    --gruen-hell: #173126;
    --text: #eceae6;
    --text-2: #c2c6cc;
    --text-3: #9aa1aa;
    --flaeche: #16191d;
    --flaeche-2: #1d2126;
    --flaeche-3: #262b31;
    --linie: #343a42;
    --graphit: #0f1215;
    --graphit-2: #1b1f24;
    --auf-graphit: #eceae6;
    --auf-graphit-2: #a8aeb6;
    --fokus: #7fb0ff;
    --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rot: #ee6a70; --rot-dunkel: #f4888d; --rot-hell: #3a1f22;
  --gruen: #3cc47f; --gruen-hell: #173126;
  --text: #eceae6; --text-2: #c2c6cc; --text-3: #9aa1aa;
  --flaeche: #16191d; --flaeche-2: #1d2126; --flaeche-3: #262b31; --linie: #343a42;
  --graphit: #0f1215; --graphit-2: #1b1f24; --auf-graphit: #eceae6; --auf-graphit-2: #a8aeb6;
  --fokus: #7fb0ff; --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--flaeche);
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
mark.platzhalter { background: #ffe58a; color: #3b2f00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--graphit); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 6px;
  background: var(--rot); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--rot);
  font-size: 1rem; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
:root[data-theme="dark"] .knopf, :root[data-theme="dark"] .knopf:hover { color: #16191d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .knopf, :root:not([data-theme="light"]) .knopf:hover { color: #16191d; } }
.knopf-zweit { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf-zweit:hover { background: var(--flaeche-2); color: var(--text); border-color: var(--text-3); }
:root[data-theme="dark"] .knopf-zweit, :root[data-theme="dark"] .knopf-zweit:hover { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .knopf-zweit, :root:not([data-theme="light"]) .knopf-zweit:hover { color: var(--text); } }
.knopf-klein { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.knopf .pfeil { transition: transform .15s; }
.knopf:hover .pfeil { transform: translateX(3px); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.marke:hover { color: var(--text); }
.marke-logo { width: auto; height: 40px; flex: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.marke-zusatz { font-size: .8rem; color: var(--text-3); }
.hauptmenue ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hauptmenue a { white-space: nowrap; }
.hauptmenue a:not(.knopf) { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--text-2); }
.hauptmenue a:not(.knopf):hover { background: var(--flaeche-2); color: var(--text); }
.hauptmenue a[aria-current="page"]:not(.knopf) { color: var(--text); box-shadow: inset 0 -2px 0 var(--rot); border-radius: 0; }
.hauptmenue li:last-child { margin-left: 8px; }
.menue-knopf { display: none; width: 48px; height: 48px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); cursor: pointer; position: relative; color: var(--text); }
.menue-knopf:hover { background: var(--flaeche-2); }
.menue-strich, .menue-strich::before, .menue-strich::after { position: absolute; left: 13px; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.menue-strich { top: 22px; }
.menue-strich::before { left: 0; top: -6px; }
.menue-strich::after { left: 0; top: 6px; }
.menue-knopf[aria-expanded="true"] .menue-strich { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-strich::before { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-strich::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .menue-knopf { display: block; }
  .hauptmenue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--flaeche); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); }
  .hauptmenue.offen { display: block; }
  .hauptmenue ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .hauptmenue a:not(.knopf) { padding: 14px 12px; font-size: 1.05rem; }
  .hauptmenue a[aria-current="page"]:not(.knopf) { box-shadow: inset 3px 0 0 var(--rot); border-radius: 0 8px 8px 0; }
  .hauptmenue li:last-child { margin: 8px 0 0; }
  .hauptmenue .knopf { width: 100%; min-height: 48px; }
}
@media (max-width: 420px) { .marke-zusatz { display: none; } }

/* Abschnitte */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt-grau { background: var(--flaeche-2); }
.abschnitt-dunkel { background: var(--graphit); color: var(--auf-graphit); }
.abschnitt-dunkel p, .abschnitt-dunkel li { color: var(--auf-graphit-2); }
.abschnitt-dunkel a:hover { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rot); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.abschnitt-dunkel .kicker { color: #f0868b; }
.einleitung { max-width: 720px; margin-bottom: 40px; }
.einleitung p { color: var(--text-2); font-size: 1.08rem; }
.abschnitt-dunkel .einleitung p { color: var(--auf-graphit-2); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--text-2); max-width: 640px; }

/* Startbühne (Variante B: Graphit) */
.buehne { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 88px); overflow: hidden; background: var(--graphit); color: var(--auf-graphit); border-bottom: 3px solid var(--rot); }
.buehne-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.buehne .kicker { color: var(--auf-graphit-2); }
.buehne .kicker::before { background: var(--rot); }
.buehne h1 { color: #fff; }
.buehne .lead { color: var(--auf-graphit-2); }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.buehne .knopf-zweit { color: var(--auf-graphit); border-color: rgb(255 255 255 / .28); }
.buehne .knopf-zweit:hover { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .55); }
.buehne-fakten { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--auf-graphit-2); font-size: .95rem; }
.buehne-fakten li { display: flex; align-items: center; gap: 8px; }
.buehne-fakten svg { width: 18px; height: 18px; color: #3cc47f; flex: none; }
.buehne-bild { position: relative; margin: 0; border-radius: var(--radius-gross); overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / .35); border: 1px solid rgb(255 255 255 / .12); aspect-ratio: 4 / 3; background: #3a4044; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; }
.buehne-bild figcaption { position: absolute; left: 12px; bottom: 12px; background: rgb(20 24 26 / .82); color: #fff; font-size: .8rem; padding: 6px 10px; border-radius: 6px; }
@media (max-width: 900px) { .buehne-raster { grid-template-columns: 1fr; } .buehne-bild { aspect-ratio: 16 / 10; } }

/* Seitenkopf Unterseiten */
.seitenkopf { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background: var(--flaeche-2) url("../img/grundriss.webp") right center / auto 100% no-repeat; border-bottom: 1px solid var(--linie); }
.seitenkopf .wrap > * { position: relative; }
@media (max-width: 900px) { .seitenkopf { background-image: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seitenkopf { background-image: none; } }
:root[data-theme="dark"] .seitenkopf { background-image: none; }
.seitenkopf h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); max-width: 880px; }
.pfadleiste { font-size: .88rem; color: var(--text-3); margin-bottom: 16px; }
.pfadleiste a { color: var(--text-3); }
.pfadleiste ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.pfadleiste li + li::before { content: "›"; margin-right: 6px; }
.norm-chip { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text-2); margin-bottom: 14px; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.karte { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 26px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.abschnitt-grau .karte { background: var(--flaeche); }
a.karte:hover { border-color: var(--text-3); box-shadow: var(--schatten); transform: translateY(-2px); color: var(--text); }
.karte-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--rot-hell); color: var(--rot); display: grid; place-items: center; margin-bottom: 18px; }
.karte-icon svg { width: 26px; height: 26px; }
.karte h3 { margin-bottom: 4px; }
.karte .norm { font-size: .82rem; font-weight: 600; color: var(--text-3); margin-bottom: 12px; }
.karte p { color: var(--text-2); font-size: .98rem; }
.karte .mehr { margin-top: auto; font-weight: 600; color: var(--rot); display: inline-flex; align-items: center; gap: 6px; }
a.karte:hover .mehr .pfeil { transform: translateX(3px); }
.mehr .pfeil { transition: transform .15s; }

/* Vertrauensleiste */
.vertrauen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: var(--radius-gross); background: var(--flaeche); overflow: hidden; }
.vertrauen > div { padding: 22px 24px; border-right: 1px solid var(--linie); min-width: 0; }
.vertrauen > div:last-child { border-right: 0; }
.vertrauen strong { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.vertrauen span { color: var(--text-2); font-size: .93rem; }
@media (max-width: 860px) { .vertrauen { grid-template-columns: 1fr 1fr; } .vertrauen > div:nth-child(2) { border-right: 0; } .vertrauen > div:nth-child(-n+2) { border-bottom: 1px solid var(--linie); } }
@media (max-width: 460px) { .vertrauen { grid-template-columns: 1fr; } .vertrauen > div { border-right: 0; border-bottom: 1px solid var(--linie); } .vertrauen > div:last-child { border-bottom: 0; } }

/* Schritte */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.schritte li { position: relative; padding: 26px; border-radius: var(--radius-gross); background: var(--graphit-2); border: 1px solid rgb(255 255 255 / .08); counter-increment: s; min-width: 0; }
.abschnitt:not(.abschnitt-dunkel) .schritte li { background: var(--flaeche); border-color: var(--linie); }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--rot); color: inherit; font-weight: 700; margin-bottom: 16px; }
.abschnitt-dunkel .schritte li::before { border-color: #f0868b; }
.schritte h3 { margin-bottom: 6px; }
.schritte p { margin: 0; font-size: .97rem; }

/* Zweispaltig */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.zwei-breit { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 900px) { .zwei, .zwei-breit { grid-template-columns: 1fr; } }
.bild-rahmen { border-radius: var(--radius-gross); overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche-2); }
.bild-rahmen img { width: 100%; }
.bild-unter { font-size: .85rem; color: var(--text-3); margin-top: 8px; }

/* Fließtext */
.text { max-width: 760px; }
.text h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.text h2:first-child { margin-top: 0; }
.text h3 { margin-top: 1.4em; }
.text p, .text li { color: var(--text-2); }
.text li { margin-bottom: .35em; }
.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.haken li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gruen-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300804a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Seitenleiste */
.seitenleiste { position: sticky; top: 96px; display: grid; gap: 16px; }
.kasten { border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 24px; background: var(--flaeche); }
.kasten-rot { border-color: color-mix(in srgb, var(--rot) 35%, var(--linie)); background: var(--rot-hell); }
.kasten h3 { font-size: 1.1rem; }
.kasten p { color: var(--text-2); font-size: .97rem; }
.kasten .knopf { width: 100%; }
@media (max-width: 900px) { .seitenleiste { position: static; } }

/* Kontaktband */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-gross); background: var(--graphit); color: var(--auf-graphit); }
.band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.band p { margin: 0; color: var(--auf-graphit-2); }
.band-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.band .knopf-zweit { color: var(--auf-graphit); border-color: rgb(255 255 255 / .25); }
.band .knopf-zweit:hover { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .5); }
:root[data-theme="dark"] .band { border: 1px solid var(--linie); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { border: 1px solid var(--linie); } }

/* FAQ */
.fragen { display: grid; gap: 12px; max-width: 860px; }
.fragen details { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.fragen summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; border-radius: var(--radius); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.fragen details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fragen summary:hover { background: var(--flaeche-2); }
.fragen details > div { padding: 0 20px 18px; color: var(--text-2); }
.fragen details > div p:last-child { margin-bottom: 0; }

/* Formular */
.formular { display: grid; gap: 22px; }
.feldgruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .feldgruppe { grid-template-columns: 1fr; } }
.feld { display: grid; gap: 6px; min-width: 0; }
.feld label, .feld legend { font-weight: 600; font-size: .96rem; }
.feld .hinweis { font-size: .86rem; color: var(--text-3); }
.pflicht { color: var(--rot); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--flaeche); border: 1px solid color-mix(in srgb, var(--text-3) 70%, var(--linie)); border-radius: var(--radius);
}
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--fokus); outline-offset: 0; border-color: var(--fokus); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.auswahl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.auswahl label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--linie); border-radius: 999px; cursor: pointer; font-weight: 500; background: var(--flaeche); }
.auswahl label:hover { border-color: var(--text-3); background: var(--flaeche-2); }
.auswahl input { width: 18px; height: 18px; accent-color: var(--rot); margin: 0; }
.auswahl label:has(input:checked) { border-color: var(--rot); background: var(--rot-hell); }
.upload { border: 2px dashed var(--linie); border-radius: var(--radius-gross); padding: 22px; background: var(--flaeche-2); }
.upload:hover { border-color: var(--text-3); }
.upload input[type="file"] { font: inherit; max-width: 100%; }
.upload input[type="file"]::file-selector-button { font: inherit; font-weight: 600; padding: 10px 16px; margin-right: 12px; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); cursor: pointer; }
.upload input[type="file"]::file-selector-button:hover { background: var(--flaeche-3); }
.einwilligung { font-size: .93rem; color: var(--text-2); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--linie); }
.meldung-ok { background: var(--gruen-hell); border-color: color-mix(in srgb, var(--gruen) 40%, var(--linie)); }
.meldung-fehler { background: var(--rot-hell); border-color: color-mix(in srgb, var(--rot) 40%, var(--linie)); }

/* Fuß */
.fuss { background: var(--graphit); color: var(--auf-graphit-2); margin-top: 0; padding-top: 56px; font-size: .95rem; }
.fuss a { color: var(--auf-graphit); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss-raster { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; gap: 28px; padding-bottom: 40px; }
@media (max-width: 1000px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-raster > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss-marke { color: var(--auf-graphit); font-weight: 700; font-size: 1.1rem; }
.fuss-titel { color: var(--auf-graphit); font-weight: 600; margin-bottom: 12px; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 20px; padding-bottom: 28px; font-size: .86rem; }
.fuss-unten p { margin: 0; }
:root[data-theme="dark"] .fuss { border-top: 1px solid var(--linie); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fuss { border-top: 1px solid var(--linie); } }

/* Rechtstexte */
.recht { max-width: 800px; }
.recht h2 { font-size: 1.35rem; margin-top: 1.8em; }
.recht h3 { font-size: 1.08rem; margin-top: 1.4em; }
.recht p, .recht li { color: var(--text-2); }
.recht address { font-style: normal; color: var(--text-2); margin-bottom: 1em; }

@media print {
  .kopf, .fuss, .band, .menue-knopf { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
}

/* Hilfsklassen (keine Inline-Styles wegen CSP) */
.oben-28 { margin-top: 28px; }
.ohne-oben { padding-top: 0; }
.mitte { text-align: center; }
.kurzliste { padding-left: 1.2em; color: var(--text-2); margin: 0; }
.kurzliste li { margin-bottom: .3em; }
.portrait-platz:empty { display: none; }
.portrait-platz img { border-radius: 12px; margin-bottom: 16px; }
.upload input[type="file"] { width: 100%; }
.upload label, .upload .hinweis { overflow-wrap: anywhere; }
figure { margin: 0; }
.schritte { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.karten.branchen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .karten.branchen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .karten.branchen { grid-template-columns: 1fr; } }
.orte { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.orte li { padding: 8px 14px; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); color: var(--text-2); font-weight: 500; }
.quelle { font-size: .9rem; color: var(--text-3); }
.quelle a { color: var(--text-2); }
.referenzorte { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.referenzorte li { border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; background: var(--flaeche); display: grid; gap: 2px; align-content: start; }
.referenzorte strong { color: var(--text); }
.referenzorte span { font-size: .92rem; color: var(--text-2); }
.text .referenzorte li { margin: 0; }
/* Ablauf-Kästen überall gleich (dunkler Abschnitt) */
.abschnitt-dunkel h2, .abschnitt-dunkel h3 { color: #fff; }
.abschnitt-dunkel .schritte li { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
.abschnitt-dunkel .schritte li p { color: var(--auf-graphit-2); }

/* Fable-Review 01.12.: Feinschliff */
[id] { scroll-margin-top: 96px; }
.h1-zusatz { display: block; margin-top: 18px; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.4; color: var(--auf-graphit-2); max-width: 34em; }
.text-2 { color: var(--text-2); }
.text-oben > .kicker:first-child + h2 { margin-top: 0; }
.schritte, .karte, .vertrauen, .kasten, .orte { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word; }
.seitenkopf { position: relative; }
.seitenkopf h1 { max-width: 900px; }
.seitenkopf .lead { max-width: 640px; }
.seitenkopf::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--flaeche-2) 0%, var(--flaeche-2) 45%, color-mix(in srgb, var(--flaeche-2) 55%, transparent) 70%, transparent 100%); pointer-events: none; }
/* Fokus auf dunklen Flächen heller */
.buehne, .band, .fuss, .abschnitt-dunkel { --fokus: #8ab8ff; }
/* Zweitknöpfe und Menüknopf mit sichtbarem Rahmen */
.knopf-zweit { border-color: var(--text-3); }
.menue-knopf { border-color: var(--text-3); }
.buehne .knopf-zweit, .band .knopf-zweit { border-color: rgb(255 255 255 / .55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .haken li::before { background-color: #1f3a2c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe0ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .kasten-rot .knopf { color: #16191d; }
}
:root[data-theme="dark"] .haken li::before { background-color: #1f3a2c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe0ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.fuss a[href^="mailto:"] { white-space: nowrap; }
@media (min-width: 1001px) { .fuss-raster { grid-template-columns: 1.4fr .9fr 1.35fr .9fr .9fr; } }
