/* ═══════════════════════════════════════════════════════════
   KWplus — gemeinsames Stylesheet
   Palette abgeleitet aus dem Original-Logo (#304860 / #46617C / #90A8C0)
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #6E9BC4;
  --accent-light: #A8C4DD;
  --accent-deep:  #46617C;
  --accent-dark:  #304860;
  --accent-rgb:   110,155,196;
  /* Das Blau aus dem Original-Logo. Bleibt in beiden Modi identisch,
     damit die Marke ueberall denselben Ton hat. */
  --brand:        #456BA5;
  --brand-rgb:    69,107,165;
  --brand-hover:  #3A5C8E;

  --warn:      #C9784A;
  --warn-rgb:  201,120,74;
  --warn-light:#E8A882;

  --ok:        #5FA98A;
  --ok-rgb:    95,169,138;

  --bg:    #080B0F;
  --bg2:   #0C1116;
  --bg3:   #121A22;
  --bg4:   #18232E;
  --scrim-rgb: 8,11,15;

  --line:  rgba(168,196,221,0.09);
  --line2: rgba(168,196,221,0.17);

  --text:  #C3CFDB;
  --muted: #7B8B9C;
  --muted2:#727F8F;
  --white: #EFF3F7;

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius:   14px;
  --radius-s: 9px;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --maxw: 1240px;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  /* clip statt hidden: hidden macht den Body zum Scroll-Container und bricht
     damit position:sticky (Scroll-Video). clip beschneidet ohne Scroll-Container. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #07131E; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.022em; color: var(--white); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { max-width: 70ch; }

.wrap  { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.wrap-n{ width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--accent); flex-shrink: 0; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.lead { font-size: 1.06rem; color: var(--muted); max-width: 64ch; }
.mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: -0.01em; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .72s var(--ease-out), transform .72s var(--ease-out); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.05s}.d2{transition-delay:.1s}.d3{transition-delay:.15s}.d4{transition-delay:.2s}
.d5{transition-delay:.25s}.d6{transition-delay:.3s}.d7{transition-delay:.35s}.d8{transition-delay:.4s}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══ NAVIGATION ═══ */
nav.site {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
nav.site.solid, nav.site.scrolled {
  background: rgba(var(--scrim-rgb),0.9);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
}
body.has-fixed-nav { padding-top: var(--nav-h); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; gap: 1.5rem; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.16rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; flex-shrink: 0; min-height: 44px; }
.nav-logo .plus { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links > li > a {
  font-size: 0.865rem; font-weight: 500; color: var(--muted); position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0 3px;
  transition: color .2s var(--ease-out);
}
.nav-links > li > a::after { content: ''; position: absolute; left: 0; bottom: 12px; width: 0; height: 1.5px; background: var(--accent); transition: width .25s var(--ease-out); }
.nav-links > li > a.active { color: var(--white); }
.nav-links > li > a.active::after { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .nav-links > li > a:hover { color: var(--white); }
  .nav-links > li > a:hover::after { width: 100%; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  padding: 0.74rem 1.45rem; border-radius: var(--radius-s);
  min-height: 44px; border: none; cursor: pointer; text-align: center;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .22s var(--ease-out), border-color .2s var(--ease-out);
}
.btn-primary { background: var(--brand); color: #FFFFFF; box-shadow: 0 4px 18px rgba(var(--brand-rgb), 0.30); }
.btn-ghost   { background: transparent; color: var(--white); border: 1px solid var(--line2); }
.btn-sm      { padding: 0.55rem 1.15rem; font-size: 0.82rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(var(--brand-rgb), 0.42); }
  .btn-ghost:hover   { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
}
.btn:active { transform: scale(0.97); transition-duration: .08s; }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s var(--ease-out); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(var(--scrim-rgb),0.985); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--line); padding: 1.4rem 2rem 3rem;
  flex-direction: column; gap: 0.2rem; display: none; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.02rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 1.2rem; padding: 0.9rem; border-bottom: none; justify-content: center; }

/* ═══ SEITENKOPF ═══ */
.page-hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.51; filter: saturate(0.96) contrast(1.16) brightness(1.06); }
.page-hero-bg::after {
  /* Der Scrim deckt nur die Textspalte links ab. Rechts bleibt das Bild
     weitgehend offen, sonst wirkt der Kopfbereich flach und dunkel. */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 66% 62% at 20% 48%, rgba(var(--scrim-rgb),0.52), transparent 74%),
    linear-gradient(to right, var(--bg) 0%, rgba(var(--scrim-rgb),0.84) 40%, rgba(var(--scrim-rgb),0.34) 74%, rgba(var(--scrim-rgb),0.58) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 28%, transparent 64%, var(--bg) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); font-weight: 900; letter-spacing: -0.034em; margin-bottom: 1.1rem; }
.page-hero .lead { font-size: 1.09rem; }

.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted2); margin-bottom: 1.5rem; flex-wrap: wrap; }
.crumbs a { transition: color .2s var(--ease-out); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs .cur { color: var(--muted); }

/* ═══ SEKTIONEN ═══ */
.sec { padding: 6rem 0; position: relative; }
.sec-sm { padding: 4rem 0; }
.sec-alt { background: var(--bg2); }
.sec-head { margin-bottom: 3.2rem; max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-bottom: 1rem; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--line2) 22%, var(--line2) 78%, transparent); }

/* ═══ KARTEN ═══ */
.card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), background .25s var(--ease-out);
}
.card-alt { background: var(--bg3); }
.card-hover:hover { border-color: rgba(var(--accent-rgb),0.38); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.65rem; }
.card p { font-size: 0.925rem; color: var(--muted); }

.ico-box { width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.22); display: grid; place-items: center; flex-shrink: 0; }
.ico-box svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-box.warn { background: rgba(var(--warn-rgb),0.1); border-color: rgba(var(--warn-rgb),0.24); }
.ico-box.warn svg { stroke: var(--warn); }
.ico-box.ok { background: rgba(var(--ok-rgb),0.1); border-color: rgba(var(--ok-rgb),0.24); }
.ico-box.ok svg { stroke: var(--ok); }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.05rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.05rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-2-1 { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3.5rem; align-items: start; }

/* ═══ CALLOUTS ═══ */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.3rem 0; font-size: 0.9rem; line-height: 1.6;
}
.callout svg { width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.callout p { margin: 0; max-width: none; }
.callout b { display: block; margin-bottom: 0.28rem; font-family: var(--font-display); }
.c-info { background: rgba(var(--accent-rgb),0.07); border: 1px solid rgba(var(--accent-rgb),0.26); }
.c-info svg { stroke: var(--accent); } .c-info b { color: var(--accent-light); }
.c-warn { background: rgba(var(--warn-rgb),0.07); border: 1px solid rgba(var(--warn-rgb),0.26); }
.c-warn svg { stroke: var(--warn); } .c-warn b { color: var(--warn-light); }
.c-ok   { background: rgba(var(--ok-rgb),0.07); border: 1px solid rgba(var(--ok-rgb),0.26); }
.c-ok svg { stroke: var(--ok); } .c-ok b { color: var(--ok); }

/* ═══ TABELLEN ═══ */
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 0.82rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
table.data td:first-child { color: var(--white); font-weight: 600; }
table.data tbody tr { transition: background .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { table.data tbody tr:hover { background: var(--bg2); } }
table.data tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.table-wrap table.data th, .table-wrap table.data td { padding-left: 1.2rem; padding-right: 1.2rem; }

/* ═══ SCHRITTE ═══ */
.steps { list-style: none; counter-reset: st; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 2.2rem 3.6rem; border-left: 1px solid var(--line); margin-left: 15px; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: -15px; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--accent-deep); color: var(--accent);
  font-family: var(--font-display); font-size: 0.71rem; font-weight: 800; display: grid; place-items: center;
}
.steps h3, .steps h4 { margin: 0.1rem 0 0.35rem; }
.steps p { font-size: 0.935rem; color: var(--muted); }

/* ═══ TABS ═══ */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab {
  background: transparent; border: 1px solid var(--line2); color: var(--muted);
  font-family: var(--font-display); font-size: 0.845rem; font-weight: 700;
  padding: 0.62rem 1.3rem; border-radius: 100px; cursor: pointer; min-height: 44px;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background .2s var(--ease-out), transform .16s var(--ease-out);
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #07131E; }
@media (hover: hover) and (pointer: fine) { .tab:not(.active):hover { border-color: var(--accent); color: var(--accent); } }
.tab:active { transform: scale(0.97); }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fadeUp .4s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ═══ AKKORDEON ═══ */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; min-height: 44px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); letter-spacing: -0.012em;
  transition: color .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .acc-q:hover { color: var(--accent); } }
.acc-icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .25s var(--ease-out); }
.acc-icon::before { width: 13px; height: 1.8px; transform: translate(-50%,-50%); }
.acc-icon::after  { width: 1.8px; height: 13px; transform: translate(-50%,-50%); }
.acc-item.open .acc-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease-in-out); }
.acc-a-inner { padding-bottom: 1.5rem; }
.acc-a p { font-size: 0.94rem; color: var(--muted); }

/* ═══ FORMULARE ═══ */
form.kw { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fg { margin-bottom: 1.25rem; }
.fg label { display: block; font-size: 0.815rem; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.fg label .req { color: var(--accent); }
.fg input, .fg textarea, .fg select {
  width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--radius-s);
  padding: 0.78rem 0.95rem; font-size: 0.93rem; color: var(--white); min-height: 46px;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.fg textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--accent); background: var(--bg2); outline: none; }
.fg input::placeholder, .fg textarea::placeholder { color: var(--muted2); }
.fg select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B8B9C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px; padding-right: 2.6rem;
}
.fg select option { background: var(--bg2); }
.fcheck { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1.5rem; font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.fcheck input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.fcheck a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
form.kw .btn-primary { width: 100%; padding: 0.95rem; font-size: 0.94rem; }
.form-note { font-size: 0.775rem; color: var(--muted2); margin-top: 1rem; text-align: center; }
.form-success {
  display: none; text-align: center; padding: 2.6rem 1.5rem;
  background: rgba(var(--accent-rgb),0.07); border: 1px solid rgba(var(--accent-rgb),0.3); border-radius: var(--radius);
}
.form-success.show { display: block; }
.form-success .fs-ico { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 1.15rem; }
.form-success .fs-ico svg { width: 24px; height: 24px; stroke: var(--bg); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); font-size: 0.92rem; margin: 0 auto; }

/* Range */
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px;
  background: transparent; border: none; outline: none; cursor: pointer; margin: -12px 0;
}
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -10px;
  background: var(--accent); cursor: grab; border: 3px solid var(--bg3); box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  transition: transform .16s var(--ease-out), background .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.14); background: var(--accent-light); } }
input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.04); }
input[type=range]::-moz-range-track { height: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: grab; border: 3px solid var(--bg3); box-shadow: 0 2px 10px rgba(0,0,0,0.45); }

/* ═══ BADGES ═══ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.26rem 0.62rem; border-radius: 5px; white-space: nowrap;
  background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.24); color: var(--accent);
}
.badge.warn { background: rgba(var(--warn-rgb),0.1); border-color: rgba(var(--warn-rgb),0.24); color: var(--warn-light); }
.badge.ok   { background: rgba(var(--ok-rgb),0.1); border-color: rgba(var(--ok-rgb),0.24); color: var(--ok); }
.badge.plain{ background: var(--bg3); border-color: var(--line2); color: var(--muted); }

/* ═══ STATS ═══ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05rem; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 900; color: var(--white); line-height: 1; letter-spacing: -0.035em; }
.stat-num .u { color: var(--accent); font-size: 0.6em; }
.stat-lbl { font-size: 0.775rem; color: var(--muted); margin-top: 0.55rem; letter-spacing: 0.045em; text-transform: uppercase; font-weight: 500; }

/* ═══ BILDRAHMEN ═══ */
.figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); margin: 0; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.6rem;
  background: linear-gradient(to top, rgba(var(--scrim-rgb),0.95) 0%, rgba(var(--scrim-rgb),0.6) 48%, transparent);
  font-size: 0.855rem; color: var(--muted); line-height: 1.55;
}
.figure figcaption b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 0.28rem; letter-spacing: -0.012em; }

/* ═══ PRODUKTFOTO AUF HELLEM GRUND ═══ */
/* Die Originalaufnahmen haben weißen Hintergrund — sie bekommen eine eigene
   helle Bühne, statt sie auf Dunkel zu erzwingen. */
.plate {
  background: linear-gradient(160deg, #F4F6F8 0%, #E4E9ED 100%);
  border: 1px solid var(--line2); border-radius: var(--radius);
  overflow: hidden; position: relative; margin: 0;
}
.plate img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.plate.contain img { object-fit: contain; }
.plate figcaption {
  padding: 1rem 1.3rem; background: var(--bg2); border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted); line-height: 1.5;
}
.plate figcaption b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem; }

/* ═══ VIDEO ═══ */
.videobox { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); background: var(--bg3); }
.videobox video { width: 100%; height: auto; display: block; }
.videobox .vb-cap {
  padding: 1.2rem 1.5rem; background: var(--bg2); border-top: 1px solid var(--line);
  font-size: 0.87rem; color: var(--muted); line-height: 1.55;
}
.videobox .vb-cap b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 0.25rem; }
.vb-play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: rgba(var(--scrim-rgb),0.28); border: none; cursor: pointer; width: 100%;
  transition: background .25s var(--ease-out);
}
.vb-play:hover { background: rgba(var(--scrim-rgb),0.12); }
.vb-play span {
  width: 74px; height: 74px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 8px 34px rgba(0,0,0,0.45);
  transition: transform .2s var(--ease-out);
}
.vb-play:hover span { transform: scale(1.07); }
.vb-play:active span { transform: scale(0.96); }
.vb-play svg { width: 26px; height: 26px; fill: #07131E; margin-left: 4px; }
.vb-play.hidden { display: none; }

/* ═══ SCROLL-SCRUBBING VIDEO ═══ */
/* Die Sticky-Box füllt den gesamten Viewport unterhalb der Nav und zentriert das Video darin —
   dadurch steht das Video mittig im freien Bereich statt am oberen Rand zu kleben. Weil die
   Box den Viewport ausfüllt, bleibt die restliche Pin-Höhe (die Scrollstrecke fürs Scrubben)
   unsichtbar und erzeugt keine Leerfläche.
   --scrub-h wird per JS auf die tatsächliche Videohöhe gesetzt. */
.scrub-pin { position: relative; height: calc(var(--scrub-h, 60vh) + 100vh); }
.scrub-sticky {
  position: sticky; top: calc(var(--nav-h) + 1.2rem);
  height: auto; display: block;
}
.scrub-sticky .videobox { width: 100%; }
.scrub-sticky .videobox video {
  width: 100%; height: var(--scrub-h, auto);
  max-height: calc(100vh - var(--nav-h) - 2.4rem);
  object-fit: contain; display: block;
}
.scrub-active .vb-cap { display: none; }
.scrub-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1.1rem;
  background: rgba(var(--scrim-rgb),0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; font-size: 0.8rem; color: var(--white); white-space: nowrap;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.scrub-pin.in-view .scrub-hint { opacity: 1; }
.scrub-hint svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: scrubBob 1.6s var(--ease-in-out) infinite; }
@keyframes scrubBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.scrub-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.12); z-index: 2; }
.scrub-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
@media (prefers-reduced-motion: reduce), (max-width: 760px) {
  .scrub-pin { height: auto !important; }
  .scrub-sticky { position: static; height: auto; max-height: none; }
  .scrub-sticky .videobox video { height: auto; max-height: none; }
  .scrub-hint, .scrub-progress { display: none; }
}

/* ═══ DETAILGALERIE ═══ */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.gal figure { margin: 0; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: #EDF0F3; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #F1F3F5; display: block; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gal figure:hover img { transform: scale(1.05); } }

/* ═══ VORHER/NACHHER-REGLER ═══ */
.compare {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line2); cursor: ew-resize; user-select: none; touch-action: none;
  background: var(--bg3);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after-layer { clip-path: inset(0 0 0 50%); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent);
  transform: translateX(-1px); pointer-events: none; z-index: 3;
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.65);
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #07131E;
  display: grid; place-items: center; z-index: 4; pointer-events: none;
  box-shadow: 0 4px 22px rgba(0,0,0,0.55);
}
.compare-knob svg { width: 20px; height: 20px; stroke: #07131E; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare-tag {
  position: absolute; top: 1rem; z-index: 3;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.36rem 0.8rem; border-radius: 100px; backdrop-filter: blur(8px);
}
.compare-tag.l { left: 1rem; background: rgba(var(--warn-rgb),0.2); border: 1px solid rgba(var(--warn-rgb),0.42); color: var(--warn-light); }
.compare-tag.r { right: 1rem; background: rgba(var(--accent-rgb),0.2); border: 1px solid rgba(var(--accent-rgb),0.42); color: var(--accent-light); }
.compare-note { text-align: center; font-size: 0.83rem; color: var(--muted2); margin-top: 1.05rem; }
@media (max-width: 620px) { .compare { aspect-ratio: 4/3; } }

/* ═══ CTA-BAND ═══ */
.ctaband { position: relative; padding: 7rem 0; overflow: hidden; text-align: center; }
.ctaband .cta-bg { position: absolute; inset: 0; z-index: 0; }
.ctaband .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.27; filter: saturate(0.84) contrast(1.10); }
.ctaband .cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(var(--scrim-rgb),0.72), transparent 74%),
              linear-gradient(to bottom, var(--bg) 0%, rgba(var(--scrim-rgb),0.6) 30%, rgba(var(--scrim-rgb),0.6) 70%, var(--bg) 100%);
}
.ctaband .cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 2rem; }
.ctaband h2 { margin-bottom: 1rem; }
.ctaband p { margin: 0 auto 2.2rem; }
.cta-btns { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn { padding: 0.95rem 1.75rem; font-size: 0.94rem; }

/* ═══ FOOTER ═══ */
footer.site { background: var(--bg); border-top: 1px solid var(--line); padding: 4.5rem 0 2.2rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.2rem; }
.foot-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 1.05rem; letter-spacing: -0.02em; }
.foot-logo .plus { color: var(--accent); }
.foot-desc { font-size: 0.885rem; color: var(--muted); max-width: 38ch; margin-bottom: 1.5rem; }
.foot-h { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.foot-links a { font-size: 0.885rem; color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--accent); } }
.foot-bot { border-top: 1px solid var(--line); padding-top: 1.9rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.815rem; color: var(--muted2); }
.foot-bot a { transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot-bot a:hover { color: var(--accent); } }

/* ═══ PRINT ═══ */
@media print {
  @page { margin: 16mm 14mm; }

  nav.site, .mobile-menu, footer.site, .no-print, .page-hero-bg, .ctaband { display: none !important; }

  /* Cookie-Consent nie mitdrucken — das Overlay legt sonst eine Abdunklung
     über jede Seite und der Dialog erscheint auf jedem Blatt. */
  #cc-overlay, #cc-revoke, .cc-banner, .cc-overlay { display: none !important; }
  body { background: #fff; color: #111; padding-top: 0; }
  h1,h2,h3,h4 { color: #000; break-after: avoid; }
  .card, .table-wrap, .callout { border-color: #bbb !important; background: #fff !important; break-inside: avoid; }
  p, .lead, table.data td, dd, li { color: #333 !important; }
  a { color: #111 !important; text-decoration: underline; }
  .sec { padding: 1.2rem 0; }
  .print-only { display: block !important; }

  /* WICHTIG: Scroll-Reveal-Animationen deaktivieren. Ohne diese Regel bleiben alle noch
     nicht eingeblendeten .reveal-Elemente bei opacity:0 und fehlen im Ausdruck komplett. */
  .reveal, .reveal.d1, .reveal.d2, .reveal.d3, .reveal.d4, .vis {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Akkordeons (Fehlerdiagnose, FAQ) im Ausdruck vollständig aufklappen */
  .acc-a { max-height: none !important; overflow: visible !important; transition: none !important; }
  .acc-a-inner { padding-bottom: 1rem; }
  .acc-item { break-inside: avoid; }
  .acc-icon { display: none !important; }
  .acc-q { cursor: default; }

  /* Sticky/Pinning und Scroll-Scrubbing im Ausdruck auflösen */
  .scrub-pin { height: auto !important; }
  .scrub-sticky { position: static !important; height: auto !important; }
  .scrub-hint, .scrub-progress, .vb-play { display: none !important; }
  .jumpnav { display: none !important; }

  /* Medien beschneiden, damit sie keine Leerseiten erzeugen */
  video { display: none !important; }
  img { max-width: 100% !important; max-height: 90mm; break-inside: avoid; }
  figure, .plate, .videobox { break-inside: avoid; }

  /* Checkboxen als leere Kästchen zum Ausfüllen erhalten */
  .checklist input[type="checkbox"] { -webkit-appearance: checkbox; appearance: checkbox; }
  .checklist li { break-inside: avoid; }

  /* Inline gesetzte Themefarben zurückholen. Elemente mit style="color:var(--white)"
     o.ä. wären sonst hell auf weißem Papier und damit unlesbar. */
  b, strong, dt, dd { color: #111 !important; }
  [style*="var(--white)"], [style*="var(--accent)"], [style*="var(--muted)"],
  [style*="var(--text)"], [style*="var(--ok)"] { color: #222 !important; }
  .schema text, .schema .box-t, .schema .box-s { fill: #111 !important; }
  .schema .pipe, .schema .pipe-dash { stroke: #555 !important; }
  .hot text.num { fill: #111 !important; }

  /* Konsequenter Hintergrund-Reset: das Dark-Theme würde sonst schwarze Blöcke
     mit unlesbarem Text drucken. Flächen werden entfernt, Struktur über Linien. */
  *, *::before, *::after { background-image: none !important; }
  body, div, section, aside, article, header, li, ul, ol, dl, dt, dd,
  figure, table, thead, tbody, tr, td, th, span, p, h1, h2, h3, h4, button {
    background-color: transparent !important;
  }
  body { background: #fff !important; }
  .table-wrap, table.data, table.data th, table.data td { background: #fff !important; }
  table.data th { border-bottom: 1px solid #999 !important; }
  table.data td { border-bottom: 1px solid #ddd !important; }
  .tool-list li, .checklist li { border: 1px solid #ccc !important; }
  .tool-list .chk svg, .ico-box svg, .callout svg { stroke: #111 !important; }
  .ico-box { border: 1px solid #bbb !important; }
  .eyebrow, .badge { color: #444 !important; }
  .badge { border: 1px solid #bbb !important; }

  /* Anlagenschema als Strichzeichnung */
  .schema .box { fill: #fff !important; stroke: #555 !important; }
  .schema text { fill: #111 !important; }
  .schema .pipe { stroke: #666 !important; }
  .schema .pipe-dash { stroke: #aaa !important; }
  .hot circle.ring { fill: #fff !important; stroke: #555 !important; }
  .hot text.num { fill: #111 !important; }
}
.print-only { display: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1080px) {
  .nav-links { gap: 1.05rem; }
  .nav-links > li > a { font-size: 0.8rem; }
}
@media (max-width: 1000px) {
  .split, .split-2-1 { grid-template-columns: 1fr; gap: 2.75rem; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner > .btn { display: none; }
  .sec { padding: 4.5rem 0; }
  .wrap, .wrap-n, .nav-inner, .ctaband .cta-inner { padding: 0 1.35rem; }
  form.kw { padding: 1.6rem; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat { padding: 1.2rem 1rem; min-width: 0; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; }
  .ctaband { padding: 4.5rem 0; }
  .steps > li { padding-left: 2.9rem; }
  .card { padding: 1.4rem; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .vb-play span { width: 58px; height: 58px; }
  .vb-play svg { width: 20px; height: 20px; }
  .table-wrap { border-radius: var(--radius); }
  table.data { font-size: 0.845rem; }
  table.data th, table.data td { padding: 0.65rem 0.75rem; }
}

/* ═══ HELL/DUNKEL-MODUS ═══ */
html.light {
  /* Flaechen leicht zum Markenblau getoent statt reinem Weiss. */
  --bg:    #F3F5F7;
  --bg2:   #FCFDFE;
  --bg3:   #ECF0F3;
  --bg4:   #E1E7EC;
  --scrim-rgb: 252,253,254;

  --line:  rgba(48,72,96,0.13);
  --line2: rgba(48,72,96,0.22);

  --text:  #3A4652;
  --muted: #5C6B7A;
  --muted2:#5E6B7A;
  --white: #16212B;

  /* Der Akzent der Dunkelfassung ist ein helles Blau fuer dunkle Flaechen.
     Auf hellem Grund ergibt das 2,7:1 und faellt damit unter WCAG AA.
     Im Hellmodus deshalb eine dunklere Fassung derselben Farbfamilie. */
  --accent:       #2F6394;
  --accent-light: #3C6DA8;
  --accent-deep:  #24537D;
  --accent-dark:  #1C4266;
  --accent-rgb:   47,99,148;

  --ok:        #2F6B4E;
  --ok-rgb:    47,107,78;
  --warn:      #9A5228;
  --warn-rgb:  154,82,40;
  --warn-light:#7E421F;
}

/* Auf dem dunkleren Akzent braucht der Knopf helle Schrift. */
html.light .btn-primary { color: #FFFFFF; }
html.light .page-hero-bg img { opacity: 0.45; filter: saturate(0.98) contrast(1.12) brightness(1.04); }
html.light ::selection { color: #F3F5F7; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line2); cursor: pointer; color: var(--muted);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.theme-toggle:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { color: var(--white); border-color: var(--accent); }
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .ti-moon { display: none; }
html.light .theme-toggle .ti-sun  { display: none; }
html.light .theme-toggle .ti-moon { display: block; }

/* ── Original-Wortmarke (LOGO.png des Kunden, unverändert) ────────── */
.foot-logo@media (max-width: 720px) {
  .foot-logo}
@media print {
}

/* ── Made in Austria Badge (Fußzeile) ─────────────────────────────── */
@media (max-width: 720px) {
  }

@media print { .mia-dark { display: none !important; } }

@media (max-width: 720px) { }

.nav-logo, .foot-logo { gap: 0; }
.brand-img { display: block; width: auto; height: 54px; background: none; padding: 0; border-radius: 0; box-shadow: none; }
.foot-logo .brand-img { height: 68px; margin-bottom: 0.2rem; }
.brand-light { display: none; }
html.light .brand-dark { display: none; }
html.light .brand-light { display: block; }
@media (max-width: 720px) { .brand-img { height: 42px; } .foot-logo .brand-img { height: 54px; } }
@media print { .brand-dark { display: none !important; } .brand-light { display: block !important; } }

.foot-mia { display: flex; justify-content: center; padding-top: 1.8rem; }
.mia-badge { height: 46px; width: auto; display: block; background: none; padding: 0; border-radius: 0; box-shadow: none; opacity: 1; }
@media (max-width: 720px) { .mia-badge { height: 38px; } }
