/* ==========================================================================
   Hausmann Consulting — hausmann.de
   Statischer Onepager · Vanilla CSS · keine externen Requests
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften (lokal, font-display: swap)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/jost-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jost-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/jost-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jost-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --bg-deep: #02252E;
  --deepblue: #003B49;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(4, 215, 201, 0.14);
  --minty: #04D7C9;
  --mint-deep: #0B8F86;
  --amber: #E8A33D;
  --text: #DFEBEA;
  --text-soft: #C9DAD8;
  --head: #FFFFFF;
  --muted: #93AFAD;
  --error: #FFA294;

  /* Light-Fenster (Cockpit) */
  --lc-bg: #FAFAFA;
  --lc-card: #FFFFFF;
  --lc-text: #073B47;
  --lc-muted: #5A7370;
  --lc-border: #E4EAE9;

  /* Schrift */
  --font-display: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Layout */
  --container: 1140px;
  --gutter: clamp(20px, 4vw, 32px);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. Reset & Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 100px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--minty);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--head);
  line-height: 1.15;
}

::selection {
  background: rgba(4, 215, 201, 0.35);
  color: var(--head);
}

:focus-visible {
  outline: 2px solid var(--minty);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  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;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 200;
  background: var(--minty);
  color: #02333E;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 16px;
  outline-color: var(--head);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.2;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.18s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--minty);
  color: #02333E;
}
.btn-primary:hover {
  background: #2BE3D6;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: rgba(4, 215, 201, 0.45);
  color: var(--minty);
}
.btn-ghost:hover {
  background: rgba(4, 215, 201, 0.08);
  border-color: var(--minty);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   5. Wortmarke (Inline-SVG)
   -------------------------------------------------------------------------- */
.wordmark {
  display: block;
  height: 44px;
  width: auto;
}
.wm-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 21.5px;
  letter-spacing: 6.2px;
  fill: #ECF3F2;
}
.wm-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 8.6px;
  letter-spacing: 5.4px;
  fill: var(--muted);
}
.wordmark-footer {
  height: 40px;
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(1, 41, 51, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(4, 215, 201, 0.10);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--head);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(223, 235, 234, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--head);
  place-items: center;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  grid-area: 1 / 1;
}
.menu-btn .ic-close {
  display: none;
}
body.menu-open .menu-btn .ic-burger {
  display: none;
}
body.menu-open .menu-btn .ic-close {
  display: block;
}

/* Overlay-Menü (mobil) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 0;
  background: rgba(1, 27, 34, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] {
  display: none;
}
.menu-nav {
  display: flex;
  flex-direction: column;
}
.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--head);
  border-bottom: 1px solid rgba(223, 235, 234, 0.09);
  transition: color 0.15s ease;
}
.menu-nav a:hover {
  color: var(--minty);
}
.menu-idx {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--minty);
}
.menu-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 4px 44px;
}
.menu-foot a {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--minty);
  padding: 8px 0;
}
body.menu-open {
  overflow: hidden;
}
@media (min-width: 1024px) {
  .menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 9vh, 96px) 0 clamp(72px, 9vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(223, 235, 234, 0.08) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(640px 460px at 78% 6%, #000, transparent 72%);
  mask-image: radial-gradient(640px 460px at 78% 6%, #000, transparent 72%);
  pointer-events: none;
}
.hero-rings {
  position: absolute;
  top: -320px;
  right: -280px;
  width: 860px;
  height: 860px;
  opacity: 0.05;
  pointer-events: none;
}
.hero-rings svg {
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(4, 215, 201, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--minty);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--minty);
  flex: none;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero h1 .accent {
  color: var(--minty);
}

.hero-sub {
  margin-top: 24px;
  max-width: 640px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Eintrittsanimation (nur CSS, unabhängig vom Observer) */
.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.d-1 { animation-delay: 0.08s; }
.d-2 { animation-delay: 0.16s; }
.d-3 { animation-delay: 0.24s; }
.d-4 { animation-delay: 0.34s; }
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   8. Cockpit (Signature-Element)
   -------------------------------------------------------------------------- */
.cockpit {
  position: relative;
  margin-top: clamp(48px, 7vw, 76px);
}
.cockpit-stage {
  display: grid;
}

/* Fensterrahmen */
.win {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 6, 9, 0.55);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--w-divider);
  background: var(--w-bar);
}
.win-dots {
  display: inline-flex;
  gap: 7px;
  flex: none;
}
.win-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.win-dots i:nth-child(1) { background: #F1655C; }
.win-dots i:nth-child(2) { background: #F5BE4F; }
.win-dots i:nth-child(3) { background: #53C64F; }

.win-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--w-muted);
}
.win-mode {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--w-divider);
  color: var(--w-muted);
}

.win-client {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--w-divider);
}
.client-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--minty);
  color: #02333E;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
}
.client-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--w-text);
}
.client-period {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--w-muted);
  white-space: nowrap;
}

/* Hauptfenster: Skins */
.win-main {
  grid-area: 1 / 1;
  z-index: 2;
  justify-self: center;
  width: min(720px, 100%);
  background: var(--w-bg);
  border: 1px solid var(--w-border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.win-main[data-skin="light"] {
  --w-bg: var(--lc-bg);
  --w-bar: #F1F4F3;
  --w-border: rgba(2, 37, 46, 0.16);
  --w-text: var(--lc-text);
  --w-muted: var(--lc-muted);
  --w-card: var(--lc-card);
  --w-card-border: var(--lc-border);
  --w-divider: #E7ECEB;
  --w-tab-idle: #F3F6F5;
}
.win-main[data-skin="dark"] {
  --w-bg: #033240;
  --w-bar: rgba(255, 255, 255, 0.04);
  --w-border: rgba(4, 215, 201, 0.22);
  --w-text: var(--head);
  --w-muted: var(--muted);
  --w-card: rgba(255, 255, 255, 0.05);
  --w-card-border: rgba(4, 215, 201, 0.16);
  --w-divider: rgba(223, 235, 234, 0.10);
  --w-tab-idle: rgba(255, 255, 255, 0.035);
}
.win-main[data-skin="light"] :focus-visible {
  outline-color: var(--mint-deep);
}

/* Tabs */
.win-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
}
.win-tabs [role="tab"] {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--w-divider);
  border-bottom: none;
  background: var(--w-tab-idle);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--w-muted);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.win-tabs [role="tab"]:hover {
  color: var(--w-text);
  border-color: rgba(4, 215, 201, 0.5);
}
/* Einmaliger Hinweis-Puls nach dem Laden: „hier kann man klicken" */
@media (prefers-reduced-motion: no-preference) {
  .win-tabs [role="tab"]:nth-child(2) {
    animation: tab-hint 2s ease 1.9s 1 backwards;
  }
  .win-tabs [role="tab"]:nth-child(3) {
    animation: tab-hint 2s ease 2.25s 1 backwards;
  }
}
@keyframes tab-hint {
  0%, 100% {
    box-shadow: none;
  }
  35%, 65% {
    box-shadow: 0 0 0 4px rgba(4, 215, 201, 0.20);
    border-color: rgba(4, 215, 201, 0.65);
  }
}
.win-tabs [role="tab"][aria-selected="true"] {
  color: var(--w-text);
  background: var(--w-card);
  border-color: var(--w-card-border);
  box-shadow: 0 -6px 18px rgba(0, 8, 10, 0.06);
  position: relative;
}
.win-tabs [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--minty);
}

.win-body {
  border-top: 1px solid var(--w-divider);
  min-height: 448px;
  display: grid;
}
.tabpanel {
  grid-area: 1 / 1;
  padding: 22px 20px 24px;
}
.tabpanel[hidden] {
  display: none;
}

/* KPI-Zeile (Tab 1, Light) */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  background: var(--w-card);
  border: 1px solid var(--w-card-border);
  border-radius: 12px;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--w-muted);
  white-space: nowrap;
}
.kpi-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  color: var(--w-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi-delta {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: #DFF7F5;
  color: #0A6E66;
  white-space: nowrap;
}

/* Donut (Tab 1) */
.donut-block {
  margin-top: 16px;
  padding: 20px;
  background: var(--w-card);
  border: 1px solid var(--w-card-border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}
.donut {
  width: 100%;
  height: auto;
  display: block;
}
.donut .seg {
  transition: stroke-dasharray 0.8s cubic-bezier(0.3, 0.6, 0.3, 1);
}
.donut-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--lc-muted);
}
.donut-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  fill: var(--lc-text);
}
.legend {
  display: flex;
  flex-direction: column;
}
.legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 9px 2px;
  border-bottom: 1px solid #EFF2F1;
  font-size: 0.86rem;
}
.legend li:last-child {
  border-bottom: none;
}
.legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--c);
  flex: none;
}
.legend-name {
  color: #35555A;
  font-weight: 500;
}
.legend-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--lc-text);
  font-variant-numeric: tabular-nums;
}

/* Diagramm-Bausteine (Tabs 2 & 3, Dark) */
.chart-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.chart-kicker span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--w-muted, var(--muted));
}
.chart-kicker strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--w-text, var(--head));
  white-space: nowrap;
}

.chart-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 215, 201, 0.3) transparent;
}
.chart-frame {
  position: relative;
  min-width: 460px;
}
.chart-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Linienchart */
.gridlines line {
  stroke: rgba(223, 235, 234, 0.10);
  stroke-width: 1;
}
.gridlines text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #8AA5A3;
  text-anchor: end;
}
.line-area {
  fill: rgba(4, 215, 201, 0.10);
}
.line-path {
  fill: none;
  stroke: var(--minty);
  stroke-width: 3;
  stroke-linecap: round;
}
.x-labels text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #8AA5A3;
  text-anchor: middle;
}
/* Punkte erscheinen erst, wenn die Linie gezeichnet ist (nur mit JS) */
html.js .linechart.is-anim .points {
  opacity: 0;
  transition: opacity 0.4s ease;
}
html.js .linechart.is-anim.is-drawn .points {
  opacity: 1;
}
.x-labels .is-now {
  fill: var(--minty);
  font-weight: 500;
}
.pt {
  cursor: pointer;
}
.pt-hit {
  fill: transparent;
}
.pt-dot {
  fill: var(--minty);
  stroke: #033240;
  stroke-width: 2;
}
.pt-ring {
  fill: none;
  stroke: var(--minty);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.pt-ring.is-pulse {
  animation: ringPulse 1.1s ease-out 1 both;
}
@keyframes ringPulse {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(3.4); }
}
.pt:focus-visible {
  outline: none;
}
.pt:focus-visible .pt-dot {
  stroke: var(--head);
  stroke-width: 3;
}

.chart-tip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 6px 11px;
  border-radius: 8px;
  background: #012028;
  border: 1px solid rgba(4, 215, 201, 0.35);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.chart-tip.is-on {
  opacity: 1;
}

/* Chips (Kumuliert / Hinweise) */
.chip-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--w-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--w-card-border, rgba(4, 215, 201, 0.16));
}
.chip-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-muted, var(--muted));
}
.chip-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--w-text, var(--head));
  font-variant-numeric: tabular-nums;
}
.chip-amber {
  border-color: rgba(232, 163, 61, 0.4);
}
.chip-amber .chip-value {
  color: var(--amber);
}

/* Stat-Strip (Tab 3) */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--w-card);
  border: 1px solid var(--w-card-border);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-muted);
}
.stat-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--w-text);
  font-variant-numeric: tabular-nums;
}
.stat-value.is-minty {
  color: var(--minty);
}

/* Balkenchart (Tab 3) */
.bar-target {
  stroke: rgba(4, 215, 201, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}
.bar-target-lab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: rgba(4, 215, 201, 0.8);
}
.bar {
  fill: var(--minty);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.bar.is-below {
  fill: var(--amber);
}
.bar-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  fill: var(--minty);
}
.bar-val.is-below {
  fill: var(--amber);
}
.bar-lab {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--text-soft);
}
.bar-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #8AA5A3;
}
/* Wachstums-Animation (nur mit JS aktiviert) */
.barchart.is-prep .bar {
  transform: scaleY(0.005);
}
.barchart.is-prep .bar-val {
  opacity: 0;
}
.barchart.is-grown .bar {
  transform: scaleY(1);
  transition: transform 0.7s cubic-bezier(0.25, 0.7, 0.3, 1);
}
.barchart.is-grown .bar-val {
  opacity: 1;
  transition: opacity 0.4s ease 0.55s;
}
.barchart.is-grown .bar-g:nth-child(4) .bar { transition-delay: 0.05s; }
.barchart.is-grown .bar-g:nth-child(5) .bar { transition-delay: 0.12s; }
.barchart.is-grown .bar-g:nth-child(6) .bar { transition-delay: 0.19s; }
.barchart.is-grown .bar-g:nth-child(7) .bar { transition-delay: 0.26s; }

.panel-footnote {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--w-muted);
}
.footnote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  transform: translateY(-1px);
}

.win-mode.is-dark {
  border-color: rgba(4, 215, 201, 0.35);
  color: var(--minty);
}

.cockpit-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Statband
   -------------------------------------------------------------------------- */
.statband {
  border-top: 1px solid rgba(4, 215, 201, 0.10);
  border-bottom: 1px solid rgba(4, 215, 201, 0.10);
  background: linear-gradient(180deg, rgba(0, 59, 73, 0.38), rgba(0, 59, 73, 0.10));
  padding: clamp(40px, 6vw, 60px) 0;
}
.statband-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.statitem {
  padding-left: 26px;
  border-left: 1px solid rgba(223, 235, 234, 0.13);
}
.statitem:first-child {
  padding-left: 0;
  border-left: none;
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  color: var(--minty);
  line-height: 1.15;
}
.stat-text {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 24ch;
}

/* --------------------------------------------------------------------------
   10. Sektions-Gerüst
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 148px);
}
.section-tint {
  background: linear-gradient(180deg, rgba(0, 59, 73, 0.34) 0%, rgba(0, 59, 73, 0.06) 100%);
  border-top: 1px solid rgba(4, 215, 201, 0.07);
  border-bottom: 1px solid rgba(4, 215, 201, 0.07);
}

.sec-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 6vw, 64px);
}
.sec-index {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-index .idx {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--minty);
}
.sec-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.sec-head h2 em {
  font-style: italic;
}
.sec-intro {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 1.09rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* Bogen-Unterstreichung (Logo-Motiv) */
.arc-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.arc-word svg {
  position: absolute;
  left: 2%;
  bottom: -0.26em;
  width: 96%;
  height: 0.3em;
  overflow: visible;
  pointer-events: none;
}
.arc-underline {
  fill: none;
  stroke: var(--minty);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.3, 0.6, 0.3, 1) 0.35s;
}
[data-reveal].is-in .arc-underline,
html:not(.js) .arc-underline {
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   11. Karten (Digitale Lösungen)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(4, 215, 201, 0.32);
  transform: translateY(-3px);
}
.icon-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(4, 215, 201, 0.09);
  border: 1px solid rgba(4, 215, 201, 0.22);
  color: var(--minty);
}
.icon-chip svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
}
.card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Referenz-Streifen */
.ref-strip {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(0, 59, 73, 0.85), rgba(2, 37, 46, 0.55));
  border: 1px solid var(--panel-border);
}
.ref-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--head);
  line-height: 1.25;
}
.ref-sub {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}
.ref-facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(223, 235, 234, 0.10);
}
.ref-facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--minty);
  margin-bottom: 7px;
}
.ref-facts dd {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--minty);
}
.ref-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}
.ref-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   12. Leistungen (Split + Accordion)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.split-rail {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}
.rail-hint {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(223, 235, 234, 0.10);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40ch;
}

.acc-list {
  border-top: 1px solid rgba(223, 235, 234, 0.12);
}
.acc {
  border-bottom: 1px solid rgba(223, 235, 234, 0.12);
}
.acc summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 24px 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary:hover {
  background: rgba(255, 255, 255, 0.02);
}
.acc-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--minty);
  padding-top: 5px;
  min-width: 2.1rem;
}
.acc-head h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}
.acc-head p {
  margin-top: 7px;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 58ch;
}
.badge {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(4, 215, 201, 0.4);
  background: rgba(4, 215, 201, 0.10);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--minty);
}
.acc-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(223, 235, 234, 0.22);
  color: var(--text-soft);
  transition: transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.acc-icon svg {
  width: 16px;
  height: 16px;
}
.acc[open] .acc-icon {
  transform: rotate(45deg);
  border-color: rgba(4, 215, 201, 0.55);
  color: var(--minty);
}
.acc-body {
  padding: 2px 6px 30px calc(2.1rem + 26px);
}
html.js .acc[open] .acc-body {
  animation: accIn 0.3s ease both;
}
@keyframes accIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.acc-body p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 60ch;
}
.acc-body ul {
  margin-top: 16px;
}
.acc-body li {
  position: relative;
  padding-left: 24px;
  margin: 9px 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
}
.acc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--minty);
}
.acc-more {
  margin-top: 16px;
}
.acc-more a,
.acc-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--minty);
  font-weight: 500;
  font-size: 0.94rem;
}
.acc-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 16px;
}
.acc-more a:hover,
.acc-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   13. Ansatz (Timeline mit Bogen)
   -------------------------------------------------------------------------- */
.steps-arc {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -6px;
}
.steps-arc-path {
  stroke: rgba(4, 215, 201, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
}
.steps-dot {
  fill: var(--bg-deep);
  stroke: var(--minty);
  stroke-width: 2;
}
/* Punkte der Timeline blenden nach dem Bogen ein (nur mit JS) */
html.js .steps[data-reveal] .steps-dot {
  opacity: 0;
  transition: opacity 0.4s ease 1.05s;
}
html.js .steps[data-reveal].is-in .steps-dot {
  opacity: 1;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step {
  padding: 10px 6px 0;
  text-align: center;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--minty);
}
.step h3 {
  margin: 10px 0 9px;
  font-size: 1.18rem;
}
.step p {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. Über uns (Team)
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 860px;
  margin-inline: auto;
}
.person {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.person:hover {
  border-color: rgba(4, 215, 201, 0.3);
}
.person-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #04404F, #022B36);
}
.person-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-fallback {
  display: none;
}
.person-media.is-fallback img {
  display: none;
}
.person-media.is-fallback .person-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.person-fallback svg {
  width: 104px;
  height: auto;
}
.person-initials {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.4rem;
  letter-spacing: 0.14em;
  color: #ECF3F2;
  text-indent: 0.14em; /* optischer Ausgleich der Sperrung */
}
.person h3 {
  margin: 20px 24px 0;
  font-size: 1.28rem;
}
.person-role {
  margin: 6px 24px 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-note {
  margin-top: 48px;
  text-align: center;
}
.team-note .jh-logo {
  display: block;
  width: auto;
  height: 96px;
  margin: 0 auto 18px;
}
.team-note p {
  margin: 0;
}
.note-badge {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(4, 215, 201, 0.2);
  background: rgba(4, 215, 201, 0.05);
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   15. Wissen
   -------------------------------------------------------------------------- */
.wissen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.wissen-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 36px);
}
.wissen-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--minty);
}
.wissen-card h3 {
  margin: 14px 0 12px;
  font-size: 1.3rem;
  line-height: 1.3;
}
.wissen-card > p,
.wissen-book-copy > p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.wissen-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 18px;
}
.wissen-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: var(--minty);
  font-weight: 500;
  font-size: 0.95rem;
}
.wissen-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.book-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Buch-Andeutung (CSS) */
.wissen-card-book {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
}
.book-scene {
  perspective: 900px;
  padding-top: 6px;
}
.book {
  position: relative;
  width: 126px;
  transform: rotateY(-16deg) rotateX(2deg);
  transform-style: preserve-3d;
}
.book-cover {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 126px;
  height: 176px;
  padding: 14px 13px 12px;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(150deg, #054452 0%, #02303C 90%);
  border: 1px solid rgba(4, 215, 201, 0.28);
  border-left: 4px solid rgba(4, 215, 201, 0.55);
  box-shadow: 14px 18px 34px rgba(0, 6, 9, 0.5);
}
.book-cover svg {
  width: 58px;
  margin: 2px auto 10px;
}
.book-series {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--minty);
}
.book-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.32;
  color: var(--head);
}
.book-author {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-pages {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  right: -7px;
  width: 8px;
  border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(
    to bottom,
    #DCE4E3 0px,
    #DCE4E3 2px,
    #B7C3C1 3px
  );
}

/* --------------------------------------------------------------------------
   16. Erstgespräch / Kontakt
   -------------------------------------------------------------------------- */
.section-contact {
  background: linear-gradient(180deg, rgba(0, 59, 73, 0.42) 0%, rgba(0, 59, 73, 0.05) 70%);
  border-top: 1px solid rgba(4, 215, 201, 0.08);
  overflow: hidden;
}
.contact-rings {
  position: absolute;
  left: -340px;
  bottom: -380px;
  width: 900px;
  height: 900px;
  opacity: 0.05;
  pointer-events: none;
}
.contact-rings svg {
  width: 100%;
  height: 100%;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-radius: var(--r-sm);
}
.contact-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(4, 215, 201, 0.09);
  border: 1px solid rgba(4, 215, 201, 0.22);
  color: var(--minty);
}
.contact-ic svg {
  width: 21px;
  height: 21px;
}
.contact-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.16rem;
  color: var(--head);
  line-height: 1.5;
  transition: color 0.15s ease;
}
a.contact-line:hover .contact-value {
  color: var(--minty);
}
.contact-line-static .contact-value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
}
.contact-assurance {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(223, 235, 234, 0.10);
}
.contact-assurance li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}
.contact-assurance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--minty);
}

/* Formular */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field:nth-of-type(5) {
  grid-column: 1 / -1;
}
.form-field label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--head);
  margin-bottom: 8px;
}
.req {
  color: var(--minty);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: #ECF3F2;
  background: rgba(2, 37, 46, 0.55);
  border: 1px solid rgba(223, 235, 234, 0.18);
  border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2393AFAD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #A9C2C0;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--minty);
  box-shadow: 0 0 0 3px rgba(4, 215, 201, 0.14);
  outline: none;
}
.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #E86A5A;
}
.field-err {
  margin-top: 7px;
  font-size: 0.85rem;
  color: var(--error);
}
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-hint {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-submit {
  grid-column: 1 / -1;
  justify-self: start;
}
.form-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.form-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  font-size: 0.95rem;
  margin-top: -6px;
}
.form-status.is-ok {
  color: var(--minty);
}
.form-status.is-err {
  color: var(--error);
}
.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #011C23;
  border-top: 1px solid rgba(4, 215, 201, 0.10);
  padding: clamp(52px, 7vw, 72px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.25fr 1fr;
  gap: 44px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 30ch;
}
.footer-col h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-col ul li {
  margin: 4px 0;
}
.footer-col a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--minty);
}
.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text);
}
.footer-col address a {
  padding: 0;
  color: var(--text);
}
.footer-col address a:hover {
  color: var(--minty);
}
.footer-bottom {
  margin-top: clamp(44px, 6vw, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(223, 235, 234, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.footer-legal a {
  display: inline-block;
  padding: 6px 8px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-legal a:hover {
  color: var(--minty);
}

/* --------------------------------------------------------------------------
   18. Scroll-Reveal
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--rd, 0ms);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  html:not(.js) .menu-btn {
    display: none;
  }
  html:not(.js) .nav {
    display: flex;
    flex-wrap: wrap;
  }
  html:not(.js) .header-in {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split-rail {
    position: static;
    margin-bottom: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

@media (max-width: 900px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 840px) {
  .win-main {
    width: 100%;
  }
  .win-body {
    min-height: 0;
  }
  .cockpit-note {
    margin-top: 22px;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .statband-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 26px;
  }
  .statitem:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }
  .statitem:nth-child(even) {
    padding-left: 26px;
  }
  .steps-arc {
    display: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-left: 1px solid rgba(4, 215, 201, 0.28);
    padding-left: 30px;
    margin-left: 6px;
  }
  .step {
    position: relative;
    text-align: left;
    padding: 0 0 34px;
  }
  .step:last-child {
    padding-bottom: 4px;
  }
  .step::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--minty);
  }
  .ref-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wissen-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .kpi-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .kpi {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 12px 16px;
  }
  .kpi-label {
    flex-basis: 100%;
  }
  .kpi-delta {
    margin-left: auto;
    align-self: center;
  }
  .donut-block {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }
  .donut-wrap {
    width: min(200px, 62vw);
  }
  .legend {
    width: 100%;
  }
  .stat-strip {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .stat,
  .chip {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .chip-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .form-field:nth-of-type(5) {
    grid-column: auto;
  }
  .form-hint,
  .form-submit,
  .form-status {
    grid-column: auto;
  }
  .form-submit {
    width: 100%;
  }
  .wissen-card-book {
    grid-template-columns: 1fr;
  }
  .book-scene {
    margin-inline: auto;
    padding-right: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tabpanel {
    padding: 18px 14px 20px;
  }
  .win-tabs {
    padding: 10px 14px 0;
  }
  .win-tabs [role="tab"] {
    font-size: 0.82rem;
    padding: 10px 6px;
  }
  .win-client,
  .win-bar {
    padding-inline: 14px;
  }
  .client-period {
    font-size: 0.66rem;
  }
  .win-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.5rem);
  }
  .eyebrow-pill {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
  .btn {
    width: 100%;
  }
  .header-actions .btn {
    width: auto;
  }
  .statband-grid {
    gap: 26px 18px;
  }
  .statitem:nth-child(even) {
    padding-left: 18px;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .acc summary {
    gap: 12px;
    padding: 20px 2px;
  }
  .acc-num {
    min-width: 1.7rem;
  }
  .acc-icon {
    width: 30px;
    height: 30px;
  }
  .acc-body {
    padding-left: calc(1.7rem + 12px);
    padding-right: 2px;
  }
}

/* --------------------------------------------------------------------------
   20. Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .arc-underline {
    stroke-dashoffset: 0 !important;
  }
  .barchart.is-prep .bar {
    transform: scaleY(1);
  }
  .barchart.is-prep .bar-val {
    opacity: 1;
  }
  .pt-ring.is-pulse {
    animation: none;
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   21. Rechtsseiten (Impressum · Datenschutz · AGB)
   -------------------------------------------------------------------------- */
.legal-hero {
  padding: clamp(44px, 7vh, 84px) 0 clamp(16px, 3vw, 32px);
}
.legal-hero h1 {
  margin-top: 26px;
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.legal-lead {
  margin-top: 18px;
  max-width: 68ch;
  font-size: 1.09rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.legal-main {
  padding-bottom: clamp(88px, 11vw, 140px);
}
.legal-body {
  max-width: 76ch;
}

/* Inhaltsverzeichnis */
.legal-toc {
  margin: clamp(28px, 4vw, 40px) 0 clamp(16px, 3vw, 28px);
  padding: 22px 26px 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-md);
}
.legal-toc-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-toc ol {
  display: grid;
  gap: 2px;
}
.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 5px 2px;
  color: var(--text-soft);
  border-radius: 6px;
  transition: color 0.15s ease;
}
.legal-toc a:hover {
  color: var(--head);
}
.legal-toc-num {
  flex: none;
  min-width: 2.8em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--minty);
}

/* Typo-Hierarchie der Lesespalte */
.legal-body h2 {
  margin-top: clamp(52px, 7vw, 72px);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.legal-body h2::after {
  /* Statischer Minty-Bogen (Logo-Motiv, ohne Animation) */
  content: "";
  display: block;
  width: 62px;
  height: 9px;
  margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 10 Q50 1 98 10' fill='none' stroke='%2304D7C9' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.85;
}
.legal-body h3 {
  margin-top: 38px;
  font-size: 1.18rem;
  line-height: 1.3;
}
.legal-body h4 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--head);
}
.legal-body p {
  margin-top: 16px;
  color: var(--text-soft);
}
.legal-body strong {
  font-weight: 600;
  color: var(--head);
}
.legal-body ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.legal-body ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--minty);
  opacity: 0.8;
}
.legal-body a {
  color: var(--minty);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(4, 215, 201, 0.45);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.15s ease;
}
.legal-body a:hover {
  text-decoration-color: var(--minty);
}

/* Stand-Vermerk */
.legal-updated {
  margin-top: clamp(48px, 7vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(223, 235, 234, 0.09);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .legal-toc {
    padding: 18px 16px 20px;
  }
  .legal-toc a {
    gap: 10px;
  }
}
