/*
 * Visera Intelligence – Komponenten der Inhaltsseiten, direkt nach css/style.css eingebunden.
 * Nur Tokens aus style.css; Verläufe und Keyframes liegen dort, nicht hier. Schatten nur über --shadow-*.
 */

/* ---------- Kopf und Navigation ---------- */

/* Kopf ohne eigene Fläche (Inhaber-Wunsch 11.10.2026, wie bei der Schwestermarke): Logo links in Tinte auf dem weißen Grund,
   rechts schwebt die dunkle Leiste mit der Navigation. Das Markup ist auf allen Seiten gleich. */
.site-header {
  position: relative;
  z-index: 30;
  color: var(--ink);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  min-height: var(--header-h);
  padding-block: 12px;
}

/* Dunkle Leiste mit Radius 22 px (rund, aber keine Pille) und leichtem Glas; ab 960 px schwebt sie oben rechts mit (position: fixed). */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-bar);
  background: var(--ink-bar);
  color: var(--paper);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-m);
  font: 600 16px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Unterstrich im Akzentverlauf unter dem aktuellen Eintrag; beim Überfahren wächst er auch unter den übrigen von links. */
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-spectrum);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.nav a[aria-current="page"]:not(.nav__cta)::after { transform: scaleX(1); }

@media (hover: hover) {
  .nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .nav a:not(.nav__cta)::after { transition: transform 0.3s var(--ease-out); }
}

/* Anfrage: Akzentverlauf mit weißer Schrift wie die Knöpfe (Schleier beim Überfahren: style.css). Schriftgröße wie die übrigen Links
   (16 px), nur fetter; der Radius sitzt konzentrisch in der Leiste (Radius der Leiste minus Innenabstand). */
.nav .nav__cta {
  position: relative;
  isolation: isolate;
  margin-left: 4px;
  padding: 0 18px;
  border-radius: var(--radius-bar-inner);
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Auf der Kontaktseite ist „Anfrage“ der aktuelle Eintrag: ein feiner heller Ring zeigt es an. */
.nav .nav__cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--accent-light); }

/* Fokus auf der dunklen Leiste in Lavendel. */
.nav :focus-visible { outline-color: var(--accent-light); }

/* Breit: Die Leiste schwebt oben rechts, bündig mit dem Inhalt, und bleibt beim Scrollen stehen. */
@media (min-width: 960px) {
  .nav {
    position: fixed;
    top: calc((var(--header-h) - 54px) / 2);
    right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    z-index: 30;
  }
}

/* Schmal (unter 960 px) wie eine App (Inhaber-Wahl 10.10.2026): oben eine schlanke helle Leiste mit dem Logo, die beim
   Runterscrollen verschwindet und beim Hochscrollen zurückkommt (js/nav.js), unten die Tab-Leiste. Die dunkle Navigation
   entfällt hier; ihre Ziele liegen in Tab-Leiste und „Mehr“. Oben bleibt Platz für Kerbe und Statusleiste (safe-area). */
@media (max-width: 959px) {
  .nav { display: none; }

  .site-header {
    position: sticky;
    top: 0;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid transparent;
    background: var(--paper-glass);
  }

  .site-header.is-scrolled { border-bottom-color: var(--line-strong); }

  .site-header.is-hidden { transform: translateY(-100%); }

  .header__inner { min-height: var(--appbar-h); padding-block: 6px; }
}

/* Menü-Knopf oben rechts (nur schmal, Inhaber-Wunsch 10.10.2026): öffnet dasselbe Menü wie „Mehr“ in der Tab-Leiste. */
.appbar__menu { display: none; }

@media (max-width: 959px) {
  .appbar__menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    color: var(--ink);
    font: 600 16px/1 var(--font-head);
    text-decoration: none;
    -webkit-touch-callout: none;
  }

  .appbar__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .motion .site-header { transition: transform 0.25s var(--ease-out); }
}

/* ---------- Tab-Leiste und Fenster „Mehr“ (unter 960 px) ---------- */

/* Unten fest wie in einer App: fünf Ziele mit Symbol und Beschriftung, in der Mitte „Anfrage“ als Goldfeld mit weißem
   Symbol. Unter der Leiste bleibt Platz für die Home-Leiste des iPhones (safe-area). Ab 960 px gibt es sie nicht. */
.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  border-top: 1px solid var(--line-strong);
  background: var(--paper-glass);
}

.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--tabbar-h);
  color: var(--ink-muted);
  font: 600 11px/1.1 var(--font-head);
  text-decoration: none;
  -webkit-touch-callout: none;
}

.tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabbar__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Die drei Punkte von „Mehr“ sind gefüllt. */
.tabbar__item[data-sheet-open] .tabbar__icon { fill: currentColor; stroke: none; }

/* Aktives Ziel: Tinte, fett und ein kurzer Goldstrich am oberen Rand. */
.tabbar__item--active { color: var(--ink); font-weight: 700; }

.tabbar__item--active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 28px;
  margin-left: -14px;
  border-top: 2px solid var(--accent);
}

.tabbar__item--cta { color: var(--ink); }

.tabbar__item--cta.tabbar__item--active::before { content: none; }

/* Anfrage: Goldfeld mit weißem Symbol (weiße Schrift auf Gold, Inhaber-Regel). */
.tabbar__pill {
  display: grid;
  place-items: center;
  width: 46px;
  height: 28px;
  border-radius: var(--radius-tile);
  background: var(--accent-gradient);
  color: var(--on-accent);
}

.tabbar__pill .tabbar__icon { width: 20px; height: 20px; stroke-width: 2; }

.tabbar__item--cta[aria-current="page"] .tabbar__pill { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabbar :focus-visible { outline-offset: -4px; }

/* Menü (Knopf „Menü“ oben rechts und „Mehr“ in der Tab-Leiste): ganzseitig auf Tinte wie ein App-Menü (Inhaber-Wunsch 10.10.2026:
   „moderner, minimalistischer, cooler“). Oben Logo und ein runder Schließen-Knopf an derselben Stelle wie Logo und Menü-Knopf, darunter
   die Seiten in großer Schrift ohne Zusatztexte, unten der Goldknopf zur Anfrage und leise die Rechtstexte.
   Ohne Skript über #mehr (:target), mit js/nav.js über .is-open als Dialog. */
.sheet { display: none; }

.sheet:target,
.sheet.is-open {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
}

.sheet--js:target:not(.is-open) { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.sheet__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--ink);
  color: var(--paper);
  transform: translateY(var(--drag));
}

.sheet :focus-visible { outline-color: var(--accent-light); }

/* Beim Öffnen bekommt das Menü selbst den Fokus (js/nav.js), nicht „Start“; die ganze Fläche braucht keinen Rahmen. */
.sheet__panel:focus { outline: none; }

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--appbar-h);
  padding-block: 6px;
}

.sheet .sheet__logo { color: var(--paper); }

/* Schließen: runder Knopf mit feinem Rand, das Kreuz aus zwei Linien. */
.sheet__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  color: var(--paper);
}

.sheet__close::before,
.sheet__close::after {
  content: "";
  position: absolute;
  width: 18px;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.sheet__close::after { transform: rotate(-45deg); }

/* Die Seiten groß und ruhig in der Mitte des freien Raums; die aktuelle in hellem Gold und etwas größer, ohne Punkt
   (Inhaber-Wunsch 10.10.2026). */
.sheet__list {
  margin-block: auto;
  padding: 28px 0;
  list-style: none;
}

.sheet__list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  color: var(--paper);
  font: 800 clamp(30px, 9vw, 40px)/1.1 var(--font-head);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.sheet__list a[aria-current="page"] { color: var(--accent-light); font-size: clamp(35px, 10.5vw, 46px); }

.sheet__foot { display: grid; gap: 6px; }

.sheet__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

.sheet__legal { display: flex; flex-wrap: wrap; gap: 0 22px; }

.sheet__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--field);
  font-size: 15px;
}

/* Öffnen: das Menü blendet ein, die Seiten steigen nacheinander auf (nur opacity und transform). */
@media (prefers-reduced-motion: no-preference) {
  .motion .sheet.is-open .sheet__panel { transition: opacity 0.22s ease; }
  .motion .sheet.is-open .sheet__panel.is-dragging { transition-duration: 0s; }
  .motion .sheet.is-open .sheet__list li,
  .motion .sheet.is-open .sheet__foot { transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
  .motion .sheet.is-open .sheet__list li:nth-child(2) { transition-delay: 0.04s; }
  .motion .sheet.is-open .sheet__list li:nth-child(3) { transition-delay: 0.08s; }
  .motion .sheet.is-open .sheet__list li:nth-child(4) { transition-delay: 0.12s; }
  .motion .sheet.is-open .sheet__list li:nth-child(5) { transition-delay: 0.16s; }
  .motion .sheet.is-open .sheet__list li:nth-child(6) { transition-delay: 0.2s; }
  .motion .sheet.is-open .sheet__foot { transition-delay: 0.26s; }

  @starting-style {
    .motion .sheet.is-open .sheet__panel { opacity: 0; }

    .motion .sheet.is-open .sheet__list li,
    .motion .sheet.is-open .sheet__foot { opacity: 0; transform: translateY(14px); }
  }
}

/* Unter der Tab-Leiste bleibt Platz, damit der Fuß nicht verdeckt wird; offenes Fenster sperrt das Scrollen der Seite. */
@media (max-width: 959px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  .sheet-open,
  .sheet-open body { overflow: hidden; }
}

/* Seitenwechsel (css/style.css): Diese Leisten stehen still, nur der Inhalt blendet über. */
.tabbar { view-transition-name: app-tabbar; }

@media (max-width: 959px) {
  .site-header { view-transition-name: app-header; }
}

@media (min-width: 960px) {
  .nav { view-transition-name: app-nav; }
}

@media (min-width: 960px) {
  .tabbar,
  .sheet,
  .sheet:target,
  .sheet.is-open { display: none; }
}

/* ---------- Listen mit Trennpunkten ---------- */

/* Fließtext mit Trennpunkten: Der Punkt hängt wie ein Komma am Eintrag davor. */
.dot-list {
  padding: 0;
  list-style: none;
  text-wrap: pretty;
}

/* Umbrüche nur zwischen den Einträgen, auch auf dem Handy („Festpreis vor | Projektstart“ wirkte zerrissen; jeder Eintrag passt
   auch bei 320 px in eine Zeile). */
.dot-list li { display: inline; white-space: nowrap; }

/* Auf dem Handy passt ohnehin nur ein Eintrag je Zeile: untereinander, ohne Trennpunkt am Zeilenende. */
@media (max-width: 479px) {
  .dot-list li { display: block; }

  .dot-list li:not(:last-child)::after { content: none; }
}

.dot-list li:not(:last-child)::after {
  content: "·";
  content: "·" / "";
  margin-inline: 0.45em;
  color: var(--accent);
}
.stage .dot-list li:not(:last-child)::after { color: var(--accent-light); }

/* ---------- Seitenkopf der Unterseiten ---------- */

/* Hell auf dem sanften Verlauf; große Überschrift links, Einleitung rechts. Alle Köpfe sind gleich hoch (--head-h),
   Überschrift und Einleitung stehen darin mittig zueinander, damit der Titel beim Seitenwechsel nicht springt. */
.page-head {
  --head-h: 13rem;
  padding-block: clamp(24px, 4.4vw, 64px) clamp(40px, 5vw, 72px);
}

.page-head__inner {
  display: grid;
  gap: 20px var(--col-gap);
  align-content: start;
}

@media (min-width: 960px) {
  .page-head__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-auto-rows: minmax(var(--head-h), auto);
    align-items: center;
  }
}

.page-head h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-head h1:only-child { grid-column: 1 / -1; }

.page-head .lead {
  max-width: 30em;
  margin-top: 0;
}

/* ---------- Kontakt ---------- */

/* Text links, Formular rechts ab 860 px; schmal untereinander. */
.contact {
  display: grid;
  gap: clamp(32px, 5vw, 56px) var(--col-gap);
  align-items: start;
  padding-top: clamp(24px, 4.4vw, 64px);
  padding-bottom: var(--section-pad);
}

@media (min-width: 860px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Schmal wie in einer App: nach Überschrift und Einleitung sofort das Formular, Schritte und E-Mail-Hinweis darunter.
   .contact__text löst sich dafür auf (display: contents), die Reihenfolge im HTML bleibt für Screenreader gleich. */
@media (max-width: 859px) {
  .contact { display: flex; flex-direction: column; gap: 0; }
  .contact__text { display: contents; }
  .contact h1 { order: 1; }
  .contact .lead { order: 2; }
  .contact__form { order: 3; margin-block: 28px 40px; }
  .contact__steps-title { order: 4; }
  .contact__steps { order: 5; }
  .contact__note { order: 6; }
}

.contact h1 {
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact .lead { max-width: 30em; }

.contact__steps-title {
  margin-top: clamp(32px, 4vw, 44px);
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Drei Schritte mit schlichten Ziffern in Messing (auf Papier große, fette Schrift). */
.contact__steps {
  counter-reset: contact-step;
  display: grid;
  gap: 12px;
  max-width: 30em;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.contact__steps li {
  counter-increment: contact-step;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
}

/* ::before ohne Alternativtext: Die Liste liest „1, 2, 3“ schon vor. */
.contact__steps li::before {
  content: counter(contact-step);
  content: counter(contact-step) / "";
  color: var(--accent);
  font: 800 19px/1 var(--font-head);
  font-variant-numeric: tabular-nums;
}

.contact__note {
  margin-top: 28px;
  font: 700 18px/1.55 var(--font-head);
  letter-spacing: -0.01em;
}

/* ---------- Formular ---------- */

/* Das Formular steht auf einer weißen Karte. */
.contact__form {
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}

.form-required {
  margin-bottom: 22px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Beschriftung steht immer sichtbar über dem Feld, nie als Platzhalter im Feld. */
.form-field label {
  font: 700 16px/1.3 var(--font-head);
  letter-spacing: -0.01em;
}

/* Rahmen in Tinte (Kontrast der Feldgrenze); mindestens 16 px, sonst zoomt iOS beim Antippen. */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.4 var(--font-text);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-field textarea {
  min-height: 168px;
  resize: vertical;
}

.form-field textarea::placeholder {
  color: var(--ink);
  opacity: 0.72;
}

/* Auswahlfelder sehen aus wie die Textfelder; der Pfeil entsteht aus zwei Rahmenlinien (kein Bild, wegen der CSP). */
.form-field select {
  height: 52px;
  padding-right: 48px;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.form-field--select { position: relative; }

.form-field--select::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Honigtopf für Spam-Programme: außerhalb des Bildschirms statt display: none. */
.form-trap {
  position: absolute;
  left: -10000px;
}

.form-note {
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-form .button {
  justify-self: start;
  margin-top: 4px;
}

/* ---------- Kurze Seiten (Danke, Fehler, 404) ---------- */

/* Der Fuß sitzt am unteren Fensterrand, auch wenn der Inhalt kurz ist. */
.page-short {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-short main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Der Kopf hat dieselbe Höhe wie auf allen Unterseiten; der freie Platz bis zum Fuß bleibt darunter leer.
   Die längeren Sätze als Überschrift sind kleiner gesetzt, damit sie in den Kopf passen. */
.page-short .page-head h1 {
  font-size: clamp(32px, 4vw, 52px);
  overflow-wrap: normal;
  hyphens: manual;
}

.page-head .button { margin-top: 26px; }

/* ---------- Einwilligungs-Banner (js/consent.js) ---------- */

/* Schwebende, abgerundete Karte unten rechts (links stehen die Knöpfe des Hero), nicht modal. Das Skript baut sie nur, solange keine Entscheidung
   gespeichert ist oder „Cookie-Einstellungen“ im Fuß gewählt wurde. Das Einblenden steht mit den Keyframes in style.css. */
.consent {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 40;
  max-width: 480px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-float);
}

.consent[hidden] { display: none; }

/* Das Skript setzt den Fokus nur auf die Karte selbst, sie ist nichts zum Bedienen. */
.consent:focus { outline: none; }

.consent :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* .wrap kommt aus dem Skript; in der Karte gelten eigene Abstände. */
.consent .consent__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  padding: 22px 24px;
}

.consent__text {
  font-size: 15px;
  line-height: 1.5;
}

/* Der Titel steht im selben Absatz (ein <p> für Screenreader), auf breiten Bildschirmen als eigene Zeile. */
.consent__title {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font: 800 18px/1.25 var(--font-head);
  letter-spacing: -0.015em;
}

.consent__text a {
  text-decoration-color: var(--accent-light);
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .consent__text a:hover { text-decoration-color: var(--paper); }
}

.consent__actions { display: flex; gap: 10px; }

/* Ein Stil für beide Knöpfe: gleiche Größe, gleicher Rahmen, keiner hervorgehoben. */
.consent__button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--paper);
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--paper);
  font: 700 16px/1.2 var(--font-head);
  letter-spacing: -0.01em;
  cursor: pointer;
}

@media (hover: hover) {
  .consent__button:hover { background: var(--paper); color: var(--ink); }
}

@media (min-width: 600px) {
  .consent { right: 24px; bottom: 24px; left: auto; }
}

/* Mobil kompakt: höchstens etwa ein Fünftel des Bildschirms (bei 375 × 812 rund 165 px), Knöpfe nebeneinander,
   Text 14 px in der schmaleren Archivo (fünf statt sechs Zeilen), in Feldblau etwas leiser als die Knöpfe. */
@media (max-width: 599px) {
  .consent { right: 8px; bottom: 8px; left: 8px; border-radius: var(--radius-m); }
  .consent .consent__inner { gap: 8px; padding: 11px 14px; }
  .consent__text { color: var(--field); font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.32; letter-spacing: -0.005em; }
  .consent__title { display: inline; margin: 0; font-size: 14px; font-weight: 800; line-height: inherit; }
  .consent__actions { gap: 8px; }
  .consent__button { min-height: 40px; padding-inline: 12px; font-size: 15px; }
}

/* Mit Tab-Leiste (unter 960 px) schwebt das Banner über ihr, nicht dahinter. In der App-Ansicht steht „Lieber nicht“ links und
   „Einverstanden“ rechts (Inhaber-Wunsch 10.10.2026); beide bleiben gleich gestaltet, nur die Reihenfolge auf dem Bildschirm dreht sich. */
@media (max-width: 959px) {
  .consent { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
  .consent__actions { flex-direction: row-reverse; }
}

/* Solange das Banner offen ist, bleibt am Seitenende Platz, damit Impressum und Datenschutz nicht verdeckt sind. */
.consent-open .site-footer { padding-bottom: 11rem; }

@media (min-width: 600px) {
  .consent-open .site-footer { padding-bottom: 15rem; }
}

/* Widerruf: Der Knopf im Fuß sieht aus wie die Links daneben. Ohne Skript bleibt er verborgen,
   denn dann gäbe es kein Banner, das er öffnen könnte (das Skript setzt consent-ready am <html>). */
.footer__consent { display: none; }

.consent-ready .footer__consent {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (hover: hover) {
  .consent-ready .footer__consent:hover { color: var(--paper); text-decoration-color: var(--accent-light); }
}

/* ---------- Sehr schmale Bildschirme ---------- */

/* Knöpfe wie „Beispiel-Report anfordern“ sollen bei 320 px in eine Zeile passen. */
@media (max-width: 359px) {
  .button { padding-inline: 18px; }
}

/* Stand: Menü ganzseitig (10.10.2026). */
