/* DUSTOX Website — Designsystem nach DESIGN.md, erweitert um UPDATE_01.md */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ED6D1F;
  --orange-hover: #D95E13;
  --orange-active: #B84C0D;
  --ink: #282C2F;
  --sec: #5F666B;
  --grey-light: #F3F3F3;
  --line: #E3E5E6;
  --white: #FFFFFF;
  --error: #A62A1E;
  --success: #1F6B45;
  --radius-sm: 12px;
  --radius-input: 14px;
  --radius-md: 18px;
  --radius-card: 28px;
  --radius-feature: 32px;

  /* UPDATE_01.md §6/§7: globale Contentbreite, Ränder, vertikale Abstände */
  --container-max: 1140px;
  --gutter: 16px;
  --section-pad: 40px;
  --gap: 16px;
  --header-h: 72px;
  --font: "Sora", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* UPDATE_01.md §5: Smartphone bis 767px, Tablet 768–1024px, Desktop ab 1025px */
@media (min-width: 768px) {
  :root { --gutter: 20px; --section-pad: 48px; --gap: 20px; --header-h: 80px; }
}
@media (min-width: 1025px) {
  :root { --gutter: 24px; --section-pad: 64px; --gap: 24px; --header-h: 88px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; padding-top: var(--header-h); }
body.has-hero main { padding-top: 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--orange-active); }
.lead { font-size: 1.15rem; color: var(--sec); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Header (UPDATE_01.md §9–§11)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease, transform .3s ease;
}
.site-header.is-solid {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.site-header.is-hidden { transform: translateY(-100%); }
.page-no-hero .site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
/* Smartphone-Reihenfolge (UPDATE_01.md §11): Icon links | DE/EN | Burger rechts */
.logo { order: 1; }
.header-actions { order: 2; }
.nav-toggle { order: 3; }
@media (min-width: 1025px) {
  .primary-nav { order: 2; }
  .header-actions { order: 3; }
}
.logo { display: inline-flex; align-items: center; }
.logo img { display: none; height: 32px; width: auto; }

/* Vor dem Scrollen (transparenter Header über Hero): weiße Logo-/Icon-Variante */
@media (max-width: 767px) { .logo-mobile.logo-transparent { display: block; height: 40px; } }
@media (min-width: 768px) { .logo-desktop.logo-transparent { display: block; } }

/* Nach dem Scrollen bzw. auf Seiten ohne Hero: orange Logo-/Icon-Variante */
.site-header.is-solid .logo-transparent,
.page-no-hero .logo-transparent { display: none !important; }
@media (max-width: 767px) {
  .site-header.is-solid .logo-mobile.logo-solid,
  .page-no-hero .logo-mobile.logo-solid { display: block; height: 40px; }
}
@media (min-width: 768px) {
  .site-header.is-solid .logo-desktop.logo-solid,
  .page-no-hero .logo-desktop.logo-solid { display: block; }
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  transition: color .15s ease;
}
.primary-nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-header.is-solid .lang-switch,
.page-no-hero .lang-switch { color: var(--ink); border-color: var(--line); }

/* a.header-cta statt .header-cta: gleiche Spezifität wie .btn (0,0,1,0) würde sonst
   von der später im Stylesheet stehenden .btn-Regel (display:inline-flex) überschrieben. */
a.header-cta { display: none; }
@media (min-width: 1025px) {
  a.header-cta { display: inline-flex; }
}

.nav-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
  transition: background-color .15s ease;
}
.site-header.is-solid .nav-toggle-bar,
.site-header.is-solid .nav-toggle-bar::before,
.site-header.is-solid .nav-toggle-bar::after,
.page-no-hero .nav-toggle-bar,
.page-no-hero .nav-toggle-bar::before,
.page-no-hero .nav-toggle-bar::after { background: var(--ink); }
.nav-toggle-bar::before { content: ""; position: absolute; top: -7px; }
.nav-toggle-bar::after { content: ""; position: absolute; top: 7px; }

/*
 * Nav-Basiszustand (mobile-first) ist das Off-Canvas-Panel: fixiert, 85vw/100dvh,
 * von rechts, weiß (§11). Der Desktop-Media-Query danach macht daraus wieder eine
 * normale Inline-Navigation. Reihenfolge ist wichtig: die Desktop-Regel muss nach
 * der Basisregel stehen, sonst gewinnt bei gleicher Spezifität die Basisregel.
 */
.offcanvas-overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,20,.5);
  z-index: 210;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s .2s;
}
.offcanvas-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }

.primary-nav {
  position: fixed;
  top: 0; right: 0;
  width: 85vw;
  max-width: 420px;
  height: 100dvh;
  background: #fff;
  z-index: 220;
  padding: 24px var(--gutter);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s .25s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.primary-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .25s ease; }
/* UPDATE 06: Scroll-Lock bei offenem Menü. <html> ist wegen overflow-x:hidden der
   eigentliche Scrollcontainer — ein Lock nur auf <body> griff nicht. */
html.nav-open { overflow: hidden; }
.primary-nav { overscroll-behavior: contain; }

.primary-nav ul { flex-direction: column; gap: 4px; }
.primary-nav a { color: var(--ink); display: block; padding: 14px 0; font-size: 1.1rem; }
.primary-nav ul { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }

.offcanvas-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.offcanvas-close {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}

.offcanvas-cta { margin-top: auto; }
.offcanvas-cta .btn { width: 100%; }

@media (min-width: 1025px) {
  .nav-toggle { display: none; }
  .offcanvas-overlay { display: none; }
  .offcanvas-head { display: none; }
  .offcanvas-cta { display: none; }
  .primary-nav {
    position: static;
    display: block;
    width: auto;
    height: auto;
    background: none;
    z-index: auto;
    padding: 0;
    transform: none;
    visibility: visible;
    overflow: visible;
  }
  .primary-nav ul {
    display: flex;
    flex-direction: row;
    gap: 28px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .primary-nav a { color: #fff; padding: 8px 0; font-size: 1rem; }
  .site-header.is-solid .primary-nav a,
  .page-no-hero .primary-nav a { color: var(--ink); }
}

/* ==========================================================================
   Buttons (UPDATE_01.md §12) — Schriftgröße identisch zur Headernavigation
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0 28px;
  min-height: 56px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.btn-primary { background: var(--orange); color: #fff; border: none; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { background: var(--orange-active); }
/* Secondary (UPDATE_03.md Kapitel 4.2): transparenter Hintergrund, 2px Rand,
   beim Hover gefüllt mit kontrastgerechtem Text. Kontextfarbe: dunkel auf
   hellem Grund (Standard), weiß auf dunklem Hero-Grund (siehe .hero unten). */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }
.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9rem; }

@media (max-width: 1024px) {
  .btn-block-mobile { width: 100%; }
}

/* ==========================================================================
   Hero-System (UPDATE_01.md §13–§17)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-home { min-height: 80vh; }
.hero-sub { min-height: 60vh; }
@media (max-width: 1024px) {
  .hero-home, .hero-sub { min-height: 0; height: auto; padding: calc(var(--header-h) + 32px) 0 32px; }
}
@media (min-width: 1025px) {
  .hero-home, .hero-sub { padding-top: var(--header-h); }
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-media-layer img,
.hero-media-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media-layer .media-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  position: absolute;
  inset: 0;
}
/* video.hero-video/img.hero-video-fallback statt .hero-video/.hero-video-fallback:
   braucht mind. dieselbe Spezifität wie ".hero-media-layer img/video" oben (Klasse+Typ),
   sonst gewinnt dort display:block unabhängig vom Breakpoint. */
.hero-media-layer video.hero-video { display: none; }
@media (min-width: 1025px) {
  .hero-media-layer video.hero-video { display: block; }
  .hero-media-layer img.hero-video-fallback { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-content .container {
  width: 100%;
}

/* Homepage-Hero (UPDATE_05.md Kapitel 8): eigenständige, viewportorientierte
   Bühne — bewusst NICHT auf den normalen 1140px-Container gedeckelt. Nur der
   Homepage-Hero nutzt diese Sonderbreite, .hero-sub bleibt beim normalen
   `.container` (1140px) aus Kapitel 5. */
.hero-home .hero-content .container {
  /* Externe Prüfung (UPDATE 05, Korrekturrunde): eine feste 2200px-Obergrenze
     ließ die Hero-Komposition auf großen/4K-Displays stoppen, obwohl der
     Viewport deutlich mehr Platz bietet. Jetzt ausschließlich viewportbasiert
     (94vw), ohne Pixel-Deckel — wächst auf 1920/2560/3840px durchgehend
     weiter mit. Nur der Homepage-Hero nutzt diese Sonderbreite; normale
     Contentsections bleiben unverändert bei 1140px (Kapitel 5). */
  width: 100%;
  max-width: 94vw;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

/* Großes, halbtransparentes Panel um Text/CTA/Produktslider (Kapitel 8.3):
   Hintergrund bleibt sichtbar, kein harter Kartenlook. */
.hero-panel {
  width: 100%;
  background: rgba(20, 22, 24, .42);
  border-radius: clamp(20px, 2.2vw, 40px);
  padding: clamp(24px, 3.2vw, 56px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-panel { background: rgba(20, 22, 24, .62); }
}

.hero-text h1 { color: #fff; margin-bottom: 0.4em; }
.hero-text p { color: #fff; }
/* Fluide Headline nur im Homepage-Hero (Kapitel 8.4): wächst sichtbar bis 4K,
   statt an der allgemeinen h1-Obergrenze (2.75rem) hängenzubleiben. */
.hero-home .hero-text h1 { font-size: clamp(2.25rem, 1.75rem + 2.9vw, 9rem); }
.hero-home .hero-text p { font-size: clamp(1rem, .85rem + .4vw, 1.5rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-ctas .btn {
  font-size: clamp(1rem, .9rem + .25vw, 1.25rem);
  min-height: clamp(56px, 40px + 3vw, 76px);
  padding: 0 clamp(24px, 2vw, 40px);
}
/* Desktop-CTA-Layout (Kapitel 8.6): Reihe 1 Kontakt+WhatsApp, Reihe 2 Produkte
   ansehen — der dritte Button erzwingt einen Zeilenumbruch, sobald die ersten
   beiden nebeneinander passen. */
.hero-home .hero-ctas a:nth-child(3) { flex-basis: 100%; }
@media (max-width: 1024px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* Startseiten-Hero: 50/50, rechts Produktslider (§16/§17, Kapitel 8.3/8.5) */
.hero-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text slider" "cta slider";
  gap: 24px clamp(24px, 3vw, 56px);
  align-items: center;
}
.hero-home-text { grid-area: text; max-width: none; }
.hero-home-slider { grid-area: slider; }
.hero-home-cta { grid-area: cta; }
@media (max-width: 1024px) {
  .hero-home-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "slider" "cta";
  }
  .hero-home-text { max-width: none; }
  .hero-home-slider { margin: 20px 0; }
}

.hero-sub .hero-text { max-width: 570px; }

/* ==========================================================================
   Homepage-Produkt-Slider (UPDATE_01.md §18)
   ========================================================================== */
/* Fluid statt fester Stufen (360/420/460px, Kapitel 8.5): die Grundfläche
   skaliert mit der Breite ihrer Grid-Spalte (die selbst mit dem Hero-Panel bis
   4K mitwächst), keine harte Desktop-Obergrenze mehr. */
.product-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
}

.product-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.product-slider-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.product-slider-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.product-slider-slide a { display: block; width: 100%; height: 100%; position: relative; }
.product-slider-slide img {
  /* STOPP-Korrektur (Kapitel 8.5): width/height:auto + max-width/max-height:100%
     deckelte das Bild bisher auf seine native Pixelauflösung — auf großen
     Displays wuchs es trotz größerer Slider-Fläche nicht weiter mit. Mit
     width/height:100% + object-fit:contain skaliert es stattdessen mit der
     (fluiden) Containerfläche mit, auch über die native Auflösung hinaus. */
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: bottom right;
  transform: translate(var(--slide-mx, 0px), var(--slide-my, 0px)) scale(var(--slide-mscale, 1));
}
@media (min-width: 768px) {
  .product-slider-slide img {
    transform: translate(var(--slide-tx, 0px), var(--slide-ty, 0px)) scale(var(--slide-tscale, 1));
  }
}
@media (min-width: 1025px) {
  .product-slider-slide img {
    transform: translate(var(--slide-dx, 0px), var(--slide-dy, 0px)) scale(var(--slide-dscale, 1));
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-slider-slide { transition: opacity .01ms; transform: none; }
}

.product-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.product-slider:hover .product-slider-arrow,
.product-slider:focus-within .product-slider-arrow,
.product-slider-arrow:focus-visible {
  opacity: 1;
}
.product-slider-arrow.prev { left: 8px; }
.product-slider-arrow.next { right: 8px; }
@media (hover: none) {
  .product-slider-arrow { opacity: 1; }
}

/* ==========================================================================
   Media-Platzhalter
   ========================================================================== */
.media-placeholder, .media-real {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
}
.media-placeholder {
  background: var(--grey-light);
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sec);
  font-size: .8rem;
  gap: 4px;
  padding: 16px;
  min-height: 220px;
}
.media-placeholder[data-aspect="16:9"] { aspect-ratio: 16/9; }
.media-placeholder[data-aspect="3:2"] { aspect-ratio: 3/2; }
.media-placeholder[data-aspect="4:3"] { aspect-ratio: 4/3; }
.media-placeholder[data-aspect="1:1"] { aspect-ratio: 1/1; }
.media-placeholder-label { font-weight: 700; letter-spacing: .04em; }
.media-placeholder-id { font-weight: 600; color: var(--ink); }
.media-placeholder-px { font-size: .75rem; }

/* ==========================================================================
   Strukturierte Sections (UPDATE_03.md Kapitel 3/7/8) — randlose, über die
   volle Breite laufende Hintergrundfläche; der Inhalt bleibt im Container.
   Dies ist seit der STOPP-Korrektur (Punkt 3) das EINZIGE Section-System für
   das gesamte Projekt: Startseite, Produktübersicht, Produktdetail, Technik,
   Über DUSTOX, Kontakt, Widerruf, Rechtsseiten. Randlos bedeutet: dieser
   Partial/diese Klasse darf NIE innerhalb eines `.container`-Elements
   gerendert werden.
   ========================================================================== */
.content-section { padding: var(--section-pad) 0; }
.content-section--white { background: #fff; }
.content-section--grey { background: var(--grey-light); }
.content-section-inner { text-align: left; }
.content-section-inner h2 { margin-top: 0; }
/* UPDATE_05.md Kapitel 4/7.1/9/10: Headline und zugehöriger Fließtext nutzen
   dieselbe Innenbreite (der 1140px-Container) — kein separates, schmaleres
   max-width mehr auf normalen (linksbündigen) Sections. Nur bewusst zentrierte
   Blöcke (Abschluss-CTA) behalten eine schmalere, lesefreundliche Textspalte. */
.content-section-body { text-align: left; }
/* Editorielle Ausnahme: nur die dedizierte Abschluss-CTA (page-cta.php) setzt
   --centered explizit selbst — normale Inhaltssections tun das nicht mehr. */
.content-section-inner--centered { text-align: center; }
.content-section-inner--centered .content-section-body { max-width: 720px; margin-left: auto; margin-right: auto; }
.content-section-inner .btn { margin-top: 12px; }
.content-section-inner .feature-grid { text-align: left; }

/* Story-Doppelblock (Kapitel 7.2): zwei aufeinanderfolgende "story"-Sections
   als ein gemeinsamer Zweispalten-Block mit gemeinsamem Hintergrund. */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap, 24px) 40px;
  align-items: start;
}
.story-grid > div > h2:first-child { margin-top: 0; }
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Section-Ausrichtung im visuellen Editor (Kapitel 16), CSP-konform per Klasse
   statt style="..." — nur diese drei Werte sind server- und clientseitig
   erlaubt (siehe HtmlSanitizer::ALLOWED_CLASS_VALUES). */
.text-align-left { text-align: left; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }

/* Letzte CTA-Section vor dem Footer: orange, weiße Schrift, Primary-Button
   invertiert (weißer Hintergrund/orange Schrift), randlos 100px zusätzlich
   bis zum Footer — auf allen Breakpoints konstant 100px (Kapitel 3.3). */
.content-section--final-cta {
  background: var(--orange);
  color: #fff;
  padding-bottom: calc(var(--section-pad) + 100px);
}
.content-section--final-cta h2 { color: #fff; }
.content-section--final-cta .btn-primary { background: #fff; color: var(--orange); }
.content-section--final-cta .btn-primary:hover { background: #f2f2f2; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 24px;
}
.feature-card {
  background: var(--grey-light);
  border-radius: var(--radius-card);
  padding: 28px;
}
@media (max-width: 1024px) { .feature-grid { grid-template-columns: 1fr; } }

/* Orangene Problemkarten (UPDATE_01.md §21) */
.feature-grid-problem .feature-card {
  background: var(--orange);
  color: #fff;
}
.feature-grid-problem .feature-card h3 { color: #fff; }
.feature-grid-problem .feature-card p { color: #fff; }

.prose { max-width: 820px; }
.prose.page-intro { max-width: var(--container-max); }
.page-intro { padding-top: 40px; }

/* ==========================================================================
   Produktkarten (UPDATE_01.md §22)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 24px;
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--grey-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(20, 22, 24, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(20, 22, 24, .12); }
.product-card-media { display: block; }
.product-card-media img,
.product-card-media .media-placeholder,
.product-card-media .media-real {
  border-radius: 0;
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}
.product-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-body h3 { margin: 0; }
.product-card-body h3 a { color: var(--ink); text-decoration: none; }
.product-card-desc { color: var(--sec); font-size: .95rem; flex: 1; }
.product-card-price strong { font-size: 1.2rem; }
.product-card-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.product-card-actions .btn { width: 100%; }

/* ==========================================================================
   Produktdetail
   ========================================================================== */
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--sec); font-weight: 700; }
.product-claim { font-weight: 600; font-size: 1.1rem; }
.product-price { font-size: 1.3rem; margin: 20px 0; }
/* UPDATE_05.md Kapitel 14: fehlender Abstand zwischen CTA-Button und
   folgendem Text real gefunden (kein margin-bottom auf .product-hero-ctas) —
   bestehendes Abstandsmaß (--gap) wiederverwendet, keine erfundene Zahl. */
.product-hero-ctas { margin-bottom: var(--gap); }
.price-note { display: block; font-size: .85rem; color: var(--sec); font-weight: 400; }

/* Produktgalerie (UPDATE_03.md Kapitel 13) — nur gerendert, wenn Bilder vorhanden sind. */
.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.product-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 640px) { .product-gallery { grid-template-columns: repeat(2, 1fr); } }

.advantages-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.advantages-list li { background: var(--grey-light); border-radius: var(--radius-sm); padding: 12px 16px; }
@media (max-width: 640px) { .advantages-list { grid-template-columns: 1fr; } }

.tech-specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tech-spec-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tech-spec-row dt { font-weight: 600; margin: 0; }
.tech-spec-row dd { margin: 0; color: var(--sec); }
.tech-spec-row.is-todo dd { color: var(--orange-active); font-style: italic; }

.variants-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.variant-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.variant-price { font-size: 1.2rem; font-weight: 700; }

.accessories-list, .downloads-list { padding-left: 1.2em; }
.accessory-note { color: var(--sec); font-size: .9rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--orange);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { color: var(--sec); padding-top: 8px; }

/* ==========================================================================
   Formulare
   ========================================================================== */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 3px solid #ED6D1F55; border-color: var(--orange); }
.honeypot { position: absolute; left: -9999px; }
.form-errors { background: #FBEAE8; border: 1px solid var(--error); border-radius: var(--radius-sm); padding: 16px; color: var(--error); margin-top: 16px; }
.form-success { background: #E7F3EC; border: 1px solid var(--success); border-radius: var(--radius-sm); padding: 16px; color: var(--success); }
.form-privacy-note { font-size: .85rem; color: var(--sec); }

/* Kontaktseite (UPDATE_01.md §30–§32) */
/* UPDATE_03.md Kapitel 17.1: Headline linksbündig, möglichst einzeilig (kein
   künstliches max-width mehr auf diesem Block), bricht auf kleinen Displays
   aber ganz normal um statt Overflow zu erzeugen. */
.contact-headline { padding: 40px 0 0; max-width: none; text-align: left; }
.contact-headline h1 { text-align: left; white-space: normal; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 0 var(--section-pad);
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-alt { background: var(--grey-light); border-radius: var(--radius-card); padding: 20px; align-self: start; }
.contact-address { margin-bottom: 20px; }
.contact-address p { margin: 0 0 1em; }
.contact-alt-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0; }
.contact-alt-list .btn { width: 100%; }

/* ==========================================================================
   Widerrufsformular
   ========================================================================== */
/* UPDATE_03.md Kapitel 17.2 / UPDATE_05.md Kapitel 10: Formular vollständig
   linksbündig — Labels, Felder, Hilfstexte, Buttonbereich. Die frühere
   zusätzliche 640px-Begrenzung ist entfernt: Headline, Rechtstext und Formular
   nutzen jetzt dieselben 1140px-Containerkanten (kein separat eingerücktes
   Formular mehr). */
.withdrawal-form-wrap { text-align: left; }
.withdrawal-form-wrap label, .withdrawal-form-wrap input, .withdrawal-form-wrap textarea,
.withdrawal-form-wrap .hint, .withdrawal-form-wrap button { text-align: left; }
.withdrawal-form-wrap button { margin-left: 0; margin-right: auto; }

/* ==========================================================================
   Breadcrumbs — direkt unter Hero (UPDATE_01.md §35)
   ========================================================================== */
.breadcrumbs { padding: 16px var(--gutter); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .85rem; color: var(--sec); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; }
.breadcrumbs a { color: var(--sec); }

/* ==========================================================================
   Footer (UPDATE_01.md §33)
   ========================================================================== */
/* UPDATE 06: Endet eine Seite nicht mit einer randlosen Section (die ihre eigenen
   Innenabstände mitbringt), sondern mit einem normalen Container — Widerrufsformular,
   Kontaktbereich, reine Intro-Seite, Breadcrumbs —, erhält sie denselben Abstand zum
   Footer wie eine Section. Vorher saß z. B. der Widerruf-Button mit 0px am Footer. */
main > .container:last-child { padding-bottom: var(--section-pad); }

.site-footer { background: var(--ink); color: #E9EAEA; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  /* UPDATE 06: nur vertikal setzen — das frühere Kurzform-"padding: 40px 0"
     überschrieb die seitlichen Container-Abstände (--gutter) mit 0, dadurch
     klebte der Footer auf Smartphone/Tablet am Viewportrand. */
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-block h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: #B7BBBD; margin-bottom: 12px; }
.footer-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-block a { color: #E9EAEA; text-decoration: none; }
.footer-block a:hover { color: var(--orange); }
/* margin-top/-bottom statt "margin: 0" — sonst ginge das "margin: 0 auto" von
   .container verloren und die Zeile säße auf Desktop nicht mehr in der 1140px-Spalte. */
.footer-bottom { color: #9AA0A2; font-size: .8rem; margin-top: 0; margin-bottom: 0; padding-bottom: 40px; }
@media (max-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Consent banner
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  z-index: 200;
}

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.legal-note { color: var(--sec); font-style: italic; }
