/* Die Schriften laedt der Seitenkopf als eigenes <link> – siehe Seite.php. */

/* ===========================================================================
   HKH – Hopert & Klinzmann Holzbearbeitungsmaschinen
   Gestaltung nach der Konzeptmappe, Board 1 (Tokens) und Board 11 (Zustände).

   Zwei Regeln aus Board 1 gelten überall und ohne Ausnahme:
     „Radius durchgehend 0. Keine Schatten in der Fläche –
      Gliederung entsteht über Linie und Ton."
   =========================================================================== */

:root {
  /* Heller Modus – „Verkaufen" */
  --rot:          #dd3333;   /* Flächen, Knöpfe, Schrift ab 19 px */
  --rot-schrift:  #c02a2a;   /* kleine rote Schrift, erreicht 4,5:1 */
  --anthrazit:    #414141;
  --sand:         #ede8dd;
  --flaeche:      #f2f2f0;
  --weiss:        #ffffff;

  /* Dunkler Modus – „Ankaufen" */
  --dunkel:       #1c1b19;
  --linie-dunkel: #3a3833;
  --text-dunkel:  #e9e5da;
  --akzent-hell:  #f05a4a;

  /* Status */
  --gruen:        #2b772f;   /* verfügbar, Neumaschine */
  --verkauft:     #6b6861;   /* zugleich Farbe kleiner grauer Beschriftungen */

  /* Linien und Hilfstöne */
  --linie:        #e5e2da;   /* Tabellen- und Kartenlinie */
  --kante:        #c9c6bd;   /* Eingabefeldkante */
  --linie-sand:   #d6d1c4;
  --platzhalter:  #8a867c;
  --stumm:        #8d887c;
  --grau-hell:    #a8a49b;

  /* Diese beiden wurden an neun Stellen benutzt, aber nie definiert. Eine
     undefinierte Variable macht die ganze Deklaration ungültig: color fiel
     auf die geerbte Farbe zurück, font-family auf die Grundschrift – und die
     Kurzschreibweise `font` im Sprachumschalter fiel komplett aus, was die
     Kopfzeile über die Fensterbreite hinaus wachsen ließ. Werte wie die
     bereits vorhandenen Entsprechungen. */
  --grau-text:    #6b6861;
  /* Zahlen und technische Angaben. Hiess frueher --mono und lag auf IBM Plex
     Mono; die Schreibmaschinenschrift ist am 29.11.2026 aus dem Auftritt
     genommen worden. Geblieben ist der eigentliche Zweck: tabular-nums,
     damit Preise und Masse untereinander buendig stehen. */
  --zahlen:       'Archivo Narrow', Montserrat, Arial, sans-serif;

  /* Raster */
  --satz: 1376px;            /* nutzbare Breite laut den Boards */
  --rand: 40px;

  /* Zeiten (Board 11) */
  /* Zeiten nach Board 11. Sie stehen vollständig hier, damit nirgends
     eine Dauer frei erfunden wird. */
  --t-zustand: 120ms;   /* Zustandswechsel          */
  --t-farbe:   140ms;   /* Farbe und Fläche         */
  --t-karte:   160ms;   /* Karte, Bildwechsel       */
  --t-filter:  180ms;   /* Filtermarke setzt sich   */
  --t-klapp:   200ms;   /* Aufklapper, Menü         */
  --t-ebene:   240ms;   /* Ebene mobil fährt ein    */
  --t-band:    550ms;   /* Lichtband über dem Knopf */
}

/* --------------------------------------------------------------- Grundlage */

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }

/* Verstecktes bleibt versteckt. Ohne diese Regel überstimmt jede eigene
   display-Angabe das hidden-Merkmal, und ausgeblendete Elemente hinterlassen
   leere Rahmen – etwa die Vorschaubilder fehlender Fotos. */
[hidden] { display: none !important }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--anthrazit);
  font: 400 16px/1.65 Montserrat, Arial, sans-serif;
}

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

/* Archivo Narrow trägt lange Maschinenbezeichnungen ohne Umbruch. */
.hn, h1, h2, h3, h4 {
  font-family: 'Archivo Narrow', Montserrat, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
}
h1 { font-size: 44px; line-height: 1.05; margin: 0 0 18px }
h2 { font-size: 38px; line-height: 1.1;  margin: 0 0 14px }
h3 { font-size: 22px; line-height: 1.2;  margin: 0 0 10px }
h4 { font-size: 19px; line-height: 1.2;  margin: 0 0 8px }

/* Nur Zahlen: Preise, Maße, Maschinen-Nr. */
.mo {
  font-family: var(--zahlen);
  font-variant-numeric: tabular-nums;
}

a { color: inherit }
p { margin: 0 0 14px }

/* Textverweis: die Unterlinie liegt immer da, nur die Farbe wechselt. */
.fliesstext a, .liste-schlicht a, .lead a {
  color: var(--rot-schrift);
  text-decoration: none;
  border-bottom: 2px solid var(--kante);
  transition: border-color var(--t-farbe) ease-in-out;
}
.fliesstext a:hover, .liste-schlicht a:hover, .lead a:hover { border-color: var(--rot) }

/* Fokus ist nie ausgeblendet. */
:focus-visible { outline: 3px solid var(--anthrazit); outline-offset: 2px }

.nur-vorleser {
  position: absolute; left: -9999px; top: 0;
  background: var(--anthrazit); color: #fff; padding: 10px 16px; z-index: 100;
}
.nur-vorleser:focus { left: 0 }

/* prefers-reduced-motion schaltet alles ab (Board 11). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------- Satzspiegel */

.bahn { max-width: var(--satz); margin: 0 auto; padding: 0 var(--rand) }
.band { padding: 64px 0 }
.band-hell   { background: var(--sand) }
.band-grau   { background: var(--flaeche) }
.band-dunkel { background: var(--dunkel); color: var(--text-dunkel) }
.band-dunkel h1, .band-dunkel h2, .band-dunkel h3 { color: #fff }

.auge {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rot-schrift);
  margin: 0 0 10px;
}
.band-dunkel .auge { color: var(--akzent-hell) }

.lead  { font-size: 18px; line-height: 1.6 }
.klein { font-size: 13px; line-height: 1.7; color: var(--verkauft) }

/* Abschnittskopf: Titel links, Verweis rechts, 2-px-Linie darunter. */
.abschnittskopf {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; border-bottom: 2px solid var(--anthrazit);
  padding-bottom: 14px; margin-bottom: 28px;
}
.abschnittskopf h2 { margin: 0 }
.weiterlink {
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--rot); padding-bottom: 2px;
}

/* ---------------------------------------------------------- Bedienelemente */

.knopf, .knopf-2, .knopf-dunkel {
  /* gap: Knöpfe mit Zeichen brauchen Luft zwischen Zeichen und Schrift –
     sonst klebt das Telefonzeichen am Wort. */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 0; cursor: pointer;
  font: 700 14px Montserrat, Arial, sans-serif; letter-spacing: 0.02em;
  text-decoration: none; border: none;
  transition: background var(--t-farbe) linear, color var(--t-farbe) linear;
}
.knopf { background: var(--rot); color: #fff }
.knopf:hover { background: var(--anthrazit) }          /* Rot → Anthrazit */
.knopf:active { transform: translateY(2px) }

.knopf-2 { background: transparent; color: var(--anthrazit); border: 1.5px solid var(--anthrazit) }
.knopf-2:hover { background: var(--anthrazit); color: #fff }

.knopf-dunkel { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5) }
.knopf-dunkel:hover { background: #fff; color: var(--anthrazit) }

.knopf-gross { height: 56px; padding: 0 30px; font-size: 15px }
.knopf[disabled], .knopf-2[disabled] {
  background: #d8d5cc; color: var(--verkauft); border-color: #d8d5cc; cursor: default;
}

/* Eingabefelder. Die Beschriftung steht dauerhaft über dem Feld, nie darin. */
.feld { display: block; margin-bottom: 14px }
.feld > span, .feld-beschriftung {
  display: block; margin-bottom: 6px;
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--verkauft);
}
.feld input, .feld select, .feld textarea, .inp {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 0;
  border: 1.5px solid var(--kante); background: #fff;
  font: 400 14px Montserrat, Arial, sans-serif; color: var(--anthrazit);
}
.feld textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.6 }
.feld input::placeholder, .feld textarea::placeholder { color: var(--platzhalter) }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }

.pflichthinweis {
  font-weight: 500; font-size: 11.5px; color: var(--rot-schrift); margin: -6px 0 12px;
}

/* Marke / Chip */
.marke, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border: 1.5px solid var(--kante);
  font: 500 13px Montserrat, Arial, sans-serif; color: var(--anthrazit);
  background: #fff; text-decoration: none;
  transition: border-color 180ms ease-in-out, color 180ms ease-in-out;
}
.marke:hover { border-color: var(--anthrazit) }
.marke.gewaehlt, .gewaehlt {
  border-color: var(--rot-schrift); color: var(--rot-schrift); font-weight: 700;
}
.marke.leer { color: #b5b1a7; border-color: var(--linie) }

/* Schlüssel-Wert-Zeile */
.kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 13.5px;
}
.kv > span:first-child { color: var(--verkauft) }
.kv > span:last-child  { font-weight: 600; text-align: right }

.daten { width: 100%; border-collapse: collapse; font-size: 13.5px }
.daten th, .daten td {
  text-align: left; padding: 9px 0; border-bottom: 1px solid var(--linie); vertical-align: top;
}
.daten th { color: var(--verkauft); font-weight: 400; width: 38% }
.daten td { font-weight: 600 }

.hinweis-kasten {
  border-left: 4px solid var(--rot); background: var(--flaeche);
  padding: 16px 20px; margin: 26px 0;
}
.fehlerkasten, .erfolgskasten {
  padding: 14px 18px; margin-bottom: 20px; font-size: 14px;
  border-left: 4px solid var(--rot); background: var(--flaeche);
}
.erfolgskasten { border-left-color: var(--gruen) }

.liste-schlicht { list-style: none; margin: 0; padding: 0 }
.liste-schlicht li { padding: 5px 0 }

.fliesstext { font-size: 16px; line-height: 1.75 }
.fliesstext h2 { font-size: 28px; margin: 32px 0 12px }
.fliesstext h3 { font-size: 20px; margin: 26px 0 10px }
.fliesstext ul { padding-left: 20px }
.fliesstext li { margin-bottom: 6px }
.fliesstext table { width: 100%; border-collapse: collapse; margin: 18px 0 }
.fliesstext td, .fliesstext th {
  border-bottom: 1px solid var(--linie); padding: 8px 10px 8px 0; text-align: left;
}

/* Spam-Schutz: Der Honigtopf bleibt für Menschen unsichtbar. */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* ============================================================== Kopfbereich */

/* Zeile 1 – Topbar */
.topbar { background: var(--anthrazit); color: #fff; font-size: 12.5px }
.topbar .bahn { display: flex; align-items: center; gap: 14px; height: 38px }
.topbar .zeiten { font-weight: 600 }
.topbar .fuge { flex: 1 }
.topbar .trenner { color: var(--kante) }
.topbar a { text-decoration: none }
@media (max-width: 900px) { .topbar { display: none } }

/* Zeile 2 – Hauptkopf, bleibt beim Scrollen stehen */
.kopf { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 2px solid var(--anthrazit) }
.kopf-innen {
  max-width: var(--satz); margin: 0 auto; padding: 12px var(--rand);
  display: flex; align-items: center; gap: 16px;
}
/* Das Logo darf nie schrumpfen – sonst drückt die Flex-Zeile es auf Breite 0. */
.kopf-logo { flex: 0 0 auto; line-height: 0 }
.kopf-logo img { height: 52px; width: auto; max-width: none }
/* Die Navigation darf nicht in die Suche hineinlaufen: sie behält ihre
   natürliche Breite, dafür weicht weiter unten zuerst die Suche. */
.kopf nav { display: flex; gap: 8px; flex: 0 0 auto; white-space: nowrap }
.kopf nav a {
  padding: 9px 15px; text-decoration: none;
  font: 600 14px Montserrat, Arial, sans-serif; color: var(--anthrazit);
  border-bottom: 4px solid transparent;          /* Platz immer reserviert */
  transition: background var(--t-farbe) ease-in-out, border-color var(--t-karte) ease-in-out;
}
.kopf nav a:hover { background: var(--sand) }
.kopf nav a[aria-current] { background: var(--anthrazit); color: #fff }
.kopf .fuge { flex: 1 }

.kopf-suche { display: flex; flex: 0 0 auto; border: 1.5px solid var(--kante); height: 44px; background: #fff }
.kopf-suche input {
  width: 200px; height: 100%; border: none; padding: 0 10px;
  font: 400 13.5px Montserrat, Arial, sans-serif; color: var(--anthrazit);
}
.kopf-suche:focus-within { outline: 2px solid var(--rot); outline-offset: 1px }
.kopf-suche input:focus { outline: none }
.kopf-suche button { border: none; background: none; cursor: pointer; padding: 0 14px; color: var(--verkauft) }
.kopf-telefon { font-weight: 600; font-size: 15px; white-space: nowrap }

/* Umschalter gewerblich/privat – rechts außen im Kopf (Board 14) */
.kopf-schalter { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto }
.kopf-schalter > .auge { margin: 0; font-size: 10px; color: var(--stumm) }
.schalter-gruppe { display: flex; border: 1.5px solid var(--kante) }
.schalter-gruppe a {
  padding: 9px 14px; text-decoration: none; white-space: nowrap;
  font: 600 13px Montserrat, Arial, sans-serif; color: var(--anthrazit);
  transition: background var(--t-farbe) ease-in-out, color var(--t-farbe) ease-in-out;
}
.schalter-gruppe a + a { border-left: 1.5px solid var(--kante) }
.schalter-gruppe a[aria-current] { background: var(--anthrazit); color: #fff }
.schalter-gruppe a:not([aria-current]):hover { background: var(--sand) }

/* Die Telefonnummer steht in der Servicezeile darüber – im Kopf wäre sie
   doppelt und drückte die Zeile über die Satzbreite hinaus. Sie erscheint
   erst, wenn die Servicezeile wegfällt (Board 2 zeigt es genauso). */
.kopf-telefon { display: none }
@media (max-width: 900px) { .kopf-telefon { display: inline } }
@media (max-width: 1360px) { .kopf-suche { display: none } }
@media (max-width: 1000px) {
  .kopf-innen { flex-wrap: wrap; padding: 10px 16px; gap: 10px }
  .kopf-telefon { display: none }
  .kopf-logo img { height: 40px }
  .kopf nav { order: 3; width: 100%; overflow-x: auto; gap: 2px }
  .kopf nav a { font-size: 13px; padding: 8px }
  .kopf .fuge { display: none }
  .kopf-schalter > .auge { display: none }
  .schalter-gruppe a { padding: 7px 10px; font-size: 12px }
}

/* ------------------------------------------------------------- Brotkrumen */

.krumen { background: var(--flaeche); font-weight: 500; font-size: 12.5px; color: var(--verkauft) }
.krumen .bahn { padding-top: 14px; padding-bottom: 14px }
.krumen a { text-decoration: none }
.krumen a:hover { color: var(--anthrazit) }
.krumen .trenner { color: var(--kante); padding: 0 6px }
.krumen .jetzt { color: var(--anthrazit); font-weight: 600 }

/* ==================================================================== Hero */

.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  /* Grundfarbe dunkel, nicht hell: Die Schrift im Hero ist weiß. Käme das
     Foto einmal nicht an, stünde sie sonst auf hellem Grund und wäre nicht
     mehr zu lesen. */
  background: var(--dunkel) center/cover no-repeat;
}
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(28,27,25,.62) }
.hero-innen {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--satz); margin: 0 auto; padding: 64px var(--rand); color: #fff;
}
.hero-auge {
  display: inline-block; background: var(--rot); color: #fff;
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px; margin-bottom: 20px;
}
.hero h1 {
  font-size: 60px; line-height: 1.05; letter-spacing: -0.015em;
  max-width: 820px; color: #fff; margin: 0 0 14px;
}
.hero-unter {
  font-weight: 500; font-size: 19px; line-height: 1.5;
  color: var(--text-dunkel); max-width: 640px; margin: 0 0 26px;
}
.hero-suche { display: flex; max-width: 760px; height: 60px; margin-bottom: 22px }
.hero-suche input { flex: 1; border: none; padding: 0 16px; font-size: 16px; color: var(--anthrazit) }
.hero-suche input::placeholder { color: var(--platzhalter) }
.hero-suche button {
  width: 150px; border: none; background: var(--rot); color: #fff;
  font: 700 15px Montserrat, Arial, sans-serif; cursor: pointer;
  transition: background var(--t-farbe) linear;
}
.hero-suche button:hover { background: var(--anthrazit) }
.hero-knoepfe { display: flex; gap: 14px; flex-wrap: wrap }

@media (max-width: 760px) {
  .hero { min-height: 420px }
  .hero::after { background: rgba(28,27,25,.68) }
  .hero-innen { padding: 40px 16px }
  .hero h1 { font-size: 29px; line-height: 1.06 }
  .hero-unter { font-size: 16px }
  .hero-suche { height: 52px }
  .hero-suche button { width: 96px; font-size: 14px }
  .hero-knoepfe .knopf, .hero-knoepfe .knopf-dunkel { width: 100% }
}

/* =========================================================== Maschinenkarte */

.raster       { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.raster-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.raster-klein { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }

@media (max-width: 1199px) {
  .raster, .raster-start, .raster-klein { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 760px) {
  .raster, .raster-start, .raster-klein { grid-template-columns: 1fr }
}

.karte {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1.5px solid var(--linie); border-top: 4px solid var(--linie);
  transition: border-color var(--t-karte) ease-in-out;
}
/* Hover: Oberkante wird rot, übriger Rahmen anthrazit. Das Foto bleibt ruhig. */
.karte:hover { border-color: var(--anthrazit); border-top-color: var(--rot) }

.karte-bild {
  position: relative; aspect-ratio: 4 / 3; background: var(--flaeche);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.karte-bild img { width: 100%; height: 100%; object-fit: contain }
.karte-leer { font-size: 12.5px; color: var(--platzhalter) }

.merkmal {
  position: absolute; top: 0; left: 0;
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; background: var(--rot); color: #fff;
}
.merkmal-grau   { background: var(--verkauft) }
.merkmal-dunkel { background: var(--anthrazit) }
.merkmal-gruen  { background: var(--gruen) }

.karte-text { padding: 16px; display: flex; flex-direction: column }
.karte-art {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--verkauft);
}
.karte-titel {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 19px; line-height: 1.2; margin-top: 4px;
}
.karte-meta  { font-size: 12px; margin-top: 8px; color: var(--verkauft) }
.karte-preis { font-weight: 600; font-size: 20px; margin-top: 8px }
.karte-preis-alt {
  font-size: 13px; color: var(--verkauft); text-decoration: line-through; margin-right: 8px;
}
.karte-preis.sonder { color: var(--rot-schrift) }
.karte-hinweis { font-weight: 500; font-size: 11px; color: var(--verkauft); margin-top: 2px }
.karte-suchauftrag { font-weight: 600; font-size: 13px; color: var(--rot-schrift); margin-top: 8px }

/* Startseite: eine Stufe größer */
.raster-start .karte-text  { padding: 18px }
.raster-start .karte-titel { font-size: 22px }
.raster-start .karte-preis { font-size: 24px }
/* „Ähnliche Maschinen": eine Stufe kleiner */
.raster-klein .karte-text  { padding: 14px }
.raster-klein .karte-titel { font-size: 17px }
.raster-klein .karte-preis { font-size: 17px }

/* ================================================================= Katalog */

.katalog-teilung { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start }
@media (max-width: 1000px) { .katalog-teilung { grid-template-columns: 1fr } }

.kategorienbaum .titel {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 2px solid var(--anthrazit); padding-bottom: 8px; margin-bottom: 10px;
}
.kategorienbaum a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0 7px 14px; text-decoration: none;
  font-weight: 500; font-size: 13.5px; color: var(--verkauft);
  border-left: 4px solid transparent;
}
.kategorienbaum a:hover { color: var(--anthrazit) }
.kategorienbaum a[aria-current] {
  color: var(--rot-schrift); font-weight: 700;
  border-left-color: var(--rot); padding-left: 12px;
}
.kategorienbaum .zahl { font-size: 12px }

.filter { border: 1.5px solid var(--linie); background: var(--flaeche); padding: 18px 20px; margin-bottom: 22px }
.filter-zeile { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end }

/* Der Anwenden-Knopf ist nur ohne JavaScript nötig: Mit JavaScript schickt
   jedes Auswahlfeld das Formular selbst ab, und ein zweiter Knopf daneben
   würde nur verwirren. */
.js .filter-anwenden { display: none }
.js .sortieren-anwenden { display: none }

/* Abschlussblock der Katalogseite: links der Text, rechts der Ankaufkasten. */
.katalog-abschluss {
  margin-top: 36px; border-top: 1px solid var(--linie); padding-top: 24px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px;
}
@media (max-width: 760px) {
  .katalog-abschluss { grid-template-columns: 1fr; gap: 24px }
}
@media (max-width: 900px) { .filter-zeile { grid-template-columns: 1fr 1fr } }
.filter .feld { margin-bottom: 0 }

/* Die zweite Filterzeile klappt auf und zu. Die Höhe wird über
   grid-template-rows von 0fr auf 1fr gefahren – so braucht niemand die Höhe
   auszurechnen, und es läuft weich, auch wenn die Zeile umbricht.

   Ohne JavaScript steht sie über den Absendeknopf offen da; die Klasse .auf
   setzt dann schon der Server. */
.filter-mehr {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-klapp) ease-in-out;
}
.filter-mehr > * { overflow: hidden; min-height: 0 }
.filter-mehr.auf { grid-template-rows: 1fr }

/* Das Zeichen im Schalter dreht mit – kleine Bestätigung, dass er gegriffen hat. */
.filter-schalter svg { transition: transform var(--t-klapp) ease-in-out }
.filter-schalter[aria-expanded="true"] svg { transform: rotate(180deg) }

@media (prefers-reduced-motion: reduce) {
  .filter-mehr, .filter-schalter svg { transition: none }
}
.filter-gewaehlt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border-top: 1px solid var(--linie-sand); padding-top: 14px; margin-top: 14px;
}
.filter-gewaehlt .beschriftung {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--verkauft);
}
.alle-entfernen { font-weight: 500; font-size: 12.5px; color: var(--verkauft); text-decoration: none }

.ergebniszeile {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-bottom: 2px solid var(--anthrazit); padding-bottom: 12px; margin-bottom: 22px;
}
.ergebniszeile .anzahl {
  font-family: 'Archivo Narrow', Montserrat, sans-serif; font-weight: 700; font-size: 17px;
}
.ergebniszeile .fuge { flex: 1 }
/* Breit genug für den längsten Eintrag („Zuletzt hinzugekommen"). Mit
   210 px schnitt der Text ab. */
.ergebniszeile select { width: auto; min-width: 240px; max-width: 100% }

/* Während im Katalog nachgeladen wird: Die Treffer treten zurück, der
   Kategorienbaum bleibt voll lesbar – man sucht ja gerade dort weiter.
   Kein Drehkreis, den verbietet die Mappe. */
.katalog-teilung.laedt > div { opacity: .45; pointer-events: none }
.katalog-teilung > div { transition: opacity var(--t-klapp) linear }
.katalog-teilung.laedt { cursor: progress }
@media (prefers-reduced-motion: reduce) {
  .katalog-teilung > div { transition: none }
}

.blaettern { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap }
.blaettern a, .blaettern span {
  /* Die reinen Seitenzahlen bleiben quadratisch, „Zurück“ und „Weiter“ tragen
     Schrift und Zeichen – ohne Innenabstand klebten beide am Rahmen. */
  min-width: 44px; height: 44px; padding: 0 14px; gap: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--kante); text-decoration: none; font-weight: 600; font-size: 13.5px;
  transition: border-color var(--t-farbe) ease-in-out;
}
.blaettern a:hover { border-color: var(--anthrazit) }
.blaettern [aria-current] { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff }

/* ============================================================== Detailseite */

/* Detailseite: Galerie oben links, daneben über die volle Höhe die
   Seitenspalte mit Preis und Anfrage, darunter der lange Rest.
   In der schmalen Ansicht schiebt sich die Seitenspalte zwischen Galerie
   und Rest – sonst käme das Formular erst nach technischen Daten,
   Beschreibung und ähnlichen Maschinen ganz unten. */
.mit-seitenspalte {
  display: grid; grid-template-columns: 1fr 520px;
  column-gap: 48px; row-gap: 0; align-items: start;
}
/* min-width: 0 ist hier Pflicht. Rasterelemente stehen von Haus aus auf
   min-width: auto und weigern sich, unter die Mindestbreite ihres Inhalts zu
   schrumpfen – die Merkmaltabelle der Maschinenseite machte die Spalte damit
   379 px breit, wo nur 358 Platz waren. Die Seite ließ sich auf dem Telefon
   um 5 px seitlich wegschieben. */
.hauptspalte  { grid-column: 1; grid-row: 1; min-width: 0 }
.nachspalte   { grid-column: 1; grid-row: 2; min-width: 0 }
.seitenspalte { grid-column: 2; grid-row: 1 / span 2; min-width: 0 }

@media (max-width: 1100px) {
  .mit-seitenspalte { grid-template-columns: 1fr; row-gap: 32px }
  .hauptspalte  { grid-column: 1; grid-row: 1 }
  .seitenspalte { grid-column: 1; grid-row: 2 }
  .nachspalte   { grid-column: 1; grid-row: 3 }
}

.galerie-gross {
  aspect-ratio: 4 / 3; background: var(--flaeche); border: 1.5px solid var(--linie);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.galerie-gross img { width: 100%; height: 100%; object-fit: contain }
.galerie-klein { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px }
.galerie-klein a {
  aspect-ratio: 4 / 3; background: var(--flaeche); border: 1.5px solid var(--linie);
  display: block; overflow: hidden;
}
.galerie-klein a[aria-current] { border: 2px solid var(--rot) }
.galerie-klein img { width: 100%; height: 100%; object-fit: contain }

/* -------------------------------------------------- Produktvideos (Galerie)
   Videos liegen als einwilligungspflichtige YouTube-Embeds (Consentry) in der
   großen Fläche bereit und erscheinen in der Vorschauleiste vor den Bildern. */
.video-folie { position: absolute; inset: 0; background: #000 }
.video-folie, .video-folie .consentry-embed { width: 100%; height: 100% }
.video-folie iframe { width: 100%; height: 100%; border: 0; display: block }
.galerie-video { position: relative }
.galerie-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; pointer-events: none;
}
.galerie-play svg {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: rgba(20, 19, 17, .72);
  transition: background var(--t-farbe) linear;
}
.galerie-video:hover .galerie-play svg,
.galerie-video:focus-visible .galerie-play svg { background: var(--rot) }

.titel-linie { border-bottom: 2px solid var(--anthrazit); padding-bottom: 10px; margin: 44px 0 14px }
.merkmalkopf {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rot-schrift); margin-bottom: 6px;
}
.merkmalzeile {
  /* minmax(0, 1fr) statt 1fr: Eine Rasterspalte schrumpft von Haus aus nicht
     unter die Mindestbreite ihres Inhalts. Ein langes Merkmalwort schob die
     Zeile damit über die Spalte hinaus, und die Maschinenseite ließ sich auf
     dem Telefon seitlich wegschieben. */
  display: grid; grid-template-columns: minmax(0, 1fr) 130px 90px; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 13.5px;
}
.merkmalzeile .wert    { font-weight: 600 }
.merkmalzeile .einheit { color: var(--verkauft) }
.merkmalzeile > * { min-width: 0; overflow-wrap: anywhere }

/* Auf dem Telefon bleibt für 130 + 90 px feste Spalten kein Platz mehr. */
@media (max-width: 560px) {
  .merkmalzeile { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px }
}

/* Die Mappe begrenzt diesen Kasten auf 62 Zeichen „damit auch ein langer
   Absatz lesbar bleibt". In der Praxis stehen hier fast immer kurze
   Datenzeilen aus dem Warenwirtschaftssystem – dann endet der Kasten
   willkürlich vor allen anderen Elementen. Er läuft deshalb über die volle
   Spaltenbreite; lesbar bleibt er über Zeilenhöhe und Innenabstand. */
.beschreibungskasten {
  background: var(--flaeche); border-left: 4px solid var(--kante);
  padding: 22px 26px; font-size: 14.5px; line-height: 1.85;
}

.kerndaten { border: 1.5px solid var(--linie); padding: 26px }
.preis-gross { font-weight: 600; font-size: 34px; margin-top: 18px }
.preis-hinweis { font-weight: 500; font-size: 13px; color: var(--verkauft) }
.verfuegbar {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--linie); margin-top: 14px; padding-top: 14px;
  font-weight: 600; font-size: 14px; color: var(--gruen);
}
.verfuegbar::before { content: ''; width: 9px; height: 9px; background: var(--gruen) }

/* Formularblock mit Priorität: anthrazite Kante, roter Deckel. */
.anfrageblock {
  border: 1.5px solid var(--anthrazit); border-top: 4px solid var(--rot);
  background: var(--flaeche); padding: 26px; margin-top: 16px;
}
.anfrageblock .kopfzeile {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
}
.anfrageblock .kopfzeile h2 { margin: 0; font-size: 20px }
.anfrageblock .laeuft-mit {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rot-schrift);
}
.anfrageblock .feld input, .anfrageblock .feld textarea { background: #fff }
.anfrageblock .knopf { width: 100%; height: 52px }
/* „Läuft mit" gilt für den Anfrageblock, nicht für die ganze Spalte.
   Vorher klebte die komplette Seitenspalte – sie ist aber höher als das
   Fenster, und ein klebendes Element, das nicht hineinpasst, wandert beim
   Scrollen einfach mit: Der Absendeknopf blieb unerreichbar unter der Kante
   stehen, bis man am Seitenende ankam.

   Darum: Die Spalte wird über beide Rasterzeilen gestreckt, damit der
   Anfrageblock darin die ganze Seite begleiten kann, und der Block selbst
   bekommt eine Höhenbegrenzung. Passt er ins Fenster – der Normalfall am
   Schreibtisch –, ändert sie nichts. Ist das Fenster niedriger, scrollt der
   Block in sich, statt die Seite festzuhalten. */
@media (min-width: 1101px) {
  .seitenspalte { align-self: stretch }
  .anfrageblock { position: sticky; top: 94px }
  /* Passt der Block nicht ins Fenster, darf er nicht kleben: Ein klebendes
     Element, das höher als das Fenster ist, wandert beim Scrollen mit und
     lässt sich nie zu Ende lesen. Gemessen wird in assets/laden.js. */
  .anfrageblock.zu-hoch { position: static }
}

.direkt-sprechen { border-top: 1px solid var(--linie-sand); margin-top: 16px; padding-top: 16px }
.direkt-sprechen .nummer { font-weight: 600; font-size: 26px }

.vertrauen { border: 1.5px solid var(--linie); border-top: none; padding: 20px }
.vertrauen div { font-weight: 500; font-size: 13.5px; padding: 5px 0 }

/* ==================================================== Preis-Abfrage (Dialog) */

/* Board 14: ein Panel über der Seite, keine Voreinstellung, kein „Später". */
.preisdialog[hidden] { display: none; }  /* [hidden] muss display:flex schlagen – sonst Dialog sofort sichtbar */
.preisdialog {
  position: fixed; inset: 0; z-index: 90;
  /* Halbtransparentes Overlay statt solider grauer Fläche: Die Seite scheint
     gedimmt durch – wie beim Cookie-Banner, kein „grauer Rahmen". */
  background: rgba(20, 19, 17, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.preisdialog-panel { width: 640px; max-width: 100%; background: #fff; border: 1px solid var(--kante) }
.preisdialog-kopf { background: var(--flaeche); border-bottom: 3px solid var(--rot); padding: 22px }
.preisdialog-kopf img { height: 44px; width: auto }
.preisdialog-koerper { padding: 28px 32px }
.preisdialog-koerper h2 { font-size: 30px; line-height: 1.1; margin: 0 }
.preisdialog-koerper p { font-size: 14.5px; line-height: 1.75; margin: 12px 0 0 }
.preisdialog-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px }
.preisdialog-wahl a {
  border: 1.5px solid var(--kante); padding: 20px; text-decoration: none; color: inherit;
  transition: border-color var(--t-farbe) ease-in-out, background var(--t-farbe) ease-in-out;
}
.preisdialog-wahl a:hover { background: var(--flaeche); border-color: var(--rot) }
.preisdialog-wahl strong {
  font-family: 'Archivo Narrow', Montserrat, sans-serif; font-weight: 700; font-size: 22px; display: block;
}
.preisdialog-wahl span {
  display: block; font-size: 13px; line-height: 1.6; color: var(--verkauft); margin-top: 6px;
}
@media (max-width: 560px) { .preisdialog-wahl { grid-template-columns: 1fr } }

/* ===================================================================== Fuß */

.fuss { background: var(--dunkel); color: #d9d5cc; font-size: 13.5px; padding: 44px 0 52px }
.fuss-raster { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr }
.fuss-raster > div { padding-left: 32px; border-left: 1px solid var(--linie-dunkel) }
.fuss-raster > div:first-child { padding-left: 0; padding-right: 32px; border-left: none }
.fuss h3 {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; border-bottom: 1px solid var(--linie-dunkel); padding-bottom: 8px; margin: 0 0 10px;
}
.fuss h3.ankauf { color: var(--akzent-hell) }
.fuss a { text-decoration: none; display: block; padding: 3px 0 }
/* Knöpfe im Fuß bleiben Knöpfe und laufen nicht über die ganze Spalte. */
.fuss a.knopf, .fuss a.knopf-2, .fuss a.knopf-dunkel { display: inline-flex; width: auto }
.fuss a:hover { color: #fff }
.fuss-logo { background: #fff; padding: 5px 9px; display: inline-block; margin-bottom: 14px }
.fuss-logo img { height: 44px; width: auto }
.fuss-telefon { border-top: 1px solid var(--linie-dunkel); margin-top: 14px; padding-top: 14px }
.fuss-telefon .nummer { font-weight: 600; font-size: 22px; color: #fff }
.fuss-zeiten { font-weight: 500; font-size: 12.5px; color: #b4afa4 }

.fuss-schluss {
  background: var(--flaeche); border-top: 3px solid var(--rot);
  padding: 16px 0; font: 400 12.5px Montserrat, Arial, sans-serif; color: var(--verkauft);
}
.fuss-schluss .bahn { display: flex; gap: 20px; flex-wrap: wrap; align-items: center }
.fuss-schluss a { color: var(--anthrazit); font-weight: 600; text-decoration: none }
.fuss-schluss .fuge { flex: 1 }

@media (max-width: 1000px) {
  .fuss-raster { grid-template-columns: 1fr 1fr }
  .fuss-raster > div { border-left: none; padding-left: 0; margin-top: 22px }
  .fuss-raster > div:first-child { padding-right: 0 }
}
@media (max-width: 600px) {
  .fuss-raster { grid-template-columns: 1fr }
  :root { --rand: 16px }
}

/* ============================================================ Markenleiste */

.markenleiste { background: var(--anthrazit); padding: 34px 0 }
.markenleiste .beschriftung {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grau-hell); margin-bottom: 14px;
}
.markenleiste .reihe { display: flex; flex-wrap: wrap; gap: 10px }
.markenleiste .reihe span {
  min-width: 112px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--linie-dunkel); color: #a8a49b;
  font-weight: 600; font-size: 12.5px; padding: 0 12px;
}

/* ============================================================= Schrittleiste */

.schritte {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linie-dunkel); margin-top: 40px;
}
.schritte > div { padding: 26px var(--rand); border-left: 1px solid var(--linie-dunkel) }
.schritte > div:first-child { border-left: none; padding-left: 0 }
.schritte .ziffer {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 40px; color: #6f6a60; line-height: 1;
}
.schritte h3 { font-size: 20px; line-height: 1.2; color: #fff; margin: 10px 0 6px }
.schritte p { font-size: 13px; line-height: 1.65; color: var(--grau-hell); margin: 0 }
@media (max-width: 800px) {
  .schritte { grid-template-columns: 1fr }
  .schritte > div { border-left: none; border-top: 1px solid var(--linie-dunkel); padding: 20px 0 }
}

/* ============================================================== Zweispaltig */

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center }
.zwei-spalten-breit { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch }
@media (max-width: 900px) {
  .zwei-spalten, .zwei-spalten-breit { grid-template-columns: 1fr; gap: 32px }
}

.sitemap-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px }
.sitemap-raster h2 { font-size: 20px; border-bottom: 2px solid var(--anthrazit); padding-bottom: 8px }
.sitemap-raster a { text-decoration: none }
.sitemap-raster a:hover { color: var(--rot-schrift) }
@media (max-width: 900px) { .sitemap-raster { grid-template-columns: 1fr } }

.suchzeile { display: flex; height: 60px; border: 2px solid var(--anthrazit); margin-bottom: 24px }
.suchzeile input { flex: 1; border: none; padding: 0 16px; font-size: 16px; font-weight: 500 }
.suchzeile:focus-within { outline: 2px solid var(--rot); outline-offset: 2px }
.suchzeile input:focus { outline: none }
.suchzeile button {
  width: 160px; border: none; background: var(--rot); color: #fff;
  font: 700 15px Montserrat, Arial, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.suchzeile button:hover { background: var(--anthrazit) }

.leiste { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }
.hinweis { font-size: 13px; color: var(--verkauft) }
.zahl { font-weight: 600 }

/* ======================================================= Inhaltsseiten */

/* Muster nach Board 13: schmale Textspalte, Sprungmarken links,
   Angaben als gesetzte Tabelle statt als Absatzwust. */
.inhaltsraster { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start }
@media (max-width: 1000px) { .inhaltsraster { grid-template-columns: 1fr; gap: 28px } }

.seitenleiste .titel {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--anthrazit); border-bottom: 2px solid var(--anthrazit);
  padding-bottom: 8px; margin-bottom: 10px;
}
.sprungmarken { display: flex; flex-direction: column; margin-bottom: 20px }
.sprungmarken a {
  padding: 8px 0 8px 12px; text-decoration: none;
  font-weight: 500; font-size: 13.5px; color: var(--verkauft);
  border-left: 4px solid transparent;
}
.sprungmarken a:hover {
  border-left-color: var(--rot); color: var(--rot-schrift); font-weight: 700;
}
.nebenkasten {
  border: 1.5px solid var(--linie); background: var(--flaeche); padding: 16px;
}
.nebenkasten .titel { color: var(--verkauft); border-bottom-color: var(--kante) }
.nebenkasten a {
  display: block; padding: 7px 0; text-decoration: none;
  font-weight: 600; font-size: 13px; color: var(--anthrazit);
  border-bottom: 1px solid var(--linie-sand);
}
.nebenkasten a:last-child { border-bottom: none }
.nebenkasten a:hover { color: var(--rot-schrift) }

.textspalte h1 { font-size: 52px; line-height: 1.04; margin: 12px 0 0 }
.textspalte .lead { font-size: 16px; line-height: 1.75; color: var(--verkauft); margin-top: 14px; max-width: 60ch }
.textspalte.schmal { max-width: 70ch }
.textspalte h2, .textspalte .fliesstext h2 {
  font-size: 22px; border-bottom: 2px solid var(--anthrazit);
  padding-bottom: 10px; margin: 32px 0 14px;
}
.textspalte .fliesstext { font-size: 15px; line-height: 1.8; color: var(--anthrazit) }
.textspalte .fliesstext img { margin: 18px 0; background: var(--flaeche) }
.textspalte .kv { font-size: 14.5px }

/* Kacheln der Onlinekataloge und Neuigkeiten */
.kachelraster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px; margin-top: 18px;
}
.kachel {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1.5px solid var(--linie); border-top: 4px solid var(--linie); background: #fff;
  transition: border-color var(--t-karte) ease-in-out;
}
.kachel:hover { border-color: var(--anthrazit); border-top-color: var(--rot) }
.kachel-bild {
  aspect-ratio: 4 / 3; background: var(--flaeche);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kachel-bild img { width: 100%; height: 100%; object-fit: contain }
.kachel-text {
  padding: 14px 16px; font-weight: 600; font-size: 14px; line-height: 1.4;
}

/* Abschlussbaustein – auf allen Inhaltsseiten derselbe */
.abschlussbaustein {
  border: 1.5px solid var(--linie); background: var(--flaeche);
  padding: 22px 24px; margin-top: 36px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.abschlussbaustein > div:first-child { flex: 1; min-width: 240px }
.abschlussbaustein strong { font-size: 20px; display: block }
.abschlussbaustein p { margin: 4px 0 0 }

/* ========================================================== Ankaufseite */

.ankauf-hero { padding: 72px 0 }
.ankauf-hero h1 { font-size: 56px; line-height: 1.05; color: #fff; margin: 14px 0 0 }
.ankauf-bild {
  aspect-ratio: 4 / 3; background: #262523 center/cover no-repeat;
  border: 1px solid var(--linie-dunkel);
}
.merkmalszeile {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px;
  font-weight: 600; font-size: 15px; color: var(--text-dunkel);
}
.merkmalszeile span::before { content: '✓ '; color: var(--akzent-hell) }

/* Der Markenstrich steht nur vor bestimmten Augenbrauen (Board 2/4/12). */
.markenstrich { display: block; width: 34px; height: 4px; background: var(--rot); margin-bottom: 16px }

.schrittkarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px }
@media (max-width: 900px) { .schrittkarten { grid-template-columns: 1fr } }
.schrittkarte {
  position: relative; background: #fff; padding: 30px 28px 34px; overflow: hidden;
  border-top: 4px solid var(--kante);
}
.schrittkarte.erste { border-top-color: var(--rot) }
.schrittkarte .ziffer {
  position: absolute; right: -8px; bottom: -34px;
  font-size: 130px; line-height: 1; color: var(--flaeche); pointer-events: none;
}
/* Die Ziffer ist reine Deko (dekorativer Wasserzeichen-Hintergrund) und als
   generierter Inhalt vom Kontrast-Check ausgenommen – das Markup hält sie in
   data-nr, das Pseudo-Element zeigt sie. */
.schrittkarte .ziffer::before { content: attr(data-nr) }
.schrittkarte .inhalt { position: relative }

.vorteilsliste {
  margin-top: 26px; border-top: 1px solid var(--anthrazit); padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
  font-weight: 500; font-size: 14px; color: var(--anthrazit);
}
.vorteilsliste div::before { content: '✓ '; color: var(--rot-schrift); font-weight: 700 }

/* Formularblock mit Priorität: anthrazite Kante, roter Deckel. */
.formularblock {
  border: 1.5px solid var(--anthrazit); border-top: 4px solid var(--rot);
  background: #fff; padding: 28px;
}
.ablegeflaeche {
  border: 2px dashed var(--kante); padding: 22px; margin-top: 16px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.ablegeflaeche strong { font-size: 15px }
.ablegeflaeche input[type="file"] { font-size: 12.5px }

.einwilligung {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 14px;
  font-size: 11.5px; line-height: 1.5; color: var(--verkauft);
}
.einwilligung input { width: 16px; height: 16px; flex: none; margin: 1px 0 0; accent-color: var(--rot) }

.typensuche { display: flex; max-width: 520px; margin-top: 20px; border: 1.5px solid var(--linie) }
.typensuche input { flex: 1; height: 48px; border: none; padding: 0 14px; font-size: 14px }
.typensuche:focus-within { outline: 2px solid var(--rot); outline-offset: 1px }
.typensuche input:focus { outline: none }

.drei-spalten { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start }
@media (max-width: 900px) { .drei-spalten { grid-template-columns: 1fr } }

.kennzahlen {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 24px;
  border-top: 1px solid var(--anthrazit); padding-top: 20px;
}
.kennzahlen > div { display: flex; flex-direction: column }
.kennzahlen .zahl-gross { font-size: 32px; line-height: 1; color: var(--rot-schrift) }
.kennzahlen .abgetrennt { flex: 1; min-width: 220px; border-left: 1px solid var(--linie); padding-left: 24px }

.frage { border-top: 1px solid var(--anthrazit) }
.frage:last-of-type { border-bottom: 1px solid var(--linie) }
.frage summary {
  padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 15px; color: var(--anthrazit);
  display: flex; justify-content: space-between; align-items: center;
}
.frage summary::-webkit-details-marker { display: none }
.frage summary::after { content: '⌄'; color: var(--grau-hell); font-size: 18px; line-height: 1 }
.frage[open] summary::after { content: '⌃'; color: var(--rot-schrift) }
.frage p { font-size: 14px; line-height: 1.75; color: var(--verkauft); padding-bottom: 16px; margin: 0 }

/* ============================================ Startseite, Feinheiten */

/* Zweite Kartenreihe: kompakte Zeilenkarten (Board 2, Abschnitt 4). */
.raster-kompakt {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
@media (max-width: 1199px) { .raster-kompakt { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 760px)  { .raster-kompakt { grid-template-columns: 1fr } }

.karte-kompakt {
  display: flex; gap: 16px; padding: 14px; text-decoration: none; color: inherit;
  background: #fff; border: 1.5px solid var(--linie); border-top: 4px solid var(--linie);
  transition: border-color var(--t-karte) ease-in-out;
}
.karte-kompakt:hover { border-color: var(--anthrazit); border-top-color: var(--rot) }
.karte-kompakt .bild {
  width: 120px; height: 90px; flex: none; background: var(--flaeche);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.karte-kompakt .bild img { width: 100%; height: 100%; object-fit: contain }
.karte-kompakt .text { display: flex; flex-direction: column; min-width: 0 }

/* Leistungsliste: Icon, Text, Ziffer rechts außen (Board 2, Abschnitt 6).
   Bewusst ein Raster und kein „space-between": Mit Flexbox bekommt jede Zeile
   eine andere Textbreite, und dann fluchtet keine Überschrift mit der
   nächsten. */
.leistungszeile {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 18px;
  align-items: start; padding: 18px 0;
  border-bottom: 1px solid var(--linie-sand); text-decoration: none;
}
.leistungszeile .nummer { font-size: 11px; padding-top: 4px }
.leistungszeile .hn { margin-bottom: 4px }

/* Merkmalszeile mit Häkchen, helle Fassung. */
.merkmalszeile.hell { color: var(--anthrazit); font-size: 13.5px; margin-top: 24px }
.merkmalszeile.hell span::before { color: var(--rot-schrift) }

/* Kennzahlenkasten, überlappt die Bildkante nach rechts. */
.kennzahlenkasten {
  position: absolute; right: -56px; bottom: 48px; z-index: 2;
  background: var(--anthrazit); color: #fff; padding: 24px 28px;
  display: flex; gap: 32px; align-items: flex-end;
}
.kennzahlenkasten .hn { font-size: 40px; line-height: 1; display: block }
/* Die Beschriftung darf umbrechen – „Exponate im Werkzeugmuseum“ stünde
   sonst als eine lange Zeile und zöge den Kasten über die Spalte hinaus. */
.kennzahlenkasten .klein {
  color: #b4afa4; font-size: 12px; line-height: 1.4;
  display: block; max-width: 15ch;
}
.kennzahlenkasten .zweite { border-left: 1px solid #5c5a55; padding-left: 32px }
@media (max-width: 900px) {
  .kennzahlenkasten { position: static; margin: 0; width: 100% }
}

/* ============================================================= Mega-Menü */

/* Board 11: der aktive Punkt wird zur anthraziten Fläche mit weißer Schrift –
   „wie ein aufgeschlagenes Register". Beim Zeigen legt sich Sand darunter.
   Keine Linien, kein Farbwechsel der Schrift. */
.kopf { position: sticky; top: 0; z-index: 40 }
.hauptmenue a {
  display: inline-flex; align-items: center; gap: 5px;
  transition: background var(--t-farbe) linear, color var(--t-farbe) linear;
}
.hauptmenue a[aria-expanded="true"] { background: var(--anthrazit); color: #fff }
.hauptmenue .winkel { font-size: 11px; opacity: .7; margin-left: 3px }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 2px solid var(--anthrazit); z-index: 39;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 200ms ease-out;     /* deckt von oben nach unten auf */
}
.mega.auf { clip-path: inset(0 0 0 0) }
.mega.dunkel { background: var(--dunkel); color: var(--text-dunkel) }

.mega-innen { padding-top: 30px; padding-bottom: 0 }
.mega-spalten {
  display: grid; grid-template-columns: 1fr 1fr 1fr 320px; gap: 34px; padding-bottom: 30px;
}
.mega-spalten.drei { grid-template-columns: 1fr 1fr 380px }

.mega-kopf {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--verkauft); border-bottom: 1px solid var(--linie);
  padding-bottom: 8px; margin-bottom: 8px;
}
.mega.dunkel .mega-kopf { color: var(--grau-hell); border-bottom-color: var(--linie-dunkel) }

.mega-liste { display: flex; flex-direction: column }
.mega-liste a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 0 7px 8px; text-decoration: none;
  font-weight: 500; font-size: 13.5px; color: var(--anthrazit);
  border-left: 4px solid transparent;
  transition: color var(--t-farbe) linear, border-color var(--t-farbe) linear;
}
.mega-liste a:hover { color: var(--rot-schrift) }
.mega-liste a[aria-current] {
  color: var(--rot-schrift); font-weight: 700; border-left-color: var(--rot);
}
.mega-liste .zahl { font-size: 12px; color: var(--verkauft) }
.mega.dunkel .mega-liste a, .mega-liste.hell a { color: var(--text-dunkel) }
.mega.dunkel .mega-liste a:hover, .mega-liste.hell a:hover { color: #fff }

.eigene-linie {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--rot); color: #fff; padding: 2px 6px;
}

.mega-kasten { background: var(--dunkel); color: var(--text-dunkel); padding: 24px }
.mega-kasten h3 { color: #fff; font-size: 22px; margin: 0 0 8px }
.mega-kasten .klein { color: var(--grau-hell) }
.mega-kasten.hell { background: var(--flaeche); color: var(--anthrazit) }
.mega-kasten.hell .klein { color: var(--verkauft) }
.mega.dunkel .mega-kasten.hell .mega-kopf { color: var(--verkauft); border-bottom-color: var(--kante) }

.mega-schritte { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px }
.mega-schritte li { display: flex; gap: 10px; padding: 6px 0 }
.mega-schritte .mo { color: var(--verkauft) }

.mega-bild { min-height: 180px; background: var(--flaeche) center/cover no-repeat }

.mega-fuss {
  background: var(--flaeche); margin: 0 calc(-1 * var(--rand));
  padding: 14px var(--rand); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mega-fuss .beschriftung {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--verkauft);
}
.mega-fuss .fuge { flex: 1 }

/* Unterhalb der Schreibtischbreite gibt es kein Mega-Menü. */
@media (max-width: 1000px) {
  .mega { display: none }
  .hauptmenue .winkel { display: none }
}

/* Kategorienbaum über drei Ebenen (Board 6). */
.kategorienbaum a.ebene1 { padding-left: 0; font-weight: 700; color: var(--anthrazit) }
.kategorienbaum a.ebene2 { padding-left: 14px }
.kategorienbaum a.ebene3 { padding-left: 28px; font-size: 13px }
.kategorienbaum a.ebene3[aria-current] { padding-left: 26px }
.kategorienbaum a[aria-current] {
  color: var(--rot-schrift); font-weight: 700; border-left-color: var(--rot);
}
.kategorienbaum a.ebene1[aria-current] { padding-left: 8px }
.kategorienbaum a.ebene2[aria-current] { padding-left: 12px }

/* Die Suchfelder nehmen ihrem Rahmen die Fokusanzeige ab: Das Feld selbst
   sitzt randlos in einem umgebenden Kasten, deshalb liegt der Ring außen.
   Ohne ihn war mit der Tastatur nicht zu erkennen, wo man steht – outline:none
   ohne Ersatz ist ein Zugänglichkeitsfehler, kein Gestaltungsmittel.

   Der Kommentar stand hier schon, die Regel dazu fehlte. */
.kopf-suche:focus-within,
.suchzeile:focus-within,
.typensuche:focus-within {
  outline: 2px solid var(--rot);
  outline-offset: 2px;
}

/* Und eine sichtbare Fokusanzeige für alles Übrige, falls der Browser keine
   eigene mitbringt. :focus-visible zeigt sie nur bei Tastaturbedienung. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: 2px;
}

/* ================================================ Zustände und Bewegung */

/* Board 11, Grundregel: Zustände entstehen nur über Fläche und Linie.
   Kein Schatten, keine Rundung, keine Skalierung, kein Bild-Zoom –
   Größe, Position und Umbruch bleiben unverändert.

   Zeiten:  120 ms Zustand · 140 ms Farbe und Fläche · 160 ms Karte
            180 ms Filtermarke · 200 ms Menülinie und Aufklapper
            550 ms Lichtband · 0 ms Rückweg beim Verlassen          */

/* Hauptknopf: Rot wird Anthrazit, darüber zieht ein Lichtband.
   Das Band ist 50 × 155 px und um 35° gedreht; seine gedrehte Breite ist
   damit rund 130 px (50·cos35 + 155·sin35). Es muss also deutlich weiter als
   seine eigene Breite nach außen geparkt werden – sonst lugt im Ruhezustand
   eine helle Ecke in den Knopf hinein. */
.knopf, .knopf-2, .knopf-dunkel { position: relative; overflow: hidden; isolation: isolate }
.knopf::after, .knopf-2::after, .knopf-dunkel::after {
  content: ''; position: absolute; top: -50%; left: -170px;
  width: 50px; height: 155px; transform: rotate(35deg);
  background: rgba(255, 255, 255, .2); pointer-events: none;
  transition: left 550ms cubic-bezier(.19, 1, .22, 1);
}
.knopf-dunkel::after { background: rgba(255, 255, 255, .28) }
.knopf-2::after { background: rgba(65, 65, 65, .12) }
.knopf:hover::after, .knopf-2:hover::after, .knopf-dunkel:hover::after {
  left: calc(100% + 70px);
}
/* Gedrückt: senkt sich 2 px und wird dunkelrot. */
.knopf:active  { background: var(--rot-schrift); transform: translateY(2px) }
.knopf-2:active, .knopf-dunkel:active { transform: translateY(2px) }

/* Textverweise: die Unterlinie liegt immer da, nur die Farbe wechselt. */
.weiterlink { transition: border-color var(--t-farbe) linear, color var(--t-farbe) linear }
.weiterlink:hover { color: var(--rot-schrift) }

/* Tabellenzeile: nur der Hintergrund wechselt. */
.merkmalzeile, .kv { transition: background var(--t-zustand) ease-in-out }
.merkmalzeile:hover, .daten tr:hover { background: var(--flaeche) }

/* Filtermarke: 180 ms. */
.marke { transition: border-color 180ms ease-in-out, color 180ms ease-in-out,
                     background 180ms ease-in-out }

/* Aufklapper: 200 ms. */
.frage summary { transition: color 200ms ease-in-out }
.frage summary:hover { color: var(--rot-schrift) }

/* Kategorienbaum und Seitenleiste: nur Farbe und Kante. */
.kategorienbaum a, .sprungmarken a, .nebenkasten a, .kachel, .karte-kompakt {
  transition: color var(--t-farbe) linear, border-color var(--t-karte) ease-in-out;
}

/* Verboten laut Board 11: Einblenden beim Scrollen, Karussell, hochlaufende
   Zähler, Drehkreise als Ladeanzeige. Nichts davon ist umgesetzt. */

/* Bei prefers-reduced-motion entfallen alle Bewegungen, Zustände wechseln
   hart. Das Lichtband verschwindet dabei ganz. */
@media (prefers-reduced-motion: reduce) {
  .knopf::after, .knopf-2::after, .knopf-dunkel::after { display: none }
  .knopf:active, .knopf-2:active, .knopf-dunkel:active { transform: none }
  .mega { transition: none }
}

/* ===================================================================== Icons */

/* Icons aus dem Grafik-Asset-Kit: 24-px-Raster, Strich 1,6–2, gekappte Enden.
   Die Farbe kommt immer aus der Umgebung, nie aus der Zeichnung. */
.icon { flex: none; vertical-align: middle }
.icon-rot { color: var(--rot-schrift) }

.mit-icon { display: inline-flex; align-items: center; gap: 8px; min-width: 0 }
.art-icon { color: var(--verkauft) }
a[aria-current] .art-icon { color: var(--rot-schrift) }

.kopf-suche button, .suchzeile button, .blaettern a, .filter .knopf-2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.leistungs-icon { color: var(--rot-schrift); display: flex; align-items: center; justify-content: center; padding-top: 2px }
.ablegeflaeche .icon { margin-bottom: 2px }

/* Fehlendes Foto: ein ruhiger Hinweis statt des kaputten Bildsymbols. */
.bild-folgt {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 60px; padding: 12px; text-align: center;
  font-weight: 500; font-size: 12.5px; color: var(--platzhalter);
  background: var(--flaeche);
}
.galerie-gross .bild-folgt { font-size: 14px }

/* Kategorienbaum: Icon, Text und Zahl in drei Spalten. So läuft eine
   zweite Textzeile nicht unter das Icon und die Zahlen stehen untereinander. */
.kategorienbaum a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  align-items: start; line-height: 1.4;
}
.kategorienbaum a > span:first-child { grid-column: 1 / span 2 }
.kategorienbaum a .mit-icon {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
}
.kategorienbaum a .zahl { grid-column: 3; text-align: right; padding-top: 1px }
.kategorienbaum .art-icon { margin-top: 1px }

/* Schmale Ansicht: das Hauptbild bekommt eine feste Höhe statt 4:3 über die
   volle Breite (Board 5). Sonst steht der Preis erst nach gut 1000 px Bild. */
@media (max-width: 1100px) {
  .galerie-gross { aspect-ratio: auto; height: 340px }
  .galerie-klein { grid-template-columns: repeat(5, 1fr) }
}
@media (max-width: 600px) {
  .galerie-gross { height: 250px }
}

/* Kachel- und Listenansicht (Board 6, Ergebniszeile). */
.ansichtsumschalter { display: flex; flex: none }
.ansichtsumschalter a {
  /* 44 statt 40 px bei gleich großem Zeichen: Das Zeichen füllt seinen
     Rahmen bis an den Rand aus, in einem 40er Kästchen saß es daher sichtbar
     enger als in jedem anderen Knopf daneben. */
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--kante); color: var(--anthrazit); text-decoration: none;
  transition: background var(--t-farbe) linear, border-color var(--t-farbe) linear;
}
.ansichtsumschalter a + a { border-left: none }
.ansichtsumschalter a[aria-current] {
  background: var(--anthrazit); border-color: var(--anthrazit); color: #fff;
}
.raster-liste { display: grid; grid-template-columns: 1fr; gap: 10px }
.raster-liste .karte-kompakt .bild { width: 160px; height: 120px }
@media (max-width: 600px) { .raster-liste .karte-kompakt .bild { width: 104px; height: 78px } }

/* ========================================================== Suchvorschläge */

/* Board 6: ein Feld, das unter der Suche andockt – „1.5px #e5e2da,
   border-top:none", drei Spalten mit 1-px-Trennung. */
.mit-vorschlaegen { position: relative }
/* Das Feld ist eine Spalte: oben die Vorschläge, die bei Bedarf scrollen,
   unten fest der Verweis auf alle Treffer. Vorher lag er im scrollenden
   Bereich und wurde unten einfach abgeschnitten. */
.vorschlaege {
  position: absolute; right: 0; left: auto; top: 100%; z-index: 45;
  /* Breite Fläche, an der rechten Kante des Suchfelds verankert. Vorher an
     left:0/right:0 = Suchfeldbreite gekoppelt, wodurch sich die drei Spalten
     auf Desktop übereinander quetschten. */
  width: 720px; max-width: 94vw;
  background: #fff; border: 1.5px solid var(--linie); border-top: none;
  display: flex; flex-direction: column; max-height: min(62vh, 560px);
}
@media (max-width: 900px) {
  /* Mobil spannt das Suchfeld die volle Breite – dann darf das Feld selbst die
     Breite vorgeben. */
  .vorschlaege { left: 0; right: 0; width: auto; max-width: 100vw; }
}
.vorschlaege-spalten { flex: 1 1 auto; min-height: 0; overflow-y: auto }
.vorschlaege-alle { flex: none }
.vorschlaege-spalten {
  /* Flex statt Grid: 1–3 gleich breite, gleich hohe Spalten – unabhängig von
     der Spaltenzahl. (auto-fit mit minmax(0,1fr) ließ Spalten überlappen und
     eine graue Leerfläche stehen.) */
  display: flex; gap: 1px; background: var(--linie); align-items: stretch;
}
.vorschlaege-spalten > div { flex: 1 1 0; background: #fff; padding: 14px 16px; min-width: 0 }
@media (max-width: 900px) {
  .vorschlaege-spalten { flex-direction: column }
  .vorschlaege-spalten > div { flex: none }
}

.vorschlaege-kopf {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--verkauft); padding-bottom: 8px; border-bottom: 1px solid var(--linie);
  margin-bottom: 6px;
}
.vorschlaege a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 0; text-decoration: none; font-size: 13.5px; color: var(--anthrazit);
  transition: color var(--t-farbe) linear;
}
.vorschlaege a b { color: var(--rot-schrift) }
.vorschlaege a:hover, .vorschlaege a[aria-selected] { color: var(--rot-schrift) }
.vorschlaege a[aria-selected] { background: var(--flaeche) }
.vorschlaege .zahl { font-size: 12px; color: var(--verkauft); white-space: nowrap }

.vorschlaege-alle {
  display: block; padding: 12px 16px; background: var(--flaeche);
  border-top: 1px solid var(--linie);
  font-weight: 600; font-size: 13px; color: var(--anthrazit); text-decoration: none;
}
.vorschlaege-alle:hover { color: var(--rot-schrift) }
.vorschlaege-leer { margin: 0; padding: 14px 16px; font-size: 13px; color: var(--verkauft) }

/* ============================================================ Seitenlader */

/* Board 11: Fläche über die volle Höhe, Signet ruhig in der Mitte,
   4-px-Balken oben, Statuszeile darunter. Ausdrücklich ohne Drehkreis. */
/* Seitenlader nach Board 11 / Asset-Kit 07.

   Fläche #414141 (dasselbe Anthrazit wie Fließtext – kein Schwarz), Signet
   88 px und unbewegt, roter Fortschrittsbalken oben, drei taktende Punkte mit
   wechselnder Statuszeile, darüber ein breiter flacher Lichtschleier in der
   Diagonale des Signets. Verschwindet ohne Nachlauf. */
.seitenlader {
  position: fixed; inset: 0; z-index: 95;
  /* Nicht ganz deckend: Die Seite darunter bleibt schemenhaft stehen, der
     Wechsel wirkt dadurch wie ein Zwischenschritt und nicht wie ein Abbruch. */
  background: rgba(65, 65, 65, .93);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 0; transition: opacity var(--t-farbe) linear;
}
.seitenlader.auf { opacity: 1 }
.seitenlader img { width: 88px; height: auto; position: relative }

/* Fortschrittsbalken: 4 px, rot auf schwach weißer Schiene. */
.seitenlader-balken {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: rgba(255, 255, 255, .16);
}
.seitenlader-balken i {
  display: block; height: 4px; width: 6%; background: #dd3333;
  animation: lader-balken 2.4s cubic-bezier(.25, .8, .35, 1) infinite;
}
/* Der Balken lief vorher linear und sprang bei 55 % die Stufe hoch. Mit
   weicher Kurve wirkt er wie etwas, das wirklich lädt: schnell am Anfang,
   zäh gegen Ende. */
@keyframes lader-balken {
  0%   { width: 4% }
  20%  { width: 38% }
  55%  { width: 72% }
  100% { width: 94% }
}

/* Lichtschleier in der Diagonale des Signets, −45° wie in der Mappe.

   Vorher war es ein Rechteck mit harten Kanten, das gleichmäßig durchlief und
   dann vierzig Prozent der Zeit regungslos am Rand stand. Das sah nach
   Maschine aus. Jetzt läuft ein weicher Verlauf ohne sichtbare Kanten durch,
   die Bewegung geht über die ganze Laufzeit und der Schleier blendet an
   beiden Enden aus, statt stehen zu bleiben. */
.seitenlader-schleier {
  position: absolute; top: -60%; left: 30%; width: 240px; height: 220%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .035) 28%,
    rgba(255, 255, 255, .10) 50%,
    rgba(255, 255, 255, .035) 72%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none; transform-origin: center;
  animation: lader-schleier 5.6s cubic-bezier(.45, 0, .3, 1) infinite;
}
@keyframes lader-schleier {
  0%   { transform: rotate(-45deg) translateX(-420px); opacity: 0 }
  18%  { opacity: 1 }
  82%  { opacity: 1 }
  100% { transform: rotate(-45deg) translateX(420px); opacity: 0 }
}

.seitenlader-firma {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 23px; line-height: 1.15; color: #fff;
  margin-top: 18px; letter-spacing: .01em; position: relative;
}
.seitenlader-sparte {
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 500; font-size: 15px; color: var(--grau-hell);
  letter-spacing: .06em; position: relative;
}

/* Drei Punkte und die Statuszeile. */
.seitenlader-stand {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; position: relative;
}
.seitenlader-stand .punkt {
  width: 7px; height: 7px; background: rgba(255, 255, 255, .2);
  animation: lader-punkt 1.2s steps(1, end) infinite;
}
.seitenlader-stand .punkt:nth-child(2) { animation-delay: .4s }
.seitenlader-stand .punkt:nth-child(3) { animation-delay: .8s }
@keyframes lader-punkt {
  0%, 66%   { background: rgba(255, 255, 255, .2) }
  67%, 100% { background: #dd3333 }
}

.seitenlader-fenster { height: 22px; overflow: hidden; margin-left: 6px }
.seitenlader-rolle { display: block; animation: lader-zeile 4.5s steps(1, end) infinite }
.seitenlader-zeile {
  display: block; height: 22px;
  font-family: var(--zahlen); font-weight: 500; font-size: 12.5px; line-height: 22px;
  color: var(--grau-hell); white-space: nowrap;
}
@keyframes lader-zeile {
  0%, 30%   { transform: translateY(0) }
  36%, 63%  { transform: translateY(-22px) }
  69%, 100% { transform: translateY(-44px) }
}

/* Fußzeile: Domain links, Rufnummer rechts. */
.seitenlader-fuss {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px; display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.seitenlader-fuss span { font-size: 11px; color: #a8a49b }

/* ------------------------------------------------- Bilder und Skelette */

/* Bildflächen tragen bis zum Eintreffen ein ruhiges Skelett (Asset-Kit 07:
   Deckkraft 30 → 80 %, 1400 ms). Das Bild blendet sich dann in 240 ms ein –
   kein hartes Aufploppen. */
.karte-bild, .galerie-gross, .kachel-bild, .karte-kompakt .bild {
  background-color: var(--flaeche);
}
.karte-bild img, .kachel-bild img, .karte-kompakt .bild img {
  opacity: 0; transition: opacity 240ms ease-out;
}
.karte-bild img.geladen,
.kachel-bild img.geladen, .karte-kompakt .bild img.geladen { opacity: 1 }

.karte-bild::before, .kachel-bild::before, .karte-kompakt .bild::before {
  content: ''; position: absolute; inset: 0; background: #e0ddd6;
  animation: skelett 1400ms ease-in-out infinite alternate;
}
.karte-kompakt .bild { position: relative }
.karte-bild:has(img.geladen)::before,
.kachel-bild:has(img.geladen)::before,
.karte-kompakt .bild:has(img.geladen)::before,
.karte-bild:has(.bild-folgt)::before,
.kachel-bild:has(.bild-folgt)::before,
.karte-kompakt .bild:has(.bild-folgt)::before { display: none }
@keyframes skelett { from { opacity: .3 } to { opacity: .8 } }

/* Alles liegt über dem Skelett. Wichtig: Beim Abzeichen darf dafür NICHT
   die Positionierung angefasst werden – es sitzt absolut in der oberen
   linken Ecke, und ein „position: relative" an dieser Stelle hat es aus der
   Ecke an den rechten Rand geschoben. Ein z-index genügt. */
.karte-bild img, .karte-bild .bild-folgt,
.kachel-bild img, .karte-kompakt .bild img { position: relative; z-index: 1 }
.karte-bild .merkmal { z-index: 2 }

/* --------------------------------------------------- Aufklapper 200 ms */

/* <details> lässt sich nicht von Haus aus bewegen. Die Hülle wächst
   stattdessen über die Rasterhöhe von 0fr auf 1fr – das ist die einzige
   Art, eine unbekannte Höhe sauber aufzuziehen. */
.frage .frage-koerper {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease-out;
}
.frage .frage-koerper > div { overflow: hidden }
.frage.offen .frage-koerper { grid-template-rows: 1fr }
.frage summary::after { transition: transform 200ms ease-out }
.frage.offen summary::after { transform: rotate(180deg) }

@media (prefers-reduced-motion: reduce) {
  .seitenlader, .seitenlader-balken i, .seitenlader-schleier,
  .seitenlader-stand .punkt, .seitenlader-rolle { animation: none; transition: none }
  .seitenlader-balken i { width: 40% }
  .karte-bild::before, .kachel-bild::before, .karte-kompakt .bild::before { animation: none }
  .karte-bild img, .kachel-bild img,
  .karte-kompakt .bild img { opacity: 1; transition: none }
  .frage .frage-koerper { transition: none }
}

/* Bildergalerie der Inhaltsseiten. Festes Verhältnis 4:3 wie bei den
   Maschinenfotos, damit unruhige Aufnahmen nicht aus dem Raster fallen. */
.bildergalerie {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px; margin-top: 28px;
}
.bildergalerie figure { margin: 0 }
.bildergalerie img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--flaeche); border: 1.5px solid var(--linie);
}
.bildergalerie figcaption {
  font-size: 12px; line-height: 1.5; color: var(--verkauft); margin-top: 6px;
}

/* Markenlogos auf der dunklen Leiste: weiße Platte, wie das Logo im Fuß.
   Im Ruhezustand zurückgenommen, beim Zeigen voll – die Mappe verlangt
   „einfarbig, Aufhellung im Zeigerzustand". */
.markenleiste .markenfeld {
  display: inline-flex; align-items: center; justify-content: center;
  width: 112px; height: 40px; padding: 4px 8px; background: #fff; border: none;
}
.markenleiste .markenfeld img {
  max-width: 100%; max-height: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter var(--t-farbe) linear, opacity var(--t-farbe) linear;
}
.markenleiste .markenfeld:hover img { filter: none; opacity: 1 }

/* Auf der Markenseite stehen sie auf hellem Grund. */
.bildergalerie .marke-logo img { aspect-ratio: 5 / 2; object-fit: contain; background: #fff; padding: 8px }

/* =========================================== Lesbarkeit, nachgemessen */

/* Board 11 verlangt durchgehend mindestens 4,5:1. Vier Stellen lagen knapp
   darunter – gemessen, nicht geschätzt:

   1. „Preise anzeigen" im Kopf: #8d887c auf Weiß ergibt 3,5:1.
   2. Augenbrauen auf der dunklen Fläche: #f05a4a auf #1c1b19 ergibt 3,0:1.
      Das ist der Farbwert aus der Mappe – sie widerspricht sich hier selbst.
      Für kleine Schrift wird er aufgehellt, als Fläche bleibt er unverändert.
   3./4. Grauer Text auf Sand: #6d6a63 auf #ede8dd ergibt 4,4:1. Auf Weiß
      reicht derselbe Ton (4,9:1), nur auf Sand nicht. */

:root { --akzent-hell-text: #ff8f7d; --grau-auf-sand: #5f5c55 }

.kopf-schalter > .auge { color: var(--verkauft) }

.band-dunkel .auge, .mega.dunkel .auge, .mega-kasten .auge { color: var(--akzent-hell-text) }

.band-hell .klein, .band-hell .mo.klein, .band-hell .merkmalszeile.hell,
.band-hell .kv > span:first-child { color: var(--grau-auf-sand) }

/* Nachtrag zur Lesbarkeit – ebenfalls nachgemessen:

   1. Der Kennzahlenkasten liegt im Sandabschnitt, hat aber selbst eine
      anthrazite Fläche. Die Sandregel oben hätte seinen hellen Text
      überschrieben (1,5:1). Sie darf dort nicht greifen.
   2. Die kleinen Ordnungszahlen der Leistungsliste standen in #a49f94 auf
      Sand – 2,2:1. Sie bleiben zurückhaltend, aber lesbar.
   3. „Marken im Programm" stand in #a8a49b auf #414141 – 4,1:1. Auf dunklem
      Grund muss der Ton heller werden, nicht dunkler. */

.kennzahlenkasten .klein { color: #b4afa4 }
.leistungszeile .nummer { color: var(--grau-auf-sand) }
.markenleiste .beschriftung { color: #bdb9ae }

/* Die Riesenziffern der Schrittleisten sind Zierde: Die Mappe setzt sie
   bewusst sehr leise (#3a3833 auf #1c1b19, #f2f2f0 auf Weiß). Sie tragen
   keine Information – der Titel darunter tut es – und sind deshalb für
   Vorleseprogramme ausgeblendet. Ein Kontrastwert von 4,5:1 gilt für sie
   nicht. */
.schritte .ziffer, .schrittkarte .ziffer { user-select: none }

/* ============================================= Kopfzone der Inhaltsseiten */

/* Rechtstexte bekommen keine – so will es Board 13. Alle übrigen Seiten
   schon, sonst beginnt jede gleich und keine hat ein Gesicht. */
.seitenkopf { background: var(--sand); padding: 52px 0 46px }
.seitenkopf h1 { font-size: 46px; line-height: 1.05; margin: 10px 0 0; max-width: 20ch }
.seitenkopf .lead {
  font-size: 17px; line-height: 1.6; color: var(--grau-auf-sand);
  margin-top: 14px; max-width: 58ch;
}

/* Mit Foto: dieselbe Abdunklung wie im Hero, nur flacher. */
.seitenkopf.mit-bild {
  position: relative; background: var(--dunkel) center/cover no-repeat;
  padding: 72px 0 64px; color: #fff;
}
.seitenkopf.mit-bild::after {
  content: ''; position: absolute; inset: 0; background: rgba(28, 27, 25, .66);
}
.seitenkopf.mit-bild .bahn { position: relative; z-index: 1 }
.seitenkopf.mit-bild h1 { color: #fff }
.seitenkopf.mit-bild .auge { color: var(--akzent-hell-text) }
.seitenkopf.mit-bild .lead { color: var(--text-dunkel) }

/* --------------------------------------------------- Inhalt zweispaltig */

/* Bei den Inhaltsseiten steht die Begleitspalte rechts, bei Rechtstexten
   bleiben die Sprungmarken links. */
.inhaltsraster.umgekehrt { grid-template-columns: 1fr 300px }
@media (max-width: 1000px) { .inhaltsraster.umgekehrt { grid-template-columns: 1fr } }

.begleitkasten .innen {
  background: var(--anthrazit); color: var(--text-dunkel); padding: 24px;
}
.begleitkasten .innen h3 { color: #fff; font-size: 22px; margin: 6px 0 8px }
.begleitkasten .innen .auge { color: var(--akzent-hell-text) }
.begleitkasten .innen .klein { color: var(--grau-hell) }
.begleitkasten .nummer {
  display: block; font-weight: 600; font-size: 24px; color: #fff;
  text-decoration: none; margin-top: 12px;
}
.begleitkasten .zeiten { margin: 4px 0 18px }
.begleitkasten .knopf { width: 100% }
.begleitkasten .anschrift {
  border: 1.5px solid var(--linie); border-top: none; padding: 20px 24px; font-size: 14px;
}
.begleitkasten .anschrift p { margin: 0 0 10px; line-height: 1.7 }

/* ------------------------------------------------------ Verwandte Seiten */

.verwandte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
@media (max-width: 900px) { .verwandte { grid-template-columns: 1fr } }
.verwandte a {
  position: relative; display: block; padding: 22px 50px 22px 24px;
  border: 1.5px solid var(--linie); border-top: 4px solid var(--linie);
  text-decoration: none; color: inherit; background: #fff;
  transition: border-color var(--t-karte) ease-in-out;
}
.verwandte a:hover { border-color: var(--anthrazit); border-top-color: var(--rot) }
.verwandte .hn { display: block; font-size: 21px; line-height: 1.2 }
.verwandte .klein { display: block; margin-top: 6px }
.verwandte .pfeil {
  position: absolute; right: 22px; top: 22px; color: var(--rot-schrift); font-size: 18px;
  transition: transform var(--t-farbe) ease-out;
}
.verwandte a:hover .pfeil { transform: translateX(4px) }

/* --------------------------------------------------- Abschlussbaustein */

/* „So endet keine Seite im Nichts." – die Mappe setzt denselben Baustein
   unter jede Inhaltsseite. */
.abschluss { padding: 48px 0 }
.abschluss .bahn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.abschluss h2 { font-size: 34px; line-height: 1.1; margin: 6px 0 8px }
.abschluss .klein { color: var(--grau-hell); margin: 0; max-width: 52ch }
.abschluss .leiste { flex: none }

/* Markenzeichen stehen vollständig im Feld, nicht beschnitten – und auf
   Weiß, weil sie darauf gezeichnet sind. */
.bildergalerie.logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)) }
.bildergalerie.logos img {
  aspect-ratio: 5 / 2; object-fit: contain; background: #fff; padding: 14px 18px;
}
.bildergalerie.logos figcaption { text-align: center }

/* ======================================================= Karte und Anfahrt */

.kartenfeld {
  position: relative; min-height: 340px; margin-top: 26px;
  border: 1.5px solid var(--linie); background: var(--flaeche);
}
.kartenfeld .consentry-embed { min-height: 340px; height: 100% }
.kartenzeile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-top: 14px;
}
.kartenzeile .klein { margin: 0; max-width: 46ch }

.anfahrtskacheln {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px;
}
@media (max-width: 800px) { .anfahrtskacheln { grid-template-columns: 1fr } }
.anfahrtskacheln > div { border-top: 2px solid var(--anthrazit); padding-top: 14px }
.anfahrtskacheln h3 { font-size: 18px; margin: 0 }
.anfahrtskacheln .klein { font-size: 13.5px; line-height: 1.7; margin: 6px 0 0 }

/* Markenleiste eine Spur größer – die Logos tragen mehr Fläche gut. */
.markenleiste .markenfeld { width: 134px; height: 48px; padding: 5px 10px }
.markenleiste .reihe { gap: 12px }

/* Die Karte im Stil des Hauses.

   Einschränkung, die man kennen muss: Die Einbettungs-Schnittstelle von
   Google („maps/embed/v1") nimmt keine Gestaltungsangaben entgegen – ein
   style-Parameter wird mit 400 abgewiesen. Echte Farbsteuerung gäbe es nur
   über die JavaScript-Schnittstelle oder eine andere Kartenquelle.

   Was hier geht und auch deutlich hilft: die Karte entsättigen, damit sie
   sich der zurückhaltenden Palette fügt, und sie in die Rahmung des Hauses
   setzen – anthrazite Kopfleiste, roter Deckel, eckige Kanten. */
.kartenfeld { border-top: 4px solid var(--rot) }
.kartenkopf {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: var(--anthrazit); color: #fff; padding: 12px 18px;
}
.kartenkopf .auge { color: var(--akzent-hell-text); margin: 0 }
.kartenkopf > span:last-child { font-weight: 600; font-size: 14px }

.kartenfeld iframe {
  display: block;
  filter: grayscale(.88) contrast(1.06) brightness(1.02);
  transition: filter 240ms ease-out;
}
/* Beim Zeigen kehrt die Farbe zurück – dann will man ja etwas erkennen. */
.kartenfeld:hover iframe { filter: grayscale(.2) contrast(1.02) }

@media (prefers-reduced-motion: reduce) {
  .kartenfeld iframe { transition: none }
}

/* ==================================================================== Lupe */

/* Lightbox in der Sprache des Hauses: anthrazite Fläche, eckige Kanten,
   keine Schatten, 200 ms. */
.vergroesserbar { cursor: zoom-in }

.lupe {
  position: fixed; inset: 0; z-index: 98; background: var(--dunkel);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; padding: 24px;
  opacity: 0; transition: opacity 200ms ease-out;
}
.lupe.auf { opacity: 1 }
.lupe figure {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; min-width: 0; max-height: calc(100vh - 48px);
}
.lupe .bildstapel {
  display: grid; place-items: center; min-width: 0;
  max-width: 100%; max-height: calc(100vh - 130px);
  border: 1.5px solid var(--linie-dunkel); background: var(--dunkel);
}
.lupe img {
  grid-area: 1 / 1;
  max-width: 100%; max-height: calc(100vh - 134px); width: auto; object-fit: contain;
}
.lupe figcaption {
  font-weight: 500; font-size: 14px; color: var(--text-dunkel); text-align: center;
  max-width: 62ch;
}
.lupe button {
  width: 52px; height: 52px; flex: none; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .35);
  font-size: 26px; line-height: 1;
  transition: background var(--t-farbe) linear, border-color var(--t-farbe) linear;
}
.lupe button:hover { background: #fff; color: var(--anthrazit); border-color: #fff }
.lupe-zu { position: absolute; top: 24px; right: 24px; z-index: 1 }
.lupe-zaehler {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: var(--grau-hell);
}
.lupe.einzeln .lupe-vor, .lupe.einzeln .lupe-zurueck { visibility: hidden }

@media (max-width: 700px) {
  .lupe { grid-template-columns: 1fr; padding: 16px }
  .lupe-vor, .lupe-zurueck { position: absolute; bottom: 20px }
  .lupe-vor { left: 20px } .lupe-zurueck { right: 20px }
}
@media (prefers-reduced-motion: reduce) { .lupe { transition: none } }

/* ------------------------------------------- Bilder im Fließtext */

/* Mehrere Bilder hintereinander im Text sollen eine Reihe bilden und nicht
   untereinander stehen – sonst wird aus einem Rückblick eine Bilderhalde. */
.fliesstext img {
  display: inline-block; vertical-align: top; width: 216px; aspect-ratio: 4 / 3;
  object-fit: cover; margin: 0 10px 10px 0;
  background: var(--flaeche); border: 1.5px solid var(--linie);
}

/* „Alle Aufnahmen zeigen" */
.mehr-bilder { margin-top: 16px }
.mehr-bilder > summary {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1.5px solid var(--anthrazit); cursor: pointer; list-style: none;
  font: 700 13.5px Montserrat, Arial, sans-serif;
  transition: background var(--t-farbe) linear, color var(--t-farbe) linear;
}
.mehr-bilder > summary::-webkit-details-marker { display: none }
.mehr-bilder > summary:hover { background: var(--anthrazit); color: #fff }
.mehr-bilder[open] > summary { margin-bottom: 14px }

/* --------------------------- Kategorienbaum: Gliederung ohne Raster */

/* Linien nur dort, wo sie wirklich trennen: zwischen den Warengruppen.
   Innerhalb eines Astes trägt die Einrückung und eine einzige senkrechte
   Führungslinie – sonst entsteht der Eindruck einer Tabelle. */
.kategorienbaum a.ebene1 {
  padding: 11px 0; border-bottom: 1px solid var(--linie);
}
.kategorienbaum a.ebene1[aria-current] { border-bottom-color: transparent }

.kategorienbaum a.ebene2 { padding: 8px 0 8px 14px; border: none }
.kategorienbaum a.ebene2[aria-current] { padding-left: 12px }

/* Die selten gebrauchten Bearbeitungsarten liegen unter einem Aufklapper.
   Er sieht aus wie eine Baumzeile, trägt aber keinen Verweis – darum das
   Plus statt des roten Strichs am Rand. */
.kategorienbaum .mehr > summary {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 7px 0 7px 14px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 13.5px; color: var(--verkauft);
  border-left: 4px solid transparent;
}
.kategorienbaum .mehr > summary::-webkit-details-marker { display: none }
.kategorienbaum .mehr > summary .auf::before {
  content: '+ '; font-weight: 700; color: var(--rot-schrift);
}
.kategorienbaum .mehr[open] > summary .auf::before { content: '– ' }
.kategorienbaum .mehr > summary:hover,
.kategorienbaum .mehr[open] > summary { color: var(--anthrazit) }

.kategorienbaum a.ebene3 {
  position: relative; padding: 6px 0 6px 30px; border: none; font-size: 13px;
}
/* Eine durchgehende Führungslinie statt vieler kurzer Striche. */
.kategorienbaum a.ebene3::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 1px; background: var(--linie);
}
.kategorienbaum a.ebene3:first-of-type::before { top: 4px }
.kategorienbaum a.ebene3:last-of-type::before { bottom: 4px }
.kategorienbaum a.ebene3[aria-current] { padding-left: 28px }
.kategorienbaum a.ebene3[aria-current]::before { background: var(--rot); width: 2px }

/* Nach dem aufgeklappten Ast etwas Luft, bevor die nächste Gruppe kommt. */
.kategorienbaum a.ebene3:last-of-type { margin-bottom: 8px }
.kategorienbaum a.ebene2:last-of-type { margin-bottom: 6px }

.kategorienbaum .zahl { font-size: 12.5px; color: var(--verkauft) }
.kategorienbaum a[aria-current] .zahl { color: var(--rot-schrift) }

/* ------------------------------------------- Bilder im Fließtext */

/* Mehrere Bilder hintereinander im Text sollen eine Reihe bilden und nicht
   untereinander stehen – sonst wird aus einem Rückblick eine Bilderhalde. */
.fliesstext img {
  display: inline-block; vertical-align: top; width: 216px; aspect-ratio: 4 / 3;
  object-fit: cover; margin: 0 10px 10px 0;
  background: var(--flaeche); border: 1.5px solid var(--linie);
}

/* „Alle Aufnahmen zeigen" */
.mehr-bilder { margin-top: 16px }
.mehr-bilder > summary {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1.5px solid var(--anthrazit); cursor: pointer; list-style: none;
  font: 700 13.5px Montserrat, Arial, sans-serif;
  transition: background var(--t-farbe) linear, color var(--t-farbe) linear;
}
.mehr-bilder > summary::-webkit-details-marker { display: none }
.mehr-bilder > summary:hover { background: var(--anthrazit); color: #fff }
.mehr-bilder[open] > summary { margin-bottom: 14px }

/* ------------------------------- Kategorienbaum: deutlichere Gliederung */

/* Ohne Trennung verschwimmen zwei- und dreizeilige Namen ineinander. Linien
   statt Flächen – das ist die Sprache der Mappe, und es bleibt ruhig. */
.kategorienbaum a.ebene1 { border-bottom: 1px solid var(--linie); padding: 10px 0 }
.kategorienbaum a.ebene1[aria-current] { border-bottom-color: var(--anthrazit) }
.kategorienbaum a.ebene2 {
  border-bottom: 1px solid var(--flaeche); padding-top: 9px; padding-bottom: 9px;
}
.kategorienbaum a.ebene2:last-of-type { border-bottom: none }

/* Die dritte Ebene rückt ein und bekommt eine senkrechte Führungslinie,
   damit erkennbar bleibt, wozu sie gehört. */
.kategorienbaum a.ebene3 {
  position: relative; border-bottom: 1px solid var(--flaeche);
  padding-top: 7px; padding-bottom: 7px;
}
.kategorienbaum a.ebene3::before {
  content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 1px; background: var(--linie);
}
.kategorienbaum a.ebene3:last-of-type { border-bottom: none }
.kategorienbaum a.ebene3[aria-current]::before { background: var(--rot) }

/* Die Zahl bleibt immer rechtsbündig, auch bei langen Namen. */
.kategorienbaum .zahl { font-size: 12.5px; color: var(--verkauft) }
.kategorienbaum a[aria-current] .zahl { color: var(--rot-schrift) }

/* Suchvorschläge: weich auf- und zuklappen, 200 ms wie die übrigen
   Aufklapper. Das Feld deckt von oben auf, genau wie das Mega-Menü. */
.vorschlaege {
  clip-path: inset(0 0 100% 0); opacity: 0;
  transition: clip-path 200ms ease-out, opacity var(--t-farbe) linear;
}
.vorschlaege.auf { clip-path: inset(0 0 0 0); opacity: 1 }

/* Direkte Treffer mit Vorschaubild */
.vorschlaege a.treffer {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  align-items: center; padding: 8px 0;
}
.treffer-bild {
  width: 56px; height: 42px; background: var(--flaeche); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.treffer-bild img { width: 100%; height: 100%; object-fit: contain }
.treffer-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.35 }
.treffer-text .titel { font-weight: 600; overflow-wrap: anywhere }
.treffer-text .klein { font-size: 12px }
.treffer-rand { text-align: right; display: flex; flex-direction: column; line-height: 1.35; min-width: 0 }
.treffer-rand .preis { font-weight: 600; font-size: 13px }
.treffer-rand .nummer { font-size: 11.5px; color: var(--verkauft) }

/* Auch „Alle Aufnahmen zeigen" klappt weich auf. */
.mehr-bilder > div, .mehr-bilder > .bildergalerie {
  animation: aufklappen 200ms ease-out;
}
@keyframes aufklappen {
  from { opacity: 0; transform: translateY(-6px) }
  to   { opacity: 1; transform: none }
}
@media (prefers-reduced-motion: reduce) {
  .vorschlaege { transition: none }
  .mehr-bilder > div, .mehr-bilder > .bildergalerie { animation: none }
}

/* Bildwechsel in der Lupe: dieselben zwei Ebenen, dieselbe Überblendung. */
.lupe img { opacity: 0; transition: opacity var(--t-karte) ease-out }
.lupe img.da { opacity: 1 }
@media (prefers-reduced-motion: reduce) {
  .lupe img, .galerie-gross img { opacity: 1; transition: none }
  .galerie-gross::before { animation: none }
}

/* Spaltenköpfe der technischen Daten sitzen in ihren Spalten. */
.merkmalzeile.merkmalkopf {
  border-bottom: 2px solid var(--anthrazit); padding-bottom: 8px; margin-bottom: 2px;
}
.merkmalzeile.merkmalkopf span { color: var(--rot-schrift) }

/* Blättern in der Maschinengalerie.

   Zwei Bildebenen liegen übereinander, immer genau eine ist sichtbar. Beim
   Wechsel lädt das neue Bild verdeckt in die ruhende Ebene; erst dann tauschen
   beide ihre Deckkraft. So blendet ein Bild in das andere über, statt kurz auf
   die leere Fläche zu springen – das war der harte Sprung beim Durchklicken.

   Das Skelett darunter läuft nur, solange noch gar kein Bild da ist. */
.galerie-gross { position: relative; overflow: hidden }
.galerie-gross::before {
  content: ''; position: absolute; inset: 0; background: #e0ddd6;
  animation: skelett 1400ms ease-in-out infinite alternate;
}
.galerie-gross:has(img.da)::before,
.galerie-gross:has(.bild-folgt)::before { display: none }

.galerie-gross img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity var(--t-karte) ease-out;
}
.galerie-gross img.da { opacity: 1; z-index: 1 }

/* Vorschaubilder: der Wechsel der Markierung soll mitlaufen, nicht springen. */
.galerie-klein a {
  transition: border-color var(--t-farbe) linear, opacity var(--t-farbe) linear;
}
.galerie-klein a:not([aria-current]) { opacity: .72 }
.galerie-klein a:hover { opacity: 1 }
/* Blätterpfeile: erscheinen erst, wenn man über dem Bild steht – ruhig,
   solange man nur schaut. Auf Geräten ohne Zeiger stehen sie dauerhaft da,
   sonst käme man dort nicht an sie heran. */
.galerie-vor, .galerie-zurueck {
  position: absolute; top: 50%; margin-top: -26px; z-index: 2;
  width: 52px; height: 52px; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 27, 25, .72); color: #fff; border: none;
  opacity: 0; transition: opacity var(--t-farbe) linear, background var(--t-farbe) linear;
}
.galerie-vor { left: 0 } .galerie-zurueck { right: 0 }
.galerie-gross:hover .galerie-vor,
.galerie-gross:hover .galerie-zurueck,
.galerie-vor:focus-visible, .galerie-zurueck:focus-visible { opacity: 1 }
.galerie-vor:hover, .galerie-zurueck:hover { background: var(--rot) }

@media (hover: none) {
  .galerie-vor, .galerie-zurueck { opacity: 1 }
}

.galerie-zaehler {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  background: rgba(28, 27, 25, .78); color: #fff; padding: 5px 11px; font-size: 12px;
  opacity: 0; transition: opacity var(--t-farbe) linear;
}
.galerie-gross:hover .galerie-zaehler { opacity: 1 }
@media (hover: none) { .galerie-zaehler { opacity: 1 } }

/* Videos */
.videofeld { margin: 0 0 18px }
.videofeld .consentry-embed { min-height: 220px }
.stumm-hinweis {
  display: inline-block; margin-left: 10px; padding: 2px 8px;
  background: var(--flaeche); color: var(--verkauft);
  font-family: 'Archivo Narrow', Montserrat, sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .galerie-gross img { opacity: 1; transition: none }
}

/* Die aktuelle Seite steht im Nebenkasten mit, als markierter Eintrag ohne
   Verweis – eine Liste, aus der die eigene Seite verschwindet, wirkt
   lückenhaft und verrät nicht, wo man gerade ist. */
.nebenkasten span[aria-current] {
  display: block; padding: 7px 0 7px 10px;
  border-bottom: 1px solid var(--linie-sand);
  border-left: 4px solid var(--rot); margin-left: -14px; padding-left: 10px;
  font-weight: 700; font-size: 13px; color: var(--rot-schrift);
}
.nebenkasten span[aria-current]:last-child { border-bottom: none }

/* Auch im Mega-Menü: aktuelle Seite deutlich, aber ruhig. */
.mega-liste a[aria-current="page"] {
  color: var(--rot-schrift); font-weight: 700; border-left-color: var(--rot);
}

/* ---------------------------------------------------- Markenkästen
   Logo, Name, Sparte und Herstellersatz in einem Kasten. Marken, die
   gerade im Bestand stehen, sind anklickbar und heben sich durch die
   Fläche ab – nicht durch einen Schatten. */
.markenraster {
  display: grid; gap: 1px; background: var(--kante);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border: 1px solid var(--kante);
}
.markenkasten {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--weiss); color: inherit; text-decoration: none;
  transition: background var(--t-flaeche) linear;
}
.markenkasten-logo {
  flex: 0 0 72px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.markenkasten-logo img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply;
}
.markenkasten-text { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.markenkasten-text strong { font-size: 16px; line-height: 1.3 }
.markenkasten-claim { font-size: 13px; color: var(--grau-text); line-height: 1.45 }
.markenkasten-bestand {
  margin-top: 6px; font-size: 13px; color: var(--rot-schrift);
  font-family: var(--zahlen); letter-spacing: .02em;
}
.markenkasten.klickbar:hover { background: var(--sand) }
.markenkasten.klickbar:focus-visible { outline: 2px solid var(--rot); outline-offset: -2px }

/* ------------------------------------------------------------ Karte
   MapLibre bringt eigene Gestaltung mit: runde Ecken, Schatten, blaue
   Verweise. Das alles wird hier zurückgenommen – eckig, anthrazit, ruhig,
   wie alles andere auch. Die Farben der Karte selbst stecken in
   assets/kartenstil.json. */
.hkh-karte { width: 100%; background: var(--flaeche); position: relative }
.hkh-karte .maplibregl-map { font-family: inherit }
.hkh-karte canvas:focus { outline: none }

/* Bedienelemente: eckig, ohne Schatten, in den Hausfarben. */
.hkh-karte .maplibregl-ctrl-group {
  border-radius: 0; box-shadow: none; border: 1px solid var(--kante);
  background: var(--weiss);
}
.hkh-karte .maplibregl-ctrl-group button {
  width: 32px; height: 32px; border-radius: 0;
  transition: background var(--t-farbe) linear;
}
.hkh-karte .maplibregl-ctrl-group button + button { border-top: 1px solid var(--kante) }
.hkh-karte .maplibregl-ctrl-group button:hover { background: var(--sand) }
.hkh-karte .maplibregl-ctrl-group button:focus-visible {
  outline: 2px solid var(--rot); outline-offset: -2px; box-shadow: none;
}

/* Herkunftsnachweis: klein und zurückhaltend, aber lesbar – er muss bleiben. */
.hkh-karte .maplibregl-ctrl-attrib {
  background: rgba(255, 255, 255, .9); border-radius: 0;
  font-size: 10.5px; color: var(--grau-text); padding: 2px 7px;
}
.hkh-karte .maplibregl-ctrl-attrib a { color: var(--anthrazit) }

/* Die Nadel: anthraziter Stiel, roter Kopf. Rund darf allein der Punkt sein –
   sonst sähe man nicht, dass er auf etwas zeigt. */
.hkh-nadel { width: 22px; height: 32px; position: relative; cursor: pointer }
.hkh-nadel-punkt {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--rot); border: 3px solid #fff;
}
.hkh-nadel-stiel {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 15px; background: var(--anthrazit);
}

/* Sprechblase ebenfalls eckig. */
.hkh-karte .maplibregl-popup-content {
  border-radius: 0; box-shadow: none; padding: 12px 16px;
  background: var(--anthrazit); color: #fff; font-size: 13.5px; line-height: 1.5;
}
.hkh-karte .maplibregl-popup-tip { border-top-color: var(--anthrazit) }
.hkh-karte .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--anthrazit) }

/* ------------------------------------------- Kategorie-Einstiege (Hub)
   Warengruppe als Kopf, Bearbeitungsarten darunter. Eine Linie je Spalte
   genügt – kein Raster, das ist früher zu unruhig geraten. */
.hubraster {
  display: grid; gap: 28px 36px; margin-top: 26px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.hubspalte { display: flex; flex-direction: column }
.hubkopf, .hubzeile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  text-decoration: none; color: inherit;
  transition: color var(--t-farbe) linear, background var(--t-farbe) linear;
}
.hubkopf {
  font-weight: 700; font-size: 15px; padding-bottom: 9px; margin-bottom: 7px;
  border-bottom: 2px solid var(--anthrazit);
}
.hubzeile { font-size: 13.5px; padding: 6px 0; color: var(--grau-text) }
.hubzeile + .hubzeile { border-top: 1px solid var(--linie) }
.hubkopf:hover, .hubzeile:hover { color: var(--rot-schrift) }
.hubkopf .zahl, .hubzeile .zahl { font-size: 12px; color: var(--verkauft); flex: none }

/* Häufige Fragen: eine Spalte, Linien statt Kästen. */
.fragenliste { margin-top: 26px; max-width: 80ch; border-top: 1px solid var(--kante) }
.fragenliste .frage { border-bottom: 1px solid var(--kante) }

/* ------------------------------------------- Rückmeldung beim Filtern
   Board 11: Die gewählte Marke setzt sich in 180 ms, die mitlaufenden
   Facettenzahlen färben sich beim Wechsel kurz rot. Nie leer, nie geraten –
   die Zahl steht die ganze Zeit da und wechselt nur die Farbe. */
.zahl.gewechselt, .ergebniszeile .anzahl.gewechselt {
  animation: facette-wechsel 900ms ease-out;
}
@keyframes facette-wechsel {
  0%, 45% { color: var(--rot-schrift) }
  100%    { color: inherit }
}

/* Die gewählte Marke setzt sich, bevor die Seite wechselt. */
.wird-gesetzt { transition: opacity var(--t-filter) ease-in-out }
.feld.wird-gesetzt select { border-color: var(--rot); color: var(--rot) }
a.wird-gesetzt { color: var(--rot-schrift) }

@media (prefers-reduced-motion: reduce) {
  .zahl.gewechselt, .ergebniszeile .anzahl.gewechselt { animation: none }
}

/* ===================================================== Mobile Menüebene
   Board 11: „Kein Mega-Menü auf dem Telefon: die Ebenen klappen einzeln auf,
   jede Zeile ist 44 bis 52 px hoch, die Bestandszahl steht rechts. Anrufen und
   WhatsApp liegen dauerhaft am unteren Rand."

   Die Ebene fährt von rechts ein (240 ms). Der Seiteninhalt dahinter darf
   nicht mitscrollen – darum bekommt <html> beim Öffnen overflow:hidden
   (gesetzt in assets/menue.js). */

.menueknopf {
  display: none; width: 44px; height: 44px; flex: none; cursor: pointer;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--kante); color: var(--anthrazit);
  transition: background var(--t-farbe) linear, border-color var(--t-farbe) linear;
}
.menueknopf:hover { background: var(--sand) }

.menueebene {
  position: fixed; inset: 0; z-index: 96;
  display: flex; flex-direction: column;
  background: var(--weiss);
  transform: translateX(100%);
  transition: transform var(--t-ebene) ease-out;
}
.menueebene.auf { transform: none }

.menueebene-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1.5px solid var(--kante); flex: none;
}
.menueebene-kopf button {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--anthrazit); cursor: pointer;
}

/* Der Rumpf scrollt, Kopf und Fuß bleiben stehen. */
.menueebene-rumpf { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch }

.menuezeile {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 0 16px;
  background: transparent; border: none; border-bottom: 1px solid var(--linie);
  font: 600 15px Montserrat, Arial, sans-serif; color: var(--anthrazit);
  text-align: left; text-decoration: none; cursor: pointer;
  transition: background var(--t-farbe) linear;
}
.menuezeile:hover, .menuezeile:focus-visible { background: var(--sand) }
.menuezeile > span:first-child { flex: 1 }
.menuezeile .zahl { font-size: 12px; color: var(--verkauft); flex: none }
.menuezeile .winkel {
  flex: none; font-size: 13px; color: var(--grau-text);
  transition: transform var(--t-klapp) ease-out;
}
.menuezeile[aria-expanded="true"] .winkel { transform: rotate(180deg) }

/* Die Unterebene wächst über die Rasterhöhe auf – dieselbe Art wie bei den
   Aufklappern, weil die Höhe vorher nicht bekannt ist. */
.menuezeile-klappe {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-klapp) ease-out;
  background: var(--sand);
}
.menuezeile-klappe > div { overflow: hidden }
.menuezeile-gruppe.offen .menuezeile-klappe { grid-template-rows: 1fr }
.menuezeile-tief {
  min-height: 44px; padding-left: 32px; font-weight: 500; font-size: 14px;
  border-bottom: 1px solid var(--kante);
}

/* Anrufen und WhatsApp liegen dauerhaft unten. */
.menueebene-fuss {
  flex: none; display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1.5px solid var(--kante); background: var(--weiss);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.menueebene-fuss > a { flex: 1 }

@media (max-width: 900px) {
  .menueknopf { display: flex }
  /* „.kopf nav" ist genauer als „.hauptmenue" allein und hätte sonst
     gewonnen – dann stünden Hauptmenü und Burger nebeneinander. */
  .kopf nav.hauptmenue { display: none }
}
@media (prefers-reduced-motion: reduce) {
  .menueebene { transition: none }
  .menuezeile-klappe { transition: none }
  .menuezeile .winkel { transition: none }
}


/* Zusammengesetzte Wörter wie „Holzbearbeitungsmaschinen" sind länger als ein
   Telefonschirm breit ist. Ohne Umbruchspielraum schieben sie die ganze Seite
   auf und erzeugen ein waagerechtes Scrollen. */
h1, h2, h3, .kachel-text, .karte h3 { overflow-wrap: break-word }
@media (max-width: 760px) {
  h1 { hyphens: auto; font-size: clamp(28px, 7.5vw, 46px) }
  .seitenkopf h1 { font-size: clamp(28px, 7.5vw, 46px) }
  /* Der Ankauf-Hero setzt 56px mit höherer Spezifität als das pauschale h1;
     darum hier eigens verkleinern, sonst bricht die H1 auf dem Telefon hart um. */
  .ankauf-hero h1 { font-size: clamp(28px, 7.5vw, 46px) }
}

/* =================================================== Filterebene mobil
   Board 11: „Fährt von unten ein, 240 ms. Aktionsleiste sitzt sofort über
   der Safari-Leiste." Darum env(safe-area-inset-bottom) am Fuß. */

.filterknopf {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  background: transparent; border: 1.5px solid var(--anthrazit); color: var(--anthrazit);
  font: 700 14px Montserrat, Arial, sans-serif; cursor: pointer;
  transition: background var(--t-farbe) linear, color var(--t-farbe) linear;
}
.filterknopf:hover { background: var(--anthrazit); color: #fff }

.filterebene {
  position: fixed; inset: 0; z-index: 96;
  display: flex; flex-direction: column; background: var(--weiss);
  transform: translateY(100%);
  transition: transform var(--t-ebene) ease-out;
}
.filterebene.auf { transform: none }

.filterebene-kopf {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1.5px solid var(--kante);
}
.filterebene-kopf button {
  width: 44px; height: 44px; background: transparent; border: none;
  font-size: 26px; line-height: 1; color: var(--anthrazit); cursor: pointer;
}

.filterebene-rumpf {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px;
}
/* In der Ebene steht der Baum frei – ohne die Spaltenbreite der Schreibtisch-
   ansicht und ohne klebenden Rand. */
.filterebene .kategorienbaum { position: static; width: auto; max-height: none }
.filterebene form.filter { margin-top: 20px }

.filterebene-fuss {
  flex: none; display: flex; gap: 8px; padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1.5px solid var(--kante); background: var(--weiss);
}
.filterebene-fuss > * { flex: 1 }

@media (max-width: 1000px) {
  .filterknopf { display: inline-flex }
  /* Baum und Filterzeile wandern in die Ebene; an ihrem alten Platz stünden
     sie sonst noch einmal.

     Nur mit JavaScript: Die Ebene baut filter.js. Ohne JavaScript entsteht
     sie nie, und ohne diese Einschränkung stand der Besucher auf dem Telefon
     dann ganz ohne Filter und ohne Kategorienbaum da. */
  .js .katalog-teilung > .kategorienbaum,
  .js .katalog-teilung form.filter { display: none }
}
@media (prefers-reduced-motion: reduce) {
  .filterebene { transition: none }
}

/* ------------------------------------------------ Haken nach dem Absenden
   Board 11: „Haken zeichnet sich in 400 ms. Danach bleibt die Meldung stehen –
   sie verschwindet nicht von allein." Gezeichnet wird über die Strichlänge
   des Pfads; das ist die einzige Art, eine Linie wirklich entstehen zu lassen. */
.erfolgskasten { display: flex; gap: 12px; align-items: flex-start }
.erfolg-haken { flex: none; color: var(--gruen); margin-top: 1px }
.erfolg-haken svg { stroke-width: 2.2 }
.erfolg-haken path {
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: haken-zeichnen 400ms ease-out forwards;
}
@keyframes haken-zeichnen { to { stroke-dashoffset: 0 } }
@media (prefers-reduced-motion: reduce) {
  .erfolg-haken path { animation: none; stroke-dashoffset: 0 }
}

/* ---------------------------------------------- Sprachumschalter im Kopf
   Zwei Kürzel, durch eine Linie getrennt. Die aktive Sprache steht in
   Anthrazit, die andere zurückgenommen – wie alle Zustände hier über
   Fläche und Linie, nicht über Größe. */
.kopf-sprachen {
  display: flex; flex: none; align-items: center; gap: 1px;
  background: var(--kante); border: 1px solid var(--kante); margin-left: 14px;
}
.kopf-sprachen a {
  /* --grau-text und --mono gab es nie. Die Kurzschreibweise `font` ist mit
     einer undefinierten Variablen als Ganzes ungültig – das Kürzel fiel
     damit auf die geerbte Schriftgröße zurück, die Kopfzeile wuchs weit
     über die Fensterbreite hinaus und Katalog wie Maschinenseiten ließen
     sich auf dem Telefon seitlich wegschieben. */
  padding: 6px 10px; background: var(--weiss); color: var(--verkauft);
  font-family: var(--zahlen);
  font-weight: 700; font-size: 11px; letter-spacing: .08em;
  text-decoration: none;
  transition: background var(--t-farbe) linear, color var(--t-farbe) linear;
}
.kopf-sprachen a:hover { background: var(--sand); color: var(--anthrazit) }
.kopf-sprachen a[aria-current] { background: var(--anthrazit); color: #fff }

@media (max-width: 900px) { .kopf-sprachen { margin-left: 8px } }

/* ------------------------------------------------- Hinweis im Testmodus
   Läuft ein Formular im Testmodus, geht nichts an LogoTech. Das muss
   auffallen – ein stiller Testmodus wäre gefährlich: Niemand merkte, dass
   Anfragen nicht mehr ankommen. Darum auffällig, aber nicht in Rot: Rot ist
   hier die Hausfarbe und würde untergehen. */
.testmodus-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 14px 20px;
  background: repeating-linear-gradient(135deg,
      #2b2a27 0 14px, #343330 14px 28px);
  color: #fff; font-size: 14px; line-height: 1.5;
  border-bottom: 3px solid #e8b931;
}
.testmodus-banner strong { font-weight: 700; color: #e8b931 }
.testmodus-banner strong:first-child {
  background: #e8b931; color: var(--anthrazit);
  padding: 2px 10px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; flex: none;
}
.testmodus-banner .klein { color: var(--grau-hell); font-size: 12.5px }

/* ------------------------------------------------------------- Teamraster
   Porträts im Quadrat, Name und Aufgabe darunter. Bewusst NICHT die
   Logoreihe: Dort sitzen die Bilder in 5:2-Kästen mit viel Luft – ein
   Gesicht verschwindet darin. */
.teamraster {
  display: grid; gap: 1px; margin-top: 26px;
  /* auto-fit statt auto-fill: Sonst legt das Raster leere Spalten an, und
     rechts bleibt ein grauer Kasten ohne Inhalt stehen. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  background: var(--kante); border: 1px solid var(--kante);
}
.teamkarte { margin: 0; background: var(--weiss); display: flex; flex-direction: column }
.teamkarte img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--flaeche); display: block;
}
.teamkarte .bild-folgt {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--flaeche); color: var(--verkauft); font-size: 13px;
}
.teamkarte figcaption {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px;
}
.teamkarte strong { font-size: 15px; line-height: 1.3 }
.teamkarte .klein { font-size: 12.5px; color: var(--grau-text); line-height: 1.45 }

/* ================================================= Querlauf, 29.11.2026

   Nachgemessen auf allen 196 Seiten der Sitemap, in einem Rahmen fester
   Breite (gegen das echte Fenster geeicht: gleiche Breite, gleicher Wert).
   Zwei voneinander unabhängige Ursachen, beide hier behoben.

   1. Raster- und Flexkinder haben von Haus aus min-width:auto und können
      darum nicht unter ihre Min-Content-Breite schrumpfen. Ein einziger
      langer Link in der Datenschutzerklärung
      (facebook.com/legal/terms/information_about_page_insights_data,
      590px unumbrechbar) zog die Spur des Inhaltsrasters auf 590px und
      die ganze Seite auf 606px – auf dem Telefon ließ sie sich seitlich
      wegschieben. Dasselbe Muster auf 21 weiteren Seiten.

   2. Die Kopfzeile passte nie in ihre eigene Satzbreite. Logo, Navigation,
      Suche, Sprachwahl und Preisumschalter stehen alle auf flex:0 0 auto
      und brauchen zusammen rund 1580px; verfügbar sind 1296px. Auf sehr
      breiten Fenstern verschwand der Überhang in den Außenrändern – bei
      1964px blieben 24px, deshalb fiel es nie auf. Bei 1440px, einer
      gewöhnlichen Laptopbreite, waren es 286px, und „Privat · brutto"
      stand halb außerhalb des Bildes. Die Zeile darf jetzt umbrechen; die
      Navigation rückt dann in die zweite Reihe – genau so, wie es
      unterhalb von 1000px ohnehin schon aussieht.

   Nachher: 390, 768, 1000, 1024, 1100, 1280, 1440, 1600, 1920 – überall 0. */

.inhaltsraster > *, .zwei-spalten > *, .katalog-teilung > *, .leiste > *,
.kachelraster > *, .bildergalerie > *, .filter-zeile > * { min-width: 0 }

.leiste { max-width: 100% }

/* Lange Adressen brechen, statt die Spalte aufzuziehen. `anywhere` und
   nicht `break-word`: nur `anywhere` verkleinert auch die Min-Content-
   Breite, und genau die treibt die Rasterspur. */
.textspalte a, .fliesstext a, .textspalte .kv, .fliesstext td { overflow-wrap: anywhere }

@media (max-width: 560px) { .weiterlink { white-space: normal } }

@media (min-width: 1001px) {
  .kopf-innen { flex-wrap: wrap; row-gap: 10px }
  .kopf nav { order: 3 }
}

/* ---- Bedienhilfen: vergrößerte Schrift darf die Seite nicht wegschieben

   Bei 150 % Schriftgröße auf 390px Fensterbreite liefen 11 der 196 Seiten
   seitlich über – die Kontaktseite um 473px, die Startseite um 110px.
   Ursache sind lange deutsche Komposita („Betriebssicherheitsprüfung“) und
   zweispaltige Kästen, deren Spuren mit der Schrift mitwachsen. Wer die
   Schrift vergrößert, ist auf Lesbarkeit angewiesen und kann eine Seite,
   die sich seitlich wegschieben lässt, am wenigsten gebrauchen.

   Die Regel greift nur, wenn beides zutrifft: schmales Fenster UND aktive
   Schriftvergrößerung. Im Normalfall bleibt der Umbruch unverändert.
   Nachher: 196 Seiten geprüft, 1 Seite mit 3px Rest
   (/unternehmen/ausstellungsraeume). */
@media (max-width: 700px) {
  :root[data-zugang-schrift] body { overflow-wrap: anywhere }
}
