/* Design-System QW-Wassertechnik · 1.3.0 (05.12.2026), Stil Entwurf 2 (Vorlage swtchenergy.com)
   Werte kommen aus den Bricks-Variablen (Handbuch 8.1), hier stehen nur Fallbacks mit denselben Werten.
   Farbe Navy (Reihe nach lukas-rudrof.de) + Cyan: black #0D222D, accent #183E53 (11,3:1 auf Weiß), accent-light #48CAE4 (8,98:1 auf black).
   Schrift Poppins 400/500/600 lokal. Überschriften in Großbuchstaben, Stärke 400. Ecken: radius-s 6px (Felder), radius-m 20px (Kacheln), radius-l 50px (Flächen), radius-pill (Buttons). Keine Schatten. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

/* Große Bildschirme (8.7): eigene Tokens, keine Bricks-Variablen */
:root {
  --big: calc(clamp(0px, 100vw - 1920px, 640px) / 640);
  --big-s: calc(var(--big) * 0.10);
  --big-m: calc(var(--big) * 0.15);
  --big-l: calc(var(--big) * 0.25);
}

html {
  font-size: 100%;
  scroll-padding-top: var(--header-h, 5.5rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-primary, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body-m, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--black, #0D222D);
  background-color: var(--white, #FFFFFF);
}
h1, h2, h3, h4, h5, h6, p, figure, dl, dd { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; }
::selection { background-color: var(--accent-light, #48CAE4); color: var(--black, #0D222D); }

.brxe-section { padding: var(--section-block, clamp(3.5rem, 7vw, 6.5rem)) var(--section-sides, clamp(1.25rem, 4vw, 3rem)); }
.brxe-container { width: 100%; max-width: var(--div-max, 1320px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Typo (8.2): Größe, Stärke, Farbe nur hier. Überschriften groß, Poppins 500 (H3 600) */
.fs, .fs-h1, .fs-h2, .fs-h3, .fs-h4, .fs-body-l, .fs-body-m, .fs-body-s, .fs-label {
  font-family: var(--font-primary, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;
}
.fs-h1, .fs-h2, .fs-h3 { font-weight: 500; color: var(--black, #0D222D); letter-spacing: -0.03em; hyphens: manual; }
.fs-h1 { font-size: var(--fs-h1, clamp(2.75rem, 1.5rem + 5vw, 6rem)); line-height: 1.02; letter-spacing: -0.035em; }
.fs-h2 { font-size: var(--fs-h2, clamp(2rem, 1.3rem + 2.6vw, 3.5rem)); line-height: 1.05; }
.fs-h3 { font-size: var(--fs-h3, clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem)); font-weight: 600; line-height: 1.15; letter-spacing: 0; }
.fs-h4 { font-size: var(--fs-h4, clamp(1.375rem, 1.15rem + 0.9vw, 2rem)); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; color: var(--black, #0D222D); }
.fs-body-l, .fs-body-m { font-weight: 400; color: var(--black, #0D222D); }
.fs-body-l { font-size: var(--fs-body-l, clamp(1.25rem, 1rem + 1.05vw, 1.875rem)); line-height: 1.35; letter-spacing: -0.01em; hyphens: manual; }
.fs-body-m { font-size: var(--fs-body-m, 1.0625rem); line-height: 1.65; }
.fs-body-s { font-size: var(--fs-body-s, 0.875rem); line-height: 1.55; font-weight: 400; color: var(--grey, #486C86); }
.fs-label { font-size: var(--fs-label, 0.75rem); font-weight: 500; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey, #486C86); }
.fs-body-l + .fs-body-l, .fs-body-m + .fs-body-m { margin-block-start: var(--space-s, 1rem); }
.fs-body-l { max-width: 46rem; }
.fs-body-m { max-width: 70ch; }

/* Section-Kopf (vertikaler Rhythmus 8.0), ohne Eyebrow */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: var(--head-title-gap, 1.25rem);
  margin-bottom: var(--head-content-gap, 3.5rem);
}
.sec-head .fs-body-l, .sec-head .fs-body-m { max-width: 60ch; }

.gap-m { gap: var(--space-m, 1.5rem); }

/* Buttons: Pille, Label klein in Großbuchstaben. primary = Cyan, secondary = dunkel (auf dunkel: Umriss weiß) */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: fit-content;
  min-height: 3rem;
  padding: 0 1.75rem;
  border: var(--border-m, 1.5px) solid var(--accent-light, #48CAE4);
  border-radius: var(--radius-pill, 999px);
  background-color: var(--accent-light, #48CAE4);
  color: var(--black, #0D222D);
  font: inherit;
  font-size: var(--fs-label, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-fast, 150ms) var(--ease, ease), color var(--motion-fast, 150ms) var(--ease, ease), border-color var(--motion-fast, 150ms) var(--ease, ease), transform 80ms var(--ease, ease);
}
.btn-primary:hover { background-color: var(--black, #0D222D); border-color: var(--black, #0D222D); color: var(--white, #FFFFFF); }
.btn-secondary { background-color: var(--black, #0D222D); border-color: var(--black, #0D222D); color: var(--white, #FFFFFF); }
.btn-secondary:hover { background-color: var(--accent-light, #48CAE4); border-color: var(--accent-light, #48CAE4); color: var(--black, #0D222D); }
.btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.btn-primary[disabled], .btn-secondary[disabled] { opacity: var(--disabled-opacity, 0.5); pointer-events: none; }

/* Runder Pfeil-Button (Kacheln, Hero) */
.btn-round {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--accent-light, #48CAE4);
  color: var(--black, #0D222D);
  transition: transform var(--motion-fast, 150ms) var(--ease, ease);
}
.btn-round::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentColor;
  -webkit-mask: var(--icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")) center / contain no-repeat;
}
.btn-round.is-down { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }

/* Links im Fließtext */
.fs-body-l a:not([class]), .fs-body-m a:not([class]), .fs-body-s a:not([class]) {
  color: var(--accent, #183E53);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--motion-fast, 150ms) var(--ease, ease);
}
.fs-body-l a:not([class]):hover, .fs-body-m a:not([class]):hover, .fs-body-s a:not([class]):hover { text-decoration-thickness: 2px; }

/* Flächen (8.2). Auf .bg-dark schaltet das Theme alle Farben um (Regel 6) */
.bg-white { background-color: var(--white, #FFFFFF); }
.bg-light { background-color: var(--bg-light, #F4F8FC); }
.bg-dark { background-color: var(--black, #0D222D); color: var(--white, #FFFFFF); }
.bg-dark .fs-h1, .bg-dark .fs-h2, .bg-dark .fs-h3, .bg-dark .fs-h4, .bg-dark .fs-body-l, .bg-dark .fs-body-m { color: var(--white, #FFFFFF); }
.bg-dark .fs-body-s { color: var(--grey-light, #90A6B8); }
.bg-dark .fs-body-l a:not([class]), .bg-dark .fs-body-m a:not([class]), .bg-dark .fs-body-s a:not([class]) { color: var(--accent-light, #48CAE4); }
.bg-dark .fs-label { color: var(--grey-light, #90A6B8); }
.bg-dark .btn-primary:hover { background-color: var(--white, #FFFFFF); border-color: var(--white, #FFFFFF); color: var(--black, #0D222D); }
.bg-dark .btn-secondary { background-color: transparent; border-color: var(--white, #FFFFFF); color: var(--white, #FFFFFF); }
.bg-dark .btn-secondary:hover { background-color: var(--white, #FFFFFF); color: var(--black, #0D222D); }

/* Kachel: graue Fläche, Ecken 20px, Text oben, Titel und Pfeil unten */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-xl, 3rem);
  padding: var(--space-l, 2rem);
  border-radius: var(--radius-m, 20px);
  background-color: var(--bg-light, #F4F8FC);
  color: var(--black, #0D222D);
  text-decoration: none;
  overflow: hidden;
}
.bg-light .card { background-color: var(--white, #FFFFFF); }
.card:hover .btn-round { transform: translateX(4px); }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-s, 1rem); }
.card img { border-radius: var(--radius-m, 20px); }
.bg-dark .card { background-color: rgba(255, 255, 255, 0.06); color: var(--white, #FFFFFF); }

/* Bilder: feste Seitenverhältnisse */
.img-hero { aspect-ratio: 16 / 9; object-fit: cover; }
.img-card { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m, 20px); }
.img-square { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-m, 20px); }

/* Formularfelder */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: var(--border-m, 1.5px) solid var(--line, #D3D9E2);
  border-radius: var(--radius-s, 6px);
  background-color: var(--white, #FFFFFF);
  color: var(--black, #0D222D);
  font: inherit;
  transition: border-color var(--motion-fast, 150ms) var(--ease, ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--grey, #486C86); }
input:focus, select:focus, textarea:focus { border-color: var(--accent, #183E53); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent, #183E53); width: 1.125rem; height: 1.125rem; }
label { font-weight: 500; }
[aria-invalid="true"] { border-color: var(--error, #C62828) !important; }
.field-error { color: var(--error, #C62828); font-size: var(--fs-body-s, 0.875rem); }

/* Fokus (8.2a) */
:focus-visible { outline: var(--focus-ring, 2px solid) var(--accent, #183E53); outline-offset: 3px; }
.bg-dark :focus-visible { outline-color: var(--accent-light, #48CAE4); }

/* Einblenden (8.4) */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(var(--motion-dist, 16px));
  transition: opacity var(--motion-base, 240ms) var(--ease-out, ease-out), transform var(--motion-base, 240ms) var(--ease-out, ease-out);
  transition-delay: calc(min(var(--i, 0), 3) * var(--motion-stagger, 40ms));
}
.js-motion .reveal[data-reveal="done"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0.01ms; --motion-base: 0.01ms; --motion-slow: 0.01ms; --motion-dist: 0px; --motion-stagger: 0ms; }
  html { scroll-behavior: auto; }
  html.js-motion .reveal.reveal { opacity: 1; transform: none; transition: none; }
}
