﻿/* ═══════════════════════════════════════════════════════════════
   Gespann-Katalog — Design System CSS
   gespann-katalog.de
   © Bernhard Götz, Roigheim
   ═══════════════════════════════════════════════════════════════ */

/* ── PART A: FONTS + VARIABLES ── */

/* Self-hosted Web Fonts (kein Google-Request) */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* New Design System */
  --primary: #FF2D55;
  --accent: #00D9FF;
  --dark: #0A0A0A;
  --gray-900: #1C1C1C;
  --gray-800: #2D2D2D;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --text-primary: #0A0A0A;
  --text-secondary: #666666;
  --side-nav-width: 140px;

  /* Backward compat (detail pages) */
  --b1: #0D47A1;
  --b2: #1565C0;
  --b3: #1E88E5;
  --b4: #BBDEFB;
  --b5: #E3F2FD;
  --b6: #DCEEFB;
  --amb: #E65100;
  --amb-h: #FFF3E0;
  --txt: #263238;
  --grau: #546E7A;
  --sh: 0 2px 10px rgba(13,71,161,0.10);

  /* Legacy spacing */
  --spacing-xs:  0.25rem;
  --spacing-sm:  0.5rem;
  --spacing-md:  1rem;
  --spacing-lg:  1.5rem;
  --spacing-xl:  2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 5rem;
}

/* ── PART B: GLOBAL RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  top: 0 !important;
}

img { max-width: 100%; height: auto; display: block; }

.goog-te-banner-frame { display: none !important; }

a { color: var(--b2); text-decoration: none; }
a:hover { color: var(--b3); }

/* ═══════════════════════════════════════════════════════════════
   PART C: DETAIL PAGES — body:not(.has-side-nav)
   All selectors scoped so listing pages are unaffected
   ═══════════════════════════════════════════════════════════════ */

/* Body layout for detail pages */
body:not(.has-side-nav) {
  max-width: 980px;
  margin: 36px auto;
  padding: 0 36px 70px;
  background: linear-gradient(160deg, #D6E8F8 0%, #EBF5FB 100px, #EBF5FB 100%);
  font-family: 'DM Mono', 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.62;
}

/* TOP NAV — detail pages */
body:not(.has-side-nav) #topnav {
  position: sticky;
  top: 0;
  list-style: none;
  margin: 0 0 28px;
  padding: 10px 18px;
  background: var(--b1);
  border-radius: 8px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--sh);
  z-index: 1000;
}

body:not(.has-side-nav) #topnav li {
  padding: 0;
}

body:not(.has-side-nav) #topnav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94em;
}

body:not(.has-side-nav) #topnav a:hover {
  color: var(--b4);
  text-decoration: underline;
}

body:not(.has-side-nav) #topnav button {
  font-size: 0.84em;
  padding: 4px 11px;
  cursor: pointer;
  color: var(--b2);
  border: 1px solid #fff;
  background: #fff;
  border-radius: 5px;
  font-weight: 600;
}

/* BREADCRUMB */
.breadcrumb {
  font-family: 'IBM Plex Mono', 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--grau);
  margin-bottom: 6px;
}

.breadcrumb a {
  color: var(--b3);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--b2);
  text-decoration: underline;
}

/* H1 — detail pages */
body:not(.has-side-nav) h1 {
  font-family: Segoe UI, Arial, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--b1);
  border-bottom: 3px solid var(--b4);
  padding-bottom: 0.4rem;
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
}

body:not(.has-side-nav) h2 {
  color: var(--b1);
  margin: 1.25rem 0 0.6rem;
}

body:not(.has-side-nav) h3 {
  color: var(--b2);
  margin: 1rem 0 0.5rem;
}

/* LIZENZ BANNER — detail pages */
body:not(.has-side-nav) #lizenz-banner {
  background: var(--amb-h);
  border: 1px solid #FFD54F;
  border-left: 4px solid var(--amb);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.85em;
  color: #5a4000;
  line-height: 1.6;
}

body:not(.has-side-nav) #lizenz-banner a {
  color: var(--amb);
  font-weight: 600;
  text-decoration: none;
}

body:not(.has-side-nav) #lizenz-banner a:hover {
  text-decoration: underline;
}

/* KAT-BALKEN */
.kat-balken {
  display: block;
  color: var(--white);
  background: var(--b2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  margin: 2rem 0 0;
  border-radius: 4px 4px 0 0;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(21,101,192,0.18);
}

body:not(.has-side-nav) .kat-balken + p {
  margin: 1.2rem 0 1.2rem;
}

/* HERSTELLER STECKBRIEF */
.hersteller-steckbrief {
  margin: 0 0 2rem;
  border-left: 5px solid var(--b2);
  border-radius: 0 8px 8px 0;
  background: var(--white);
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  font-family: 'IBM Plex Mono', 'DM Mono', monospace;
}

/* STECKBRIEF TABELLE */
.steckbrief-tabelle {
  flex: 1;
  min-width: 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.steckbrief-tabelle th {
  width: 26%;
  text-align: left;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--b5);
  vertical-align: top;
  color: var(--b1);
  white-space: nowrap;
}

.steckbrief-tabelle td {
  padding: 8px 16px;
  vertical-align: top;
  color: var(--txt);
}

.steckbrief-tabelle tr:nth-child(even) th { background: var(--b6); }
.steckbrief-tabelle tr:nth-child(even) td { background: #FAFAFA; }
.steckbrief-tabelle a { color: var(--b2); font-weight: 600; }

/* STECKBRIEF AUFMACHER IMAGE */
.steckbrief-aufmacher-img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 360px;
  height: auto;
  border-radius: 0;
}

/* TECH GRID + TECH CARD */
.tech-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.tech-card {
  flex: 1 1 240px;
  background: var(--white);
  border: 1px solid var(--b4);
  border-top: 4px solid var(--b3);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: var(--sh);
}

.tech-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--b1);
  margin: 0 0 7px;
}

.tech-card p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--grau);
}

.tech-card a { color: var(--b2); }

/* MODELL BLOCK */
.modell-block {
  background: var(--white);
  border: 1px solid var(--b4);
  border-top: 4px solid var(--b3);
  border-radius: 10px;
  margin: 1.5rem 0;
  padding: 18px 20px;
  box-shadow: var(--sh);
}

/* MODELL NAME */
.modell-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--b1);
  margin: 0 0 8px;
}

/* MODELL BEMERKUNG */
.modell-bemerkung {
  font-size: 0.88rem;
  color: var(--grau);
  margin: 0 0 14px;
  line-height: 1.55;
  background: var(--b5);
  border-left: 3px solid var(--b3);
  padding: 7px 12px;
  border-radius: 0 5px 5px 0;
}

/* MODELL LAYOUT / FOTO / DATEN */
.modell-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.modell-foto {
  flex: 0 0 265px;
  max-width: 265px;
  position: relative;
}

.modell-foto img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  border: 1px solid var(--b4);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

/* MODELL FOTO COPYRIGHT OVERLAY */
.modell-foto::after {
  content: "\00A9\00A0Gespann-Katalog";
  position: absolute;
  bottom: 7px;
  right: 7px;
  font-size: 0.62em;
  color: rgba(255,255,255,0.90);
  background: rgba(0,0,0,0.42);
  padding: 2px 7px;
  border-radius: 3px;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.03em;
  line-height: 1.6;
  white-space: nowrap;
}

.modell-daten {
  flex: 1;
  min-width: 0;
}

/* MODELL THUMBS + THUMB FRAME */
.modell-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.thumb-frame {
  flex: 0 0 calc(50% - 3px);
  max-width: calc(50% - 3px);
  aspect-ratio: 4/3;
  background: var(--b5);
  border: 2px dashed var(--b3);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62em;
  color: var(--b3);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
}

.thumb-frame:has(img) {
  border: 1px solid #d8d8d8;
  background: var(--white);
}

.thumb-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* DATEN TABELLE */
.daten-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}

.daten-tabelle th {
  text-align: left;
  width: 35%;
  padding: 5px 10px;
  background: var(--b5);
  color: var(--b1);
  font-weight: 500;
  vertical-align: top;
  border-bottom: 1px solid var(--b4);
}

.daten-tabelle td {
  padding: 5px 10px;
  vertical-align: top;
  background: var(--white);
  color: var(--txt);
  border-bottom: 1px solid #F0F0F0;
}

.daten-tabelle tr:nth-child(even) th { background: var(--b6); }
.daten-tabelle tr:nth-child(even) td { background: #F8FBFF; }

/* BADGE NEU */
.badge-neu {
  display: inline-block;
  font-size: 0.70em;
  font-weight: 500;
  background: var(--amb);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 8px;
}

/* HERSTELLER HOMEPAGE */
.hersteller-homepage {
  margin: 2rem 0 1.5rem;
  text-align: center;
}

.hersteller-homepage a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--b1), var(--b3));
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--sh);
}

.hersteller-homepage a:hover {
  background: linear-gradient(135deg, var(--b2), var(--b3));
  transform: translateY(-2px);
  text-decoration: none;
}

/* EINGESTELLT */
.eingestellt {
  background: var(--amb-h);
  border: 1px solid #FFCC80;
  border-left: 4px solid var(--amb);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.88em;
}

.eingestellt a { color: var(--amb); font-weight: 600; }

/* FOOTER — detail pages */
body:not(.has-side-nav) #footer {
  background: var(--b5);
  color: var(--txt);
  font-size: 0.82rem;
  line-height: 1.8;
  margin: 4rem 0 0;
  padding: 2rem 1.5rem 2rem;
  border-top: 3px solid var(--b4);
  border-radius: 8px 8px 0 0;
}

body:not(.has-side-nav) #footer h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--b1);
  margin-bottom: 0.75rem;
  border-bottom: none;
  padding-bottom: 0;
}

body:not(.has-side-nav) #footer a {
  color: var(--b2);
  text-decoration: none;
}

body:not(.has-side-nav) #footer a:hover {
  color: var(--b3);
  text-decoration: underline;
}

body:not(.has-side-nav) #footer p {
  margin-bottom: 0.4rem;
}

/* INDEX NAV */
.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  padding: 0;
  list-style: none;
}

.index-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--b1);
  background: var(--b5);
  border: 1px solid var(--b4);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.index-nav a:hover {
  background: var(--b2);
  color: var(--white);
  border-color: var(--b2);
  text-decoration: none;
}

/* INDEX BUCHSTABE */
.index-buchstabe {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--b1);
  border-bottom: 2px solid var(--b4);
  padding-bottom: 0.35rem;
  margin: 2rem 0 0.75rem;
}

/* INDEX LISTE */
.index-liste {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 3px 24px;
}

.index-liste li {
  padding: 4px 0;
  border-bottom: 1px solid var(--b4);
}

.index-liste a {
  color: var(--b2);
  font-weight: 600;
  text-decoration: none;
}

.index-liste a:hover { text-decoration: underline; }

/* INDEX HERSTELLER */
.index-hersteller {
  font-size: 0.85rem;
  color: var(--grau);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--b4);
  margin-left: 7px;
}

.index-hersteller a {
  color: var(--txt);
  text-decoration: none;
}

.index-hersteller a:hover { color: var(--b2); }

/* RESPONSIVE — detail pages */
@media (max-width: 640px) {
  body:not(.has-side-nav) {
    padding: 0 13px 50px;
  }

  body:not(.has-side-nav) #topnav {
    gap: 12px;
    padding: 8px 13px;
  }

  .modell-layout { flex-direction: column; }
  .modell-foto { max-width: 100%; flex: none; }
  .tech-grid { flex-direction: column; }
  .hersteller-steckbrief { flex-direction: column; }
  .steckbrief-aufmacher-img { max-width: 100%; }

  .index-nav a,
  .alphabet-nav a {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

  .thumb-frame {
    flex: 0 0 calc(50% - 3px);
    max-width: calc(50% - 3px);
  }
}

@media (max-width: 600px) {
  .steckbrief-aufmacher-img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PART D: LISTING PAGES — body.has-side-nav
   All new bold design, scoped so detail pages are unaffected
   ═══════════════════════════════════════════════════════════════ */

body.has-side-nav {
  display: flex;
  min-height: 100vh;
  padding: 0;
  background: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  max-width: none;
  margin: 0;
}

/* ── SIDE NAV ── */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--side-nav-width);
  height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  z-index: 200;
  border-right: 1px solid var(--gray-800);
  overflow: hidden;
}

.side-nav-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: auto;
  line-height: 1;
}

.side-nav-brand:hover { color: var(--primary); }

.side-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.side-nav-links a {
  display: flex;
  flex-direction: column;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.side-nav-links a .link-num {
  font-size: 0.6rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.side-nav-links a:hover,
.side-nav-links a.active {
  color: var(--white);
}

.side-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
}

.side-nav-meta span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.4;
}

.side-nav-translate {
  margin-top: 1rem;
}

.side-nav-translate button {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  transition: all 0.2s;
}

.side-nav-translate button:hover {
  color: var(--white);
  border-color: var(--primary);
}

.side-nav-imprint {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-top: 0.75rem;
  display: block;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.side-nav-imprint:hover {
  color: var(--white);
}

/* ── MOBILE HAMBURGER ── */
.hamburger {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: var(--dark);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── FULLSCREEN MOBILE NAV OVERLAY ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 250;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.mobile-nav-overlay.open { display: flex; }

.mobile-nav-overlay ul {
  list-style: none;
}

.mobile-nav-overlay ul li {
  margin-bottom: 1.5rem;
}

.mobile-nav-overlay ul a {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--white);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.mobile-nav-overlay ul a:hover { color: var(--primary); }

/* ── MAIN CONTENT WRAPPER ── */
.main-content {
  margin-left: var(--side-nav-width);
  flex: 1;
  min-width: 0;
}

/* ── HERO (index.html) ── */
.hero-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  background: var(--dark);
}

.hero-v2-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem 6rem 4rem;
  position: relative;
}

.hero-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.hero-v2-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 3rem;
  border-bottom: none;
  padding-bottom: 0;
}

.hero-v2-title .title-em {
  color: var(--primary);
  display: block;
}

.hero-v2-desc {
  font-family: 'DM Mono', monospace;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 3rem;
}

.hero-v2-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.hero-stat-num {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat-lbl {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.hero-cta:hover { color: var(--primary); gap: 2rem; }

.hero-cta .arrow { transition: transform 0.3s ease; }
.hero-cta:hover .arrow { transform: translateX(0.5rem); }

/* Hero right: scrolling marquee */
.hero-v2-right {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border-left: 1px solid var(--gray-800);
}

.hero-marquee {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  padding: 4rem 3rem;
}

.hero-marquee-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: marqueeV 25s linear infinite;
}

.hero-marquee-track span {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.17);
  white-space: nowrap;
  line-height: 1.3;
  transition: color 0.3s;
}

.hero-marquee-track span:hover {
  color: rgba(255,255,255,0.7);
}

@keyframes marqueeV {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ── HERO SLIDESHOW ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.15) 60%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.hero-slide--1 { animation: heroFade3 15s 0s ease-in-out infinite; }
.hero-slide--2 { animation: heroFade3 15s -5s ease-in-out infinite; }
.hero-slide--3 { animation: heroFade3 15s -10s ease-in-out infinite; }

.hero-slide--1 img { animation: kenBurns1 15s 0s ease-in-out infinite; }
.hero-slide--2 img { animation: kenBurns2 15s -5s ease-in-out infinite; }
.hero-slide--3 img { animation: kenBurns3 15s -10s ease-in-out infinite; }

@keyframes heroFade3 {
  0%    { opacity: 1; }
  30%   { opacity: 1; }
  34%   { opacity: 0; }
  97%   { opacity: 0; }
  100%  { opacity: 1; }
}

@keyframes kenBurns1 {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes kenBurns2 {
  0%   { transform: scale(1.1) translate(2%, 0); }
  100% { transform: scale(1.0) translate(0, -1%); }
}

@keyframes kenBurns3 {
  0%   { transform: scale(1.05) translate(-1%, 1%); }
  100% { transform: scale(1.1) translate(1%, -2%); }
}

/* ── LIZENZ BANNER (listing pages) ── */
body.has-side-nav #lizenz-banner {
  background: var(--dark);
  margin-top: 30px;
  padding: 1.25rem 4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

body.has-side-nav #lizenz-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  transition: color 0.2s, border-color 0.2s;
}

body.has-side-nav #lizenz-banner a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ── PAGE HEADER (Hersteller, Beiwagenindex) ── */
.page-header-new {
  padding: 5rem 4rem 4rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.page-header-new::before {
  content: attr(data-bg-text);
  position: absolute;
  bottom: -2rem;
  right: 2rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12rem;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.page-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.page-title-giant {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  border-bottom: none;
  margin-bottom: 0;
}

/* ── GIANT SEARCH ── */
.search-hero-wrap {
  padding: 3rem 4rem;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.search-hero-input {
  width: 67%;
  padding: 1rem 0;
  font-family: 'DM Mono', 'IBM Plex Mono', monospace;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--dark);
  outline: none;
  transition: border-color 0.3s ease;
}

.search-hero-input::placeholder {
  color: var(--gray-200);
}

.search-hero-input:focus {
  border-bottom-color: var(--primary);
}

/* ── MANUFACTURER LIST ── */
.mfr-list {
  padding: 0 4rem;
}

.mfr-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.25s ease, padding 0.25s ease;
  cursor: pointer;
  position: relative;
}

.mfr-item::before {
  content: '';
  position: absolute;
  left: -4rem;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.mfr-item:hover::before { transform: scaleY(1); }

.mfr-item:hover {
  background: var(--dark);
  padding-left: 1rem;
  margin: 0 -4rem;
  padding-left: 5rem;
  padding-right: 4rem;
}

.mfr-item:hover .mfr-num { color: rgba(255,255,255,0.35); }
.mfr-item:hover .mfr-name a { color: var(--white); }
.mfr-item:hover .mfr-meta { color: rgba(255,255,255,0.45); }
.mfr-item:hover .mfr-arrow { color: var(--primary); transform: translateX(0.5rem); }

.mfr-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--gray-200);
  letter-spacing: 0.05em;
  transition: color 0.25s;
}

.mfr-body { min-width: 0; }

.mfr-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mfr-name a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

.mfr-name a:hover { color: var(--primary); }

.mfr-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: color 0.25s;
}

.mfr-meta span::before {
  content: '— ';
  opacity: 0.4;
}

.mfr-meta span:first-child::before { content: ''; }

.mfr-arrow {
  font-size: 1.5rem;
  color: var(--gray-200);
  transition: color 0.25s, transform 0.25s;
  font-family: 'DM Mono', monospace;
}

/* ── ALPHABET FIXED RIGHT ── */
.alphabet-fixed {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}

.alphabet-fixed a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-200);
  text-decoration: none;
  padding: 0.15rem 0.3rem;
  transition: color 0.15s ease;
  line-height: 1.6;
  text-align: center;
}

.alphabet-fixed a:hover { color: var(--primary); }
.alphabet-fixed a.active { color: var(--primary); font-size: 0.8rem; }

/* ── NO RESULTS ── */
.no-results-new {
  display: none;
  padding: 4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── FOOTER (listing pages) ── */
.footer-new {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 2rem 4rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-new a { color: var(--primary); text-decoration: none; }
.footer-new a:hover { color: var(--white); }

.footer-new-brand {
  display: none;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── MICRO-INTERACTIONS: Animated underlines ── */
body.has-side-nav .main-content p a {
  position: relative;
  color: var(--primary);
  text-decoration: none;
}

body.has-side-nav .main-content p a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.has-side-nav .main-content p a:hover::after { width: 100%; }

/* ── CUSTOM CURSOR ── */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
  display: none;
}

body.has-side-nav .custom-cursor { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .side-nav { display: none; }
  .hamburger { display: flex; }
  .main-content { margin-left: 0; }
  body.has-side-nav { display: block; }
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-v2-right { display: none; }
  .hero-v2-left { padding: 8rem 2rem 4rem; }
  .page-header-new { padding: 7rem 2rem 3rem; }
  .search-hero-wrap { padding: 2rem; }
  .mfr-list { padding: 0 2rem; }
  .mfr-item { grid-template-columns: 3rem 1fr auto; padding: 1.5rem 0; }
  .mfr-item:hover { margin: 0 -2rem; padding-left: 3rem; padding-right: 2rem; }
  .alphabet-fixed { display: none; }
  .footer-new { padding: 2rem; }
  body.has-side-nav #lizenz-banner { padding: 1rem 2rem; }
}

@media (max-width: 640px) {
  .mfr-name { font-size: 1.8rem; }
  .hero-v2-title { font-size: 3.5rem; }
}

/* ── Bilder: Touch-Callout + Long-Press-Schutz ── */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Lizenzleiste: Abmelden-Link immer schwarz ── */
#sb-license-bar a,
#sb-license-bar a:link,
#sb-license-bar a:visited {
  color: #000 !important;
  text-decoration: none !important;
}
#sb-license-bar a:hover {
  color: #333 !important;
  text-decoration: underline !important;
}

/* ── Hamburger: unterhalb der Lizenzleiste auf Mobile ── */
@media (max-width: 1024px) {
  body:has(#sb-license-bar) .hamburger {
    top: 40px;
    z-index: 100000;
  }
}

/* ── Lizenzleiste: Grid-Layout, Abmelden immer rechtsbündig ── */
#sb-license-bar {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* ── Touch-Geräte: Custom Cursor + Leaflet-Zoom ausblenden ── */
@media (pointer: coarse) {
  .custom-cursor { display: none !important; }
  .leaflet-control-zoom { display: none !important; }
}

/* ── Mobile: Lizenzleiste Höhe + Padding ── */
@media (max-width: 768px) {
  #sb-license-bar {
    height: auto !important;
    min-height: 32px;
    padding: 6px 14px !important;
    gap: 4px 12px;
  }
}

/* ── KEYFRAMES ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════
   KATALOG DETAIL v2 — Layout-Rollout 2026-05-08
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   KATALOG DETAIL v2 — nach Freigabe in katalog.css
═══════════════════════════════════════════ */

/* Scroll-Fortschrittsanzeige */
.kd-progress {
  position: fixed;
  top: 0;
  left: var(--side-nav-width, 140px);
  right: 0;
  height: 2px;
  background: var(--primary, #1565C0);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.08s linear;
}

/* Hero */
.kd-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #0d0d0d;
}
.kd-hero-bg {
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  object-position: center 75%;
  display: block;
  will-change: transform;
}
.kd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6,6,6,0.84) 0%,
    rgba(6,6,6,0.50) 42%,
    rgba(6,6,6,0.12) 100%
  );
}
.kd-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 2.25rem;
}
.kd-hero-back {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  margin-bottom: 0.7rem;
  display: inline-block;
  transition: color 0.2s;
}
.kd-hero-back:hover { color: rgba(255,255,255,0.65); }
.kd-hero-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.4rem;
}
.kd-hero-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.kd-hero-h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 4rem;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.kd-hero-h1::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--primary, #1565C0);
  width: 0;
  margin-top: 0.3rem;
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}
.kd-hero.is-loaded .kd-hero-h1::after { width: 100%; }
.kd-hero-lexikon {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}
.kd-hero-lexikon:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}

/* Floating Card */
.kd-float-card {
  position: relative;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 16px 48px rgba(0,0,0,0.11);
  margin: -2.5rem 3.5rem 2.5rem;
  z-index: 10;
  padding: 2rem 2.5rem 1.6rem;
  border-radius: 2px;
}
.kd-float-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary, #1565C0);
  border-radius: 2px 2px 0 0;
}

/* Card head: Logo + Pills */
.kd-card-head {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}
.kd-card-logo {
  max-width: 100px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.kd-card-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.kd-pill {
  display: inline-flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 3px;
  padding: 0.3rem 0.6rem 0.35rem;
  gap: 0.08rem;
}
.kd-pill-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b0b0b0;
  line-height: 1;
}
.kd-pill-value {
  font-family: 'DM Mono', monospace;
  font-size: 0.76rem;
  color: #111;
  line-height: 1.2;
  white-space: nowrap;
}

/* Card body: Beschreibung + Tabelle */
.kd-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.kd-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #333;
  margin: 0;
}
.kd-table {
  width: 100%;
  border-collapse: collapse;
}
.kd-table tr { border-bottom: 1px solid #f2f2f2; }
.kd-table tr:last-child { border-bottom: none; }
.kd-table th {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #666;
  text-align: left;
  padding: 0.3rem 0.75rem 0.3rem 0;
  width: 33%;
  white-space: nowrap;
  vertical-align: top;
}
.kd-table td {
  font-size: 0.78rem;
  color: #1a1a1a;
  padding: 0.3rem 0;
  vertical-align: top;
  line-height: 1.45;
}

/* Modellnavigation innerhalb der Card */
.kd-card-nav {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.kd-card-nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.kd-card-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #444;
  text-decoration: none;
  padding: 0.27rem 0.55rem;
  border: 1px solid #e4e4e4;
  border-radius: 2px;
  margin: 0.1rem 0.1rem 0.1rem 0;
  transition: all 0.18s;
  white-space: nowrap;
}
.kd-card-nav a:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

/* ── Banner-Slots ─────────────────────────────────────────────────── */

/* kd-card-table-col: veraltet — Banner jetzt ausserhalb kd-card-body */
.kd-card-table-col {
  display: contents;
}

/* Position A: Signature Strip
   Platzierung: .kd-banner-wrap (Flex-Container) innerhalb .kd-card-table-col
   Breite: identisch mit Steckbrief-Tabelle; "Anzeige" hochkant links außen */

/* Äußerer Wrapper: "Anzeige"-Label + schwarze Banner-Fläche */
.kd-banner-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin: 1.4rem 0 0;
}

/* "Anzeige" hochkant, links außerhalb des schwarzen Blocks */
.kd-banner-side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'DM Mono', monospace;
  font-size: 0.44rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaaaaa;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

a.kd-banner-strip,
a.kd-banner-strip:link,
a.kd-banner-strip:visited {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background: #111111;
  border-radius: 5px;
  padding: 0 0.625rem;
  height: 72px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  transition: background 0.2s;
}
a.kd-banner-strip:hover { background: #1c1c1c; color: #ffffff; }
a.kd-banner-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.025) 0%, transparent 55%);
  pointer-events: none;
}

/* Logo in weißem Pill — zuverlässig für JPEG-Logos mit hellem Hintergrund */
.kd-banner-strip-logo-wrap {
  background: rgba(255,255,255,0.96);
  border-radius: 3px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  flex-shrink: 0;
}
.kd-banner-strip-logo {
  height: 26px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

/* Claim: bewusst andere Schrift als der Katalog-Redaktionstext */
.kd-banner-strip-claim {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  flex: 1;
  text-align: center;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
}

/* CTA: warmes Gold, deutlich pulsierend */
@keyframes kd-strip-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(201,160,64,0.85); }
  65%  { box-shadow: 0 0 0 14px rgba(201,160,64,0);   }
  100% { box-shadow: 0 0 0 0   rgba(201,160,64,0);    }
}
.kd-banner-strip-cta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #c9a040;
  background: rgba(201,160,64,0.12);
  border: 1px solid rgba(201,160,64,0.45);
  border-radius: 3px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  animation: kd-strip-pulse 2s ease-out infinite;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
a.kd-banner-strip:hover .kd-banner-strip-cta {
  background: rgba(201,160,64,0.24);
  border-color: rgba(201,160,64,0.8);
  color: #d4ad50;
  animation: none;
  box-shadow: none;
}

/* Position B: Showcase Banner (zwischen Float-Card und Modellen) */
a.kd-banner-showcase,
a.kd-banner-showcase:link,
a.kd-banner-showcase:visited {
  margin: 0 4rem 2.5rem;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  display: block;
  min-height: 200px;
  background: #0d0d0d;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 28px rgba(0,0,0,0.12);
  transition: box-shadow 0.22s;
}
a.kd-banner-showcase:hover { box-shadow: 0 8px 44px rgba(0,0,0,0.2); color: #ffffff; }
.kd-banner-showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}
.kd-banner-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 100%);
}
.kd-banner-showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
  padding: 2rem 2.5rem;
  gap: 0.55rem;
}
.kd-banner-showcase-logo {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 0.15rem;
  opacity: 0.92;
}
.kd-banner-showcase-claim {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 460px;
  text-decoration: none;
}
.kd-banner-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 3px;
  padding: 0.38rem 0.95rem;
  margin-top: 0.35rem;
  width: fit-content;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
a.kd-banner-showcase:hover .kd-banner-showcase-cta {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
a.kd-banner-showcase::after {
  content: 'Anzeige';
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.44rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.16);
  z-index: 2;
}

/* Mobile */
@media (max-width: 768px) {
  a.kd-banner-strip,
  a.kd-banner-strip:link,
  a.kd-banner-strip:visited { height: 64px; padding: 0 1rem; gap: 0.75rem; }
  .kd-banner-strip-claim { display: none; }
  a.kd-banner-showcase,
  a.kd-banner-showcase:link,
  a.kd-banner-showcase:visited { margin: 0 1.5rem 2rem; }
  .kd-banner-showcase-content { padding: 1.5rem; }
  .kd-banner-showcase-claim { font-size: 1rem; }
}
@media (max-width: 480px) {
  a.kd-banner-showcase,
  a.kd-banner-showcase:link,
  a.kd-banner-showcase:visited { margin: 0 1rem 1.5rem; }
}

/* ── Banner Placeholder (Musterbanner) ────────────────────────────── */

a.kd-banner-strip--placeholder,
a.kd-banner-strip--placeholder:link,
a.kd-banner-strip--placeholder:visited {
  background: rgba(0,0,0,0.03);
  color: #444;
}
a.kd-banner-strip--placeholder:hover {
  background: rgba(0,0,0,0.06);
  color: #444;
}
a.kd-banner-strip--placeholder .kd-banner-strip-claim {
  color: #444;
}
a.kd-banner-strip--placeholder .kd-banner-strip-cta {
  color: #555;
}
a.kd-banner-strip--placeholder:hover .kd-banner-strip-cta {
  color: #222;
  letter-spacing: 0.10em;
}
/* Marching-Ants-Border — 4-seitige laufende gestrichelte Linie, 2px, rot */
a.kd-banner-strip--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background-image:
    repeating-linear-gradient(90deg,  #D32F2F 0, #D32F2F 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(180deg, #D32F2F 0, #D32F2F 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(90deg,  #D32F2F 0, #D32F2F 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(180deg, #D32F2F 0, #D32F2F 6px, transparent 6px, transparent 12px);
  background-size:    12px 2px, 2px 12px, 12px 2px, 2px 12px;
  background-position: 0 0, 100% 0, 0 100%, 0 0;
  background-repeat:  repeat-x, repeat-y, repeat-x, repeat-y;
  animation: kd-banner-march 0.5s linear infinite;
  pointer-events: none;
}
@keyframes kd-banner-march {
  0%   { background-position:  0    0,    100%  0,    100%  100%, 0 100%; }
  100% { background-position:  12px 0,    100%  12px, calc(100% - 12px) 100%, 0 calc(100% - 12px); }
}

/* ── Image Banner (LBS-Variante): volles Werbebanner-JPG mit überlagerndem CTA ── */

/* Wrapper: stretch damit kd-banner-side-label die volle Bildhoehe ausfuellt */
.kd-banner-image-wrap {
  flex: 1;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  line-height: 0;              /* verhindert Lücke unter dem img-Element */
}
.kd-banner-image-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* CTA-Button: doppelte Größe ggü. .kd-banner-strip-cta; rechts im Banner */
.kd-banner-image-cta,
.kd-banner-image-cta:link,
.kd-banner-image-cta:visited {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.30rem;            /* doppelt: 0.65 rem × 2 */
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e0c890;                /* +20 PP Helligkeit: hsl(42,56%,52%) → hsl(42,56%,72%) */
  background: rgba(201,160,64,0.12);
  border-radius: 4px;
  padding: 2.80rem 1.70rem;      /* Höhe ×4 (0.70 rem × 4); Breite unverändert */
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.kd-banner-image-cta:hover,
.kd-banner-image-cta:focus {
  background: rgba(201,160,64,0.24);
  color: #e3d1a5;                /* Hover: gleiche +20-PP-Verschiebung wie Default */
}

/* Ameisenlinie: 2 pt (≈ 2,67 px), laufend gestrichelt.
   Farbe = Banner-Hintergrund #27364c (hsl 215 °/32 %/23 %)
   + 30 Prozentpunkte Helligkeit → hsl(215, 32%, 53 %) ≈ #5d7bac
   Nutzt den bereits vorhandenen @keyframes kd-banner-march. */
.kd-banner-image-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background-image:
    repeating-linear-gradient(90deg,  #5d7bac 0, #5d7bac 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(180deg, #5d7bac 0, #5d7bac 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(90deg,  #5d7bac 0, #5d7bac 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(180deg, #5d7bac 0, #5d7bac 6px, transparent 6px, transparent 12px);
  background-size:    12px 2pt, 2pt 12px, 12px 2pt, 2pt 12px;
  background-position: 0 0, 100% 0, 0 100%, 0 0;
  background-repeat:  repeat-x, repeat-y, repeat-x, repeat-y;
  animation: kd-banner-march 0.5s linear infinite;
  pointer-events: none;
}
.kd-banner-image-cta:hover::after,
.kd-banner-image-cta:focus::after {
  animation-play-state: paused;  /* bei Hover einfrieren */
}

@media (max-width: 768px) {
  .kd-banner-image-cta,
  .kd-banner-image-cta:link,
  .kd-banner-image-cta:visited { font-size: 0.75rem; padding: 0.40rem 0.85rem; right: 0.75rem; }
}

/* ── /Banner-Slots ────────────────────────────────────────────────── */

/* Modelle */
.kd-models {
  padding: 0 4rem 1.5rem;
}
.kd-model {
  padding: 3rem 0;
  border-bottom: 1px solid #ebebeb;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  row-gap: 1.5rem;
  align-items: start;
}
.kd-model:last-child { border-bottom: none; }
/* kd-model-head: Wrapper für Bezeichnung + Beschreibungstext (Spalte 1, Zeile 1) */
.kd-model-head {
  grid-column: 1;
  grid-row: 1;
}
.kd-model-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.kd-model-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.kd-model-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0;
  line-height: 1;
}
.kd-model-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.76rem;
  color: #888;
  line-height: 1.65;
  margin: 0.4rem 0 0;
}
/* kd-model-body transparent — Kinder participieren direkt im kd-model-Grid */
.kd-model-body {
  display: contents;
}
/* Foto: Spalte 1, Zeile 2 */
.kd-model-body > .kd-model-photo {
  grid-column: 1;
  grid-row: 2;
}
/* Stats: Spalte 2, Zeile 1 — bündig mit kd-model-head (Oberkante Bezeichnung) */
.kd-model-body > .kd-stats {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
/* Daten: Spalte 2, Zeile 2 — bündig mit Oberkante der Bilder */
.kd-model-body > .kd-daten {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

/* Fotos: Thumbnails links (Spalte 1), Hauptbild rechts (Spalte 2) */
.kd-model-photo {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1.05rem;
  align-items: start;
  min-width: 0;
}
/* Nur ein Bild vorhanden: volle Breite */
.kd-model-photo:not(:has(.kd-model-thumbs)) {
  grid-template-columns: 1fr;
}
.kd-model-photo img.kd-main-img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 2px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.30)) drop-shadow(0 2px 5px rgba(0,0,0,0.18));
}
.kd-model-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
  align-self: stretch;
}
.kd-model-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}
.kd-model-thumbs img:hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Stats */
.kd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #ebebeb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.kd-stat {
  padding: 0.75rem 0.8rem;
  border-right: 1px solid #ebebeb;
  background: #fafafa;
}
.kd-stat:last-child { border-right: none; }
.kd-stat-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.3rem;
}
.kd-stat-value {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.88rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

/* Datentabelle */
.kd-daten {
  width: 100%;
  border-collapse: collapse;
}
.kd-daten tr { border-bottom: 1px solid #f2f2f2; }
.kd-daten tr:last-child { border-bottom: none; }
.kd-daten th {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #666;
  text-align: left;
  padding: 0.38rem 0.8rem 0.38rem 0;
  width: 48%;
  white-space: nowrap;
  vertical-align: top;
}
.kd-daten td {
  font-size: 0.8rem;
  color: #1a1a1a;
  padding: 0.38rem 0;
  vertical-align: top;
}
.kd-daten-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem;
  color: #999;
  margin: 0.65rem 0 0;
  line-height: 1.6;
}

/* Technologie */
.kd-tech {
  background: #1a1a1a;
  padding: calc(3rem + 20px) 2.5rem 3rem;
  margin: 0 3.5rem 2.5rem;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.28), 0 2px 10px rgba(0,0,0,0.18);
  position: relative;
}
.kd-tech-eyebrow {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(4rem, 10.4vw, 7.2rem);
  letter-spacing: -0.04em;
  color: #fff;
  -webkit-text-stroke: 1.5px rgba(200,200,200,0.55);
  paint-order: stroke fill;
  mix-blend-mode: difference;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1.0) 0%, rgba(0,0,0,0.21) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1.0) 0%, rgba(0,0,0,0.21) 100%);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 0;
  left: 1.5rem;
  transform: translateY(calc(-50% - 10px));
  z-index: 0;
}
.kd-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.kd-tech-card {
  border-left: 2px solid var(--primary, #1565C0);
  padding-left: 1.25rem;
}
.kd-tech-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.88rem;
  color: #fff;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.kd-tech-card p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.68);
  margin: 0;
}

/* Scroll Reveal */
.kd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.kd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .kd-hero { height: 220px; }
  .kd-hero-content { padding: 0 2rem 1.75rem; }
  .kd-hero-h1 { font-size: 2.8rem; }
  .kd-float-card { margin: -2rem 1.5rem 2rem; padding: 1.5rem; }
  .kd-card-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .kd-models { padding: 0 2rem 1.5rem; }
  .kd-model { grid-template-columns: 1fr; row-gap: 1rem; }
  .kd-model-head { grid-row: auto; grid-column: auto; }
  .kd-model-body > .kd-model-photo { grid-row: auto; grid-column: auto; }
  .kd-model-body > .kd-stats { grid-row: auto; grid-column: auto; }
  .kd-model-body > .kd-daten { grid-row: auto; grid-column: auto; }
  .kd-stats { grid-template-columns: repeat(2, 1fr); }
  .kd-tech { padding: 2.5rem 2rem; margin: 0 1.5rem 2rem; }
  .kd-tech-eyebrow { font-size: 1.25rem; }
  .kd-tech-grid { grid-template-columns: 1fr; }
  .kd-progress { left: 0; }
}
@media (max-width: 600px) {
  .kd-float-card { margin: -1.5rem 1rem 1.5rem; }
  .kd-card-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .kd-hero-lexikon { display: none; }
}