/* ==========================================================================
   Aicepeak Landingpage
   Grundlage: Aicepeak Design System (@aicepeak/design-system 0.1.0).
   Alle Farb-, Radius- und Schattenwerte sind verbatim aus dem DS uebernommen.
   Die Landingpage-Erweiterungen (Type-Scale, Section-Rhythmus, Wasserlinie,
   Diagramm-Primitive) sind als solche gekennzeichnet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Marken-Leiter */
  --ace-navy: #29416A;
  --ace-navy-deep: #15284A;
  --ace-ocean: #32648E;
  --ace-steel: #4B86AE;
  --ace-sky: #68AACB;
  --ace-ice: #8BC3D7;
  --ace-frost: #AFDBEB;
  --ace-glacier: #CFEFF3;
  --ace-snow: #FFFFFF;
  --ace-mist: #F7FBFF;
  --ace-cloud: #EAF1FA;
  --ace-slate: #A9B0BA;

  /* Rollen */
  --ace-accent: var(--ace-ocean);
  --ace-accent-strong: var(--ace-navy);
  --ace-accent-deep: var(--ace-navy-deep);
  --ace-accent-soft: rgba(50, 100, 142, .08);
  --ace-accent-glow: rgba(50, 100, 142, .14);

  --ace-bg: #F4F8FC;
  --ace-bg-surface: var(--ace-mist);
  --ace-bg-card: var(--ace-snow);
  --ace-bg-card-hover: var(--ace-cloud);
  --ace-bg-input: var(--ace-cloud);
  --ace-bg-muted: var(--ace-cloud);

  --ace-text: var(--ace-navy-deep);
  --ace-text-heading: var(--ace-navy);
  --ace-text-secondary: #4B5563;
  --ace-text-muted: #94A3B8;
  --ace-text-faint: var(--ace-slate);
  --ace-text-on-accent: #FFFFFF;
  --ace-link: var(--ace-ocean);

  --ace-border: rgba(50, 100, 142, .12);
  --ace-border-light: rgba(50, 100, 142, .16);
  --ace-border-strong: rgba(50, 100, 142, .24);

  --ace-positive: #2F9E78;
  --ace-positive-bg: rgba(47, 158, 120, .12);
  --ace-negative: #D2544B;
  --ace-negative-bg: rgba(210, 84, 75, .12);
  --ace-warning: #C98A2E;
  --ace-warning-bg: rgba(201, 138, 46, .14);
  --ace-info: var(--ace-steel);
  --ace-info-bg: rgba(75, 134, 174, .12);

  /* Kategoriefarben, ausschliesslich fuer den EBITDA-Treiberbaum */
  --ace-cat-blue: var(--ace-ocean);
  --ace-cat-teal: #4F9BA3;
  --ace-cat-purple: #7B6FB0;
  --ace-cat-green: #4E9E84;
  --ace-cat-amber: #C98A2E;
  --ace-cat-red: #C2683E;

  --ace-radius-xs: 7px;
  --ace-radius-sm: 10px;
  --ace-radius: 14px;
  --ace-radius-lg: 20px;
  --ace-radius-xl: 26px;
  --ace-radius-pill: 999px;

  --ace-shadow-sm: 0 1px 2px rgba(15, 23, 41, .04), 0 1px 3px rgba(50, 100, 142, .05);
  --ace-shadow: 0 2px 8px rgba(15, 23, 41, .05), 0 8px 24px rgba(50, 100, 142, .07);
  --ace-shadow-md: 0 4px 12px rgba(15, 23, 41, .06), 0 12px 32px rgba(50, 100, 142, .1);
  --ace-shadow-lg: 0 8px 24px rgba(15, 23, 41, .08), 0 24px 60px rgba(50, 100, 142, .14);
  --ace-shadow-glow: 0 0 0 4px var(--ace-accent-glow);

  --ace-gradient-navy: linear-gradient(135deg, #29416A 0%, #15284A 100%);
  --ace-gradient-ocean: linear-gradient(135deg, #4B86AE 0%, #32648E 55%, #29416A 100%);
  --ace-gradient-ice: linear-gradient(135deg, #CFEFF3 0%, #AFDBEB 100%);

  --ace-font: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --ace-ease: cubic-bezier(.16, 1, .3, 1);
  --ace-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ace-header-h: 64px;

  /* Landingpage-Erweiterung: Rhythmus */
  --wrap: 1280px;
  --gutter: 40px;
  --sec-pad: clamp(72px, 9vw, 136px);
  --sec-gap: clamp(48px, 5.5vw, 88px);
  --card-gap: 24px;
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ace-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ace-bg);
  color: var(--ace-text);
  font-family: var(--ace-font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ace-link); text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ace-shadow-glow);
  border-radius: var(--ace-radius-xs);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 12px 20px; background: var(--ace-navy); color: #fff;
  font-size: .875rem; font-weight: 700; border-radius: var(--ace-radius-sm);
  transition: top .2s var(--ace-ease);
}
.skip:focus { top: 12px; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Typografie, Landingpage-Skala
   Arial laeuft in grossen Graden zu locker, daher ab 28px negatives Tracking.
   Gewichte ausschliesslich 400 und 700, weil Arial keinen echten 500/600 hat.
   -------------------------------------------------------------------------- */

.t-h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.06; letter-spacing: -.022em; font-weight: 700;
  color: var(--ace-text); text-wrap: balance;
}
.t-h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  line-height: 1.14; letter-spacing: -.018em; font-weight: 700;
  color: var(--ace-text); text-wrap: balance;
}
.t-h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.375rem);
  line-height: 1.28; letter-spacing: -.01em; font-weight: 700;
  color: var(--ace-text-heading);
}
.t-h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; color: var(--ace-text-heading); }
.t-lead { font-size: 1.0625rem; line-height: 1.64; color: var(--ace-text-secondary); max-width: 62ch; }
.t-body { font-size: .9375rem; line-height: 1.68; color: var(--ace-text-secondary); max-width: 70ch; }
.t-small { font-size: .82rem; line-height: 1.6; color: var(--ace-text-secondary); }
.t-micro { font-size: .72rem; line-height: 1.55; color: var(--ace-text-muted); }
.t-num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.t-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ace-text-muted);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--sec-pad) 0; position: relative; }
.section--surface { background: var(--ace-bg-surface); }
.section--card { background: var(--ace-bg-card); }
.section--navy { background: var(--ace-navy-deep); color: var(--ace-cloud); }
.section--navy .t-h2, .section--navy .t-h3, .section--navy .t-h4 { color: #fff; }
.section--navy .t-lead, .section--navy .t-body { color: rgba(234, 241, 250, .78); }
.section + .section { border-top: 1px solid var(--ace-border); }
.section--navy + .section, .section + .section--navy { border-top: 0; }

.sec-head { max-width: 64ch; margin-bottom: var(--sec-gap); }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head .t-h2 { margin-bottom: 22px; }
.sec-head .t-lead + .t-lead { margin-top: 16px; }

.grid { display: grid; gap: var(--card-gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.scroll-x { overflow-x: auto; overscroll-behavior-x: contain; }

/* --------------------------------------------------------------------------
   5. Komponenten, Masse verbatim aus dem DS
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: var(--ace-radius-xs);
  background: var(--ace-navy); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow--muted {
  background: transparent; color: var(--ace-text-muted); padding: 0;
  font-size: .68rem; letter-spacing: .14em;
}
.eyebrow--rule { background: transparent; color: var(--ace-ocean); padding: 0; gap: 12px; }
.eyebrow--rule::before { content: ""; width: 28px; height: 2px; background: var(--ace-ice); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 44px;
  font-size: .875rem; font-weight: 700;
  border: 1px solid transparent; border-radius: var(--ace-radius-sm);
  white-space: nowrap;
  transition: background .18s var(--ace-ease), border-color .18s var(--ace-ease),
              box-shadow .18s var(--ace-ease), transform .18s var(--ace-ease);
}
.btn--primary { background: var(--ace-accent); color: var(--ace-text-on-accent); }
.btn--primary:hover { background: var(--ace-accent-strong); transform: translateY(-1px); box-shadow: var(--ace-shadow); }
.btn--secondary { background: var(--ace-navy); color: #fff; }
.btn--secondary:hover { background: var(--ace-navy-deep); transform: translateY(-1px); box-shadow: var(--ace-shadow); }
.btn--ghost { background: transparent; color: var(--ace-text-secondary); border-color: var(--ace-border-light); }
.btn--ghost:hover { color: var(--ace-text-heading); border-color: var(--ace-border-strong); background: var(--ace-accent-soft); }
.btn--subtle { background: var(--ace-bg-muted); color: var(--ace-accent-strong); }
.btn--subtle:hover { background: var(--ace-accent-soft); }
.btn--lg { padding: 13px 24px; min-height: 48px; font-size: .95rem; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn__icon { display: inline-flex; width: 1.05em; height: 1.05em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: .95rem; font-weight: 700; color: var(--ace-ocean);
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 6px; text-decoration-color: rgba(50, 100, 142, .4);
  transition: color .3s var(--ace-ease), text-decoration-color .3s var(--ace-ease);
}
.link-arrow:hover { color: var(--ace-navy); text-decoration-color: var(--ace-navy); }

.card {
  position: relative; background: var(--ace-bg-card);
  border: 1px solid var(--ace-border); border-radius: var(--ace-radius-lg);
  box-shadow: var(--ace-shadow); padding: 24px; color: var(--ace-text);
  transition: box-shadow .3s var(--ace-ease), border-color .3s var(--ace-ease), transform .3s var(--ace-ease);
}
.card--hover:hover { box-shadow: var(--ace-shadow-md); border-color: var(--ace-border-strong); transform: translateY(-2px); }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: 16px; }
.card--pad-lg { padding: 32px; }
.card--navy { background: var(--ace-gradient-navy); border-color: transparent; color: #EAF1FA; }
.card--navy .card__title { color: #fff; }
.card--navy .card__eyebrow, .card--navy .card__body { color: rgba(255, 255, 255, .78); }
.card--gradient { background: var(--ace-gradient-ocean); border-color: transparent; color: #fff; }
.card--gradient .card__title { color: #fff; }
.card--outline { background: var(--ace-bg-card); box-shadow: none; border: 1.5px solid var(--ace-border-strong); }
.card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ace-text-muted); }
.card__title { font-size: 1.05rem; font-weight: 700; color: var(--ace-text-heading); line-height: 1.3; }
.card__subtitle { font-size: .82rem; color: var(--ace-text-secondary); margin-top: 4px; }
.card__body { color: var(--ace-text-secondary); font-size: .9rem; }
.card__icon { width: 26px; height: 26px; flex: none; margin-bottom: 16px; }

.kpi {
  background: var(--ace-bg-card); border: 1px solid var(--ace-border);
  border-radius: var(--ace-radius); padding: 18px 20px; box-shadow: var(--ace-shadow-sm);
  transition: border-color .25s var(--ace-ease), box-shadow .25s var(--ace-ease);
}
.kpi:hover { border-color: var(--ace-border-light); box-shadow: var(--ace-shadow); }
.kpi__label { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ace-text-muted); }
.kpi__value {
  display: flex; align-items: baseline; gap: 5px; margin-top: 4px;
  font-size: 1.6rem; line-height: 1.04; font-weight: 700; letter-spacing: -.01em;
  color: var(--ace-text); font-variant-numeric: tabular-nums;
}
.kpi__unit { font-size: .78rem; font-weight: 400; color: var(--ace-text-muted); letter-spacing: 0; }
.kpi__foot { margin-top: 6px; }
.kpi--pending .kpi__value { color: var(--ace-text-faint); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: var(--ace-radius-xs);
  font-size: .72rem; font-weight: 700; line-height: 1.4; letter-spacing: .01em; white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--blue { background: var(--ace-info-bg); color: var(--ace-ocean); }
.badge--green { background: var(--ace-positive-bg); color: var(--ace-positive); }
.badge--amber { background: var(--ace-warning-bg); color: var(--ace-warning); }
.badge--red { background: var(--ace-negative-bg); color: var(--ace-negative); }
.badge--teal { background: rgba(79, 155, 163, .14); color: var(--ace-cat-teal); }
.badge--purple { background: rgba(123, 111, 176, .14); color: var(--ace-cat-purple); }
.badge--neutral { background: var(--ace-bg-muted); color: var(--ace-text-secondary); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  border-radius: var(--ace-radius-pill);
  font-size: .78rem; font-weight: 700; line-height: 1.3;
  background: var(--ace-bg-card); color: var(--ace-accent-strong);
  border: 1px solid var(--ace-border); box-shadow: var(--ace-shadow-sm);
}
.pill--soft { background: var(--ace-info-bg); color: var(--ace-ocean); border-color: transparent; box-shadow: none; }
.pill--solid { background: var(--ace-gradient-ocean); color: #fff; border-color: transparent; }
.pill--ghost { background: transparent; box-shadow: none; }

.delta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.delta--up { color: var(--ace-positive); }
.delta--down { color: var(--ace-negative); }
.delta--flat { color: var(--ace-text-muted); }

.banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 24px;
  border-radius: var(--ace-radius); background: var(--ace-gradient-ocean);
  color: #fff; font-size: .92rem; font-weight: 700; box-shadow: var(--ace-shadow);
}
.banner--navy { background: var(--ace-gradient-navy); }
.banner--center { justify-content: center; text-align: center; }
.banner--soft {
  background: var(--ace-info-bg); color: var(--ace-accent-strong);
  box-shadow: none; border: 1px solid var(--ace-border); font-weight: 400;
}

.quote {
  position: relative; background: var(--ace-bg-card);
  border: 1.5px solid var(--ace-border-strong); border-radius: var(--ace-radius-lg);
  padding: 28px; box-shadow: none;
}
.quote__mark { font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--ace-frost); }
.quote__body { margin-top: 8px; font-size: 1.02rem; line-height: 1.58; color: var(--ace-text); }
.quote__source { margin-top: 18px; }

/* Demo-Kennzeichnung, Pflicht auf jedem Produkt-Visual mit Zahlen */
.demo-tag {
  flex: 0 0 auto; padding: 3px 9px; border-radius: var(--ace-radius-xs);
  font-size: .72rem; font-weight: 700; color: var(--ace-warning); background: var(--ace-warning-bg);
}

/* --------------------------------------------------------------------------
   6. Diagramm-Primitive, Landingpage-Erweiterung
   Alle Deck-Diagramme sind HTML plus Inline-SVG, keine Bilddateien.
   -------------------------------------------------------------------------- */

.node {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; min-height: 48px;
  background: var(--ace-bg-card); border: 1px solid var(--ace-border);
  border-radius: var(--ace-radius-sm); box-shadow: var(--ace-shadow-sm);
  font-size: .875rem; font-weight: 700; color: var(--ace-text-heading);
}
.node--soft { background: var(--ace-bg-surface); box-shadow: none; }
.node--navy { background: var(--ace-gradient-navy); border-color: transparent; color: #fff; }
.node--ocean { background: var(--ace-gradient-ocean); border-color: transparent; color: #fff; }
.node--ice { background: var(--ace-gradient-ice); border-color: transparent; color: var(--ace-navy-deep); }
.node__icon { width: 20px; height: 20px; flex: none; }

.layerbox {
  background: var(--ace-bg-card); border: 1px solid var(--ace-border);
  border-radius: var(--ace-radius-lg); padding: 20px; box-shadow: var(--ace-shadow-sm);
}
.layerbox--core {
  background: linear-gradient(180deg, rgba(207, 239, 243, .5) 0%, rgba(234, 241, 250, .7) 100%);
  border-color: var(--ace-border-strong); box-shadow: var(--ace-shadow-md);
}
.layerbox__title {
  font-size: .95rem; font-weight: 700; color: var(--ace-text-heading);
  text-align: center; margin-bottom: 16px;
}
.layerbox__items { display: grid; gap: 8px; }

.stepper { display: flex; align-items: flex-start; gap: 0; }
.step { flex: 1 1 0; min-width: 0; text-align: center; position: relative; }
.step__bar { height: 3px; border-radius: 999px; background: var(--ace-border); }
.step--done .step__bar, .step--active .step__bar { background: var(--ace-ocean); }
.step--active .step__bar { background: var(--ace-navy-deep); }
.step__label {
  margin-top: 10px; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ace-text-muted);
}
.step--active .step__label { color: var(--ace-text-heading); }

.matrix { font-size: .82rem; min-width: 560px; }
.matrix th {
  padding: 6px 10px; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ace-text-muted); text-align: center;
}
.matrix th:first-child { text-align: left; }
.matrix td { padding: 4px 5px; }
.matrix__rowlabel { font-size: .82rem; font-weight: 700; color: var(--ace-text-heading); white-space: nowrap; padding-right: 12px; }
.matrix__rowlabel--muted { font-weight: 400; color: var(--ace-text-faint); font-style: italic; }
.matrix__cell {
  display: block; padding: 9px 4px; border-radius: var(--ace-radius-xs);
  text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--ace-bg-muted); color: var(--ace-text-heading);
}
.matrix__cell--up { background: var(--ace-positive-bg); color: var(--ace-positive); }
.matrix__cell--down { background: var(--ace-negative-bg); color: var(--ace-negative); }
.matrix__cell--flat { background: var(--ace-bg-muted); color: var(--ace-text-secondary); }
.matrix__cell--empty { background: transparent; color: var(--ace-text-faint); font-weight: 400; font-style: italic; }

.newsitem {
  padding: 12px 0 12px 14px; border-left: 2px solid var(--ace-frost);
}
.newsitem + .newsitem { border-top: 1px solid var(--ace-border); }
.newsitem__title { font-size: .875rem; font-weight: 700; color: var(--ace-text-heading); line-height: 1.4; }
.newsitem__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.switch { display: inline-flex; align-items: center; gap: 10px; }
.switch__track {
  width: 34px; height: 20px; flex: none; border-radius: 999px;
  background: var(--ace-border-strong); position: relative;
  transition: background .2s var(--ace-ease);
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
  border-radius: 999px; background: #fff; box-shadow: var(--ace-shadow-sm);
  transition: transform .2s var(--ace-ease);
}
.switch--on .switch__track { background: var(--ace-ocean); }
.switch--on .switch__thumb { transform: translateX(14px); }
.switch--off .switch__track { background: rgba(50, 100, 142, .18); }

.track {
  position: relative; height: 7px; border-radius: 999px;
  background: rgba(50, 100, 142, .10); flex: 1 1 auto; min-width: 0;
}
.track__fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--ace-ocean); }
.track--center::before {
  content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px;
  width: 1px; background: var(--ace-border-strong);
}
.track__bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.track__bar--pos { left: 50%; background: var(--ace-positive); }
.track__bar--neg { right: 50%; background: var(--ace-negative); }

.dropzone {
  display: grid; place-items: center; gap: 8px; padding: 32px 24px;
  border: 1.5px dashed var(--ace-border-strong); border-radius: var(--ace-radius);
  background: var(--ace-bg-surface); text-align: center;
}

.seg {
  display: inline-flex; padding: 3px; gap: 3px;
  background: var(--ace-bg-muted); border-radius: var(--ace-radius-sm);
}
.seg__opt {
  padding: 6px 14px; border-radius: var(--ace-radius-xs);
  font-size: .78rem; font-weight: 700; color: var(--ace-text-secondary);
}
.seg__opt--active { background: var(--ace-navy); color: #fff; box-shadow: var(--ace-shadow-sm); }

/* --------------------------------------------------------------------------
   7. Chrome des Produkt-Mockups
   -------------------------------------------------------------------------- */

.mock {
  background: var(--ace-bg-card); border: 1px solid var(--ace-border-light);
  border-radius: var(--ace-radius-lg); box-shadow: var(--ace-shadow-lg); overflow: hidden;
}
.mock__chrome {
  display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 40px;
  background: var(--ace-cloud); border-bottom: 1px solid var(--ace-border);
}
.mock__dots { display: inline-flex; gap: 6px; }
.mock__dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(50, 100, 142, .24); }
.mock__url {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px;
  background: var(--ace-mist); border: 1px solid var(--ace-border);
  border-radius: 999px; font-size: .72rem; color: var(--ace-text-secondary);
}
.mock__body { padding: 18px; }
.mock__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

.sidebar {
  background: var(--ace-bg-card); border-right: 1px solid var(--ace-border);
  padding: 16px 12px; min-width: 0;
}
.sidebar__label {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ace-text-muted); padding: 0 10px; margin-bottom: 8px;
}
.navitem {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--ace-radius-xs); font-size: .82rem; color: var(--ace-text-secondary);
}
.navitem--active {
  background: var(--ace-bg-muted); color: var(--ace-text-heading); font-weight: 700;
  box-shadow: inset 2px 0 0 var(--ace-ocean);
}
.navitem__icon { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------------------
   8. Seiten-Header
   Deckende Flaeche plus Haarlinie, bewusst kein backdrop-filter.
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--ace-mist); border-bottom: 1px solid var(--ace-border);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: var(--ace-header-h);
}
.site-head__logo { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: .85rem; color: var(--ace-text-heading); padding: 4px 2px;
  transition: color .3s var(--ace-ease);
}
.site-nav a:hover {
  color: var(--ace-text);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px; text-decoration-color: var(--ace-steel);
}
.site-head__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   9. Hero mit Wasserlinie
   Uebernommen aus der abgestimmten Variante A.
   Ueber der Linie das sichtbare Ergebnis, darunter die Ableitung.
   Der Produkt-Frame durchstoesst die Linie und wird darunter abgedunkelt.
   -------------------------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ace-navy-deep);
  display: grid; grid-template-rows: auto auto; grid-template-columns: minmax(0, 1fr);
}
.hero__above { grid-area: 1 / 1; z-index: 2; min-width: 0; background: var(--ace-mist); }
.hero__tint {
  grid-area: 2 / 1; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 40, 74, .26) 0%, rgba(21, 40, 74, .5) 50%, rgba(21, 40, 74, .82) 100%);
}
.hero__scatter {
  grid-area: 2 / 1; z-index: 4; align-self: start; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(139, 195, 215, .16) 0%, rgba(139, 195, 215, .05) 55%, rgba(139, 195, 215, 0) 100%);
}
.hero__under { grid-area: 2 / 1; z-index: 5; position: relative; min-width: 0; padding: 54px 0 72px; }
.hero__surface {
  grid-area: 1 / 1; align-self: end; z-index: 6; height: 3px; pointer-events: none;
  background-image:
    linear-gradient(90deg, #15284A, #15284A),
    linear-gradient(90deg, rgba(207, 239, 243, .28) 0%, #CFEFF3 22%, #AFDBEB 72%, rgba(175, 219, 235, .32) 100%);
  background-size: 100% 1px, 100% 2px;
  background-position: left bottom, left top;
  background-repeat: no-repeat;
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 56px;
  padding: 36px 0 20px; align-items: start;
}
.hero__copy { min-width: 0; }
.hero__h1 { margin-top: 20px; }
.hero__h1 .l2 { display: block; color: var(--ace-steel); }
.hero__lead { margin-top: 18px; max-width: 34rem; font-size: 1.02rem; line-height: 1.62; color: var(--ace-text-secondary); }
.hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }
.hero__trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ace-border);
}
.hero__trust-i { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ace-text-heading); }
.hero__trust-sep { color: var(--ace-text-faint); font-size: .8rem; }

.hero__stage { position: relative; align-self: start; min-width: 0; }
.hero__frame {
  position: relative;
  /* Der Frame startet 64px tiefer und ragt 291px unter die Zonengrenze, damit die
     Wasserlinie exakt zwischen Chart und Treiberbeitraegen faellt. Die Hoehe der
     Oberwasser-Zone wird von der Textspalte bestimmt, nicht vom Frame. */
  margin-top: 64px;
  margin-bottom: -291px;
}

/* Unterwasser-Zone */
.hero__ugrid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 56px; align-items: start; }
.hero__usub {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(207, 239, 243, .62); margin-bottom: 18px;
}
.hero__uh {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.32; font-weight: 700;
  color: #fff; letter-spacing: -.01em; max-width: 32ch; margin-bottom: 22px;
}
.hero__utext { font-size: .9rem; line-height: 1.66; color: rgba(207, 239, 243, .74); max-width: 44ch; }

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px; min-height: 40px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--ace-glacier);
  background: rgba(207, 239, 243, .055); border: 1px solid rgba(175, 219, 235, .3);
}
.chip__icon { flex: 0 0 auto; }

/* News Events unter Wasser */
.uevents { margin-top: 26px; }
.uevent {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 14px; padding: 11px 0;
  border-top: 1px solid rgba(175, 219, 235, .16);
}
.uevent:last-child { border-bottom: 1px solid rgba(175, 219, 235, .16); }
.uevent--off { opacity: .42; }
.uevent__title { font-size: .84rem; line-height: 1.42; color: var(--ace-glacier); }
.uevent__meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.uevent__w {
  font-size: .78rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; text-align: right; min-width: 52px;
}
.uevent .switch__track { background: rgba(207, 239, 243, .22); }
.uevent .switch--on .switch__track { background: var(--ace-sky); }
.ubadge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--ace-radius-xs);
  font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(139, 195, 215, .16); color: var(--ace-frost);
}
.ubadge--high { background: rgba(47, 158, 120, .22); color: #7FD9B6; }
.ubadge--med { background: rgba(201, 138, 46, .22); color: #E6BE79; }
.ubadge--low { background: rgba(169, 176, 186, .18); color: rgba(207, 239, 243, .6); }

/* Unterwasser, rechte Spalte: der Spacer haelt die Hoehe des eingetauchten
   Frame-Teils frei, darunter laeuft das News-Events-Panel im offenen Wasser. */
.hero__ucol { min-width: 0; }
.hero__uspacer { height: 221px; }
.hero__upanel {
  padding: 20px 22px 18px;
  background: rgba(207, 239, 243, .045);
  border: 1px solid rgba(175, 219, 235, .22);
  border-radius: var(--ace-radius-lg);
}
.hero__upanel-t { font-size: .875rem; font-weight: 700; color: #fff; }
.hero__upanel-m { font-size: .72rem; color: rgba(207, 239, 243, .58); }
.hero__upanel-f {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid rgba(175, 219, 235, .16);
  font-size: .78rem; line-height: 1.6; color: rgba(207, 239, 243, .68);
}

.uwires { width: 100%; height: auto; margin-top: 24px; }

/* --------------------------------------------------------------------------
   10. Tabs des Produkt-Rundgangs, reines CSS ueber Radio-Inputs,
       damit die Seite ohne JavaScript vollstaendig bedienbar bleibt.
   -------------------------------------------------------------------------- */

.tabs__radios { position: absolute; opacity: 0; pointer-events: none; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs__tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px;
  border: 1px solid var(--ace-border); border-radius: var(--ace-radius-sm);
  background: var(--ace-bg-card); color: var(--ace-text-secondary);
  font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: border-color .2s var(--ace-ease), color .2s var(--ace-ease), background .2s var(--ace-ease);
}
.tabs__tab:hover { border-color: var(--ace-border-strong); color: var(--ace-text-heading); }

/* Grundzustand ohne :checked-Unterstuetzung: alle Panels liegen untereinander
   und sind vollstaendig lesbar. Erst wenn der Browser Geschwister-Selektoren
   auf :checked anwenden kann, wird daraus eine Tab-Umschaltung. */
.tabs__panel { display: block; }
.tabs__panel + .tabs__panel { margin-top: 28px; }

@supports selector(:checked ~ *) {
  .tabs__panel { display: none; }
  .tabs__panel + .tabs__panel { margin-top: 0; }

  #tour-1:checked ~ .tabs__panels > #tour-p1,
  #tour-2:checked ~ .tabs__panels > #tour-p2,
  #tour-3:checked ~ .tabs__panels > #tour-p3,
  #tour-4:checked ~ .tabs__panels > #tour-p4,
  #tour-5:checked ~ .tabs__panels > #tour-p5,
  #tour-6:checked ~ .tabs__panels > #tour-p6,
  #tour-7:checked ~ .tabs__panels > #tour-p7 { display: block; }

  #tour-1:checked ~ .tabs__list label[for="tour-1"],
  #tour-2:checked ~ .tabs__list label[for="tour-2"],
  #tour-3:checked ~ .tabs__list label[for="tour-3"],
  #tour-4:checked ~ .tabs__list label[for="tour-4"],
  #tour-5:checked ~ .tabs__list label[for="tour-5"],
  #tour-6:checked ~ .tabs__list label[for="tour-6"],
  #tour-7:checked ~ .tabs__list label[for="tour-7"] {
    background: var(--ace-navy); color: #fff; border-color: transparent;
    box-shadow: var(--ace-shadow-sm);
  }

  #tour-1:focus-visible ~ .tabs__list label[for="tour-1"],
  #tour-2:focus-visible ~ .tabs__list label[for="tour-2"],
  #tour-3:focus-visible ~ .tabs__list label[for="tour-3"],
  #tour-4:focus-visible ~ .tabs__list label[for="tour-4"],
  #tour-5:focus-visible ~ .tabs__list label[for="tour-5"],
  #tour-6:focus-visible ~ .tabs__list label[for="tour-6"],
  #tour-7:focus-visible ~ .tabs__list label[for="tour-7"] { box-shadow: var(--ace-shadow-glow); }
}

/* --------------------------------------------------------------------------
   11. Formular
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: .8rem; font-weight: 700; color: var(--ace-text-heading); }
.field__req { color: var(--ace-ocean); }
.field__hint { font-size: .72rem; color: var(--ace-text-muted); }
.field__err { font-size: .72rem; font-weight: 700; color: var(--ace-negative); min-height: 1.1em; }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: .9375rem; color: var(--ace-text);
  background: var(--ace-mist); border: 1px solid var(--ace-border);
  border-radius: var(--ace-radius-sm);
  transition: border-color .2s var(--ace-ease), background .2s var(--ace-ease);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ace-border-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; background: var(--ace-snow);
  border-color: var(--ace-steel); box-shadow: var(--ace-shadow-glow);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--ace-negative); }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: .82rem; color: var(--ace-text-secondary); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--ace-ocean); }
.formnote {
  margin-top: 18px; padding: 14px 18px; border-radius: var(--ace-radius-sm);
  background: var(--ace-info-bg); border: 1px solid var(--ace-border);
  font-size: .82rem; color: var(--ace-accent-strong);
}
.formsent {
  padding: 16px 20px; border-radius: var(--ace-radius-sm);
  background: var(--ace-positive-bg); border: 1px solid rgba(47, 158, 120, .3);
  font-size: .875rem; font-weight: 700; color: #1F7B5C;
}

/* --------------------------------------------------------------------------
   12. Login-Andeutung
   -------------------------------------------------------------------------- */

.loginbox {
  max-width: 400px; padding: 40px 36px; text-align: center;
  background: var(--ace-bg-card); border: 1px solid var(--ace-border);
  border-radius: var(--ace-radius-lg); box-shadow: var(--ace-shadow);
}
.loginbox__berg { width: 84px; height: auto; margin: 0 auto 18px; }
.loginbox__word {
  font-size: 1.35rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ace-navy); margin-bottom: 26px;
}
.loginbox__word i { font-style: normal; color: var(--ace-ocean); font-size: .8em; }
.loginbox__ms {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 13px 20px;
  background: var(--ace-navy); color: #fff; border-radius: var(--ace-radius-sm);
  font-size: .9rem; font-weight: 700; cursor: not-allowed;
}
.loginbox__foot { margin-top: 16px; font-size: .72rem; color: var(--ace-text-muted); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-foot { background: var(--ace-navy-deep); color: rgba(234, 241, 250, .74); padding: 72px 0 40px; }
.site-foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
}
.site-foot__logo { height: 34px; width: auto; margin-bottom: 18px; }
.site-foot__claim { font-size: .875rem; line-height: 1.65; max-width: 34ch; }
.site-foot h2 {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(207, 239, 243, .58); margin-bottom: 14px;
}
.site-foot ul { display: flex; flex-direction: column; gap: 10px; }
.site-foot a { color: rgba(234, 241, 250, .8); font-size: .875rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-foot__by {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(175, 219, 235, .16);
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px;
  font-size: .8rem; color: rgba(207, 239, 243, .6);
}
.site-foot__synate { height: 26px; width: auto; }

/* --------------------------------------------------------------------------
   14. Rechtsseiten
   -------------------------------------------------------------------------- */

.legal { max-width: 74ch; }
.legal h2 { font-size: 1.15rem; font-weight: 700; color: var(--ace-text-heading); margin: 40px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: .95rem; font-weight: 700; color: var(--ace-text-heading); margin: 24px 0 8px; }
.legal p, .legal li { font-size: .9375rem; line-height: 1.7; color: var(--ace-text-secondary); }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 10px 24px; margin-top: 16px; }
.legal dt { font-size: .9375rem; font-weight: 700; color: var(--ace-text-heading); }
.legal dd { font-size: .9375rem; color: var(--ace-text-secondary); }
/* Platzhalter fuer fehlende echte Angaben. Bewusst global, weil er auch
   im Kontaktblock der Landingpage vorkommt, nicht nur auf den Rechtsseiten. */
.todo {
  display: inline-block; padding: 2px 8px; border-radius: var(--ace-radius-xs);
  background: var(--ace-warning-bg); color: var(--ace-warning);
  font-size: .82rem; font-weight: 700;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero__grid, .hero__ugrid { grid-template-columns: minmax(0, 1fr) 480px; gap: 40px; }
  .hero__frame { margin-top: 40px; margin-bottom: -252px; }
  .site-nav { gap: 18px; }
  .site-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .site-head__inner { flex-wrap: wrap; gap: 12px 20px; padding: 12px 0; }
  /* Die Navigation traegt seit der Kundenentscheidung nur noch den Eintrag
     Kontakt, deshalb bleibt sie in derselben Zeile wie Logo und Login. Der
     Umbruch auf eine eigene, horizontal scrollbare Zeile war fuer sechs
     Anker-Eintraege gedacht. Wer die Eintraege zurueckholt, braucht auch
     order: 3, flex: 1 1 100% und width: 100% wieder. */
  .site-nav {
    min-width: 0; gap: 20px;
    overflow-x: auto; overscroll-behavior-x: contain;
  }
  .site-nav a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 32px 0 20px; }
  .hero__ugrid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero__frame { margin-top: 0; margin-bottom: -150px; }
  .hero__under { padding: 150px 0 56px; }
  .hero__uspacer { display: none; }
  .hero__upanel { margin-top: 4px; }
  .hero__scatter { height: 210px; }
  .hero__lead { max-width: none; }
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
  .legal dt { margin-top: 12px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --card-gap: 16px; }
  .site-head__logo { height: 32px; }
  .mock__body { padding: 14px; }
  .card { padding: 20px; }
  .card--pad-lg { padding: 24px; }
  .hero__frame { margin-top: 0; margin-bottom: -128px; }
  .hero__under { padding: 128px 0 48px; }
  .hero__ctas { gap: 12px 20px; }
  .hero__ctas .btn { width: 100%; }
  .site-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .quote { padding: 22px; }
  .loginbox { padding: 32px 24px; }
}

/* --------------------------------------------------------------------------
   16. Motion, endet immer in einem sichtbaren Zustand
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__surface { animation: ace-sheen 1400ms var(--ace-ease) 1 both; }
  .ace-dash { animation: ace-dash 1800ms var(--ace-ease) 1 both; }
}
@keyframes ace-sheen { from { opacity: .5; } to { opacity: 1; } }
@keyframes ace-dash { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }

@media print {
  .site-head, .nav-toggle { position: static; }
  .hero { background: #fff; }
  .hero__tint, .hero__scatter, .hero__surface { display: none; }
}
