/* ==========================================================================
   KARTONWERK NORDHAIN GmbH  ·  Design System
   --------------------------------------------------------------------------
   Farbregel   : EIN Akzent (Waldgruen). Kraftbraun ist reine Materialfarbe
                 und erscheint nur in Material-Chips und Bildern.
   Radienregel : Buttons = Pille, Karten = 20px, Medien = 16px, Felder = 10px
   Motion      : nur transform + opacity, immer mit eigener Bezier-Kurve
   ========================================================================== */

/* ---------- Schriften (selbst gehostet) ---------------------------------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --paper:      #FBFAF6;
  --paper-2:    #F2F1E9;
  --paper-3:    #E9E7DC;
  --surface:    #FFFFFF;

  --ink:        #17211C;
  --ink-80:     #35403A;
  --ink-60:     #5C665F;
  --ink-40:     #8A928C;

  --line:       #E3E1D6;
  --line-soft:  #EFEDE4;

  --accent:     #1D5B3F;
  --accent-700: #16452F;
  --accent-300: #9DC3AC;
  --accent-100: #E4EEE7;
  --accent-50:  #F1F7F3;

  /* Materialfarbe, kein UI-Akzent */
  --kraft:      #C8A175;
  --kraft-soft: #EFE2D1;

  --shadow-s: 0 1px 2px rgba(23,33,28,.04), 0 4px 12px -6px rgba(23,33,28,.08);
  --shadow-m: 0 2px 4px rgba(23,33,28,.03), 0 14px 32px -14px rgba(23,33,28,.14);
  --shadow-l: 0 4px 8px rgba(23,33,28,.03), 0 32px 64px -28px rgba(23,33,28,.20);

  --r-card: 20px;
  --r-media: 16px;
  --r-field: 10px;
  --r-pill: 999px;

  --ease:     cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.32,.72,0,1);
  --ease-in:  cubic-bezier(.7,0,.84,0);

  --wrap: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.18rem, 1.1rem + .38vw, 1.4rem);
  --step-2:  clamp(1.44rem, 1.28rem + .78vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.45vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.66rem + 2.6vw, 3.75rem);
  --step-5:  clamp(2.7rem, 1.75rem + 4.6vw, 5.2rem);

  --z-overlay: 80;
  --z-nav: 90;
  --z-grain: 100;
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink-80);
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-100); color: var(--accent-700); }

h1, h2, h3, h4, h5 {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -.032em; }
h2 { font-size: var(--step-4); letter-spacing: -.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); line-height: 1.25; }
p  { text-wrap: pretty; }
h2 + p, h3 + p, h2 + .lede { margin-top: 1.1rem; }

/* ---------- Layout -------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #D6DAD7; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.lede { font-size: var(--step-1); color: var(--ink-60); max-width: 62ch; line-height: 1.55; }
.muted { color: var(--ink-60); }
.max-65 { max-width: 65ch; }
.stack > * + * { margin-top: 1.1rem; }

/* Sektionskopf: Headline oben, Text darunter (kein Split-Header) */
.s-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.s-head p { margin-top: 1.1rem; color: var(--ink-60); font-size: var(--step-1); line-height: 1.55; }
.s-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent-700); background: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: .4rem .85rem; border-radius: var(--r-pill);
  margin-bottom: 1.4rem;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --bg: var(--accent); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  padding: .78rem .85rem .78rem 1.45rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: 0 1px 2px rgba(22,69,47,.16), 0 10px 22px -12px rgba(22,69,47,.5);
}
.btn__ico {
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,.16);
  transition: transform .5s var(--ease-out), background-color .45s var(--ease);
}
.btn__ico svg { width: 1rem; height: 1rem; }
.btn:hover { background: var(--accent-700); transform: translateY(-2px); }
.btn:hover .btn__ico { transform: translate(3px,-1px) scale(1.06); background: rgba(255,255,255,.26); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink); --bd: var(--line);
  box-shadow: none;
}
.btn--ghost .btn__ico { background: var(--paper-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-40); transform: translateY(-2px); }
.btn--ghost:hover .btn__ico { background: var(--accent-100); }

.btn--light { --bg: #fff; --fg: var(--ink); box-shadow: var(--shadow-m); }
.btn--light .btn__ico { background: var(--accent-100); color: var(--accent-700); }
.btn--light:hover { background: #fff; }

.btn--plain { padding-right: 1.45rem; }
.btn--sm { padding: .55rem .6rem .55rem 1.1rem; font-size: .875rem; }
.btn--sm .btn__ico { width: 1.65rem; height: 1.65rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--accent-700);
  border-bottom: 1px solid transparent;
  transition: gap .4s var(--ease-out), border-color .3s var(--ease);
}
.link-arrow svg { width: .95rem; height: .95rem; transition: transform .4s var(--ease-out); }
.link-arrow:hover { gap: .8rem; border-color: var(--accent-300); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Reveal-Animationen ------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms),
    filter .9s var(--ease) var(--d, 0ms);
  will-change: transform, opacity;
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); will-change: auto; }

/* Papierkorn, fest positioniert, damit kein Repaint beim Scrollen entsteht */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Kopfbereich und Navigation
   ========================================================================== */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--r-field) 0;
}
.skip:focus { left: 0; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  padding-top: 1.1rem;
  transition: padding-top .6s var(--ease);
}
.site-header.is-stuck { padding-top: .55rem; }

.nav {
  width: min(100% - var(--gutter) * 2, 1360px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px; padding-inline: 1rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), backdrop-filter .6s var(--ease);
}
.site-header.is-stuck .nav {
  background: rgba(251,250,246,.82);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-color: var(--line);
  box-shadow: var(--shadow-m);
}

/* Wortmarke */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__mark rect, .brand__mark path { transition: transform .6s var(--ease); transform-origin: center; }
.brand:hover .brand__mark .m-lid { transform: translateY(-2px); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 1.02rem; letter-spacing: -.02em; color: var(--ink);
}
.brand__sub { font-size: .625rem; letter-spacing: .19em; text-transform: uppercase; color: var(--ink-40); margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: .15rem; margin-left: auto; list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .8rem; border-radius: var(--r-pill);
  font-size: .93rem; font-weight: 500; color: var(--ink-80);
  transition: color .35s var(--ease), background-color .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--accent-700); font-weight: 600; }
.nav__chev { width: .7rem; height: .7rem; transition: transform .4s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__cta { margin-left: .6rem; }

/* Mega-Menue */
.mega {
  position: absolute; left: 50%; top: calc(100% + .5rem);
  transform: translate(-50%, -8px);
  width: min(100% - var(--gutter) * 2, 1120px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-l);
  padding: 1.6rem;
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 1.6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.mega__item {
  display: flex; gap: .85rem; padding: .8rem .9rem; border-radius: 14px;
  transition: background-color .35s var(--ease), transform .45s var(--ease);
}
.mega__item:hover { background: var(--accent-50); transform: translateX(3px); }
.mega__ico {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 10px;
  background: var(--paper-2); color: var(--accent-700);
  display: grid; place-items: center;
  transition: background-color .35s var(--ease);
}
.mega__item:hover .mega__ico { background: #fff; }
.mega__ico svg { width: 1.15rem; height: 1.15rem; }
.mega__t { display: block; font-weight: 600; color: var(--ink); font-size: .94rem; line-height: 1.3; }
.mega__d { display: block; font-size: .8rem; color: var(--ink-60); line-height: 1.45; margin-top: .15rem; }
.mega__feature {
  border-radius: 18px; overflow: hidden; position: relative;
  background: var(--paper-2); display: flex; flex-direction: column;
  min-height: 0;
}
.mega__feature img { width: 100%; flex: 1; min-height: 130px; object-fit: cover; }
.mega__feature-body { padding: 1.1rem 1.2rem 1.3rem; }
.mega__feature-body h4 { font-size: 1.02rem; margin-bottom: .35rem; }
.mega__feature-body p { font-size: .84rem; color: var(--ink-60); line-height: 1.5; margin-bottom: .8rem; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; border-radius: 50%; }
.burger span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--ink);
  border-radius: 2px; transition: transform .55s var(--ease-out), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Mobiles Overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(251,250,246,.94);
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  padding: 6.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a, .mobile-nav .m-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; font-weight: 600;
  color: var(--ink); padding: .95rem 0; text-align: left;
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mobile-nav.is-open a, .mobile-nav.is-open .m-toggle { opacity: 1; transform: none; }
.mobile-nav.is-open > ul > li:nth-child(1) > * { transition-delay: .08s; }
.mobile-nav.is-open > ul > li:nth-child(2) > * { transition-delay: .13s; }
.mobile-nav.is-open > ul > li:nth-child(3) > * { transition-delay: .18s; }
.mobile-nav.is-open > ul > li:nth-child(4) > * { transition-delay: .23s; }
.mobile-nav.is-open > ul > li:nth-child(5) > * { transition-delay: .28s; }
.mobile-nav.is-open > ul > li:nth-child(6) > * { transition-delay: .33s; }
.mobile-nav.is-open > ul > li:nth-child(7) > * { transition-delay: .38s; }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.m-sub.is-open { max-height: 700px; }
.m-sub a { font-size: 1rem; font-family: 'Instrument Sans', sans-serif; font-weight: 500; color: var(--ink-60); padding: .5rem 0 .5rem 1rem; }
.m-toggle svg { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.m-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__foot { margin-top: 2rem; display: flex; flex-direction: column; gap: .8rem; }

/* ==========================================================================
   Fussbereich
   ========================================================================== */
.site-footer { background: var(--ink); color: #A9B2AC; padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-family: 'Instrument Sans', sans-serif; font-weight: 600; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem 2rem; }
.site-footer a { color: #A9B2AC; transition: color .3s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #6E7A72; }
.footer-brand p { font-size: .92rem; margin-top: 1.2rem; max-width: 34ch; color: #8D9891; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .82rem; color: #78837C;
}
.footer-bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.demo-note {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: .8rem 1rem; font-size: .8rem; color: #8D9891;
  margin-top: 1.4rem;
}

/* ==========================================================================
   Hero (Startseite)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(7.5rem, 12vw, 10.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  min-height: min(90dvh, 820px);
  display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  will-change: transform;
}
.hero__glow--a {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, var(--accent-100) 0%, rgba(228,238,231,0) 70%);
  animation: drift-a 22s var(--ease) infinite alternate;
}
.hero__glow--b {
  width: 40vw; height: 40vw; right: -8vw; bottom: -16vw;
  background: radial-gradient(circle, var(--kraft-soft) 0%, rgba(239,226,209,0) 70%);
  animation: drift-b 26s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(6vw, 4vw, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-5vw, -3vw, 0) scale(1.08); } }

/* feine Wellpappen-Riffelung als Hintergrundraster */
.hero__flute {
  position: absolute; inset: -10% -5%; opacity: .5;
  background-image: repeating-linear-gradient(
    90deg, transparent 0 13px, rgba(200,161,117,.14) 13px 14px);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 72%);
  animation: flute-shift 30s linear infinite;
}
@keyframes flute-shift { to { transform: translate3d(28px, 0, 0); } }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero__copy { max-width: none; }
.hero h1 { font-size: clamp(2.3rem, 4.15vw, 3.75rem); letter-spacing: -.035em; }
.hero h1 { margin-bottom: 1.5rem; }
.hero__sub { font-size: var(--step-1); color: var(--ink-60); line-height: 1.5; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Wort-fuer-Wort-Maskenaufbau der Headline */
.reveal-line { display: block; overflow: hidden; padding-bottom: .06em; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out) var(--d, 0ms);
}
.is-loaded .reveal-line > span { transform: translateY(0); }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Bildkomposition rechts */
.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-l);
  background: var(--paper-2);
  aspect-ratio: 16 / 11;
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform 1.3s var(--ease) .25s, opacity 1.1s var(--ease) .25s;
}
.is-loaded .hero__frame { transform: none; opacity: 1; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__frame::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(23,33,28,.06);
  border-radius: inherit; pointer-events: none;
}

.hero__chip {
  position: absolute; background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-m);
  padding: .85rem 1.1rem;
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: transform 1s var(--ease) var(--d, .6s), opacity .8s var(--ease) var(--d, .6s);
}
.is-loaded .hero__chip { opacity: 1; transform: none; }
.hero__chip--a { left: -1.75rem; bottom: 2.2rem; }
.hero__chip--b { right: -1rem; top: 1.8rem; }
.hero__chip .k { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.hero__chip .l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-40); margin-top: .35rem; }
.hero__chip--material { display: flex; align-items: center; gap: .7rem; }
.hero__swatch {
  width: 2.2rem; height: 2.2rem; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--kraft) 0%, #E0C4A0 100%);
  box-shadow: inset 0 0 0 1px rgba(23,33,28,.1);
}
.hero__parallax { will-change: transform; transition: transform .6s var(--ease); }

/* ==========================================================================
   Laufband (Branchen)
   ========================================================================== */
.marquee { overflow: hidden; padding-block: 1.6rem; border-block: 1px solid var(--line); background: var(--surface); }
.marquee__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: .7rem;
  padding-inline: 1.7rem; font-size: .95rem; font-weight: 500; color: var(--ink-60);
  white-space: nowrap;
}
.marquee__item svg { width: 1.05rem; height: 1.05rem; color: var(--accent-300); }

/* ==========================================================================
   Karten und Raster
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: var(--line-soft); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.055); }
.card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.card__body h3 { font-size: var(--step-1); }
.card__body p { font-size: .93rem; color: var(--ink-60); line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: 1.1rem; }

/* Leistungs-Bento mit bewusst unterschiedlichen Zellgroessen */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(.9rem, 1.5vw, 1.35rem);
}
.b-6 { grid-column: span 6; }
.b-4 { grid-column: span 4; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }

.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 250px; padding: 1.5rem;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  isolation: isolate;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.tile__img { position: absolute; inset: 0; z-index: -2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile--photo { color: #fff; min-height: 330px; }
.tile--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14,22,18,.92) 0%, rgba(14,22,18,.62) 38%, rgba(14,22,18,.18) 72%, rgba(14,22,18,.08) 100%);
}
.tile--photo h3 { color: #fff; text-shadow: 0 2px 18px rgba(10,16,13,.45); }
.tile--photo p { color: rgba(255,255,255,.88); text-shadow: 0 1px 12px rgba(10,16,13,.5); }
.tile--tint { background: var(--accent-50); border-color: var(--accent-100); }
.tile--kraft { background: linear-gradient(150deg, var(--kraft-soft) 0%, #F7EFE4 100%); border-color: #E7D8C4; }
.tile h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.tile p { font-size: .93rem; line-height: 1.55; color: var(--ink-60); max-width: 42ch; }
.tile__top { margin-bottom: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tile__num { font-family: 'Bricolage Grotesque', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--accent-300); }
.tile__arrow {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink); flex-shrink: 0;
  transition: transform .5s var(--ease-out), background-color .4s var(--ease), color .4s var(--ease);
}
.tile--photo .tile__arrow { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile:hover .tile__arrow { transform: translate(3px,-3px); background: var(--accent); color: #fff; }
.tile__arrow svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   Ablauf: gestapelte Karten, die beim Scrollen aufeinander laufen
   ========================================================================== */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow__step {
  position: sticky; top: 110px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-m);
  padding: clamp(1.7rem, 3vw, 2.6rem);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
  margin-bottom: 1.1rem;
}
.flow__step:nth-child(1) { top: 108px; }
.flow__step:nth-child(2) { top: 124px; }
.flow__step:nth-child(3) { top: 140px; }
.flow__step:nth-child(4) { top: 156px; }
.flow__step:nth-child(5) { top: 172px; }
.flow__step:nth-child(6) { top: 188px; }
.flow__ico {
  width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent); border: 1px solid var(--accent-100);
}
.flow__ico svg { width: 1.5rem; height: 1.5rem; }
.flow__step h3 { font-size: var(--step-2); margin-bottom: .55rem; }
.flow__step p { color: var(--ink-60); max-width: 58ch; font-size: .97rem; }
.flow__meta {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-40); white-space: nowrap; padding-top: .6rem;
}

/* ==========================================================================
   Kennzahlen
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2.4rem); }
.stat { border-top: 2px solid var(--accent); padding-top: 1.3rem; }
.stat__k {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1; letter-spacing: -.035em;
  color: var(--ink); display: flex; align-items: baseline; gap: .1em;
}
.stat__suffix { font-size: .5em; color: var(--accent); }
.stat__l { margin-top: .75rem; font-size: .93rem; color: var(--ink-60); line-height: 1.5; }
.section--ink .stat { border-color: var(--accent-300); }
.section--ink .stat__k { color: #fff; }
.section--ink .stat__suffix { color: var(--accent-300); }
.section--ink .stat__l { color: #98A29B; }

/* ==========================================================================
   Karton in 3D (reine CSS-Transformation, dreht sich beim Scrollen)
   Kantenlaengen: 210 breit, 150 hoch, 140 tief
   ========================================================================== */
.box3d-stage { perspective: 1500px; perspective-origin: 50% 45%; display: grid; place-items: center; min-height: 440px; position: relative; }
.box3d-stage::after {
  content: ''; position: absolute; left: 50%; top: 74%;
  width: 320px; height: 46px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(23,33,28,.16) 0%, rgba(23,33,28,0) 70%);
  pointer-events: none;
}
.box3d {
  position: relative; width: 210px; height: 150px;
  transform-style: preserve-3d;
  transform: scale(1.28) rotateX(var(--rx, -18deg)) rotateY(var(--ry, -32deg));
  transition: transform .18s linear;
}
.box3d__f {
  position: absolute; left: 50%; top: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 3px, transparent 3px 7px),
    linear-gradient(155deg, #DCB88E 0%, #C89B6A 58%, #B78A5A 100%);
  box-shadow: inset 0 0 0 1px rgba(94,63,32,.22);
  backface-visibility: hidden;
}
.box3d__f--front  { width: 210px; height: 150px; margin: -75px 0 0 -105px; transform: translateZ(70px); }
.box3d__f--back   { width: 210px; height: 150px; margin: -75px 0 0 -105px; transform: rotateY(180deg) translateZ(70px); filter: brightness(.8); }
.box3d__f--right  { width: 140px; height: 150px; margin: -75px 0 0 -70px;  transform: rotateY(90deg) translateZ(105px); filter: brightness(.88); }
.box3d__f--left   { width: 140px; height: 150px; margin: -75px 0 0 -70px;  transform: rotateY(-90deg) translateZ(105px); filter: brightness(.88); }
.box3d__f--bottom { width: 210px; height: 140px; margin: -70px 0 0 -105px; transform: rotateX(-90deg) translateZ(75px); filter: brightness(.68); }

/* Deckelklappen, an Vorder- und Rueckkante angeschlagen */
.box3d__flap {
  position: absolute; left: 50%; top: 50%;
  width: 210px; height: 70px; margin-left: -105px;
  transform-origin: center top;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 3px, transparent 3px 7px),
    linear-gradient(155deg, #E4C49E 0%, #D2A87A 100%);
  box-shadow: inset 0 0 0 1px rgba(94,63,32,.22);
  transition: transform .18s linear;
}
.box3d__flap--vorn   { transform: translateY(-75px) translateZ(70px)  rotateX(calc(-90deg + var(--lid, 0deg))); }
.box3d__flap--hinten { transform: translateY(-75px) translateZ(-70px) rotateX(calc(90deg - var(--lid, 0deg))); filter: brightness(.94); }

.box3d__print {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(29,91,63,.9); font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
}
.box3d__print::after {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: 32%;
  height: 1px; background: rgba(29,91,63,.35);
}

/* ==========================================================================
   Geteilte Sektionen (Bild + Text)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-m); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 14px; padding: .8rem 1.05rem; box-shadow: var(--shadow-s);
  font-size: .82rem; font-weight: 600; color: var(--ink);
}

/* Merkmalsliste */
.features { display: grid; gap: 1.1rem; margin-top: 2rem; }
.feature { display: flex; gap: .95rem; align-items: flex-start; }
.feature__ico {
  flex-shrink: 0; width: 1.65rem; height: 1.65rem; border-radius: 50%;
  background: var(--accent-100); color: var(--accent-700);
  display: grid; place-items: center; margin-top: .15rem;
}
.feature__ico svg { width: .85rem; height: .85rem; }
.feature b { color: var(--ink); font-weight: 600; display: block; margin-bottom: .1rem; }
.feature p { font-size: .93rem; color: var(--ink-60); line-height: 1.55; }

/* ==========================================================================
   Referenz-Galerie mit horizontalem Scroll-Snap
   ========================================================================== */
.rail { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.4rem; scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.rail > * { scroll-snap-align: start; flex: 0 0 clamp(260px, 32vw, 400px); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; color: var(--ink);
  transition: background-color .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.rail-nav button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.rail-nav button:active { transform: scale(.94); }
.rail-nav svg { width: 1.05rem; height: 1.05rem; }

/* ==========================================================================
   Stimmen
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem;
}
.quote blockquote { font-size: 1.05rem; line-height: 1.55; color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; letter-spacing: -.012em; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote img { width: 2.7rem; height: 2.7rem; border-radius: 50%; object-fit: cover; }
.quote cite { font-style: normal; font-size: .88rem; line-height: 1.4; }
.quote cite b { display: block; color: var(--ink); font-weight: 600; }
.quote cite span { color: var(--ink-40); }

/* ==========================================================================
   Abschluss-Band
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--accent); color: #fff;
  border-radius: 30px; padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 15px, rgba(255,255,255,.045) 15px 16px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 1rem; max-width: 46ch; position: relative; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; position: relative; }

/* ==========================================================================
   Seitenkopf der Unterseiten
   ========================================================================== */
.page-head {
  position: relative; overflow: hidden;
  padding-top: clamp(8rem, 13vw, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 15px, rgba(200,161,117,.1) 15px 16px);
  mask-image: linear-gradient(to bottom, transparent, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%, transparent);
}
.page-head__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin-top: 1.2rem; font-size: var(--step-1); color: var(--ink-60); max-width: 52ch; line-height: 1.5; }
.page-head--simple .page-head__inner { grid-template-columns: 1fr; max-width: 62ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ink-40); margin-bottom: 1.4rem; }
.crumbs a { color: var(--ink-60); }
.crumbs a:hover { color: var(--accent-700); }
.crumbs span[aria-current] { color: var(--ink); }

.head-facts { display: grid; gap: .75rem; }
.head-fact {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 1.1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; font-size: .9rem;
}
.head-fact b { color: var(--ink); font-weight: 600; }
.head-fact span { color: var(--ink-60); text-align: right; }

/* ==========================================================================
   Formulare
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-40); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-field); padding: .78rem .95rem;
  font-size: .95rem; color: var(--ink);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-40); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err { font-size: .82rem; color: #A6301F; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C4553F; box-shadow: 0 0 0 3px rgba(196,85,63,.14); }
.field.is-invalid .err { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.form-grid .col-2 { grid-column: span 2; }

/* Auswahlkacheln */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: flex; flex-direction: column; gap: .25rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); padding: .95rem 1rem; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.choice span small { font-weight: 400; color: var(--ink-60); font-size: .8rem; line-height: 1.4; }
.choice:hover span { border-color: var(--accent-300); transform: translateY(-2px); }
.choice input:checked + span {
  border-color: var(--accent); background: var(--accent-50);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Fortschritt im mehrstufigen Formular */
.steps { display: flex; gap: .5rem; margin-bottom: 2.2rem; }
.steps__i { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.steps__bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.steps__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .8s var(--ease); }
.steps__i.is-done .steps__bar i, .steps__i.is-active .steps__bar i { width: 100%; }
.steps__i.is-active .steps__bar i { animation: none; }
.steps__l { font-size: .78rem; color: var(--ink-40); font-weight: 500; }
.steps__i.is-active .steps__l, .steps__i.is-done .steps__l { color: var(--accent-700); font-weight: 600; }
.fstep { display: none; }
.fstep.is-active { display: block; animation: fade-up .6s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

.summary-list { display: grid; gap: .6rem; }
.summary-list div { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.summary-list dt { color: var(--ink-60); }
.summary-list dd { color: var(--ink); font-weight: 600; text-align: right; margin: 0; }

.form-note {
  background: var(--accent-50); border: 1px solid var(--accent-100);
  border-radius: var(--r-field); padding: 1rem 1.15rem; font-size: .88rem; color: var(--accent-700);
  display: flex; gap: .7rem; align-items: flex-start;
}
.form-note svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-top: .15rem; }

/* ==========================================================================
   Konfigurator
   ========================================================================== */
.konf { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.konf__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.4rem, 3vw, 2.2rem); }
.konf__group + .konf__group { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.konf__group > h3 { font-size: 1.05rem; margin-bottom: 1rem; font-family: 'Instrument Sans', sans-serif; font-weight: 700; letter-spacing: 0; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.range-row { display: grid; gap: .5rem; margin-top: 1.2rem; }
.range-row .rr-top { display: flex; justify-content: space-between; font-size: .87rem; }
.range-row b { color: var(--ink); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--line); border-radius: 999px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: var(--shadow-s); cursor: pointer;
  transition: transform .3s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--shadow-s); cursor: pointer;
}

.konf__out {
  position: sticky; top: 110px;
  background: var(--ink); color: #C9D0CB; border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 2rem); overflow: hidden;
}
.konf__preview { background: rgba(255,255,255,.04); border-radius: var(--r-media); padding: 1.2rem; margin-bottom: 1.5rem; }
.konf__price { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1; }
.konf__price small { font-size: .95rem; font-weight: 400; color: #8D9891; letter-spacing: 0; }
.konf__rows { display: grid; gap: .55rem; margin: 1.4rem 0; font-size: .88rem; }
.konf__rows div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.konf__rows span:last-child { color: #fff; font-weight: 600; }
.konf__hint { font-size: .78rem; color: #78837C; line-height: 1.5; margin-top: 1rem; }

/* Massskizze */
.sketch { width: 100%; height: auto; }
.sketch .dim-line { stroke: var(--accent-300); stroke-width: 1; }
.sketch .body { fill: rgba(200,161,117,.28); stroke: var(--kraft); stroke-width: 1.5; }
.sketch .lbl { fill: #9BA49D; font-size: 11px; font-family: 'Instrument Sans', sans-serif; }

/* ==========================================================================
   FEFCO-Katalog
   ========================================================================== */
.filterbar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 2rem; }
.chip {
  padding: .5rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); font-size: .87rem; font-weight: 500; color: var(--ink-60);
  transition: all .35s var(--ease);
}
.chip:hover { border-color: var(--accent-300); color: var(--ink); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.searchbox { position: relative; margin-left: auto; min-width: 240px; }
.searchbox input { padding-left: 2.5rem; }
.searchbox svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--ink-40); }

.fefco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.fefco {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.2rem; text-align: left; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.fefco:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--accent-300); }
.fefco__vis { background: var(--paper-2); border-radius: 12px; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.fefco__vis svg { width: 74%; height: 74%; }
.fefco__code { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.fefco__name { font-size: .88rem; color: var(--ink-60); line-height: 1.45; }
.fefco__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-700); font-weight: 600; }
.fefco.is-hidden { display: none; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem;
  border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--ink-60);
}
.empty-state svg { width: 2.4rem; height: 2.4rem; color: var(--ink-40); margin: 0 auto 1rem; }

/* Detail-Dialog */
dialog {
  border: 0; border-radius: 24px; padding: 0; max-width: min(620px, calc(100vw - 2rem));
  box-shadow: var(--shadow-l); background: var(--surface); color: var(--ink-80);
}
dialog::backdrop { background: rgba(23,33,28,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.6rem 1.7rem 0; }
.modal__body { padding: 1.2rem 1.7rem 1.7rem; }
.modal__close { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex-shrink: 0; transition: background-color .3s var(--ease); }
.modal__close:hover { background: var(--paper-3); }
.modal__close svg { width: 1rem; height: 1rem; }
.modal__vis { background: var(--paper-2); border-radius: var(--r-media); padding: 1.5rem; margin-bottom: 1.3rem; display: grid; place-items: center; }
.modal__vis svg { width: 220px; height: 165px; }

/* ==========================================================================
   Nachhaltigkeitsrechner
   ========================================================================== */
.calc { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.calc__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.4rem, 3vw, 2.2rem); }
.calc__result { display: grid; gap: 1rem; }
.calc__big {
  background: var(--accent); color: #fff; border-radius: var(--r-card);
  padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; overflow: hidden;
}
.calc__big::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.calc__big .k { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.calc__big .l { color: rgba(255,255,255,.8); margin-top: .7rem; font-size: .95rem; max-width: 34ch; }
.calc__mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.calc__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.4rem; }
.calc__card .k { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.calc__card .l { font-size: .85rem; color: var(--ink-60); margin-top: .5rem; line-height: 1.45; }
.bar-compare { display: grid; gap: .8rem; margin-top: 1.4rem; }
.bar-row { display: grid; grid-template-columns: 8rem 1fr auto; gap: .8rem; align-items: center; font-size: .85rem; }
.bar-row .track { height: 10px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width 1.1s var(--ease); }
.bar-row .fill--muted { background: var(--kraft); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: .7rem; max-width: 62rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.faq details[open] { border-color: var(--accent-300); box-shadow: var(--shadow-s); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.06rem;
  color: var(--ink); letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--accent);
  transition: transform .45s var(--ease); border-radius: 2px;
}
.faq summary .plus::before { width: 13px; height: 1.5px; transform: translate(-50%,-50%); }
.faq summary .plus::after { width: 1.5px; height: 13px; transform: translate(-50%,-50%); }
.faq details[open] summary .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq .answer { padding: 0 1.5rem 1.4rem; color: var(--ink-60); font-size: .96rem; line-height: 1.65; max-width: 68ch; }
.faq details[open] .answer { animation: fade-up .5s var(--ease); }
.faq-group + .faq-group { margin-top: 2.8rem; }
.faq-group > h3 { font-size: var(--step-2); margin-bottom: 1.2rem; }
.faq.is-filtered details.is-hidden { display: none; }

/* ==========================================================================
   Tabellen und Zeitleiste
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
table.spec { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
table.spec th, table.spec td { padding: .95rem 1.2rem; text-align: left; }
table.spec thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
table.spec tbody tr + tr { border-top: 1px solid var(--line-soft); }
table.spec td:first-child { color: var(--ink); font-weight: 600; }
table.spec td { color: var(--ink-60); }

.timeline { position: relative; display: grid; gap: 2.2rem; padding-left: 2.2rem; }
.timeline::before { content: ''; position: absolute; left: .42rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline__i { position: relative; }
.timeline__i::before {
  content: ''; position: absolute; left: -2.2rem; top: .45rem;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline__y { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: var(--accent); font-size: 1.05rem; letter-spacing: -.01em; }
.timeline__i h4 { margin: .3rem 0 .45rem; }
.timeline__i p { color: var(--ink-60); font-size: .95rem; max-width: 56ch; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.person { text-align: left; }
.person__img { border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--paper-2); margin-bottom: 1rem; }
.person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); filter: saturate(.85); }
.person:hover .person__img img { transform: scale(1.05); filter: saturate(1); }
.person b { display: block; color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.08rem; font-weight: 600; }
.person span { font-size: .88rem; color: var(--ink-60); }

/* Materialkacheln */
.timeline--split { padding-left: 2.2rem; }
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.material { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.material__swatch { height: 96px; position: relative; }
.material__swatch::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 4px, transparent 4px 9px);
}
.material__body { padding: 1rem 1.15rem 1.25rem; }
.material__body b { display: block; color: var(--ink); font-size: .96rem; }
.material__body span { font-size: .84rem; color: var(--ink-60); }

/* Hinweisbox */
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-50);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--r-field) var(--r-field) 0;
  font-size: .95rem; color: var(--accent-700);
}
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--paper-2);
  border: 1px solid var(--line); font-size: .82rem; color: var(--ink-60); font-weight: 500;
}

/* ==========================================================================
   Responsiv
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .konf { grid-template-columns: 1fr; }
  .konf__out { position: static; }
}
@media (max-width: 960px) {
  .nav__list, .nav__cta { display: none; }
  .burger { display: block; }
  .hero { min-height: 0; padding-top: 7rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__copy { max-width: none; }
  .hero__sub { max-width: 46ch; }
  .split, .page-head__inner, .calc, .cta-band { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .b-4, .b-3, .b-2 { grid-column: span 6; }
  .flow__step { grid-template-columns: 1fr; gap: 1.1rem; position: static; }
  .flow__meta { padding-top: 0; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-2 { grid-column: span 1; }
  .dims { grid-template-columns: 1fr; }
  .calc__mini { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero__chip--a { left: 0; bottom: -1.2rem; }
  .hero__chip--b { right: 0; top: -1rem; }
  .steps__l { display: none; }
  .searchbox { margin-left: 0; width: 100%; }
  .bar-row { grid-template-columns: 6rem 1fr auto; font-size: .78rem; }
  .team { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: space-between; }
  .hero__actions .btn { width: auto; }
}

/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal-line > span { transform: none !important; }
  .hero__frame, .hero__chip { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .flow__step { position: static; }
}

/* ==========================================================================
   Druck
   ========================================================================== */
@media print {
  .site-header, .mobile-nav, .cta-band, .grain, .marquee { display: none !important; }
  body { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}

/* ==========================================================================
   Korrekturen und Hilfsklassen
   ========================================================================== */
[hidden] { display: none !important; }

/* Sprungziele nicht unter dem Kopfbereich verstecken */
:where([id]) { scroll-margin-top: 118px; }

/* Nur fuer Screenreader */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Dialog sicher mittig, unabhaengig vom Elternkontext */
dialog[open] { position: fixed; inset: 0; margin: auto; }

/* Auswahlkacheln auf gleiche Hoehe bringen */
.choice { display: flex; }
.choice span { flex: 1; }

/* Lange Adressen und Verweise umbrechen */
.card__body p, .link-arrow, .summary-list dd, .head-fact span { overflow-wrap: anywhere; }

/* Einleitung im schlichten Seitenkopf linksbuendig */
.page-head--simple .page-head__inner { margin-inline: 0; }
[data-filter-wort][data-eins="true"] .wort-frage::after { content: ''; }
[data-filter-wort][data-eins="true"] .wort-frage { font-size: 0; }
[data-filter-wort][data-eins="true"] .wort-frage::before { content: 'Frage'; font-size: .88rem; }
[data-filter-wort][data-eins="true"] .wort-projekt { font-size: 0; }
[data-filter-wort][data-eins="true"] .wort-projekt::before { content: 'Projekt'; font-size: .88rem; }

/* Portraits einheitlich einfaerben, damit unterschiedliche Aufnahmen
   im hellen Layout wie eine Serie wirken */
.person__img { position: relative; background: var(--accent-100); }
.person__img img { filter: grayscale(1) contrast(1.04) brightness(1.02); }
.person__img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--accent); mix-blend-mode: color; opacity: .3;
  transition: opacity .7s var(--ease);
}
.person:hover .person__img img { filter: grayscale(.15) contrast(1.02); }
.person:hover .person__img::after { opacity: 0; }
.quote img { filter: grayscale(1) contrast(1.04); }
