/* FoxCave - ein Stylesheet für alle Seiten.
   Farben aus dem Logo: Blau #186eb9 als einziger Akzent, Fast-Schwarz #0a0a0a, Weiß.
   Schrift: Barlow Condensed (Überschriften, wie die Wortmarke), Barlow (Text). Alles selbst gehostet. */

/* ---------- Schriften ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --tinte: #0a0a0a;
  --tinte-2: #333c48;
  --tinte-3: #566070;
  --papier: #ffffff;
  --flaeche: #f3f5f8;
  --flaeche-2: #e7ebf0;
  --linie: rgba(12, 28, 48, 0.1);
  --linie-2: rgba(12, 28, 48, 0.18);
  --blau: #186eb9;
  --blau-tief: #10558f;
  --blau-zart: #e9f2fb;
  --blau-hell: #7ab8f0;
  --erfolg: #17663f;
  --erfolg-zart: #e8f5ee;
  --fehler: #b42318;
  --fehler-zart: #fdeceb;
  --warnung: #7a4b00;
  --warnung-zart: #fdf3e1;
  --schatten-1: 0 1px 2px rgba(12, 28, 48, 0.05), 0 4px 12px -4px rgba(12, 28, 48, 0.08);
  --schatten-2: 0 2px 4px rgba(12, 28, 48, 0.04), 0 22px 44px -20px rgba(12, 28, 48, 0.3);
  --tray: 0 0 0 1px var(--linie), 0 0 0 6px rgba(12, 28, 48, 0.03), 0 0 0 7px rgba(12, 28, 48, 0.06);
  --radius: 1.25rem;
  --radius-gross: 1.75rem;
  /* Händlerbereich: Abstandsskala, drei Radien, Schriftskala (höchstens sechs Größen) */
  --abstand-1: 0.25rem; --abstand-2: 0.5rem; --abstand-3: 0.75rem; --abstand-4: 1rem;
  --abstand-5: 1.5rem; --abstand-6: 2rem; --abstand-7: 3rem;
  --r-feld: 0.5rem; --r-karte: 0.75rem; --r-pill: 999px;
  --text-xs: 0.8125rem; --text-s: 0.9375rem; --text-m: 1.0625rem;
  --text-l: 1.375rem; --text-xl: 1.75rem; --text-2xl: 2.25rem;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-raus: cubic-bezier(0.16, 1, 0.3, 1);
  --schrift: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --breite: 76rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
main { display: block; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; hyphens: manual; }
h1 { font-size: clamp(2.5rem, 4.2vw + 1rem, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 2.2vw + 1rem, 3rem); font-weight: 700; line-height: 1; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.25s var(--ease); }
a:hover { color: var(--blau-tief); }
strong, b { font-weight: 600; }
::selection { background: var(--blau); color: #fff; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.nur-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.sprunglink {
  position: absolute; left: 1rem; top: 0.75rem; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--tinte); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.sprunglink:focus { transform: none; color: #fff; }
.klein { font-size: 0.875rem; }
/* Links im Kleingedruckten: Tippfläche mindestens 24 px hoch (WCAG 2.5.8), ohne die Zeilen zu verschieben. */
.klein a:not(.knopf) { padding-block: 0.3rem; }
.gedimmt { color: var(--tinte-3); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.abschnitt--eng { padding-top: clamp(1.75rem, 3vw, 2.5rem); }

.abschnitt:not(.abschnitt--flaeche) + .abschnitt:not(.abschnitt--flaeche) { padding-top: 0; }

.seitenkopf {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3.25rem);
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.seitenkopf h1 { margin-bottom: 0.35em; }
.lead { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); line-height: 1.5; color: var(--tinte-2); max-width: 40em; margin-bottom: 0; }

.raster { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
.raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) {
  .raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 68rem) {
  
  .raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Kopf ---------- */

.kopf { position: relative; z-index: 10; background: var(--papier); border-bottom: 1px solid var(--linie); }

.kopf__logo { display: block; border-radius: 8px; }
.kopf__logo img { width: 120px; }

.kopf__link {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.4rem;
  color: var(--tinte); font-weight: 500; text-decoration: none; border-radius: 999px;
}
.kopf__link:hover { color: var(--blau); }
.kopf__link.linkknopf { text-decoration: none; color: var(--tinte-2); }
.kopf__link .icon { width: 1.4rem; height: 1.4rem; }

.kopf__bald {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  padding: 0.25rem 0.45rem; border-radius: 999px; color: var(--tinte-3); box-shadow: inset 0 0 0 1px var(--linie-2);
}

@media (max-width: 47.99rem) {
  
  .kopf__logo { grid-area: logo; justify-self: start; }
  .kopf__logo img { width: 104px; }
  
  
  
}
@media (max-width: 29.99rem) {
  .kopf__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .kopf__link { min-width: 44px; justify-content: center; }
  
  
}

.meldungen { padding-top: 1.5rem; }
.meldungen .hinweis:last-child { margin-bottom: 0; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.5rem;
  border: 0; border-radius: 999px;
  background: var(--tinte); color: #fff;
  font: 600 1rem/1.2 var(--schrift); letter-spacing: 0.01em; text-align: center; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease);
}
.knopf:hover { color: #fff; background: #26303c; }
.knopf:active { transform: scale(0.97); }
.knopf .icon { width: 1.15rem; height: 1.15rem; }
.knopf--primaer { background: var(--blau); }
.knopf--primaer:hover { background: var(--blau-tief); }
.knopf--sekundaer { background: #fff; color: var(--tinte); box-shadow: inset 0 0 0 1px var(--linie-2); }
.knopf--sekundaer:hover { background: #fff; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.knopf--hell { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.knopf--hell:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.knopf--klein { min-height: 44px; padding: 0 1.1rem; font-size: 0.9375rem; }
.knopf--voll { width: 100%; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.knopf__pfeil {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-right: -0.95rem;
  border-radius: 50%; background: rgba(255, 255, 255, 0.16);
  transition: transform 0.45s var(--ease), background-color 0.3s var(--ease);
}
.knopf__pfeil .icon { width: 1rem; height: 1rem; }
.knopf:hover .knopf__pfeil { transform: translateX(3px) scale(1.05); background: rgba(255, 255, 255, 0.24); }
.knopf--sekundaer .knopf__pfeil { background: var(--flaeche); }

.linkknopf {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; color: var(--blau); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer;
}
.linkknopf:hover { color: var(--blau-tief); }

.pfeillink {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-weight: 600; color: var(--tinte); text-decoration: none;
}
.pfeillink .icon { width: 1.1rem; height: 1.1rem; color: var(--blau); transition: transform 0.45s var(--ease); }
.pfeillink:hover { color: var(--blau); }
.pfeillink:hover .icon { transform: translateX(4px); }

/* ---------- Formulare ---------- */
.formular-karte {
  max-width: 44rem; margin-inline: auto;
  background: #fff; border-radius: var(--radius-gross);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--tray), var(--schatten-2);
}
.formular-karte > :last-child { margin-bottom: 0; }
.abschnitt:has(> .wrap > .formular-karte) { background: var(--flaeche); }
.formular-karte .seitenkopf { padding: 0 0 1.5rem; margin-bottom: 1.5rem; background: none; border-bottom: 1px solid var(--linie); }
.formular-karte .seitenkopf h1 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); }
.formular-karte .lead { font-size: 1.0625rem; }
.formular h2 { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); margin: 1rem 0 0; }
.formular { display: grid; gap: 1.25rem; }
.formular > * { margin: 0; }
.formular__zeile { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .formular__zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Anschrift in vier Feldern (registrierung/_anschrift.html): Straße breit neben Hausnummer, PLZ schmal neben Ort – auch am Handy zweispaltig */
.anschrift { display: grid; gap: 1.25rem; }
.anschrift__zeile { display: grid; gap: 1rem 1.25rem; }
.anschrift__zeile--strasse { grid-template-columns: minmax(0, 3fr) minmax(5.5rem, 1fr); }
.anschrift__zeile--plz { grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 3fr); }
.anschrift__zeile .feld { margin: 0; min-width: 0; }
.anschrift__hilfe { margin: 0; }
.feld { display: grid; gap: 0.4rem; align-content: start; }
.feld > * { margin: 0; }
.feld label, .formular label { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; color: var(--tinte); }

:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"], [type="file"]), select, textarea) {
  width: 100%; min-height: 50px; padding: 0.7rem 1rem;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--tinte);
  background: #fff; border: 0; border-radius: 0.875rem;
  box-shadow: inset 0 0 0 1px var(--linie-2);
  transition: box-shadow 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
  caret-color: var(--blau);
}
:where(input, select, textarea):hover { box-shadow: inset 0 0 0 1px rgba(12, 28, 48, 0.32); }
:where(input:not([type="checkbox"], [type="radio"]), select, textarea):focus { outline: none; box-shadow: inset 0 0 0 2px var(--blau), 0 0 0 4px rgba(24, 110, 185, 0.14); }
:where(input, textarea)::placeholder { color: var(--tinte-3); opacity: 1; }
:where(textarea) { min-height: 9rem; resize: vertical; }
:where(select) {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333c48' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
:where(input[type="file"]) { font: inherit; font-size: 0.9375rem; }
:where(input:disabled, select:disabled, textarea:disabled) { background-color: var(--flaeche); color: var(--tinte-3); cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blau); width: 1.25rem; height: 1.25rem; margin: 0; flex: none; }

.feld__hilfe, .helptext { font-size: 0.875rem; line-height: 1.45; color: var(--tinte-3); }
.feld__fehler { color: var(--fehler); font-size: 0.875rem; font-weight: 500; line-height: 1.45; }

.feld--fehler label { color: var(--fehler); }
.feld--fehler :where(input, select, textarea) { box-shadow: inset 0 0 0 2px var(--fehler); }
.formular__fehler {
  padding: 1rem 1.25rem; border-radius: 1rem;
  background: var(--fehler-zart); color: #7a1a12; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.22);
  font-size: 1rem;
}
.formular__fehler > :last-child { margin-bottom: 0; }
.formular__fehler ul { margin: 0; padding-left: 1.1rem; }
.check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.35rem 0.75rem; min-height: 44px; padding-block: 0.35rem; }
.check label { flex: 1; min-width: 0; }
.check > .feld__hilfe, .check > .feld__fehler { flex-basis: 100%; padding-left: 2rem; }
.check input { margin-top: 0.15rem; }
.check label, .formular .check label { font-weight: 400; font-size: 1rem; line-height: 1.5; cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; }

/* ---------- Hinweise ---------- */
.hinweis {
  display: block; margin: 0 0 1rem; padding: 1rem 1.25rem; border-radius: 1rem;
  font-size: 1rem; line-height: 1.5;
  background: var(--blau-zart); color: #0b3a63; box-shadow: inset 0 0 0 1px rgba(24, 110, 185, 0.2);
}
.hinweis > :last-child { margin-bottom: 0; }
.hinweis a:not(.knopf) { color: inherit; font-weight: 600; }
.hinweis--success { background: var(--erfolg-zart); color: #0f4a2d; box-shadow: inset 0 0 0 1px rgba(23, 102, 63, 0.22); }
.hinweis--error { background: var(--fehler-zart); color: #7a1a12; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.22); }
.hinweis--warning { background: var(--warnung-zart); color: #5c3800; box-shadow: inset 0 0 0 1px rgba(122, 75, 0, 0.22); }

/* ---------- Karten, Marken, Tabellen ---------- */
.karte {
  background: #fff; border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 0 0 1px var(--linie), var(--schatten-1);
}
.karte > :last-child { margin-bottom: 0; }
.karte h2 { font-size: clamp(1.625rem, 1.2vw + 1rem, 2.125rem); }

.marke {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.25; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--flaeche-2); color: var(--tinte-2);
}
.marke .icon { width: 0.95rem; height: 0.95rem; stroke-width: 1.8; }
.marke--geprueft { background: var(--blau-zart); color: var(--blau-tief); }
.marke--bald { background: var(--tinte); color: #fff; }
.marke--demo { background: #fff; color: var(--tinte-3); box-shadow: inset 0 0 0 1px var(--linie-2); }

.tabelle { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.975rem; font-variant-numeric: tabular-nums; }
.tabelle caption { text-align: left; font-weight: 600; padding-bottom: 0.75rem; }
.tabelle th, .tabelle td { padding: 0.8rem 1rem 0.8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 0; }
.tabelle thead th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinte-3); border-bottom-color: var(--linie-2); white-space: nowrap; }
.tabelle tbody th { font-weight: 600; color: var(--tinte-2); }
.tabelle tbody th[scope="row"] { width: min(38%, 16rem); }
.tabelle tbody tr { transition: background-color 0.2s var(--ease); }
.tabelle td .knopf, .tabelle td .linkknopf { vertical-align: middle; }
@media (max-width: 40rem) {
  .tabelle { font-size: 0.9rem; }
  .tabelle th, .tabelle td { padding-right: 0.6rem; overflow-wrap: anywhere; }
}

/* ---------- Lange Texte (Rechtliches, Beschreibungen) ---------- */
.prosa > * { max-width: 70ch; }
.prosa > .tabelle { max-width: 52rem; }
.prosa h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); margin: 2.4em 0 0.6em; }
.prosa h3 { font-size: 1.1875rem; margin: 1.9em 0 0.5em; }
.prosa > :first-child { margin-top: 0; }
.prosa ul, .prosa ol { padding-left: 1.25rem; }
.prosa li { margin-bottom: 0.4em; }
.prosa li::marker { color: var(--blau); }
.prosa address { font-style: normal; }
.prosa hr { border: 0; height: 1px; background: var(--linie); margin: 2.5rem 0; }

/* ---------- Dashboard ---------- */
.dash-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.dash-kopf > * { margin: 0; }
.dash-kopf h1 { margin: 0; }
.dash-kopf p { color: var(--tinte-2); }
.dash-kopf h1 + p { margin-top: 0.5rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.kennzahl {
  display: flex; flex-direction: column; gap: 0.3rem; margin: 0;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: #fff; box-shadow: 0 0 0 1px var(--linie), var(--schatten-1);
}
.kennzahl > * { margin: 0; }
.kennzahl :is(strong, b, dd, .kennzahl__wert) { font-family: var(--display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--tinte); font-variant-numeric: tabular-nums; margin: 0; }
.kennzahl :is(span, small, dt, .kennzahl__label) { font-size: 0.875rem; color: var(--tinte-3); }

/* ---------- Leere Zustände ---------- */
.leer {
  display: grid; justify-items: center; gap: 0.25rem; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--radius-gross);
  background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie);
}

.leer h2, .leer h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.625rem, 1.6vw + 1rem, 2.25rem); line-height: 1.05; margin: 0.75rem 0 0.4rem; }
.leer p { color: var(--tinte-2); max-width: 34em; margin-bottom: 0.75rem; }
.leer .knopf { margin-top: 0.5rem; }
.leer__icon {
  position: relative; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%;
  background: #fff; color: var(--blau); box-shadow: 0 0 0 1px var(--linie), 0 0 0 10px rgba(24, 110, 185, 0.06);
}

.leer__icon .icon { width: 2.25rem; height: 2.25rem; stroke-width: 1.25; }

/* ---------- Chips, Brotkrumen, Seiten ---------- */
.chips { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips--mitte { justify-content: center; margin-top: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px; background: #fff; color: var(--tinte); font-weight: 500; font-size: 0.9375rem; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--linie-2);
  transition: box-shadow 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.chip .icon { width: 1.15rem; height: 1.15rem; color: var(--blau); }
.chip:hover { color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.chip[aria-current] { background: var(--tinte); color: #fff; box-shadow: none; }

.brotkrumen ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; font-size: 0.875rem; color: var(--tinte-3); }
.brotkrumen li { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brotkrumen li + li::before {
  content: ""; flex: none; width: 0.38rem; height: 0.38rem;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.55;
}
.brotkrumen a { display: inline-block; padding-block: 0.65rem; color: var(--tinte-2); text-decoration: none; }
.brotkrumen a:hover { color: var(--blau); text-decoration: underline; }
.brotkrumen [aria-current] { color: var(--tinte); font-weight: 500; padding-block: 0.65rem; }
@media (max-width: 40rem) { .brotkrumen li[aria-current] { display: none; } }

.seiten { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.seiten__stand { margin: 0; font-size: 0.9375rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }

/* ---------- Startseite: Held ---------- */
.held {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(55% 75% at 82% 45%, rgba(24, 110, 185, 0.34), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(24, 110, 185, 0.14), transparent 70%),
    var(--tinte);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.held__raster { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .held__raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.held__titel { font-size: clamp(2.75rem, 5.4vw + 1rem, 5.75rem); line-height: 0.94; margin-bottom: 0.35em; letter-spacing: 0; }
.held__titel span { display: block; color: var(--blau-hell); }
.held__lead { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); line-height: 1.5; color: #c9d2de; max-width: 34em; margin-bottom: 2rem; }

.held :focus-visible { outline-color: var(--blau-hell); }

/* Zeichen im Kreis mit gezeichneter Umlaufbahn */
.held__zeichen { position: relative; width: min(100%, 15rem); aspect-ratio: 1; margin-inline: auto; }
@media (min-width: 64rem) { .held__zeichen { width: min(100%, 26rem); } }
@media (max-width: 63.99rem) { .held__zeichen { display: none; } }
.held__scheibe {
  position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06), 0 30px 80px -24px rgba(24, 110, 185, 0.75);
}
.held__scheibe img { width: 100%; height: 100%; object-fit: cover; scale: 1.02; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit circle { fill: none; }
.orbit__aussen { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; stroke-dasharray: 2 7; }
.orbit__spur { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1.5; }
.orbit__linie {
  stroke: var(--blau-hell); stroke-width: 1.75; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: 200px 200px;
  animation: orbit-zeichnen 2.2s var(--ease-raus) 0.25s both;
}
.orbit__lauf { transform-origin: 200px 200px; animation: orbit-drehen 26s linear infinite; }
.orbit__lauf circle { fill: var(--blau-hell); }
.orbit__lauf--zwei { animation-duration: 48s; animation-direction: reverse; }
.orbit__lauf--zwei circle { fill: rgba(255, 255, 255, 0.55); }
@keyframes orbit-zeichnen { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes orbit-drehen { to { transform: rotate(360deg); } }

/* ---------- Produktkarte ---------- */
.produktkarte {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius); background: #fff;
  box-shadow: 0 0 0 1px var(--linie), var(--schatten-1);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.produktkarte:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--linie-2), var(--schatten-2); }
.produktkarte:has(a:focus-visible) { outline: 3px solid var(--blau); outline-offset: 3px; }
.produktkarte__bild {
  display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0.375rem;
  border-radius: calc(var(--radius) - 0.375rem);
  background:
    radial-gradient(circle at 50% 50%, #fff 0 20%, transparent 20.5%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 17px, rgba(24, 110, 185, 0.07) 17px 18px),
    var(--flaeche);
  color: var(--blau);
}
.produktkarte__bild .icon { width: 22%; height: auto; aspect-ratio: 1; stroke-width: 1.25; transition: transform 0.6s var(--ease); }
.produktkarte:hover .produktkarte__bild .icon { transform: scale(1.08); }

.produktkarte__inhalt { display: flex; flex: 1; flex-direction: column; gap: 0.3rem; padding: 0.75rem 1.1rem 1.15rem; }
.produktkarte__inhalt > * { margin: 0; }
.produktkarte__kategorie { font-size: 0.8125rem; font-weight: 500; color: var(--tinte-3); }
.produktkarte__titel { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; hyphens: manual; }
.produktkarte__titel a { color: var(--tinte); text-decoration: none; }
.produktkarte__titel a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.produktkarte__titel a:focus-visible { outline: none; }
.produktkarte__preis { margin-top: auto !important; padding-top: 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1.625rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.produktkarte__haendler { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.6rem; font-size: 0.875rem; color: var(--tinte-3); }

@media (max-width: 29.99rem) {
  .produktkarte__inhalt { padding: 0.6rem 0.8rem 0.9rem; }
  /* Handy: Angaben auf der Karte als Fließtext mindestens 16 px; nur die Marken ("Geprüft") bleiben kleiner. */
  .produktkarte__titel, .produktkarte__kategorie, .produktkarte__haendler { font-size: 1rem; }
  .produktkarte__preis { font-size: 1.375rem; }
  
}

/* ---------- Filter ---------- */
.filter {
  display: grid; gap: 1rem; align-items: end;
  padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: var(--radius-gross);
  background: #fff; box-shadow: var(--tray), var(--schatten-1);
}
@media (min-width: 40rem) { .filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .filter { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } }

/* ---------- Produktseite ---------- */

.produkt { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .produkt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.daten { display: grid; gap: 0; margin: 0; }
.daten > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--linie); }
.daten dt { color: var(--tinte-3); font-size: 0.9375rem; }
.daten dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.daten dd a { color: var(--tinte); }

/* ---------- Erklärer "So funktioniert FoxCave" ---------- */

.stand {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: 1.5rem; border-top: 1px solid var(--linie);
}

.stand .pfeillink { margin-left: auto; }
@media (max-width: 47.99rem) { .stand .pfeillink { margin-left: 0; } }

/* ---------- So funktioniert: Rollen ---------- */
.rolle { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-gross); box-shadow: var(--tray), var(--schatten-1); }
.rolle .knopf { margin-top: auto; }

/* ---------- Zahlen ---------- */
.zahlen { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--linie); }

/* ---------- Händler-Band ---------- */
.band {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(50% 70% at 100% 50%, rgba(24, 110, 185, 0.38), transparent 70%), var(--tinte);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.band__raster { display: grid; gap: 1.75rem 3rem; align-items: center; }
@media (min-width: 56rem) { .band__raster { grid-template-columns: minmax(0, 1fr) auto; } }
.band h2 { margin-bottom: 0.4em; }
.band p { margin: 0; color: #c9d2de; max-width: 36em; font-size: 1.125rem; }
.band__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.band :focus-visible { outline-color: var(--blau-hell); }

/* ---------- Pakete ---------- */
.pakete { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .pakete { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .pakete { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .pakete { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.paket {
  display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius-gross);
  background: #fff; box-shadow: var(--tray), var(--schatten-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.paket:hover { transform: translateY(-3px); box-shadow: var(--tray), var(--schatten-2); }
.paket > * { margin: 0; }
.paket__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.875rem; line-height: 1; margin-bottom: 0.5rem; }
.paket__limit { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.9375rem; color: var(--tinte-2); }
.paket__limit .icon { color: var(--blau); stroke-width: 2; }
.paket > :nth-last-child(2) { margin-bottom: 1.5rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); color: #c3ccd8; font-size: 0.9375rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.fuss__raster { display: grid; gap: 2.25rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fuss__firma { grid-column: 1 / -1; }
@media (min-width: 56rem) { .fuss__raster { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } .fuss__firma { grid-column: auto; } }
.fuss__scheibe { display: inline-block; padding: 4px; margin-bottom: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06); }
.fuss__zeichen { border-radius: 50%; }
.fuss p { margin: 0 0 1rem; line-height: 1.7; }
.fuss strong { color: #fff; }
.fuss h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; margin-bottom: 0.75rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss a { color: #c3ccd8; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
/* Handy: Fließtext mindestens 16 px - Hilfe- und Fehlertexte, Filter-Chips, Statuszeilen. */
@media (max-width: 47.99rem) {
  .feld__hilfe,
.helptext,
.feld__fehler,
.chip { font-size: 1rem; }
}

.fuss li a { display: inline-block; padding-block: 0.6rem; line-height: 1.4; }
.fuss__firma a { display: inline-block; padding-block: 0.35rem; }
.fuss :focus-visible { outline-color: var(--blau-hell); }
.fuss__unten {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem;
}
.fuss__unten p { margin: 0; }
.fuss__unten a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.fuss__unten .icon { width: 1rem; height: 1rem; }

/* ---------- Live-FoxBox (partials/foxbox_live.html, Startseite) ---------- */

.live {
  margin: 0; padding: clamp(1rem, 3vw, 1.5rem); border-radius: var(--radius-gross);
  background: var(--papier); box-shadow: var(--tray), var(--schatten-2);
}

/* ---------- Hinweisseiten: "Bald verfügbar" (bald.html) und 404 ---------- */
.hinweisseite { display: grid; min-height: min(70vh, 44rem); place-items: center; text-align: center; }
.hinweisseite__inhalt { display: grid; justify-items: center; max-width: 40rem; }
.hinweisseite__fuchs { margin-bottom: 1.5rem; filter: drop-shadow(0 18px 30px rgba(12, 28, 48, 0.18)); }
.hinweisseite__fuchs .fuchs { border-radius: 50%; }
.hinweisseite__marke {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--blau-zart); color: var(--blau-tief); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
}
.hinweisseite h1 { margin: 0 0 0.6em; line-height: 1.04; }
.hinweisseite__text { margin: 0 0 2rem; color: var(--tinte-2); text-wrap: pretty; }
.hinweisseite__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
}

/* Produktfotos (Partial partials/produktbild.html) - auf allen öffentlichen Seiten */
.produktbild--foto { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--linie); }
.produktbild__img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Anbindung an Martins Django-Code (core/templates) ---------- */
/* Textdialog für Impressum und Datenschutz (Fuß); öffnet per app.js, schließt per Knopf, Esc oder Hintergrund. */
.textdialog {
  width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0;
  border-radius: var(--radius-gross); background: var(--papier); color: var(--tinte); box-shadow: var(--schatten-2);
}
.textdialog::backdrop { background: rgba(10, 10, 10, 0.55); }
.textdialog__inhalt { padding: clamp(1.25rem, 4vw, 2.5rem); }
.textdialog__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.textdialog__kopf h2 { margin: 0; }
.textdialog .knopf--voll { margin-top: 2rem; }
.fuss .linkknopf { min-height: 0; padding-block: 0.6rem; color: #c3ccd8; text-decoration: none; line-height: 1.4; }
.fuss .linkknopf:hover { color: #fff; text-decoration: underline; }

/* Produktseite: Bildergalerie und Warenkorb */

/* Startseite: Rollen-Karten mit dezentem Hover */
.rolle { background: #fff; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
@media (hover: hover) { .rolle:hover { transform: translateY(-3px); box-shadow: var(--tray), var(--schatten-2); } }

/* ---------- Mobil ---------- */
/* Breite Tabellen (Haendler-Dashboard, FoxBoxen) scrollen auf dem Handy im eigenen Rahmen statt die Seite zu sprengen.
   Templates koennen die Tabelle zusaetzlich in <div class="tabelle-wrap"> legen, dann scrollt der Rahmen. */

@media (max-width: 47.99rem) {
  .tabelle { position: relative; display: block; overflow-x: auto; overscroll-behavior-x: contain; }
  
  .tabelle th, .tabelle td { overflow-wrap: normal; }
  .tabelle tbody th[scope="row"] { width: auto; min-width: 9rem; }
}

/* ==========================================================================
   Gemeinsame Bausteine (aus haendler.css hierher verschoben, damit Kunden- und Händlerseiten dieselben benutzen)
   ========================================================================== */

/* ---------- Pill: ein Etikett fuer Status, fuenf Bedeutungen (hb-status bleibt als Alias) ---------- */
.pill, .hb-status {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 2px 0.65rem; border-radius: var(--r-pill);
  font-size: var(--text-xs); font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--flaeche-2); color: var(--tinte-3);
}
.pill::before, .hb-status::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.pill--neu, .hb-status--blau { background: var(--blau-zart); color: var(--blau-tief); }
.pill--ok { background: var(--erfolg-zart); color: var(--erfolg); }
.pill--warten { background: var(--warnung-zart); color: var(--warnung); }
.pill--aus { background: var(--flaeche-2); color: var(--tinte-3); }
.pill--fehler { background: var(--fehler-zart); color: var(--fehler); }
/* Zaehler nur fuer Zahlen (z. B. neue Bestellungen) */
.zaehler { display: inline-grid; place-items: center; min-width: 1.375rem; height: 1.375rem; padding: 0 0.4rem; border-radius: var(--r-pill); background: var(--blau); color: #fff; font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Tabs: Filter als Links mit Query-Parametern ---------- */
.hb-tabs { display: flex; gap: var(--abstand-1); margin: 0 0 var(--abstand-4); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--linie-2); }
.hb-tabs::-webkit-scrollbar { display: none; }
.hb-tabs a {
  display: inline-flex; align-items: center; gap: var(--abstand-2); min-height: 44px; padding: 0 var(--abstand-3); white-space: nowrap; text-decoration: none;
  font-size: var(--text-s); font-weight: 500; color: var(--tinte-2); box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hb-tabs a:hover { color: var(--tinte); box-shadow: inset 0 -2px 0 var(--linie-2); }
.hb-tabs a[aria-current] { color: var(--tinte); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blau); }
.hb-tabs a:focus-visible { outline-offset: -3px; }
.hb-tabs__zahl { padding: 0 0.45rem; border-radius: var(--r-pill); background: var(--flaeche-2); font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tinte-2); }
.hb-tabs a[aria-current] .hb-tabs__zahl { background: var(--blau-zart); color: var(--blau-tief); }

/* ---------- Leerzustand: Icon, ein Satz, ein Knopf ---------- */
.hb-leer { display: grid; justify-items: center; gap: var(--abstand-2); padding: var(--abstand-6) var(--abstand-4); text-align: center; }
.hb-leer > * { margin: 0; }
.hb-leer__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--abstand-1); border-radius: 50%; background: var(--flaeche-2); color: var(--tinte-2); }
.hb-leer__icon .icon { width: 1.5rem; height: 1.5rem; }
.hb-leer h3 { font-size: var(--text-m); }
.hb-leer p { max-width: 30rem; font-size: var(--text-s); color: var(--tinte-2); }
.hb-leer .knopf { margin-top: var(--abstand-2); }

/* ---------- Segmente (Fuchs-Stufe) ---------- */
.hb-segment { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-karte); background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }
.hb-segment__option { position: relative; display: grid; margin: 0; }
.hb-segment__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hb-segment__option span {
  display: grid; place-items: center; min-height: 44px; padding: 0.4rem 0.5rem; border-radius: var(--r-feld);
  font-size: var(--text-s); font-weight: 500; line-height: 1.2; text-align: center; color: var(--tinte-2);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.hb-segment__option:hover span { color: var(--tinte); }
.hb-segment__option input:checked + span { background: #fff; color: var(--tinte); font-weight: 600; box-shadow: 0 0 0 1px var(--linie-2), var(--schatten-1); }
.hb-segment__option input:focus-visible + span { outline: 3px solid var(--blau); outline-offset: 1px; }
@container hb (max-width: 30rem) { .hb-segment__option span { padding-inline: 0.25rem; font-size: var(--text-s); } }

/* ---------- Schrittnummer: nur wo die Reihenfolge zaehlt ---------- */
.schritt-nr { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--blau); color: #fff; font-size: var(--text-s); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

/* Nummern und Kennungen nicht umbrechen (Beleg, Konto) */
.k-nowrap { white-space: nowrap; }
