@charset "utf-8";
/* ==========================================================================
   mgh24.de — Redesign-Entwurf "Katalog-Cockpit"
   Gestaltungsidee: technisches Datenblatt / Werkstatt-Katalog.
   Warmes Papierweiss, Haarlinien statt Schatten, Monospace fuer Kennwerte,
   permanente Rubriken-Schiene links (modernisierte mgh24-DNA).
   Alle Farbpaare rechnerisch gegen WCAG 2.1 AA geprueft.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens */
:root {
  /* Flaechen */
  --white:      #ffffff;
  --paper:      #f5f3ef;   /* warmes Papier, Seitenhintergrund */
  --paper-2:    #f0ede7;   /* zweite Papierstufe, Bildbuehnen */
  --ink:        #15171b;   /* Text / dunkle Flaechen  17.9:1 auf Weiss */
  --ink-2:      #23262c;   /* dunkle Flaeche, zweite Stufe */
  --ink-3:      #34383f;

  /* Text */
  --fg:         #15171b;   /* 17.94:1 auf Weiss, 16.19:1 auf Papier */
  --fg-muted:   #54585f;   /*  7.15:1 auf Weiss,  6.12:1 auf Papier */
  --fg-on-dark: #ffffff;   /* 17.94:1 auf Ink */
  --fg-on-dark-muted: #c9ccd1; /* 11.14:1 auf Ink */

  /* Marke */
  --red:        #dc2410;   /* mgh24-Rot, 4.88:1 auf Weiss — Flaechen/Grafik */
  --red-strong: #c01f0c;   /* Buttonflaeche, Weiss darauf 6.10:1 */
  --red-deep:   #a81a09;   /* Hover, Weiss darauf 7.46:1 */
  --red-text:   #b31c0a;   /* Linktext auf hell, 6.80:1 */
  --red-soft:   #fdeeeb;   /* zarte Rotflaeche */
  --red-on-dark:#ff7a63;   /* 7.02:1 auf Ink */

  /* Status */
  --ok:         #1a6b3c;   /* 6.54:1 auf Weiss */
  --ok-bg:      #eaf5ed;
  --ok-text:    #166534;   /* 6.38:1 auf --ok-bg */

  /* Linien */
  --line:       #ddd8d0;   /* dekorative Haarlinie */
  --line-2:     #c8c2b8;   /* kraeftigere Trennlinie */
  --line-ui:    #8d939b;   /* Rand interaktiver Elemente, 3.10:1 auf Weiss */
  --line-dark:  #3a3f46;

  /* Typo */
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-text:    "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Raster */
  --rail:  246px;
  --max:   1420px;
  --pad:   clamp(1rem, 3vw, 2.5rem);
  --r:     3px;  /* bewusst fast eckig: Werkzeug-Anmutung */
}

/* --------------------------------------------------------------- Reset  */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--f-display); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 3rem); font-stretch: 96%; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem); }
h3 { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--red-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; }

/* Fokus: durchgaengig sichtbar, doppelter Ring fuer hell UND dunkel */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(255,255,255,.9);
}
.on-dark :where(a, button, input, [tabindex]):focus-visible,
.site-foot :where(a, button, input, [tabindex]):focus-visible,
.topbar :where(a, button):focus-visible {
  outline-color: #ffffff;
  box-shadow: 0 0 0 5px rgba(220,36,16,.85);
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  font-weight: 700; text-decoration: none; border-radius: var(--r);
  transition: top .15s;
}
.skip:focus { top: 8px; color: #fff; }

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

/* Hilfsklassen */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--f-mono); font-variant-ligatures: none; }
.eyebrow {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted);
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--red); flex: none;
}
.lede { font-size: clamp(1rem, .96rem + .25vw, 1.14rem); color: var(--fg-muted); max-width: 68ch; }

/* ------------------------------------------------------------- Buttons  */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  padding: .78rem 1.35rem; border-radius: var(--r); border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red-strong); color: #fff; border-color: var(--red-strong); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-ui); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* Pfeil-Affordanz */
.arrow { transition: transform .18s; }
a:hover > .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* =========================================================== TOPBAR ==== */
.topbar {
  background: var(--ink); color: var(--fg-on-dark);
  font-size: .8rem; border-bottom: 1px solid var(--line-dark);
}
.topbar__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem;
  min-height: 40px; padding-block: .35rem;
}
.topbar__usp { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.topbar__usp svg { flex: none; }
.flags { display: inline-flex; gap: 4px; align-items: center; }
.flags svg { display: block; border: 1px solid rgba(255,255,255,.45); border-radius: 1px; }
.topbar__links { margin-left: auto; display: flex; gap: 1.3rem; flex-wrap: wrap; }
.topbar__links a { color: var(--fg-on-dark-muted); text-decoration: none; }
.topbar__links a:hover { color: #fff; text-decoration: underline; }

/* =========================================================== HEADER ==== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--white); border-bottom: 1px solid var(--line-2);
}
.head__in {
  display: grid; align-items: center; gap: 1rem;
  grid-template-columns: auto minmax(0,1fr) auto;
  padding-block: .85rem;
}

/* Wortmarke */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fg); }
.brand__mark {
  width: 40px; height: 40px; flex: none; background: var(--red);
  display: grid; place-items: center; border-radius: var(--r);
}
.brand__mark svg { display: block; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.42rem; letter-spacing: -.015em;
}
.brand__name b { color: var(--red-text); font-weight: 800; }
.brand__claim {
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .085em;
  text-transform: uppercase; color: var(--fg-muted); margin-top: .32rem;
  white-space: nowrap;
}
.brand__word {
  font-family: var(--f-display); font-weight: 700; font-stretch: 78%;
  font-size: .68rem; letter-spacing: .21em; color: var(--fg-muted);
  text-transform: uppercase; margin-top: .3rem;
}

/* Suche */
.search { display: flex; width: 100%; max-width: 640px; }
.search__field {
  flex: 1 1 auto; min-width: 0;
  border: 1.5px solid var(--line-ui); border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  padding: .72rem .9rem .72rem 2.4rem; font-size: .95rem; background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354585f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .72rem center; background-size: 17px;
}
.search__field::placeholder { color: var(--fg-muted); }
.search__field:focus { outline-offset: -1px; }
.search__btn {
  flex: none; border: 1.5px solid var(--red-strong); background: var(--red-strong);
  color: #fff; padding: 0 1.15rem; border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--f-display); font-weight: 700; cursor: pointer;
}
.search__btn:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* Kopf-Aktionen */
.head__acts { display: flex; align-items: center; gap: .25rem; }
.iconbtn {
  display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .45rem .6rem; border: 0; background: none; cursor: pointer;
  text-decoration: none; color: var(--fg); border-radius: var(--r); position: relative;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
}
.iconbtn:hover { background: var(--paper-2); color: var(--fg); }
.iconbtn__badge {
  position: absolute; top: .1rem; right: .12rem;
  background: var(--red-strong); color: #fff; font-family: var(--f-mono);
  font-size: .62rem; font-weight: 600; line-height: 1;
  min-width: 17px; height: 17px; padding: 0 3px;
  display: grid; place-items: center; border-radius: 9px;
}
.burger {
  display: none; align-items: center; gap: .5rem; padding: .55rem .8rem;
  border: 1.5px solid var(--line-ui); background: var(--white); border-radius: var(--r);
  cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: .85rem;
  -webkit-appearance: none; appearance: none;
}
.burger:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Schnellzugriff-Leiste unter dem Kopf (Desktop) */
.quicknav { background: var(--white); border-bottom: 1px solid var(--line); }
.quicknav__in { display: flex; align-items: center; gap: .3rem; overflow-x: auto; scrollbar-width: thin; }
.quicknav a {
  white-space: nowrap; text-decoration: none; color: var(--fg);
  font-family: var(--f-display); font-weight: 600; font-size: .88rem;
  padding: .7rem .85rem; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.quicknav a:hover { color: var(--red-text); border-bottom-color: var(--line-2); }
.quicknav a[aria-current="true"] { color: var(--red-text); border-bottom-color: var(--red); }
.quicknav__sale { margin-left: auto; color: var(--fg-muted) !important; font-family: var(--f-mono) !important; font-size: .74rem !important; font-weight: 500 !important; }

/* Mobile Suchzeile (nur unterhalb 1040px sichtbar, siehe Media-Query) */
.mobilesearch {
  display: none; background: var(--white);
  border-bottom: 1px solid var(--line-2); padding: .7rem 0;
}

/* ============================================== LAYOUT: RAIL + MAIN ==== */
.shell {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0; width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--pad); align-items: start;
}
.rail {
  position: sticky; top: 98px; align-self: start;
  border-right: 1px solid var(--line); padding: 1.6rem 1.4rem 2rem 0;
  max-height: calc(100vh - 118px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
}
.rail__title {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-muted); margin: 0 0 .85rem;
  display: flex; align-items: center; gap: .5rem;
}
.rail__title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.rail ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.rail li { border-bottom: 1px solid var(--line); }
.rail li:last-child { border-bottom: 0; }
.rail a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .52rem .35rem .52rem .1rem; text-decoration: none; color: var(--fg);
  font-size: .9rem; font-weight: 500; line-height: 1.3;
}
.rail a:hover { color: var(--red-text); background: var(--white); }
.rail a[aria-current="page"] {
  color: var(--red-text); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--red); padding-left: .75rem;
}
.rail a .n { font-family: var(--f-mono); font-size: .7rem; color: var(--fg-muted); flex: none; }
.rail a:hover .n { color: var(--red-text); }
.rail__more {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem;
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
}
.rail__box {
  margin-top: 1.5rem; background: var(--ink); color: var(--fg-on-dark);
  padding: 1.1rem; border-radius: var(--r);
}
.rail__boxtitle {
  color: #fff; font-family: var(--f-display); font-weight: 700;
  font-size: 1rem; line-height: 1.2; margin: 0 0 .35rem;
}
.rail__box p { font-size: .82rem; color: var(--fg-on-dark-muted); margin-bottom: .8rem; }
.rail__box a { color: var(--red-on-dark); font-weight: 700; font-size: .85rem; text-decoration: none; }
.rail__box a:hover { color: #fff; text-decoration: underline; }
.rail__tel { font-family: var(--f-mono); font-size: 1.02rem; color: #fff; display: block; margin-bottom: .15rem; }

.content { min-width: 0; padding: 1.6rem 0 4rem 2.2rem; }

/* Mobile-Schublade */
.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,11,13,.55); }
.drawer__panel {
  position: absolute; inset-block: 0; left: 0; width: min(360px, 88vw);
  background: var(--white); overflow-y: auto; padding: 1rem 1.1rem 3rem;
  box-shadow: 12px 0 40px rgba(0,0,0,.25);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-2); }
.drawer__close {
  border: 1.5px solid var(--line-ui); background: none; border-radius: var(--r);
  padding: .45rem .8rem; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: .85rem;
  -webkit-appearance: none; appearance: none;
}
.drawer__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.drawer nav ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.drawer nav li { border-bottom: 1px solid var(--line); }
.drawer nav a {
  display: block; padding: .72rem .2rem; text-decoration: none;
  color: var(--fg); font-weight: 600; font-size: .96rem;
}
.drawer nav a:hover { color: var(--red-text); }
.drawer__group {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--fg-muted); margin: 1.4rem 0 .5rem;
}

/* ============================================================ BREADCRUMB */
.crumbs { font-size: .82rem; color: var(--fg-muted); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-text); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--fg); font-weight: 600; }

/* ================================================================= HERO */
/* Hero: Bildbuehne oben in der nativen 5:2-Proportion der Fotos (kein Beschnitt),
   darunter zweispaltig Text + Handlungsaufforderungen. */
.hero {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--white); overflow: hidden; margin-bottom: 2.6rem;
}
.hero__text {
  display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0,.82fr);
  gap: clamp(1.2rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.4rem, 2.4vw, 2.4rem);
}
.hero__side { min-width: 0; }
.hero__text h1 {
  margin-bottom: .6rem;
  font-size: clamp(1.5rem, 1rem + 1.35vw, 2.25rem);
  hyphens: manual; overflow-wrap: break-word; text-wrap: balance;
}
.hero__text h1 em { font-style: normal; color: var(--red-text); }
.hero__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.chip {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--fg);
  padding: .32rem .6rem; border-radius: 100px; display: inline-flex; align-items: center; gap: .35rem;
}
.chip svg { flex: none; }
.hero__cta { display: grid; gap: .6rem; margin: 0; }

/* Bildbuehne / Slider */
.stage { position: relative; background: var(--ink); display: flex; flex-direction: column; }
.stage__frame {
  position: relative; aspect-ratio: 5 / 2;   /* exakt das Seitenverhaeltnis der Fotos */
  overflow: hidden; background: var(--ink);
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
}
.slide[data-active="true"] { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(to top, rgba(10,11,13,.92) 12%, rgba(10,11,13,.55) 55%, rgba(10,11,13,0));
  color: #fff; padding: 2.6rem 1.2rem .95rem;
}
.slide__cap b { font-family: var(--f-display); font-size: 1.05rem; display: block; font-stretch: 92%; }
.slide__cap span { font-family: var(--f-mono); font-size: .72rem; color: #dfe1e5; letter-spacing: .05em; }
.stage__bar {
  display: flex; align-items: stretch; gap: 0;
  background: var(--ink-2); border-top: 1px solid var(--line-dark);
}
.stage__tabs { display: flex; flex: 1 1 auto; min-width: 0; }
.stage__tab {
  flex: 1 1 0; min-width: 0; background: none; border: 0; cursor: pointer;
  padding: .55rem .4rem; color: var(--fg-on-dark-muted);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em;
  border-top: 3px solid transparent; margin-top: -1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none;
}
.stage__tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.stage__tab[aria-selected="true"] { color: #fff; border-top-color: var(--red); background: rgba(255,255,255,.08); }
.stage__pause {
  flex: none; background: none; border: 0; border-left: 1px solid var(--line-dark);
  color: var(--fg-on-dark-muted); cursor: pointer; padding: .5rem .8rem;
  display: grid; place-items: center; -webkit-appearance: none; appearance: none;
}
.stage__pause:hover { color: #fff; background: rgba(255,255,255,.09); }

/* ========================================================== TRUST-LEISTE */
.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--white); margin-bottom: 3rem; overflow: hidden;
}
.trust__item { display: flex; gap: .8rem; padding: 1.05rem 1.15rem; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; }
.trust__item svg { flex: none; color: var(--red-text); margin-top: 2px; }
.trust__item b { display: block; font-family: var(--f-display); font-size: .95rem; }
.trust__item span { font-size: .8rem; color: var(--fg-muted); line-height: 1.45; display: block; }

/* ============================================================= SEKTIONEN */
.sect { margin-bottom: 3.4rem; }
.sect__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink); padding-bottom: .7rem;
}
.sect__head h2 { margin: 0; }
.sect__head p { margin: .25rem 0 0; color: var(--fg-muted); font-size: .9rem; }
.sect__link {
  font-family: var(--f-display); font-weight: 700; font-size: .88rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}
.sect__link:hover { text-decoration: underline; }

/* Highlight-Karten (Bild links, Text rechts — "Karteikarte") */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.card {
  display: grid; grid-template-columns: 108px minmax(0,1fr); gap: .95rem;
  background: var(--white); padding: 1rem; text-decoration: none; color: var(--fg);
  align-items: center; transition: background-color .15s;
}
.card:hover { background: var(--paper); color: var(--fg); }
.card__pic {
  aspect-ratio: 4/3; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 2px; overflow: hidden; display: grid; place-items: center; padding: 4px;
}
.card__pic img { width: 100%; height: 100%; object-fit: contain; }
.card__idx { font-family: var(--f-mono); font-size: .66rem; color: var(--fg-muted); letter-spacing: .1em; display: block; margin-bottom: .18rem; }
.card__name { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; display: block; }
.card:hover .card__name { color: var(--red-text); text-decoration: underline; }
.card__meta { font-size: .78rem; color: var(--fg-muted); display: block; margin-top: .3rem; }

/* Fachbereich-Block */
.feature {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
  background: var(--white);
}
.feature__pic { position: relative; background: var(--ink); min-height: 260px; }
.feature__pic img { width: 100%; height: 100%; object-fit: cover; }
.feature__tag {
  position: absolute; top: 0; left: 0; background: var(--red); color: #fff;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .4rem .75rem;
}
.feature__body { padding: clamp(1.3rem, 2.2vw, 2.2rem); }
.feature__list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.feature__list li {
  display: flex; gap: .6rem; align-items: baseline;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.feature__list li:last-child { border-bottom: 0; }
.feature__list b { font-family: var(--f-mono); font-size: .74rem; color: var(--fg-muted); letter-spacing: .08em; text-transform: uppercase; flex: none; width: 88px; }

/* Katalog-Index (alle Rubriken, dichte Liste) */
.index {
  columns: 4; column-gap: 2.2rem; list-style: none; margin: 0; padding: 0;
}
.index li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.index a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .1rem; text-decoration: none; color: var(--fg); font-size: .89rem;
}
.index a:hover { color: var(--red-text); }
.index a .arrow { opacity: 0; color: var(--red-text); }
.index a:hover .arrow, .index a:focus-visible .arrow { opacity: 1; }

/* Ueber-uns-Block */
.about {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr); gap: 2.4rem;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: clamp(1.4rem, 2.6vw, 2.6rem);
}
.about p { font-size: 1.01rem; }
.about__sig {
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 700;
  border-left: 3px solid var(--red); padding-left: .9rem; margin-top: 1.4rem; line-height: 1.35;
}
.about__sig span { display: block; font-family: var(--f-mono); font-size: .74rem; font-weight: 400; color: var(--fg-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.facts { list-style: none; margin: 0; padding: 0; align-self: start; }
.facts li { border-top: 1px solid var(--line); padding: .8rem 0; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { display: block; font-family: var(--f-display); font-size: 1.55rem; font-stretch: 88%; line-height: 1; }
.facts span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }

/* ====================================================== KATEGORIE-SEITE  */
.pagehead { margin-bottom: 1.8rem; }
.pagehead h1 { margin-bottom: .4rem; }
.pagehead__meta { font-family: var(--f-mono); font-size: .78rem; color: var(--fg-muted); letter-spacing: .06em; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
  padding: .8rem 1rem; background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 2rem;
  position: sticky; top: 98px; z-index: 20;
}
.filter { position: relative; flex: 1 1 260px; min-width: 200px; }
.filter input {
  width: 100%; border: 1.5px solid var(--line-ui); border-radius: var(--r);
  padding: .6rem .9rem .6rem 2.3rem; font-size: .92rem; background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354585f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .65rem center; background-size: 16px;
}
.toolbar__count { font-family: var(--f-mono); font-size: .78rem; color: var(--fg-muted); }
.viewtoggle { display: flex; margin-left: auto; border: 1.5px solid var(--line-ui); border-radius: var(--r); overflow: hidden; }
.viewtoggle button {
  border: 0; background: var(--white); cursor: pointer; padding: .5rem .8rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  -webkit-appearance: none; appearance: none;
}
.viewtoggle button + button { border-left: 1.5px solid var(--line-ui); }
.viewtoggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.viewtoggle button:hover:not([aria-pressed="true"]) { background: var(--paper-2); }

.group { margin-bottom: 2.6rem; }
.group__head {
  display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-2); padding-bottom: .5rem;
}
.group__head h2 { font-size: 1.15rem; margin: 0; }
.group__head span { font-family: var(--f-mono); font-size: .72rem; color: var(--fg-muted); }
.group[hidden] { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tile { display: block; }
.tile[hidden] { display: none; }
.tile a {
  display: block; background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--fg);
  height: 100%; transition: border-color .15s, box-shadow .15s, transform .12s;
}
.tile a:hover { border-color: var(--ink); box-shadow: 0 6px 18px rgba(21,23,27,.09); transform: translateY(-2px); }
.tile__pic {
  aspect-ratio: 4/3; background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: 10px; display: grid; place-items: center;
}
.tile__pic img { width: 100%; height: 100%; object-fit: contain; }
.tile__body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .35rem; }
.tile__id { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; color: var(--fg-muted); }
.tile__name { font-family: var(--f-display); font-weight: 700; font-size: .96rem; line-height: 1.25; }
.tile a:hover .tile__name { color: var(--red-text); }
.tile__go { margin-top: auto; font-family: var(--f-mono); font-size: .7rem; color: var(--red-text); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .3rem; }

/* Listenansicht */
.tiles[data-view="list"] { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); overflow: hidden; }
.tiles[data-view="list"] .tile + .tile { border-top: 1px solid var(--line); }
.tiles[data-view="list"] .tile a { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 1rem; align-items: center; border: 0; border-radius: 0; padding: .55rem .85rem; }
.tiles[data-view="list"] .tile a:hover { transform: none; box-shadow: none; background: var(--paper); }
.tiles[data-view="list"] .tile__pic { aspect-ratio: 4/3; border-bottom: 0; border: 1px solid var(--line); border-radius: 2px; padding: 4px; }
.tiles[data-view="list"] .tile__body { padding: 0; flex-direction: row; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.tiles[data-view="list"] .tile__go { margin: 0; }

.noresult { padding: 2rem; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--fg-muted); }
.noresult[hidden] { display: none; }

.helpbox {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 1.2rem; align-items: center;
  background: var(--ink); color: var(--fg-on-dark); border-radius: var(--r);
  padding: 1.4rem 1.6rem; margin-top: 1rem;
}
.helpbox h2 { color: #fff; margin: 0 0 .25rem; font-size: 1.2rem; }
.helpbox p { margin: 0; color: var(--fg-on-dark-muted); font-size: .92rem; }
.helpbox svg { color: var(--red-on-dark); flex: none; }

/* ========================================================= PRODUKTSEITE  */
.product { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.72fr); gap: 2.4rem; align-items: start; margin-bottom: 3rem; }

.gallery { min-width: 0; }
.gallery__main {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  aspect-ratio: 4/3; display: grid; place-items: center; padding: 1.2rem; position: relative;
}
.gallery__main img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.gallery__zoom {
  position: absolute; right: .7rem; bottom: .7rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .07em;
  color: var(--fg-muted); background: var(--paper); border: 1px solid var(--line);
  padding: .25rem .5rem; border-radius: 2px;
}
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; list-style: none; padding: 0; }
.gallery__thumbs button {
  width: 84px; aspect-ratio: 4/3; padding: 5px; cursor: pointer; background: var(--white);
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  display: grid; place-items: center; -webkit-appearance: none; appearance: none;
}
.gallery__thumbs button:hover { border-color: var(--ink); }
.gallery__thumbs button[aria-selected="true"] { border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* Kaufbox */
.buybox { position: sticky; top: 98px; }
.buybox__brand { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .5rem; }
.buybox h1 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); margin-bottom: .7rem; }
.stock {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ok-bg); color: var(--ok-text); border: 1px solid #bfe0cb;
  font-weight: 700; font-size: .87rem; padding: .38rem .7rem; border-radius: 100px;
}
.stock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.pricebox {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.25rem; margin: 1.2rem 0;
}
.price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price__val { font-family: var(--f-display); font-weight: 800; font-stretch: 92%; font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); line-height: 1; letter-spacing: -.02em; }
.price__vat { font-size: .82rem; color: var(--fg-muted); }
.price__ship { font-size: .84rem; color: var(--ok-text); font-weight: 600; margin-top: .45rem; display: flex; align-items: center; gap: .4rem; }
.buyrow { display: flex; gap: .6rem; margin-top: 1.1rem; }
.qty { display: flex; border: 1.5px solid var(--line-ui); border-radius: var(--r); overflow: hidden; flex: none; }
.qty button {
  width: 40px; border: 0; background: var(--white); cursor: pointer; font-size: 1.2rem;
  line-height: 1; -webkit-appearance: none; appearance: none; color: var(--fg);
}
.qty button:hover { background: var(--paper-2); }
.qty input {
  width: 52px; border: 0; border-inline: 1.5px solid var(--line-ui); text-align: center;
  font-family: var(--f-mono); font-size: .95rem; padding: .6rem 0; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buyrow .btn { flex: 1 1 auto; }
.buynote { font-size: .78rem; color: var(--fg-muted); margin: .7rem 0 0; }
.cartmsg { margin-top: .8rem; font-size: .87rem; font-weight: 600; color: var(--ok-text); background: var(--ok-bg); border: 1px solid #bfe0cb; border-radius: var(--r); padding: .55rem .75rem; }
.cartmsg:empty { display: none; }

.svclist { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.svclist li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.svclist svg { flex: none; color: var(--red-text); margin-top: 2px; }
.svclist b { display: block; }
.svclist span { color: var(--fg-muted); }

/* Kennwerte-Streifen */
.keyvals {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white);
  overflow: hidden; margin-bottom: 2.6rem;
}
.keyvals div { padding: 1rem 1.1rem; border-left: 1px solid var(--line); }
.keyvals div:first-child { border-left: 0; }
.keyvals dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .3rem; }
.keyvals dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 1.5rem; line-height: 1.05; }
.keyvals dd small { font-family: var(--f-text); font-size: .78rem; font-weight: 500; color: var(--fg-muted); letter-spacing: 0; }

/* Datenblatt */
.sheet { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 2.2rem; align-items: start; }
.spec { width: 100%; font-size: .92rem; }
.spec caption { text-align: left; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); padding-bottom: .6rem; }
.spec th, .spec td { text-align: left; padding: .62rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 600; color: var(--fg-muted); width: 47%; font-size: .87rem; }
.spec td { font-family: var(--f-mono); font-size: .88rem; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line-2); }

.note {
  background: var(--white); border: 1px solid var(--line-2);
  border-left: 3px solid var(--red); border-radius: var(--r); padding: 1.3rem 1.5rem;
}
.note h3 { margin-bottom: .5rem; }
.note p:last-child { margin-bottom: 0; }

/* Massskizze (Blaupause) */
.blueprint {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.2rem; margin: .9rem 0 0;
}
.blueprint figcaption { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .6rem; }
.blueprint svg { width: 100%; height: auto; max-width: 560px; margin-inline: auto; display: block; }

/* ============================================================== FOOTER  */
.site-foot { background: var(--ink); color: var(--fg-on-dark); margin-top: 2rem; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: 2rem; padding-block: 3rem 2.4rem; }
.foot__top h2, .foot__top h3 { color: #fff; font-size: .78rem; font-family: var(--f-mono); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.foot__top ul { list-style: none; margin: 0; padding: 0; }
.foot__top li { margin-bottom: .55rem; }
.foot__top a { color: var(--fg-on-dark-muted); text-decoration: none; font-size: .89rem; }
.foot__top a:hover { color: #fff; text-decoration: underline; }
.foot__brand .brand__name { color: #fff; }
.foot__brand .brand__name b { color: var(--red-on-dark); }
.foot__brand .brand__claim, .foot__brand .brand__word { color: var(--fg-on-dark-muted); }
.foot__about { color: var(--fg-on-dark-muted); font-size: .89rem; margin-top: 1rem; max-width: 34ch; }
.foot__addr { font-style: normal; color: var(--fg-on-dark-muted); font-size: .89rem; line-height: 1.75; }
.foot__addr a { color: var(--fg-on-dark-muted); }
.foot__bar {
  border-top: 1px solid var(--line-dark); padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center;
  font-size: .8rem; color: var(--fg-on-dark-muted);
}
.foot__bar nav { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin-left: auto; }
.foot__bar a { color: var(--fg-on-dark-muted); text-decoration: none; }
.foot__bar a:hover { color: #fff; text-decoration: underline; }
.foot__ship { display: flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .76rem; }

/* Zurueck-nach-oben */
.totop {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--r);
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s;
  -webkit-appearance: none; appearance: none;
}
.totop[data-show="true"] { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--red-strong); }

/* ========================================================== RESPONSIVE  */
/* Mittlere Breiten: Schnellzugriff ausduennen, damit er nicht seitlich wegrutscht.
   Alle Rubriken bleiben ueber die Schiene, den Katalog-Index und die Schublade erreichbar. */
@media (max-width: 1330px) {
  .quicknav a { padding: .7rem .62rem; font-size: .85rem; }
  .quicknav__acw { display: none; }
}

@media (max-width: 1240px) {
  :root { --rail: 210px; }
  .index { columns: 3; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1040px) {
  .shell { display: block; padding-inline: var(--pad); }
  .rail { display: none; }
  .content { padding: 1.3rem 0 3rem; }
  .quicknav { display: none; }
  .burger { display: inline-flex; }
  .head__in { grid-template-columns: auto 1fr auto; gap: .7rem; }
  .search { display: none; }
  .head__acts .iconbtn--acct { display: none; }
  .hero__text { grid-template-columns: 1fr; gap: 1.3rem; }
  .feature { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 1.6rem; }
  /* Einspaltig: Preis/Kaufbereich vor die Massskizze ziehen, damit der
     Kaufabschluss nicht hinter der Zeichnung verschwindet. */
  .product { grid-template-columns: 1fr; gap: 1rem; }
  .gallery { display: contents; }
  .gallery__main { order: 1; }
  .gallery__thumbs { order: 2; margin-top: 0; }
  .buybox { position: static; order: 3; margin-top: .8rem; }
  .blueprint { order: 4; }
  .sheet { grid-template-columns: 1fr; gap: 1.6rem; }
  .toolbar { top: 76px; }
  /* Mobile Suchzeile unter dem Kopf */
  .mobilesearch { display: block; }
  .mobilesearch .search { display: flex; max-width: none; }
}

@media (max-width: 880px) {
  .hero__text h1 { hyphens: auto; }
  .trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .index { columns: 2; }
  .keyvals { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .keyvals div:nth-child(3) { border-left: 0; }
  .keyvals div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .helpbox { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust__item { border-left: 0; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
  .index { columns: 1; }
  .keyvals { grid-template-columns: 1fr; }
  .keyvals div { border-left: 0; }
  .keyvals div + div { border-top: 1px solid var(--line); }
  .foot__top { grid-template-columns: 1fr; }
  .topbar__links { display: none; }
  .topbar__usp { font-size: .74rem; margin: 0; }
  .topbar__in { min-height: 34px; }
  .stage__frame { aspect-ratio: 16 / 9; }
  .stage__tab { font-size: 0; padding: .55rem .3rem; }
  .stage__tab::after { content: attr(data-num); font-size: .72rem; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  .toolbar { position: static; }
  .viewtoggle { margin-left: 0; }
  .gallery__thumbs button { width: 68px; }
  .buyrow { flex-wrap: wrap; }
  .buyrow .btn { flex: 1 1 100%; }
  .brand__claim { display: none; }
  .card { grid-template-columns: 88px minmax(0,1fr); }
}

/* Sehr schmale Geraete: Wortmarke auf das Kuerzel reduzieren, Burger nur als Icon.
   Die Beschriftungen bleiben fuer Screenreader erhalten. */
@media (max-width: 560px) {
  .brand__word { display: none; }
  .slide__cap { padding-top: 1.8rem; }
  .slide__cap span { display: none; }
  .burger { padding: .55rem .7rem; }
  .burger__lbl {
    position: absolute !important; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .head__in { gap: .5rem; }
  .head__acts { gap: .1rem; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 1.15rem; }
  .iconbtn { padding: .4rem .35rem; }
}

/* Druck */
@media print {
  .topbar, .quicknav, .rail, .site-foot, .totop, .drawer, .burger, .head__acts { display: none !important; }
  body { background: #fff; }
  .shell { display: block; }
  .content { padding: 0; }
}
