/* ============================================================
   doppelstabmatten-konfigurator.de — Design System
   Aesthetic: Refined Industrial — German engineering meets
   editorial typography. Authority without austerity.
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --c-deep:    #0b3a52;
  --c-cyan:    #1a9fd4;
  --c-cyan-dk: #1280ab;
  --c-light:   #f4f8fb;
  --c-white:   #ffffff;
  --c-ink:     #0a0a0a;
  --c-muted:   #4a6070;
  --c-border:  #d0dde6;
  --c-card-bg: #ffffff;
  --c-overlay: rgba(7, 28, 42, 0.72);

  --f-serif:  'Cormorant Garamond', Georgia, serif;
  --f-sans:   'Montserrat', 'Segoe UI', sans-serif;
  --f-body:   'Lato', 'Helvetica Neue', sans-serif;

  --radius:   8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(11,58,82,.08);
  --shadow-md: 0 6px 24px rgba(11,58,82,.13);
  --shadow-lg: 0 16px 48px rgba(11,58,82,.18);

  --nav-h: 72px;
  --section-pad: clamp(72px, 9vw, 120px);
  --container: 1200px;
  --container-narrow: 820px;

  --ease-out: cubic-bezier(.22,.68,0,1.2);
  --ease-in:  cubic-bezier(.4,0,.6,1);
  --ease-std: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-white);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Utility: Container ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}
.container--narrow { max-width: var(--container-narrow); }

/* ── Utility: Section Padding ───────────────────────────── */
.section { padding-block: var(--section-pad); }
.section--light { background: var(--c-light); }
.section--dark  { background: var(--c-deep); color: var(--c-white); }

/* ── Reveal Animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ease-std), transform .65s var(--ease-std);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }
.reveal--delay-5 { transition-delay: .5s; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--f-sans); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: .75rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 60ch;
}

p + p { margin-top: 1em; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease-std), box-shadow .35s var(--ease-std),
              backdrop-filter .35s var(--ease-std);
}
.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(11, 58, 82, .97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}
.nav__logo {
  font-family: var(--f-sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-white);
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: auto;
  opacity: .95;
}
.nav__logo span { color: var(--c-cyan); }
.nav__links {
  display: flex;
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  align-items: center;
}
.nav__link {
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.82);
  padding: .3rem 0;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--c-cyan);
  transition: width .25s var(--ease-std);
}
.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: .5rem; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .3s var(--ease-std), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(11, 58, 82, .98);
  backdrop-filter: blur(16px);
  padding: 2rem clamp(20px, 5vw, 60px) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .35s var(--ease-std), opacity .35s;
  z-index: 899;
  pointer-events: none;
}
.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile .nav__link {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
}
.nav__mobile .btn-primary { align-self: flex-start; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--f-sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .85em 1.75em;
  border-radius: 4px;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--c-cyan);
  color: var(--c-white);
  border: 2px solid var(--c-cyan);
}
.btn-primary:hover {
  background: var(--c-cyan-dk);
  border-color: var(--c-cyan-dk);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(26,159,212,.32);
}
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,.08);
  transform: scale(1.03);
}
.btn--lg { padding: 1em 2.2em; font-size: 1rem; }
.btn--sm { padding: .55em 1.2em; font-size: .8rem; }

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--c-deep);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenBurns 18s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
@keyframes kenBurns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.1) translate(-2%, -1%); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7,20,30,.75) 0%,
    rgba(11,58,82,.6) 55%,
    rgba(7,20,30,.82) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-inline: clamp(20px, 5vw, 40px);
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(26,159,212,.12);
  border: 1px solid rgba(26,159,212,.3);
  padding: .4em 1em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s var(--ease-std) .2s both;
}
.hero__headline {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  animation: fadeUp .85s var(--ease-std) .35s both;
}
.hero__headline em {
  font-style: normal;
  color: var(--c-cyan);
}
.hero__subline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  animation: fadeUp .85s var(--ease-std) .5s both;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .85s var(--ease-std) .65s both;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-sans);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  animation: fadeUp 1s var(--ease-std) 1s both;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.2); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Split Section (text + image alternating) ───────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__text { max-width: 52ch; }
.split__text h2 { margin-bottom: 1rem; }
.split__text .lead { margin-bottom: 1.5rem; }
.split__text p { margin-bottom: 1rem; color: var(--c-muted); }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-std);
}
.split__media:hover img { transform: scale(1.03); }
.split__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,159,212,.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ── Feature Cards ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px; height: 48px;
  background: rgba(26,159,212,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.card__title {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--c-deep);
}
.card__text {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Advantage check list */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.checklist__item:hover {
  border-color: var(--c-cyan);
  box-shadow: 0 4px 16px rgba(26,159,212,.12);
}
.checklist__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--c-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  margin-top: .1rem;
}
.checklist__text {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-ink);
}

/* ── Comparison Table ───────────────────────────────────── */
.table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.comparison-table {
  background: var(--c-white);
}
.comparison-table th {
  background: var(--c-deep);
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1.1rem 1.5rem;
  text-align: left;
}
.comparison-table th:not(:first-child) { text-align: center; }
.comparison-table td {
  padding: .9rem 1.5rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink);
  transition: background .2s;
}
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(26,159,212,.05); }
.comparison-table .label-col {
  font-weight: 600;
  color: var(--c-deep);
  font-family: var(--f-sans);
  font-size: .85rem;
}
.comparison-table .highlight-col { background: rgba(26,159,212,.04); }
.badge-recommended {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--c-cyan);
  color: #fff;
  padding: .2em .65em;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .4em;
}

/* ── Color Swatches ─────────────────────────────────────── */
.swatches {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
}
.swatch__circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .25s var(--ease-out), box-shadow .25s;
  position: relative;
}
.swatch__circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color .25s;
}
.swatch:hover .swatch__circle { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.swatch.is-active .swatch__circle::after { border-color: var(--c-cyan); }
.swatch__label {
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-deep);
  text-align: center;
}
.swatch__ral {
  font-size: .72rem;
  color: var(--c-muted);
  margin-top: -.4rem;
}
.swatch--anthrazit .swatch__circle { background: #373F43; }
.swatch--moosgrun  .swatch__circle { background: #004225; }
.swatch--verzinkt  .swatch__circle {
  background: linear-gradient(135deg, #b0bec5 0%, #e0e7ec 45%, #9eabb2 100%);
}

/* ── Height Visualizer ──────────────────────────────────── */
.heights {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.height-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.height-bar__fill {
  width: 44px;
  background: linear-gradient(to top, var(--c-deep), var(--c-cyan));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: opacity .2s;
  min-height: 20px;
}
.height-bar__fill::after {
  content: attr(data-label);
  position: absolute;
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-sans);
  font-size: .7rem;
  font-weight: 700;
  color: var(--c-cyan);
  white-space: nowrap;
}
.height-bar:hover .height-bar__fill { opacity: .8; }
.height-bar__mm {
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-deep);
}
.height-bar__tip {
  font-size: .68rem;
  color: var(--c-muted);
  text-align: center;
  max-width: 60px;
  line-height: 1.3;
}

/* ── CTA Block ──────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, #071c2a 0%, var(--c-deep) 50%, #0d4a65 100%);
  padding-block: clamp(80px, 10vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,.03) 39px,
    rgba(255,255,255,.03) 40px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,.03) 39px,
    rgba(255,255,255,.03) 40px
  );
  pointer-events: none;
}
.cta-block__inner { position: relative; z-index: 1; }
.cta-block__headline {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--c-white);
  margin-bottom: 1rem;
}
.cta-block__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.cta-block__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Gallery Grid ───────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-std);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,58,82,.5), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem 1rem;
  font-family: var(--f-sans);
  font-size: .75rem;
  color: #fff;
  z-index: 1;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-white);
  transition: border-color .2s, box-shadow .2s;
}
.faq__item.is-open {
  border-color: var(--c-cyan);
  box-shadow: 0 4px 16px rgba(26,159,212,.1);
}
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-deep);
  transition: background .2s;
  user-select: none;
}
.faq__question:hover { background: rgba(26,159,212,.04); }
.faq__chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cyan);
  transition: transform .3s var(--ease-std);
}
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-std);
}
.faq__answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.75;
}
.faq__item.is-open .faq__answer { max-height: 600px; }

/* ── Montagerechner ─────────────────────────────────────── */
.rechner {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 680px;
  margin-inline: auto;
  border: 1px solid var(--c-border);
}
.rechner__title {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  color: var(--c-deep);
  margin-bottom: .5rem;
}
.rechner__sub {
  font-size: .9rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-deep);
  margin-bottom: .5rem;
}
.form-group label span { color: var(--c-cyan); font-weight: 700; }

.rechner-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--c-cyan) 0%,
    var(--c-cyan) var(--slider-progress, 20%),
    var(--c-border) var(--slider-progress, 20%),
    var(--c-border) 100%
  );
  outline: none;
  cursor: pointer;
  transition: height .2s;
}
.rechner-slider:hover { height: 8px; }
.rechner-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-white);
  border: 3px solid var(--c-cyan);
  box-shadow: 0 2px 8px rgba(26,159,212,.3);
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s;
}
.rechner-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(26,159,212,.4);
}
.rechner-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-white);
  border: 3px solid var(--c-cyan);
  box-shadow: 0 2px 8px rgba(26,159,212,.3);
  cursor: pointer;
}

.seg-group {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.seg-btn {
  flex: 1;
  min-width: fit-content;
  padding: .6em 1.1em;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-light);
  cursor: pointer;
  transition: all .2s;
}
.seg-btn:hover { border-color: var(--c-cyan); color: var(--c-deep); background: #fff; }
.seg-btn.is-active {
  border-color: var(--c-cyan);
  background: var(--c-cyan);
  color: var(--c-white);
}

.rechner__results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.result-box {
  background: var(--c-light);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: background .3s;
}
.result-box--total {
  background: var(--c-deep);
  color: var(--c-white);
  grid-column: 1 / -1;
  padding: 1.5rem;
}
.result-box__label {
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .35rem;
}
.result-box--total .result-box__label { color: rgba(255,255,255,.65); }
.result-box__value {
  font-family: var(--f-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-deep);
  line-height: 1.1;
}
.result-box--total .result-box__value { color: var(--c-cyan); font-size: 2.1rem; }
.rechner__disclaimer {
  margin-top: 1.25rem;
  font-size: .78rem;
  color: var(--c-muted);
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}
.rechner__cta { margin-top: 1.5rem; text-align: center; }

/* ── Section Header ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--c-muted); font-size: 1.05rem; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-sans);
  font-size: .78rem;
  color: var(--c-muted);
  padding-block: .75rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--c-border); }

/* ── Info Box / Pro Tip ─────────────────────────────────── */
.info-box {
  background: rgba(26,159,212,.07);
  border-left: 4px solid var(--c-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
}
.info-box__title {
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: .4rem;
}
.info-box p { color: var(--c-deep); font-size: .9rem; }

.warning-box {
  background: rgba(245,158,11,.07);
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
}

/* ── Step Process ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}
.step { position: relative; }
.step::before {
  counter-increment: steps;
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-deep);
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 48px;
  width: calc(100% - 24px);
  height: 2px;
  background: linear-gradient(to right, var(--c-deep), var(--c-border));
}
.step__title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-deep);
  margin-bottom: .4rem;
}
.step__text {
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── Reference / Project Teaser ────────────────────────── */
.project-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-teaser {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.project-teaser img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-std);
}
.project-teaser:hover img { transform: scale(1.06); }
.project-teaser__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,58,82,.85) 0%, transparent 55%);
  transition: background .3s;
}
.project-teaser:hover .project-teaser__overlay {
  background: linear-gradient(to top, rgba(11,58,82,.92) 0%, rgba(11,58,82,.2) 55%);
}
.project-teaser__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  transform: translateY(4px);
  transition: transform .3s;
}
.project-teaser:hover .project-teaser__content { transform: translateY(0); }
.project-teaser__label {
  font-family: var(--f-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: .25rem;
}
.project-teaser__title {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  color: var(--c-white);
  line-height: 1.25;
}

/* ── Trust Badges ───────────────────────────────────────── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding-block: 2.5rem;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
}
.trust-item__value {
  font-family: var(--f-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-deep);
  line-height: 1;
}
.trust-item__label {
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #071c2a;
  color: rgba(255,255,255,.7);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.footer__brand {
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-white);
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}
.footer__brand span { color: var(--c-cyan); }
.footer__address {
  font-size: .85rem;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
}
.footer__heading {
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer__links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__links a:hover { color: var(--c-cyan); }
.footer__social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  transition: background .2s, color .2s, transform .2s;
}
.footer__social a:hover {
  background: var(--c-cyan);
  color: #fff;
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer__bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer__bottom a:hover { color: var(--c-cyan); }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--c-deep) 0%, #0d4a65 100%);
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(26,159,212,.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--c-white); margin-bottom: .75rem; }
.page-hero p {
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  max-width: 52ch;
  line-height: 1.65;
}

/* Article body */
.article-body { max-width: 72ch; }
.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.article-body h2:first-child { border-top: none; padding-top: 0; }
.article-body h3 { margin-top: 2rem; margin-bottom: .5rem; }
.article-body p { margin-bottom: 1em; color: var(--c-muted); font-size: .975rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; color: var(--c-muted); font-size: .975rem; line-height: 1.65; }
.article-body strong { color: var(--c-ink); font-weight: 600; }

/* ── Variant Cards (656/868) ────────────────────────────── */
.variant-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.variant-card {
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--c-white);
  transition: border-color .2s, box-shadow .2s;
}
.variant-card:hover, .variant-card.is-featured {
  border-color: var(--c-cyan);
  box-shadow: 0 8px 32px rgba(26,159,212,.14);
}
.variant-card__tag {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3em .8em;
  border-radius: 999px;
  background: rgba(26,159,212,.1);
  color: var(--c-cyan);
  margin-bottom: 1rem;
}
.variant-card.is-featured .variant-card__tag {
  background: var(--c-cyan);
  color: #fff;
}
.variant-card h3 {
  font-size: 2.5rem;
  color: var(--c-deep);
  letter-spacing: -.04em;
  margin-bottom: .25rem;
}
.variant-card__sub {
  font-family: var(--f-sans);
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.variant-card__specs {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.variant-card__spec {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--c-border);
}
.variant-card__spec:last-child { border-bottom: none; padding-bottom: 0; }
.variant-card__spec-key { color: var(--c-muted); }
.variant-card__spec-val { font-weight: 600; color: var(--c-deep); }

/* ── Inline Stats ───────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat {
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--c-light);
}
.stat__number {
  font-family: var(--f-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--c-deep);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat__number span { color: var(--c-cyan); }
.stat__label {
  font-family: var(--f-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }

/* ── Page offset ────────────────────────────────────────── */
.page-content { padding-top: var(--nav-h); }

/* ── Recommendation Box ─────────────────────────────────── */
.rec-box {
  background: linear-gradient(135deg, rgba(11,58,82,.06) 0%, rgba(26,159,212,.06) 100%);
  border: 1px solid rgba(26,159,212,.25);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.rec-box__icon { font-size: 2.5rem; flex-shrink: 0; }
.rec-box__title {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-deep);
  margin-bottom: .4rem;
}
.rec-box__text { font-size: .9rem; color: var(--c-muted); margin-bottom: 1rem; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .split__media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .variant-cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .rechner__results { grid-template-columns: 1fr 1fr; }
  .rechner__results .result-box--total { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .gallery { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .rechner__results { grid-template-columns: 1fr; }
  .swatches { gap: 1.25rem; }
  .heights { gap: .75rem; }
  .height-bar__fill { width: 34px; }
  .steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .cta-block__actions { flex-direction: column; align-items: center; }
}

/* ── Print styles for Rechner ───────────────────────────── */
@media print {
  .nav, .footer, .cta-block, .lightbox { display: none !important; }
  .rechner { box-shadow: none; border: 1px solid #ccc; }
  body { font-size: 12pt; }
  .page-hero { background: #f4f8fb !important; -webkit-print-color-adjust: exact; }
}
