/* ==========================================================================
   AS Maschinen – Stilblatt
   Grundlage: Grafik-Asset-Kit der Konzeptmappe (Farben, Typografie, Effekte).
   Farben NUR als Tokens in :root – test-gestaltung.php prüft das.
   ========================================================================== */

/* ------------------------------------------------------------- Schriften */
/* IBM Plex, selbst gehostet (SIL OFL, siehe schriften/LIZENZ-OFL.txt).
   Sans als Latin-1-Teilsatz (deckt Umlaute, ß, €, Anführungszeichen, Striche),
   Mono vollständig – Datenwerte brauchen ⁻¹, Ø, ±, ×. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("schriften/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("schriften/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("schriften/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("schriften/IBMPlexMono-Regular.woff2") format("woff2");
}

/* ---------------------------------------------------------------- Tokens */
:root {
  --marine: #12266B;
  --anthrazit: #111827;
  --grau-500: #6B7280;
  --grau-50: #F4F5F8;
  --gruen: #0F5132;
  --rot: #B3261E;
  --weiss: #FFFFFF;

  --rahmen: color-mix(in srgb, var(--anthrazit) 12%, transparent);
  --rahmen-stark: color-mix(in srgb, var(--anthrazit) 22%, transparent);
  --schatten: 0 8px 24px color-mix(in srgb, var(--anthrazit) 12%, transparent);
  --marine-hell: color-mix(in srgb, var(--marine) 8%, var(--weiss));
  /* Grau 500 auf Grau 50 erreicht nur 4,43:1. Auf Flächen dunkler mischen. */
  --grau-flaeche: color-mix(in srgb, var(--grau-500) 70%, var(--anthrazit));
  --text-zweit: var(--grau-500);

  --radius: 6px;
  --dauer: 180ms;
  --schrift: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --breite: 1240px;
  --rand: clamp(16px, 4vw, 32px);
}

/* ----------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
/* hidden gilt immer – Zugang, Consentry und eigene Skripte verlassen sich darauf. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font: 400 0.875rem/1.571 var(--schrift);
  color: var(--anthrazit);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 0.9375rem; line-height: 1.6; }
}

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

a { color: var(--marine); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------- Typografie */
h1, h2, h3 { margin: 0 0 .5em; color: var(--anthrazit); }

h1 {
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.214;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  h1 { font-size: 2.125rem; line-height: 1.176; }
}

h2 { font-weight: 600; font-size: 1.3125rem; line-height: 1.238; }
h3 { font-weight: 600; font-size: 1rem; line-height: 1.375; }

p { margin: 0 0 1em; max-width: 70ch; }

.label {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.333;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-zweit);
}

/* Sektionsflächen in Grau 50 (Asset-Kit). Sekundärtext dort dunkler. */
.flaeche {
  background: var(--grau-50);
  --text-zweit: var(--grau-flaeche);
}

.klein { font-size: 0.8125rem; line-height: 1.538; }

.mono, .daten td {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ Fokus */
:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 2px;
}
.dunkel :focus-visible { outline-color: var(--weiss); }

/* --------------------------------------------------------- Hilfsklassen */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprunglink {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--marine);
  color: var(--weiss);
  border-radius: var(--radius);
}
.sprunglink:focus { top: 12px; }

.inhalt {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.icon { flex: none; }

/* ----------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--marine);
  border-radius: var(--radius);
  background: var(--marine);
  color: var(--weiss);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dauer), color var(--dauer);
}
.knopf:hover { background: var(--anthrazit); border-color: var(--anthrazit); }

.knopf--zweit { background: var(--weiss); color: var(--marine); }
.knopf--zweit:hover { background: var(--marine-hell); color: var(--marine); border-color: var(--marine); }

.knopf--hell { background: var(--weiss); color: var(--marine); border-color: var(--weiss); }
.knopf--hell:hover { background: var(--grau-50); color: var(--marine); border-color: var(--grau-50); }

/* ----------------------------------------------------------------- Badges */
.marke-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.455;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--weiss);
  background: var(--anthrazit);
}
.marke-badge--neu { background: var(--marine); }
.marke-badge--verfuegbar { background: var(--gruen); }
.marke-badge--verkauft { background: var(--anthrazit); }
.marke-badge--video, .marke-badge--rund { background: var(--anthrazit); }

/* ------------------------------------------------------------------ Karte */
.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dauer), box-shadow var(--dauer), border-color var(--dauer);
}
.karte:hover, .karte:focus-within {
  transform: translateY(-2px);
  border-color: var(--marine);
  box-shadow: var(--schatten);
}

/* Verlauf von oben, damit Badges auf jedem Foto lesbar bleiben. */
.foto-scrim { position: relative; }
.foto-scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--anthrazit) 55%, transparent), transparent 45%);
}

/* --------------------------------------------------- Laden und Skelett */
.ladebalken {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 2px;
  background: var(--marine);
  transform-origin: left;
  animation: laden 1.2s ease-in-out infinite;
}
@keyframes laden {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(.8); }
  100% { transform: scaleX(1); opacity: 0; }
}

.skelett {
  background: linear-gradient(90deg, var(--grau-50) 0%, var(--weiss) 50%, var(--grau-50) 100%);
  background-size: 200% 100%;
  animation: schimmer 1.4s linear infinite;
  border-radius: var(--radius);
}
@keyframes schimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Lesefortschritt: 2 px oben am Fenster (Asset-Kit 03), Breite setzt rahmen.js. */
.lesefortschritt { position: fixed; inset: 0 0 auto 0; z-index: 190; height: 2px; pointer-events: none; }
.lesefortschritt span { display: block; height: 100%; background: var(--marine); transform: scaleX(var(--fortschritt, 0)); transform-origin: left; }
.lesefortschritt:not(.aktiv) { display: none; }

/* Seitenlader: Signet mit pendelndem Zahnrad – nur wenn das Laden länger als ~300 ms
   dauert; ohne JavaScript blendet er sich nach spätestens 1,6 s selbst aus. */
.seitenlader {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: var(--weiss); pointer-events: none; opacity: 0; visibility: hidden;
  animation: lader 1.6s linear forwards;
}
.seitenlader img { width: 132px; height: auto; }
@keyframes lader {
  0%, 18% { opacity: 0; visibility: visible; }
  26%, 82% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
.geladen .seitenlader { display: none; }

/* Weiches Laden: Bilder und Abschnitte blenden ein – nur mit JavaScript, sonst sofort sichtbar. */
.js img[data-einblenden]:not(.da) { opacity: 0; }
img[data-einblenden] { transition: opacity 420ms ease; }
.js [data-auftauchen]:not(.sichtbar) { opacity: 0; transform: translateY(12px); }
[data-auftauchen] { transition: opacity 520ms ease, transform 520ms ease; }

/* Kopfzeile hebt sich beim Scrollen leicht ab. */
.kopf { transition: box-shadow var(--dauer), background-color var(--dauer); }
.gescrollt .kopf { background: color-mix(in srgb, var(--grau-50) 92%, transparent); box-shadow: 0 6px 20px rgba(17, 24, 39, .08);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }

/* Menüs, Suche und Baum öffnen weich. */
@keyframes aufklappen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.megamenue:not([hidden]), .kopfsuche:not([hidden]), .mobilnav:not([hidden]), .baum__arten:not([data-zu]) { animation: aufklappen 200ms ease-out; }
.knopf:active, .pille:active { transform: translateY(1px) scale(.98); }
.knopf, .pille { transition: background-color var(--dauer), color var(--dauer), border-color var(--dauer), transform 90ms ease; }

/* ------------------------------------------------------- Bewegung aus */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .seitenlader { display: none; }
  .js [data-auftauchen]:not(.sichtbar) { opacity: 1; transform: none; }
}
html[data-zugang-bewegung] *, html[data-zugang-bewegung] *::before, html[data-zugang-bewegung] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-zugang-bewegung] .seitenlader { display: none; }
html[data-zugang-bewegung] [data-auftauchen]:not(.sichtbar) { opacity: 1; transform: none; }

/* ================================================================ Pillen */
/* Runde Umrissknöpfe aus dem Wireframe („⌕ Suche", „DE | EN", Filter-Chips). */
.pille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rahmen-stark);
  border-radius: 999px;
  background: var(--weiss);
  color: var(--anthrazit);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dauer), color var(--dauer);
}
.pille:hover { border-color: var(--marine); color: var(--marine); }
.pille--hell { background: transparent; color: var(--weiss); border-color: color-mix(in srgb, var(--weiss) 45%, transparent); }
.pille--hell:hover { color: var(--weiss); border-color: var(--weiss); }

/* ================================================================== Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--grau-50);   /* sanfter Grund statt Weiß (Freigabe 09.10.2026) */
  border-bottom: 1px solid var(--rahmen);
}

.kopf__leiste {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.kopf__logo { flex: none; display: block; }
.kopf__logo img { width: 230px; height: auto; }
main { flex: 1 0 auto; }

.kopf__nav { margin-left: auto; }
.kopf__liste { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }

.kopf__liste a,
.kopf__mega {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px;
  white-space: nowrap;
  border: 0;
  background: none;
  color: var(--anthrazit);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.kopf__liste a:hover, .kopf__mega:hover { color: var(--marine); }
.kopf__liste a[aria-current="page"],
.kopf__mega[aria-expanded="true"],
.kopf__mega[data-aktiv] {
  color: var(--marine);
  font-weight: 500;
  border-bottom-color: var(--marine);
}
.kopf__mega .icon { transition: transform var(--dauer); }
.kopf__mega[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Ohne JavaScript ist „Maschinen" ein gewöhnlicher Link. */
.kopf__mega { display: none; }
.js .kopf__mega { display: inline-flex; }
.js .kopf__mega-link { display: none; }

.kopf__werkzeuge { display: flex; align-items: center; gap: 10px; }
.kopf__anfrage { padding-inline: 18px; }

.kopf__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 0; background: none; color: var(--anthrazit);
  cursor: pointer;
}

/* Suchleiste unter dem Kopf */
.kopfsuche { border-top: 1px solid var(--rahmen); background: var(--grau-50); }
.kopfsuche__form { display: flex; gap: 12px; padding-block: 16px; }
.kopfsuche__form input,
.mobilnav__suche input,
.seite__suche input,
.fuss__nl-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--rahmen-stark);
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--anthrazit);
}

/* ============================================================ Mega-Menü */
.megamenue {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--weiss);
  border-top: 1px solid var(--rahmen);
  box-shadow: var(--schatten);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.megamenue__raster {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 0 40px;
  padding-block: 24px 28px;
}
/* Linke Spalte: Gruppen. Unterkategorien erscheinen erst beim Überfahren rechts (Wunsch 09.10.2026). */
.megamenue__gruppen { margin: 0; padding: 0 24px 0 0; list-style: none; border-right: 1px solid var(--rahmen); }
.megamenue__gruppe {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px;
  border-radius: var(--radius); color: var(--anthrazit); text-decoration: none; line-height: 1.3;
}
.megamenue__gruppe .icon:first-child { flex: none; color: var(--marine); }
.megamenue__gruppe .megamenue__name { flex: 1 1 auto; min-width: 0; }
.megamenue__gruppe .icon:last-child { flex: none; color: var(--grau-500); opacity: 0; transform: translateX(-4px); transition: opacity var(--dauer), transform var(--dauer); }
.megamenue__gruppe.aktiv, .megamenue__gruppe:focus-visible { background: color-mix(in srgb, var(--marine) 8%, var(--weiss)); color: var(--marine); }
.megamenue__gruppe.aktiv .icon:last-child { opacity: 1; transform: none; color: var(--marine); }
/* Rechte Spalte: Unterkategorien der gewählten Gruppe. */
.megamenue__feld { animation: aufklappen 160ms ease-out; }
.megamenue__kopf { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--marine); font-size: 1.25rem; font-weight: 600; }
.megamenue__artenliste { columns: 2; column-gap: 32px; margin: 0 0 20px; padding: 0; list-style: none; }
.megamenue__artenliste li { break-inside: avoid; }
.megamenue__artenliste a {
  display: flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 8px; margin-left: -8px;
  border-radius: var(--radius); color: var(--anthrazit); text-decoration: none;
}
.megamenue__artenliste a:hover { background: var(--grau-50); color: var(--marine); }
.megamenue__alle { margin-top: 4px; }
.megamenue__feld:has(.megamenue__bild) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); column-gap: 32px; align-content: start; }
.megamenue__feld:has(.megamenue__bild) > :not(.megamenue__bild) { grid-column: 1; }
.megamenue__feld[hidden] { display: none; }
.megamenue__bild { grid-column: 2; grid-row: 1 / span 3; position: relative; display: block; overflow: hidden; border-radius: calc(var(--radius) + 4px); aspect-ratio: 4 / 3; align-self: start; }
.megamenue__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.megamenue__bild:hover img { transform: scale(1.04); }
.megamenue__bild span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; background: var(--weiss); border-radius: var(--radius); color: var(--anthrazit); font-size: 0.875rem; box-shadow: var(--schatten); }
.megamenue__bild strong { color: var(--marine); }

.anzahl {
  font-family: var(--schrift-mono);
  font-size: 0.75rem;
  color: var(--text-zweit);
}

.megamenue__leer { grid-column: 1 / -1; margin: 0; }

.megamenue__fuss { background: var(--grau-50); border-top: 1px solid var(--rahmen); --text-zweit: var(--grau-flaeche); }
.megamenue__fussleiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.megamenue__rechts { display: flex; gap: 10px; }

/* ===================================================== Mobilnavigation */
.mobilnav {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: var(--weiss);
}
.mobilnav__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--rahmen);
}
.mobilnav__zu {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--anthrazit); cursor: pointer;
}
.mobilnav__suche { display: flex; gap: 8px; margin-block: 16px; }
.mobilnav__suche button {
  width: 48px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius); background: var(--marine); color: var(--weiss); cursor: pointer;
}
.mobilnav__liste { margin: 0; padding: 0; list-style: none; }
.mobilnav__liste > li { border-bottom: 1px solid var(--rahmen); }
.mobilnav__liste a,
.mobilnav__liste summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  color: var(--anthrazit);
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
}
.mobilnav__liste a[aria-current="page"] { color: var(--marine); font-weight: 500; }
.mobilnav__liste details ul { margin: 0 0 12px; padding: 0 0 0 12px; list-style: none; }
.mobilnav__liste details a { min-height: 44px; font-size: 0.9375rem; }
.mobilnav__anfrage { width: 100%; margin-block: 24px 12px; }
.mobilnav__sprache { width: 100%; justify-content: center; margin-bottom: 24px; }

@media (max-width: 1099px) {
  .kopf__nav, .kopf__suche-knopf span { display: none; }
  .kopf__burger { display: inline-flex; }
  .kopf__werkzeuge { margin-left: auto; }
  .kopf__suche-knopf { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 599px) {
  .kopf__logo img { width: 150px; }
  .kopf__anfrage, .kopf__sprache { display: none; }
  .kopf__leiste { gap: 8px; min-height: 64px; }
}
@media (min-width: 1100px) {
  .mobilnav { display: none !important; }
}
@media (max-width: 899px) {
  .megamenue__raster { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 0 24px; }
  .megamenue__artenliste { columns: 1; }
}

/* ================================================================== Fuß */
/* Struktur (Wunsch 09.10.2026): Kontaktband, vier Spalten, Unterleiste mit Rechtlichem,
   Zahnrad als Wasserzeichen. */
.fuss { position: relative; overflow: hidden; background: var(--marine); color: var(--weiss);
  --text-zweit: color-mix(in srgb, var(--weiss) 78%, var(--marine)); }
.fuss a, .fuss .fuss__textknopf { color: var(--weiss); }
.fuss .label { color: color-mix(in srgb, var(--weiss) 70%, var(--marine)); margin: 0 0 16px; }

.fuss__band { background: linear-gradient(110deg, color-mix(in srgb, var(--marine) 70%, var(--anthrazit)) 0%, var(--marine) 70%); border-bottom: 1px solid color-mix(in srgb, var(--weiss) 12%, transparent); }
.fuss__band-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 40px; }
.fuss__band .label { margin-bottom: 6px; }
.fuss__band-titel { margin: 0 0 6px; color: var(--weiss); font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2; }
.fuss__band-text { margin: 0; color: var(--text-zweit); }
.fuss__band-wege { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf--umriss-hell { background: transparent; color: var(--weiss); border-color: color-mix(in srgb, var(--weiss) 55%, transparent); }
.knopf--umriss-hell:hover { background: var(--weiss); color: var(--marine); border-color: var(--weiss); }
.fuss__band .knopf .icon { display: inline-block; }

.fuss__raster {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 40px; padding-block: 56px 48px;
}
.fuss__firma img { width: 190px; margin-bottom: 16px; }
.fuss__claim { margin: 0 0 20px; max-width: 32ch; color: var(--text-zweit); }
.fuss__kontaktliste { display: grid; gap: 10px; }
.fuss__kontakt { display: flex; align-items: flex-start; gap: 10px; }
.fuss__kontakt .icon { flex: none; margin-top: 2px; color: color-mix(in srgb, var(--weiss) 70%, var(--marine)); }
.fuss__kontakt span { color: var(--text-zweit); }

.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss__spalte li a {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 34px; padding-block: 5px;
  text-decoration: none; transition: color var(--dauer), transform var(--dauer);
}
.fuss__spalte li a:hover { color: var(--weiss); text-decoration: underline; transform: translateX(3px); }
.fuss .anzahl { color: color-mix(in srgb, var(--weiss) 55%, var(--marine)); }
.fuss__wa { display: inline-flex; align-items: center; gap: 6px; }

.fuss__karte {
  align-self: start; padding: 24px; border-radius: calc(var(--radius) + 4px);
  background: color-mix(in srgb, var(--weiss) 7%, transparent); border: 1px solid color-mix(in srgb, var(--weiss) 14%, transparent);
}
.fuss__karte-titel { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--weiss); font-size: 1.125rem; }
.fuss__karte p { color: var(--text-zweit); }
.fuss__nl-form { display: flex; gap: 8px; margin: 14px 0 12px; }
.fuss__nl-form input { flex: 1 1 auto; min-width: 0; min-height: 46px; border-color: transparent; }
.fuss__fehler { margin: 0 0 8px; color: var(--weiss); font-weight: 600; }
.fuss .klein { color: var(--text-zweit); }

.fuss__leiste { position: relative; z-index: 1; background: color-mix(in srgb, var(--marine) 78%, var(--anthrazit)); }
.fuss__leiste-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; font-size: 0.8125rem; }
.fuss__leiste p { margin: 0; color: var(--text-zweit); }
.fuss__recht { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fuss__recht a, .fuss__recht .fuss__textknopf { color: var(--text-zweit); text-decoration: none; font-size: inherit; }
.fuss__recht a:hover, .fuss__recht .fuss__textknopf:hover { color: var(--weiss); text-decoration: underline; }
.fuss__textknopf { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

@media (max-width: 1099px) {
  .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss__firma, .fuss__newsletter { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .fuss__raster { grid-template-columns: 1fr; padding-block: 40px 32px; }
  .fuss__nl-form { flex-direction: column; }
  .fuss__band-wege, .fuss__band-wege .knopf { width: 100%; }
}


/* ======================================================== Inhaltsseite */
.seite { padding-block: 24px 48px; }
.seite h1 { margin-top: 8px; }
.seite__einleitung { font-size: 1.0625rem; line-height: 1.588; color: var(--anthrazit); }
.seite__stammdaten { margin-block: 24px; }
.fliesstext { max-width: 70ch; }
.fliesstext h2 { margin-top: 1.6em; }
.fliesstext h3 { margin-top: 1.4em; }
.hinweis {
  padding: 10px 14px;
  border-left: 3px solid var(--marine);
  background: var(--grau-50);
}

.krumen ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text-zweit); }
.krumen li + li::before { content: "›"; margin-right: 6px; }
.krumen a { color: var(--text-zweit); }

.seite--fehler { max-width: 760px; }
.seite__suche { display: flex; gap: 12px; margin-block: 24px; }
.seite__wege { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }

/* ================================================================= Karte */
.kartenraster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.karte__bild { display: block; aspect-ratio: 4 / 3; background: var(--grau-50); overflow: hidden; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte__bild .marke-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.karte--archiv .karte__bild img { filter: grayscale(1); }
.karte__text { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 16px 16px; }
.karte__titel { margin: 0; font-size: 1rem; line-height: 1.375; font-weight: 500; }
.karte__titel a { color: var(--anthrazit); text-decoration: none; }
.karte__titel a:hover { color: var(--marine); text-decoration: underline; }
/* Ganze Karte klickbar, ohne zweiten Tabstopp. */
.karte__titel a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.karte__meta { margin: 0; font-size: 0.8125rem; color: var(--text-zweit); }
.karte__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.karte__preis { margin: 0; font-weight: 500; }
.karte__preis .klein { display: block; font-weight: 400; color: var(--text-zweit); }
.karte__anfrage { position: relative; z-index: 2; min-height: 40px; padding: 6px 14px; font-size: 0.8125rem; }
.karte__verkauft { margin: auto 0 0; padding-top: 8px; font-size: 0.8125rem; color: var(--text-zweit); }

/* =============================================================== Katalog */
.katalog__kopf { padding-block: 20px 24px; }
.katalog__titelzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-top: 8px; }
.katalog__titelzeile h1 { margin: 0; }
.katalog__unter { margin-left: 8px; font-size: 0.875rem; font-weight: 400; color: var(--text-zweit); letter-spacing: 0; }
.katalog__sortierung { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.katalog__sortierung select,
.filter__baujahr input {
  min-height: 44px;
  padding: 0 36px 0 16px;
  border: 1px solid var(--rahmen-stark);
  border-radius: 999px;
  background: var(--weiss);
}
.katalog__suche { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.katalog__suche input {
  flex: 1 1 320px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--rahmen-stark);
  border-radius: var(--radius);
  font-size: 1rem;
}
.katalog__suche .knopf { min-height: 52px; padding-inline: 28px; }
.katalog__hinweis { flex-basis: 100%; max-width: none; margin: 0; color: var(--text-zweit); }

.katalog__archivinfo .inhalt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; }
.katalog__archivinfo h2 { margin: 0 0 4px; }
.katalog__archivinfo p { margin: 0; }

.katalog__teilung {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rahmen);
}
.katalog__filterknopf { display: none; }
.katalog__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.pille--aktiv { border-color: var(--marine); color: var(--marine); min-height: 36px; }
.katalog__anzahl { margin: 0 0 12px; color: var(--text-zweit); }
.katalog__leer { padding: 32px; border: 1px dashed var(--rahmen-stark); border-radius: var(--radius); text-align: center; }
.katalog__leer p { margin-inline: auto; }

/* ================================================================ Filter */
.filter__kopf { display: flex; align-items: center; justify-content: space-between; }
.filter__kopf .label { color: var(--marine); }
.filter__zu { display: none; }
.filter__gruppe { margin: 0 0 24px; padding: 0; border: 0; }
.filter__gruppe h3, .filter__gruppe legend { margin: 0 0 8px; padding: 0; font-size: 0.9375rem; font-weight: 600; }
/* Kategorie-Baum: Gruppen mit Pfeil zum Aufklappen, Arten eingerückt (Wunsch 09.10.2026). */
.baum, .baum__arten { margin: 0; padding: 0; list-style: none; }
.baum a { display: flex; align-items: baseline; gap: 6px; flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 6px 8px;
  border-radius: var(--radius); color: var(--anthrazit); text-decoration: none; line-height: 1.35; }
.baum a:hover { background: var(--grau-50); color: var(--marine); }
.baum a .anzahl { margin-left: auto; padding-left: 8px; }
.baum__name { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.baum a[aria-current="page"] { background: color-mix(in srgb, var(--marine) 8%, var(--weiss)); color: var(--marine); font-weight: 600; }
.baum__wurzel { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--rahmen); }
.baum__wurzel a { padding-left: 34px; }
.baum__zeile { display: flex; align-items: flex-start; gap: 2px; }
.baum__pfeil, .baum__platz { flex: none; width: 32px; height: 36px; }
.baum__pfeil { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--radius);
  background: none; color: var(--grau-500); cursor: pointer; }
.baum__pfeil:hover { background: var(--grau-50); color: var(--marine); }
.baum__pfeil .icon { transition: transform var(--dauer); }
.baum__pfeil[aria-expanded="true"] .icon { transform: rotate(90deg); color: var(--marine); }
.baum__arten { margin: 0 0 4px 34px; padding-left: 8px; border-left: 2px solid var(--rahmen); font-size: 0.9375em; }
.baum__gruppe--aktiv > .baum__zeile > a { font-weight: 600; }
/* Ohne JavaScript bleiben alle Arten sichtbar; mit JavaScript sind nicht gewählte Gruppen zu. */
.js .baum__arten[data-zu] { display: none; }

/* Skeleton-Kacheln beim Nachladen (Asset-Kit 03). */
.karte--skelett { pointer-events: none; }
.karte--skelett .karte__bild { aspect-ratio: 4 / 3; }
.skelett--zeile { height: 14px; margin: 6px 0; border-radius: 4px; }
.skelett--kurz { width: 55%; }
.katalog--laedt .katalog__ergebnis { cursor: progress; }
.filter__wahl { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.filter__wahl input { width: 18px; height: 18px; accent-color: var(--marine); }
.filter__mehr summary { min-height: 36px; padding-block: 8px; color: var(--marine); cursor: pointer; }
.filter__baujahr { display: flex; gap: 10px; flex-wrap: wrap; }
.filter__baujahr label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; }
.filter__baujahr input { width: 110px; border-radius: var(--radius); padding: 0 12px; }
.filter__form { display: flex; flex-direction: column; }
.filter__form .knopf { margin-bottom: 10px; }
.js .filter__anwenden { display: none; }

/* ============================================================= Blättern */
.blaettern { margin-top: 32px; }
.blaettern ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.blaettern .pille { min-width: 44px; justify-content: center; padding: 0 12px; }
.blaettern [aria-current="page"] { border-color: var(--marine); background: var(--marine); color: var(--weiss); }
.blaettern__luecke { align-self: center; color: var(--text-zweit); }

@media (max-width: 899px) {
  .katalog__teilung { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .katalog__filterknopf { display: inline-flex; justify-self: start; }
  .js .filter {
    position: fixed; inset: 0; z-index: 70;
    overflow-y: auto; padding: 16px var(--rand) 96px; background: var(--weiss);
  }
  .js .filter:not(.filter--offen) { display: none; }
  .js .filter__zu { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; }
  .js .filter--offen .filter__anwenden { display: inline-flex; position: fixed; left: var(--rand); right: var(--rand); bottom: 16px; }
}

/* ========================================================== Detailseite */
.maschine { padding-top: 20px; }
.maschine__oben { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; margin-top: 16px; }
.galerie__haupt { position: relative; aspect-ratio: 4 / 3; background: var(--grau-50); border-radius: var(--radius); overflow: hidden; }
.galerie__haupt img { width: 100%; height: 100%; object-fit: cover; }
.galerie__haupt .marke-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.galerie__gross { position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 40px; }
.maschine--verkauft .galerie__haupt img { filter: grayscale(1); }
.galerie__daumen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.galerie__daumen-knopf { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; overflow: hidden; aspect-ratio: 4 / 3; }
.galerie__daumen-knopf img { width: 100%; height: 100%; object-fit: cover; }
.galerie__daumen-knopf[aria-current="true"] { border-color: var(--marine); }

.maschine__kern h1 { margin-bottom: 4px; }
.maschine__nr { color: var(--text-zweit); }
.maschine__pillen { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.maschine__pillen .pille { cursor: default; min-height: 36px; }
.maschine__pillen .pille:hover { border-color: var(--rahmen-stark); color: var(--anthrazit); }
.pille--gruen, .pille--gruen:hover { border-color: var(--gruen) !important; color: var(--gruen) !important; }

.preiskasten { padding: 24px; border: 1px solid var(--rahmen-stark); border-radius: var(--radius); margin-bottom: 16px; }
.preiskasten__preis { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.25; font-weight: 600; }
.preiskasten__preis .klein { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-zweit); }
.preiskasten__wege { display: flex; flex-wrap: wrap; gap: 10px; }
.preiskasten--verkauft { background: var(--grau-50); --text-zweit: var(--grau-flaeche); }
.maschine__dokumente { margin: 0; padding: 0; list-style: none; }
.maschine__dokumente a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }

.reiter { margin-top: 40px; }
.reiter__leiste { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--rahmen); margin-bottom: 8px; }
.reiter__leiste [role="tab"] { min-height: 48px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-zweit); font-size: 1rem; cursor: pointer; }
.reiter__leiste [role="tab"][aria-selected="true"] { color: var(--anthrazit); border-bottom-color: var(--marine); font-weight: 500; }
.reiter__inhalt { padding-block: 16px; }
.reiter--aktiv .reiter__titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.daten { width: 100%; border-collapse: collapse; columns: 2; }
.daten tr { border-bottom: 1px solid var(--rahmen); }
.daten th { padding: 10px 16px 10px 0; text-align: left; font-weight: 400; font-size: 0.8125rem; color: var(--text-zweit); }
.daten td { padding: 10px 0; text-align: right; }
@media (min-width: 900px) {
  .daten { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .daten tbody { display: contents; }
  .daten tr { display: flex; justify-content: space-between; }
}
.transport { display: grid; gap: 8px; margin: 0 0 12px; }
.transport div { display: flex; gap: 12px; }
.transport dt { color: var(--text-zweit); min-width: 140px; }
.transport dd { margin: 0; }

.anfrage { margin-top: 32px; padding-block: 32px; }
.anfrage .label { color: var(--marine); }
.anfrage__wege { display: flex; flex-wrap: wrap; gap: 10px; }
.aehnliche { margin-top: 40px; padding-bottom: 72px; }   /* Abstand zum Fuß (16.11.2026) */
.aehnliche .label { color: var(--marine); }

.detail-leiste { display: none; }
@media (max-width: 899px) {
  .maschine__oben { grid-template-columns: 1fr; gap: 20px; }
  .detail-leiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 10px; padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
    background: var(--weiss); border-top: 1px solid var(--rahmen); box-shadow: var(--schatten);
  }
  .detail-leiste .knopf:first-child { flex: 1; }
  .maschine { padding-bottom: 72px; }
}

.lupe { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; background: var(--anthrazit); }
.lupe::backdrop { background: color-mix(in srgb, var(--anthrazit) 85%, transparent); }
.lupe img { width: 100%; max-height: 94vh; object-fit: contain; }
.lupe > button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--weiss); color: var(--anthrazit); font-size: 1.5rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lupe__zu { top: 12px; right: 12px; }
.lupe__vor { left: 12px; top: 50%; transform: translateY(-50%); }
.lupe__nach { right: 12px; top: 50%; transform: translateY(-50%); }

/* ============================================================ Startseite */
.start__hero { padding-block: 48px 40px; border-bottom: 1px solid var(--rahmen); }
.start__ueberzeile { color: var(--marine); --text-zweit: var(--marine); margin: 0 0 12px; }
.start__titel { max-width: 26ch; margin-bottom: 24px; }
.start__suche { display: flex; flex-wrap: wrap; gap: 12px; max-width: 900px; }
.start__suche input {
  flex: 1 1 280px; min-width: 0; min-height: 56px; padding: 0 20px;
  border: 1px solid var(--rahmen-stark); border-radius: var(--radius); background: var(--weiss); font-size: 1rem;
}
.start__suche select {
  /* Lange API-Gruppennamen dürfen das Feld nicht verbreitern (sonst Überlauf mobil). */
  flex: 0 1 240px; min-width: 0; max-width: 240px; text-overflow: ellipsis;
  min-height: 56px; padding: 0 40px 0 16px;
  border: 1px solid var(--rahmen-stark); border-radius: var(--radius); background: var(--weiss);
}
.start__suche .knopf { flex: 0 0 auto; min-height: 56px; padding-inline: 32px; }
@media (max-width: 599px) {
  .start__suche select { display: none; }   /* mobil nur das Suchfeld (Wireframe 1h) */
  .start__suche input { flex-basis: 100%; }
  .start__suche .knopf { flex: 1 1 100%; }
}
.start__schnell { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.start__schnell .pille { min-height: 40px; }

.start__abschnitt { padding-block: 48px 8px; }
.start__kopfzeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.start__kopfzeile h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.start__kopfzeile > a { white-space: nowrap; }
.start__unter { margin-left: 6px; font-size: 0.875rem; font-weight: 400; color: var(--text-zweit); }
.start__mitte { margin: 28px 0 0; max-width: none; text-align: center; }
.start__label { color: var(--marine); --text-zweit: var(--marine); }
@media (min-width: 1100px) { .kartenraster--vier { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


.start__kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.start__kachel { align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px; color: var(--marine); text-decoration: none; text-align: center; background: var(--grau-50); --text-zweit: var(--grau-flaeche); }
.start__kachelname { color: var(--anthrazit); font-weight: 500; }
.start__kachel:hover .start__kachelname { color: var(--marine); }

.start__wege { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.start__weg { padding: 28px; border: 1px solid var(--rahmen-stark); border-radius: var(--radius); }
.start__weg h2 { margin-bottom: 6px; }
.start__weg p { color: var(--text-zweit); }

.start__ueber { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; padding-bottom: 16px; }
.start__ueberbild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--grau-50); color: var(--grau-500); border-radius: var(--radius); overflow: hidden; }
.start__ueberbild img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .start__hero { padding-block: 28px; }
  .start__wege, .start__ueber { grid-template-columns: 1fr; }
  .start__zahlen li + li { border-left: 0; }
}

/* ======================================================= Service, Über uns */
.leistungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.leistung { padding: 24px; border: 1px solid var(--rahmen-stark); border-radius: var(--radius); }
.leistung__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: var(--radius); background: var(--grau-50); color: var(--marine); }
.leistung h2 { margin-bottom: 6px; font-size: 1.125rem; line-height: 1.333; }
.leistung p { margin: 0; color: var(--text-zweit); }

.bildband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; padding-block: 40px; border-top: 1px solid var(--rahmen); }
.bildband__bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--grau-50); color: var(--grau-500); border-radius: var(--radius); overflow: hidden; }
.bildband__bild img { width: 100%; height: 100%; object-fit: cover; }

.ueber__kopfbild { display: flex; align-items: center; justify-content: center; height: clamp(180px, 28vw, 380px); background: var(--grau-50); color: var(--grau-500); overflow: hidden; }
.ueber__kopfbild img { width: 100%; height: 100%; object-fit: cover; }
.ueber__abschnitt { padding-block: 32px; border-top: 1px solid var(--rahmen); }

.zeitleiste { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.zeitleiste::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: var(--marine); }
.zeitleiste li { position: relative; padding-top: 32px; }
.zeitleiste li::before { content: ""; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--marine); }
.zeitleiste__jahr { display: block; font-weight: 600; font-size: 1.0625rem; }
.zeitleiste__text { color: var(--text-zweit); font-size: 0.875rem; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.team__person img, .team__initialen { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; }
.team__initialen { display: flex; align-items: center; justify-content: center; background: var(--grau-50); color: var(--marine); font-size: 2.5rem; font-weight: 600; }
.team__name { margin: 10px 0 0; font-weight: 500; }
.team__rolle { margin: 0; color: var(--text-zweit); font-size: 0.875rem; }

.standort { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.standort__karte { display: flex; align-items: center; justify-content: center; min-height: 280px; background: var(--grau-50); color: var(--grau-500); border-radius: var(--radius); }

@media (max-width: 899px) {
  .bildband, .standort { grid-template-columns: 1fr; }
  .zeitleiste { grid-template-columns: 1fr; gap: 20px; padding-left: 36px; }
  .zeitleiste::before { left: 9px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .zeitleiste li { padding-top: 0; }
  .zeitleiste li::before { left: -36px; }
}

/* ============================================================= Testmodus */
.testmodus { padding: 8px var(--rand); background: var(--weiss); color: var(--rot); border-bottom: 2px solid var(--rot); font-weight: 500; text-align: center; }

/* ============================================================ Formulare */
.formular { max-width: 760px; }
.formular__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.formular__feld { display: flex; flex-direction: column; gap: 6px; }
.formular__feld--textarea { grid-column: 1 / -1; }
.formular__feld label, .formular__fotos > label { font-weight: 500; font-size: 0.875rem; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"],
.formular input[type="number"], .formular select, .formular textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--rahmen-stark); border-radius: var(--radius); background: var(--weiss); font-size: 1rem;
}
.formular textarea { min-height: 140px; resize: vertical; }
.formular [aria-invalid="true"] { border-color: var(--rot); border-width: 2px; }
.pflicht { color: var(--rot); }
.formular__fehler { margin: 2px 0 0; color: var(--rot); font-size: 0.8125rem; font-weight: 500; }
.formular__zusammenfassung { margin-bottom: 20px; padding: 14px 18px; border: 2px solid var(--rot); border-radius: var(--radius); background: var(--weiss); }
.formular__zusammenfassung p { margin: 0 0 6px; }
.formular__zusammenfassung ul { margin: 0; padding-left: 20px; }
.formular__zusammenfassung a { color: var(--rot); }
.formular__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular__zustimmung { margin-top: 18px; display: grid; gap: 10px; }
.formular__wahl { display: flex; align-items: flex-start; gap: 10px; }
.formular__wahl input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marine); }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 0; max-width: none; }
.formular__fuss .klein { color: var(--text-zweit); }
.formular__fotos { margin-top: 18px; padding: 20px; border: 2px dashed var(--rahmen-stark); border-radius: var(--radius); background: var(--weiss); }
.formular__fotos--ziel { border-color: var(--marine); background: var(--marine-hell); }
.formular__fotos--fehler { border-color: var(--rot); }
.formular__fotos input[type="file"] { display: block; margin-top: 8px; min-height: 44px; }
.formular__ablage { margin: 8px 0 0; color: var(--text-zweit); }
.formular__vorschau { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.formular__vorschau li { display: flex; flex-direction: column; gap: 4px; width: 110px; font-size: 0.75rem; overflow-wrap: anywhere; }
.formular__vorschau img { width: 110px; height: 82px; object-fit: cover; border-radius: 4px; }
.formular-erfolg { padding: 20px 24px; border: 2px solid var(--gruen); border-radius: var(--radius); background: var(--weiss); }
.formular-erfolg__titel { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--gruen); font-weight: 600; font-size: 1.0625rem; }
.formular-erfolg p:last-child { margin-bottom: 0; }
.anfrage__raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.anfrage__direkt { padding-top: 34px; }
@media (max-width: 899px) {
  .formular__raster, .anfrage__raster { grid-template-columns: 1fr; }
  .anfrage__direkt { padding-top: 0; }
}

/* ======================================================= Kontakt, Ankauf */
.kontakt { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; margin-top: 24px; }
.kontakt__wege { display: grid; gap: 16px; margin: 0 0 20px; }
.kontakt__wege dt { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--marine); }
.kontakt__wege dd { margin: 4px 0 0 28px; }
.kontakt__karte { min-height: 220px; }

.ankauf__reiter { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rahmen); }
.ankauf__reiter [role="tab"] { min-height: 56px; border: 0; border-bottom: 3px solid transparent; background: var(--weiss); color: var(--text-zweit); font-size: 1.0625rem; cursor: pointer; }
.ankauf__reiter [role="tab"][aria-selected="true"] { color: var(--anthrazit); border-bottom-color: var(--marine); font-weight: 500; }
.ankauf__kopf { padding-block: 28px; }
.ankauf__kopf h1, .ankauf__titel { margin-bottom: 4px; font-size: 1.75rem; line-height: 1.214; }
.ankauf__kopf p { margin: 0; color: var(--text-zweit); }
.ankauf--reiter .ankauf__bereich + .ankauf__bereich { border-top: 0; }
.ankauf__bereich + .ankauf__bereich { border-top: 1px solid var(--rahmen); }

.ablauf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 16px 0 36px; padding: 0; list-style: none; text-align: center; }
.ablauf li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-zweit); }
.ablauf__nr { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--marine); border-radius: 50%; color: var(--marine); font-size: 1.25rem; font-weight: 600; }

.faq { border-top: 1px solid var(--rahmen); }
.faq__eintrag { border-bottom: 1px solid var(--rahmen); }
.faq__eintrag summary { min-height: 52px; padding: 14px 0; font-weight: 500; cursor: pointer; }
.faq__eintrag p { margin: 0 0 16px; color: var(--text-zweit); }

@media (max-width: 899px) {
  .kontakt { grid-template-columns: 1fr; gap: 28px; }
  .ablauf { grid-template-columns: 1fr; text-align: left; }
  .ablauf li { flex-direction: row; }
}

.galerie__mehr { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rahmen-stark); border-radius: 4px; background: var(--grau-50); color: var(--marine); font-size: 1.125rem; font-weight: 600; cursor: pointer; }
.galerie__mehr:hover { border-color: var(--marine); }

.anfrage__person { margin-bottom: 14px; }
.anfrage__person .label { color: var(--marine); --text-zweit: var(--marine); }

.standort__karte--osm { display: block; padding: 0; background: none; min-height: 0; }
.standort__karte--osm .consentry-embed { border-radius: var(--radius); }

/* Große Schrift (Bedienhilfen): lange Wörter im Fuß brechen statt überzustehen. */
.fuss__raster { overflow-wrap: break-word; hyphens: auto; }

/* ------------------------------------------------ Maschinenvideos (YouTube) */
.karte__bild .marke-badge--video, .galerie__haupt .marke-badge--video { left: auto; right: 12px; }
.galerie__video { position: absolute; inset: 0; z-index: 1; }
.galerie__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.galerie__haupt--video .galerie__gross { z-index: 3; }
.consentry-embed--video {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: auto !important; min-height: 100%; padding: 16px;
  background: var(--grau-50); color: var(--marine);
}
.consentry-embed--video .consentry-embed__play { flex: none; width: 48px; height: 48px; }
.consentry-embed--video .consentry-embed__inner { background: var(--weiss); border-radius: var(--radius); padding: 12px 16px; max-width: 100%; }
/* Noch nicht geladen: der Platzhalter darf höher werden als 4:3, nichts darf ihn verdecken. */
.galerie__haupt:has(.galerie__video:not([hidden]) .consentry-embed) { aspect-ratio: auto; min-height: 0; overflow: visible; }
.galerie__haupt:has(.galerie__video:not([hidden]) .consentry-embed) .galerie__video { position: relative; inset: auto; aspect-ratio: 4 / 3; height: auto; }
.galerie__haupt:has(.galerie__video:not([hidden]) .consentry-embed) > .galerie__gross { display: none; }
.galerie__haupt:has(.galerie__video:not([hidden]) .consentry-embed) .consentry-embed--video { padding-top: 44px; }
.lupe__video:has(.consentry-embed) { aspect-ratio: auto; }
.galerie__daumen-knopf--video { position: relative; background: var(--grau-50); }
.galerie__daumen-knopf--video img { object-fit: contain; padding: 14%; }
.galerie__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--marine); }
.lupe__video { width: 100%; aspect-ratio: 16 / 9; max-height: 94vh; }
.lupe__video .galerie__video { position: static; width: 100%; height: 100%; }
/* Geladenes Video: eigene Überlagerungen weg, sonst verdecken sie die Player-Bedienung. */
.galerie__haupt:has(.galerie__video:not([hidden]) iframe) > .marke-badge,
.galerie__haupt:has(.galerie__video:not([hidden]) iframe) > .galerie__gross { display: none; }

/* Symbole in Verweisen laufen mit dem Text (global sind svg Blockelemente). */
a > .icon, .pille > .icon { display: inline-block; vertical-align: -0.15em; }

/* ================================================== Startseite, Gestaltung A (bildstark, Freigabe 09.10.2026) */
.start__kacheltext { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---- Variante A: bildstark ------------------------------------------------ */
.start__hero--a {
  position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); border-bottom: 0;
  background: var(--anthrazit) var(--hero-bild) center / cover no-repeat; color: var(--weiss);
}
.start__hero--a::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 40, .88) 0%, rgba(10, 18, 40, .66) 45%, rgba(10, 18, 40, .2) 100%);
}
.start__hero--a .inhalt { position: relative; }
.start__hero--a .start__ueberzeile { color: color-mix(in srgb, var(--weiss) 78%, var(--marine)); --text-zweit: color-mix(in srgb, var(--weiss) 78%, var(--marine)); }
.start__hero--a .start__titel { color: var(--weiss); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.start__hero--a .start__suche { padding: 8px; background: var(--weiss); border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
.start__hero--a .start__suche input, .start__hero--a .start__suche select { border-color: transparent; background: var(--grau-50); color: var(--anthrazit); }
.start__hero--a .start__schnell .pille { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: var(--weiss); backdrop-filter: blur(4px); }
.start__hero--a .start__schnell .pille:hover { background: var(--weiss); color: var(--marine); }

.start__kacheln--a { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.start__kachel--bild { position: relative; overflow: hidden; padding: 0; background: var(--anthrazit); }
/* Rasterelemente nie breiter als ihre Spalte: sonst drückt das Foto (width=600) die Kachel über den Abstand (16.11.2026). */
.start__kacheln > li { min-width: 0; }
.start__kacheln .start__kachel { width: 100%; }
.start__kachelbild { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.start__kachel--bild:hover .start__kachelbild { transform: scale(1.05); }
.start__kacheln--a .start__kachel--bild { min-height: 220px; aspect-ratio: 4 / 3; }
.start__kacheln--a .start__kachel--bild::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 40, .85) 0%, rgba(10, 18, 40, .15) 60%);
}
.start__kacheln--a .start__kachel--bild .start__kacheltext {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; align-items: flex-start; padding: 18px 20px; text-align: left;
}
.start__kacheln--a .start__kachel--bild .start__kachelname { color: var(--weiss); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.start__kacheln--a .start__kachel--bild .anzahl { color: color-mix(in srgb, var(--weiss) 78%, var(--marine)); }
.start__kacheln--a .start__kachel--bild:hover .start__kachelname { color: var(--weiss); text-decoration: underline; }

.start__wege--a .start__weg--gesuch { background: var(--marine); border-color: var(--marine); color: var(--weiss); --text-zweit: color-mix(in srgb, var(--weiss) 78%, var(--marine)); }
.start__wege--a .start__weg--gesuch h2 { color: var(--weiss); }
.start__wege--a .start__weg--gesuch .knopf { background: var(--weiss); color: var(--marine); border-color: var(--weiss); }
.start__wege--a .start__weg--ankauf {
  position: relative; overflow: hidden; padding-right: 44%; background: var(--grau-50); border-color: transparent;
}
.start__wege--a .start__weg--ankauf::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: var(--weg-bild) center / cover no-repeat;
}

@media (max-width: 899px) {
  .start__kacheln--a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start__wege--a .start__weg--ankauf { padding-right: 28px; padding-top: 180px; }
  .start__wege--a .start__weg--ankauf::after { left: 0; width: auto; height: 156px; bottom: auto; }
}
@media (max-width: 599px) {
  .start__kacheln--a .start__kachel--bild { min-height: 160px; }
}
/* Ohne echtes Foto bleibt der Über-uns-Teaser kompakt (Mappe: keine Stockbilder für Über uns). */
.start__ueber:has(.start__ueberbild > svg) { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.start__ueberbild:has(> svg) { aspect-ratio: 16 / 9; max-height: 200px; }
.fuss .knopf--hell { color: var(--marine); }
.fuss .knopf--hell:hover { color: var(--marine); }
.fuss .knopf { white-space: nowrap; hyphens: manual; overflow-wrap: normal; }
.fuss__nl-form { flex-wrap: wrap; }
.fuss__nl-form input { flex: 1 1 160px; }
.fuss__nl-form .knopf { flex: 0 0 auto; }

/* Kennzahlen-Band: Verlauf, Zahnrad-Wasserzeichen, Symbole, hochzählende Zahlen (Wunsch 09.10.2026). */
.start__zahlen {
  position: relative; overflow: hidden; margin-top: 56px; color: var(--weiss);
  background: linear-gradient(115deg, color-mix(in srgb, var(--marine) 72%, var(--anthrazit)) 0%, var(--marine) 55%, color-mix(in srgb, var(--marine) 85%, var(--weiss)) 100%);
}
.start__zahlen ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 auto; padding-block: 44px; list-style: none; }
.start__zahl { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 16px; text-align: center; }
.start__zahl + .start__zahl { border-left: 1px solid color-mix(in srgb, var(--weiss) 18%, transparent); }
.start__zahlsymbol { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 6px;
  border-radius: 50%; background: color-mix(in srgb, var(--weiss) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weiss) 22%, transparent); }
.start__zahlwert { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.start__zahlwert strong { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.start__einheit { margin-left: 2px; font-size: 1.5rem; font-weight: 600; }
.start__zahltext { font-size: 0.875rem; color: color-mix(in srgb, var(--weiss) 80%, var(--marine)); }
@media (max-width: 899px) {
  .start__zahlen ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 32px; }
  .start__zahl + .start__zahl { border-left: 0; }
}

/* Ankauf (Wireframe 1d, Rückmeldung 09.10.2026): Reiter im grauen Seitenkopf auf Inhaltsbreite,
   Formular über die volle Breite in zwei gleichen Spalten, Abschnitte mit feinen Linien. */
.ankauf__reiter {
  background: var(--grau-50);
  padding-inline: max(var(--rand), calc((100% - var(--breite)) / 2 + var(--rand)));
  border-bottom: 0;
}
.ankauf__reiter [role="tab"] { background: transparent; border-bottom: 3px solid var(--rahmen); }
.ankauf__reiter [role="tab"]:hover { color: var(--marine); }
.ankauf__kopf { border-bottom: 1px solid var(--rahmen); }
.ankauf .formular { max-width: none; }
.ankauf .formular__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ankauf .ablauf { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rahmen); }
.ankauf__bereich + .faq, .ankauf .faq { border-top: 1px solid var(--rahmen); }
@media (max-width: 599px) { .ankauf .formular__raster { grid-template-columns: 1fr; } }

/* Kennzahlen als Kacheln mit feinem Rasterhintergrund statt Logo-Wasserzeichen (Rückmeldung 09.10.2026). */
.start__zahlen {
  background-image:
    linear-gradient(color-mix(in srgb, var(--weiss) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--weiss) 6%, transparent) 1px, transparent 1px),
    linear-gradient(115deg, color-mix(in srgb, var(--marine) 72%, var(--anthrazit)) 0%, var(--marine) 60%, color-mix(in srgb, var(--marine) 88%, var(--weiss)) 100%);
  background-size: 32px 32px, 32px 32px, auto;
}
.start__zahlen ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 48px; }
.start__zahl, .start__zahl + .start__zahl {
  align-items: flex-start; gap: 4px; padding: 22px 24px; text-align: left; border-left: 0;
  border-radius: calc(var(--radius) + 4px);
  background: color-mix(in srgb, var(--weiss) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weiss) 16%, transparent);
  transition: background-color var(--dauer), transform var(--dauer);
}
.start__zahl:hover { background: color-mix(in srgb, var(--weiss) 12%, transparent); transform: translateY(-2px); }
.start__zahlsymbol { width: 44px; height: 44px; margin-bottom: 14px; border-radius: var(--radius); }
.start__zahltext { margin-top: 2px; }
@media (max-width: 899px) { .start__zahlen ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 459px) { .start__zahl, .start__zahl + .start__zahl { padding: 16px; } }

/* Kennzahlen-Band mit echter AS-Halle im Hintergrund (Rückmeldung 16.11.2026: „zu simpel“):
   Foto stark abgedunkelt, Lichtschein links oben, Raster nur zur Mitte hin sichtbar. */
.start__zahlen {
  isolation: isolate;
  background:
    radial-gradient(60% 120% at 12% 0%, color-mix(in srgb, color-mix(in srgb, var(--marine) 55%, var(--weiss)) 26%, transparent) 0%, transparent 60%),
    radial-gradient(50% 90% at 92% 100%, color-mix(in srgb, color-mix(in srgb, var(--marine) 55%, var(--weiss)) 18%, transparent) 0%, transparent 65%),
    linear-gradient(115deg, color-mix(in srgb, color-mix(in srgb, var(--marine) 80%, var(--anthrazit)) 92%, transparent) 0%, color-mix(in srgb, color-mix(in srgb, var(--marine) 75%, var(--anthrazit)) 64%, transparent) 50%, color-mix(in srgb, color-mix(in srgb, var(--marine) 80%, var(--anthrazit)) 90%, transparent) 100%),
    url("bilder/kennzahlen-halle.webp") center 40% / cover no-repeat,
    var(--marine);
}
.start__zahlen::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--weiss) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--weiss) 7%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 0%, transparent 85%);
          mask-image: radial-gradient(70% 80% at 50% 50%, #000 0%, transparent 85%);
}
.start__zahlen::after {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--weiss) 45%, transparent), transparent);
}
.start__zahl, .start__zahl + .start__zahl {
  background: color-mix(in srgb, var(--marine) 45%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
          backdrop-filter: blur(6px) saturate(130%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--weiss) 18%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--weiss) 14%, transparent), 0 12px 32px rgba(0, 0, 0, .22);
}
.start__zahl:hover { background: color-mix(in srgb, var(--marine) 30%, transparent); }

/* Suchvorschläge (Wunsch 09.10.2026): Liste unter dem Suchfeld, Begriff markiert. */
.hat-vorschlaege { position: relative; }
.vorschlaege {
  position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 560px); overflow-y: auto;
  padding: 8px; background: var(--weiss); color: var(--anthrazit); text-align: left;
  border: 1px solid var(--rahmen); border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 48px rgba(17, 24, 39, .18);
  animation: aufklappen 160ms ease-out;
}
.vorschlaege__kopf { margin: 8px 10px 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--marine); }
.vorschlaege__leer { margin: 10px; color: var(--grau-500); font-size: 0.875rem; }
.vorschlag { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius); color: var(--anthrazit); text-decoration: none; line-height: 1.35; }
.vorschlag:hover, .vorschlag[aria-selected="true"] { background: color-mix(in srgb, var(--marine) 7%, var(--weiss)); }
.vorschlag__bild { flex: none; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--grau-50); }
.vorschlag__bild--platz { object-fit: contain; padding: 4px; }
.vorschlag__text { display: flex; flex-direction: column; min-width: 0; }
.vorschlag__name { font-weight: 600; overflow-wrap: anywhere; }
.vorschlag__meta, .vorschlag__titel { font-size: 0.8125rem; color: var(--grau-500); overflow-wrap: anywhere; }
.vorschlag--zeile { justify-content: flex-start; }
.vorschlag--zeile .vorschlag__name { font-weight: 500; }
.vorschlag--zeile .anzahl { margin-left: auto; }
.vorschlag--alle { justify-content: space-between; margin-top: 6px; border-top: 1px solid var(--rahmen); border-radius: 0 0 var(--radius) var(--radius); color: var(--marine); font-weight: 600; }
.vorschlaege mark { padding: 0 1px; border-radius: 2px; background: color-mix(in srgb, var(--marine) 16%, var(--weiss)); color: var(--marine); font-weight: inherit; }
.start__hero .vorschlaege { color: var(--anthrazit); }

/* Fotokopf der Unterseiten (Wunsch 09.10.2026): Bild mit dunklem Verlauf, Text in Weiß. */
.seitenkopf--bild {
  position: relative; color: var(--weiss); padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px);
  background: var(--anthrazit) var(--kopf-bild) var(--kopf-fokus, center) / cover no-repeat;   /* Fokus aus dem Panel */
}
.seitenkopf--bild::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 40, .9) 0%, rgba(10, 18, 40, .7) 45%, rgba(10, 18, 40, .25) 100%);
}
.seitenkopf--bild .inhalt { position: relative; }
.seitenkopf--bild h1 { margin: 8px 0 10px; color: var(--weiss); font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.15; }
.seitenkopf__text { max-width: 60ch; margin: 0; color: color-mix(in srgb, var(--weiss) 85%, var(--marine)); font-size: 1.0625rem; }
.seitenkopf--bild .krumen, .seitenkopf--bild .krumen a { color: color-mix(in srgb, var(--weiss) 80%, var(--marine)); }
.seitenkopf--bild .krumen a:hover { color: var(--weiss); }
.seitenkopf--bild + .seite { padding-top: 40px; }

/* Ankauf: Foto läuft rechts weich in den grauen Kopf aus – die Reiter bleiben unberührt. */
.ankauf--bild .ankauf__kopf { position: relative; overflow: hidden; min-height: 200px; display: flex; align-items: center; }
.ankauf--bild .ankauf__kopf::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: var(--kopf-bild) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.ankauf--bild .ankauf__kopf .inhalt { position: relative; z-index: 1; width: 100%; }
.ankauf--bild .ankauf__kopf .inhalt > * { max-width: 56%; }
@media (max-width: 699px) {
  .ankauf--bild .ankauf__kopf::after { width: 100%; opacity: .18; }
  .ankauf--bild .ankauf__kopf .inhalt > * { max-width: none; }
}

/* Ankauf / Gesuch: deutlicher Umschalter unter dem Einleitungstext (Rückmeldung 12.10.2026). */
.ankauf__wechsel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin-top: 24px; }
.ankauf__wechsel a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: calc(var(--radius) + 2px);
  background: var(--weiss); border: 2px solid var(--rahmen); color: var(--anthrazit); text-decoration: none;
  transition: border-color var(--dauer), box-shadow var(--dauer), transform var(--dauer);
}
.ankauf__wechsel a:hover { border-color: var(--marine); transform: translateY(-1px); box-shadow: var(--schatten); }
.ankauf__wechsel a .icon { flex: none; color: var(--marine); }
.ankauf__wechsel span { display: flex; flex-direction: column; line-height: 1.3; }
.ankauf__wechsel small { color: var(--grau-500); font-size: 0.8125rem; }
.ankauf__wechsel a[aria-current="page"] { background: var(--marine); border-color: var(--marine); color: var(--weiss); }
.ankauf__wechsel a[aria-current="page"] .icon, .ankauf__wechsel a[aria-current="page"] small { color: color-mix(in srgb, var(--weiss) 80%, var(--marine)); }
@media (max-width: 499px) { .ankauf__wechsel { grid-template-columns: 1fr; } }

/* Kategorietexte (Panel-Seite „Kategorietexte“): kurze Einleitung über, ausführlicher Text unter den Treffern.
   Dazu die Textblöcke der Inhaltsseiten (Service, Kontakt, Ankauf-Ablauf). Fließtext höchstens ~70 Zeichen breit. */
.katalog__einleitung { max-width: 70ch; margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.588; color: var(--anthrazit); }
.katalogtext { max-width: 70ch; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rahmen); }
.katalogtext h2 { margin: 0 0 12px; color: var(--marine); }
.katalogtext .fliesstext p, .katalogtext .fliesstext li { color: var(--anthrazit); }
.katalogtext .fliesstext > :last-child { margin-bottom: 0; }
.service__text { margin-top: 48px; }
.kontakt__text { max-width: 70ch; margin-top: 16px; }
.kontakt__text p { color: var(--anthrazit); }
.ablauf__titel { font-weight: 500; color: var(--anthrazit); }
.ablauf__text { max-width: 32ch; font-size: 0.9375rem; line-height: 1.5; color: var(--text-zweit); }
@media (max-width: 899px) {
  .ablauf li:has(.ablauf__text) { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .ablauf li:has(.ablauf__text) .ablauf__nr { grid-row: span 2; }
  .ablauf__text { max-width: none; }
}

/* Echtes Foto im Über-uns-Teaser der Startseite: Querformat statt 4:3. */
.start__ueberbild:has(> img) { aspect-ratio: 16 / 9; }

/* Logo als Wasserzeichen auf dem echten Foto (Wunsch 12.10.2026): unten rechts, über einem leichten Verlauf. */
.start__ueberbild:has(> img) { position: relative; }
.start__ueberbild:has(> img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top left, color-mix(in srgb, var(--anthrazit) 55%, transparent), transparent 45%);
}
.start__ueberbild .start__wasserzeichen {
  position: absolute; right: 4%; bottom: 5%; z-index: 1; width: 38%; height: auto; object-fit: contain;
  opacity: 0.85; pointer-events: none; filter: drop-shadow(0 1px 3px color-mix(in srgb, var(--anthrazit) 50%, transparent));
}

/* Galerie der Maschinenseite: Skeleton mit Schimmer, bis Haupt- und Minibilder geladen sind (Wunsch 12.10.2026).
   Das Bild blendet danach weich ein (rahmen.js setzt .da); ohne JavaScript bleibt alles wie gehabt. */
.js .galerie__haupt:has(> img[data-galerie-haupt]:not(.da):not([hidden])),
.js .galerie__daumen-knopf:has(> img[data-einblenden]:not(.da)) {
  background: linear-gradient(90deg, var(--grau-50) 0%, var(--weiss) 50%, var(--grau-50) 100%);
  background-size: 200% 100%;
  animation: schimmer 1.4s linear infinite;
}
.galerie__daumen-knopf { background: var(--grau-50); }
@media (prefers-reduced-motion: reduce) {
  .js .galerie__haupt:has(> img[data-galerie-haupt]:not(.da)), .js .galerie__daumen-knopf:has(> img[data-einblenden]:not(.da)) { animation: none; }
}

/* Galerie: „+N“ klappt die übrigen Minibilder auf (Wunsch 12.10.2026). Ohne JavaScript sind alle sichtbar. */
.js .galerie__daumen:not(.galerie__daumen--offen) > [data-galerie-extra] { display: none; }
html:not(.js) .galerie__mehr-platz { display: none; }
.galerie__daumen--offen > [data-galerie-extra] { animation: daumen-auf 260ms ease both; }
@keyframes daumen-auf { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Lupe: Bild oben, darunter Zähler und Miniaturleiste. */
.lupe[open] { display: flex; flex-direction: column; overflow: hidden; }
.lupe > img, .lupe > .lupe__video { flex: 1 1 auto; min-height: 0; max-height: calc(94vh - 112px); }
.lupe__leiste { display: flex; align-items: center; gap: 14px; padding: 10px 14px 12px; background: var(--anthrazit); color: var(--weiss); }
.lupe__zaehler { flex: none; margin: 0; min-width: 4.5em; font-variant-numeric: tabular-nums; font-size: 0.875rem; opacity: 0.85; }
.lupe__daumen { display: flex; gap: 8px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.lupe__daumen-knopf { display: block; flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 4px; background: color-mix(in srgb, var(--weiss) 12%, var(--anthrazit)); cursor: pointer; overflow: hidden; opacity: 0.6; transition: opacity var(--dauer), border-color var(--dauer); }
.lupe__daumen-knopf:hover { opacity: 1; }
.lupe__daumen-knopf[aria-current="true"] { opacity: 1; border-color: var(--weiss); }
.lupe .lupe__daumen-knopf img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.lupe__daumen-knopf--video img { object-fit: contain; padding: 8px; }
.lupe > .lupe__vor, .lupe > .lupe__nach { top: calc(50% - 56px); }
@media (max-width: 599px) { .lupe__daumen-knopf { width: 64px; } .lupe__zaehler { min-width: 3.5em; } }
