/* =========================================================
   mestergroup | Stylesheet
   ========================================================= */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("inter-600.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("inter-display-600.woff") format("woff"); }

:root {
  --bg: #fbfbfd;
  --bg-soft: #f2f4f7;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #3c4452;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, .08);
  --line-2: rgba(17, 24, 39, .14);
  --navy-950: #08131f;
  --navy-900: #0d1e33;
  --navy-800: #15304f;
  --blue: #3b6fb6;
  --accent: #e8913f;
  --accent-ink: #a95a14;
  --green: #2f8a5b;
  --red: #c2412d;
  --amber: #d98a2b;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-lg: 0 40px 80px -30px rgba(13, 30, 51, .35), 0 18px 36px -18px rgba(13, 30, 51, .25);
  --shadow-sm: 0 1px 2px rgba(13, 30, 51, .06), 0 8px 24px -12px rgba(13, 30, 51, .12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.025em; line-height: 1.08; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); letter-spacing: -.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s, color .2s;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--navy-900); color: #fff; box-shadow: 0 8px 20px -10px rgba(13, 30, 51, .6); }
.btn-dark:hover { background: var(--navy-800); box-shadow: 0 12px 26px -10px rgba(13, 30, 51, .6); }
.btn-ghost { color: var(--navy-900); padding-inline: 14px; }
.btn-ghost:hover { color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--navy-950); }
.btn-accent:hover { background: #f0a258; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 251, 253, .82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 28px; height: 28px; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: rgba(17, 24, 39, .05); }
.site-nav a.is-active { color: var(--ink); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 5.5vw, 64px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 320px at 18% 8%, rgba(232, 145, 63, .10), transparent 70%),
    radial-gradient(700px 380px at 85% 0%, rgba(59, 111, 182, .12), transparent 70%);
}
.hero-copy { text-align: center; max-width: 900px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; margin-bottom: 20px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .7);
  font-size: 14px; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill svg { width: 14px; height: 14px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 145, 63, .18); }

.hero h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.04em; line-height: 1.02; }
.grad {
  background: linear-gradient(92deg, var(--navy-900) 0%, var(--blue) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 640px; margin: 18px auto 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 26px; }

/* Bühne mit Dashboard */
.stage { position: relative; margin-top: clamp(36px, 4vw, 48px); perspective: 1800px; }
.stage-glow {
  position: absolute; left: 8%; right: 8%; top: 12%; bottom: -6%; z-index: 0;
  background: radial-gradient(closest-side, rgba(59, 111, 182, .30), rgba(232, 145, 63, .14) 60%, transparent);
  filter: blur(40px);
}
.device {
  position: relative; z-index: 1; margin: 0;
  border-radius: 18px; overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(13, 30, 51, .10);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  will-change: transform;
}
.device-bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px;
  background: #f4f5f8; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d9dce3; }
.dots i:nth-child(1) { background: #f26b5b; }
.dots i:nth-child(2) { background: #f7bf4f; }
.dots i:nth-child(3) { background: #5cc466; }
.device-title { flex: 1; text-align: center; font-weight: 600; color: var(--ink-2); }
.device-meta { padding: 3px 9px; border-radius: 6px; background: #e3efe7; color: #1f7044; font-weight: 600; font-size: 12px; }

/* Dashboard-Nachbau */
.dash { padding: 18px; background: #f6f7fa; font-size: 13px; }
.dash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 12px; background: var(--navy-900); color: #fff;
}
.dash-h { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; }
.dash-sub { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.dash-select {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px;
  background: #fff; color: var(--navy-900); font-weight: 600; font-size: 13px;
}
.dash-select svg { width: 14px; height: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.kpi {
  padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}
.kpi p { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; margin: 4px 0 4px; font: 600 clamp(20px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; font-weight: 600; }
.pos { color: var(--green); }
.neg { color: var(--amber); }

.dash-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: 12px; }
.panel { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head p { font-weight: 600; font-size: 14px; color: var(--ink); }
.muted { color: var(--muted); font-size: 12px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.l-in::before { background: var(--blue) !important; }
.l-out::before { background: #4b5563 !important; }
.l-save::before { background: var(--green) !important; }

.linechart { width: 100%; height: 190px; overflow: visible; }
.linechart .grid path { stroke: rgba(17, 24, 39, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ln-in { stroke: var(--blue); }
.ln-out { stroke: #4b5563; }
.ln-save { stroke: var(--green); }
.pt { fill: #fff; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.months { display: flex; justify-content: space-between; padding: 6px 2% 0; font-size: 11px; color: var(--muted); }

.budget li { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.budget li:last-child { border-bottom: 0; }
.budget span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.budget b { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bar { position: relative; height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--amber); }
.bar i.ok { background: var(--green); }
.bar i.over { background: var(--red); }
.over-t { color: var(--red); }
.hint { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #eef4fb; color: var(--navy-800); font-size: 12.5px; }

/* Fakten unter dem Dashboard */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: clamp(40px, 5vw, 64px) 0 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 0 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 600 17px/1.3 var(--display); letter-spacing: -.01em; }
.facts span { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-ink); margin-bottom: 12px; letter-spacing: -.005em; }
.section h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.035em; }
.section-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.5; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13, 30, 51, .05), 0 22px 40px -20px rgba(13, 30, 51, .25); }
.tile h3 { font-size: 22px; letter-spacing: -.02em; }
.tile p { color: var(--ink-2); font-size: 16px; }
.viz { margin-bottom: 14px; min-height: 120px; }

.tile-wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: 40px; padding: 44px 0 0 48px; }
.tile-wide .tile-copy { align-self: center; padding-bottom: 44px; }
.tile-wide h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; margin-bottom: 14px; }
.tile-wide p { font-size: 18px; max-width: 40ch; }
.shot {
  align-self: end; border-radius: 14px 0 0 0; overflow: hidden;
  border: 1px solid var(--line-2); border-right: 0; border-bottom: 0;
  box-shadow: -20px -10px 50px -30px rgba(13, 30, 51, .35);
  max-height: 440px;
}
.shot img { width: 100%; height: auto; }

.viz-ampel { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.viz-ampel span { position: relative; height: 12px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.viz-ampel span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--amber); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.viz-ampel span.ok::after { background: var(--green); }
.viz-ampel span.warn::after { background: #e5b546; }
.viz-ampel span.over::after { background: var(--red); }
.js .reveal:not(.is-visible) .viz-ampel span::after { transform: scaleX(0); }

.viz-ring { position: relative; width: 120px; height: 120px; }
.viz-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.viz-ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: #eef0f4; }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: calc(301.6 - 301.6 * var(--p) / 100); transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.js .reveal:not(.is-visible) .ring-fg { stroke-dashoffset: 301.6; }
.viz-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 24px/1 var(--display); letter-spacing: -.02em; }

.viz-import, .viz-abos { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.viz-import div, .viz-abos div {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; background: #f6f7fa; border: 1px solid var(--line); font-size: 14px;
}
.viz-import span, .viz-abos span { font-weight: 600; }
.viz-import em { margin-left: auto; font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #e7eef8; color: var(--navy-800); }
.viz-import b, .viz-abos b { font-variant-numeric: tabular-nums; font-weight: 600; }
.viz-import b { min-width: 74px; text-align: right; }
.viz-abos b { margin-left: auto; }
.plus { color: var(--green); }

.tile-dark { background: var(--navy-900); border-color: var(--navy-900); }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: rgba(255, 255, 255, .72); }
.viz-lock { display: grid; place-items: center; width: 64px; height: 64px; min-height: 0; margin-bottom: auto; border-radius: 18px; background: rgba(232, 145, 63, .14); color: var(--accent); }
.viz-lock svg { width: 30px; height: 30px; }
.tile-dark .viz-lock { margin-bottom: 70px; }

.center-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.small-note { font-size: 14px; color: var(--muted); }

/* Dunkle Sektion */
.section-dark { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; left: 50%; top: -240px; width: 1100px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 111, 182, .35), transparent); pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .section-lead { color: rgba(255, 255, 255, .72); }
.section-dark .small-note { color: rgba(255, 255, 255, .55); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .10);
}
.service h3 { font-size: 22px; margin-bottom: 8px; }
.service p { color: rgba(255, 255, 255, .72); font-size: 16px; }
.svc-viz {
  position: relative; height: 150px; margin-bottom: 24px; padding: 16px; border-radius: 14px;
  background: rgba(8, 19, 31, .6); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden;
}
.svc-viz svg { width: 100%; height: 100%; }
.threshold { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 4 5; stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.liq { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.svc-label { position: absolute; left: 16px; top: 12px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.svc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-kpis div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.svc-kpis span { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); }
.svc-kpis b { font: 600 19px/1.2 var(--display); }
.svc-report { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.svc-report i { display: block; height: 9px; width: var(--w); border-radius: 99px; background: rgba(255, 255, 255, .16); }
.svc-report i.acc { background: var(--accent); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 32px 30px 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num { display: block; font: 600 48px/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 26px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* Über mich */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(420px 320px at 80% 10%, rgba(232, 145, 63, .35), transparent 70%),
    radial-gradient(380px 360px at 10% 90%, rgba(59, 111, 182, .45), transparent 70%),
    var(--navy-900);
  display: grid; place-items: center;
}
.portrait-initials { font: 600 clamp(96px, 14vw, 160px)/1 var(--display); letter-spacing: -.05em; color: rgba(255, 255, 255, .92); }
.portrait-badge {
  position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
}
.portrait-badge b { display: block; font: 600 17px/1.3 var(--display); }
.portrait-badge small { font-size: 14px; color: rgba(255, 255, 255, .75); }
.about-copy h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 22px; }
.about-copy p { color: var(--ink-2); font-size: 18px; margin-bottom: 14px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0 0; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.about-facts div { padding: 16px 18px; background: var(--surface); }
.about-facts dt { font-size: 13px; color: var(--muted); }
.about-facts dd { margin: 2px 0 0; font-weight: 600; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 19px/1.35 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }

/* Abschluss */
.cta-final { padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 32px; background: var(--navy-900); color: #fff;
}
.cta-card::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(closest-side at 30% 40%, rgba(232, 145, 63, .28), transparent), radial-gradient(closest-side at 75% 30%, rgba(59, 111, 182, .4), transparent);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-card > p { max-width: 600px; margin: 20px auto 0; color: rgba(255, 255, 255, .75); font-size: 18px; }
.cta-card .cta-mail { margin-top: 28px; font-size: 16px; }
.cta-mail a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.cta-card .cta-tip { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .5); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.footer-h { font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--ink); }
.site-footer .logo { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
/* einfacher Footer der Unterseiten */
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner ul { display: flex; gap: 20px; }

/* ---------- Unterseiten ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.035em; margin: 18px 0 32px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.015em; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal address { font-style: normal; }
.legal a:not(.btn) { color: var(--navy-800); text-underline-offset: 3px; }
.legal .eyebrow { margin-bottom: 0; }
.legal .lead { font-size: 19px; color: var(--ink-2); margin-bottom: 28px; }
.legal .btn-primary { background: var(--navy-900); color: #fff; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted) !important; text-decoration: none; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--ink) !important; }

/* ---------- Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .services .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .services .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .04s; }
.bento .reveal:nth-child(5) { transition-delay: .12s; }
.bento .reveal:nth-child(6) { transition-delay: .2s; }

.js .hero-copy > * { animation: rise 1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js .hero-copy > :nth-child(4) { animation-delay: .22s; }
.js .stage { animation: rise 1.2s var(--ease) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.ln-in, .ln-out, .ln-save { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.js .ln-in, .js .ln-out, .js .ln-save { animation: draw 1.8s var(--ease) .7s both; }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.js .bar i { animation: grow 1.2s var(--ease) .9s both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tile-wide { grid-template-columns: 1fr; padding: 36px 0 0 36px; gap: 28px; }
  .tile-wide .tile-copy { padding: 0 36px 0 0; }
  .shot { max-height: 380px; }
  .dash-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; padding: 8px 20px 24px;
    background: rgba(251, 251, 253, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 4px; font-size: 19px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn):hover { background: none; }
  .nav-cta { margin: 18px 0 0; width: 100%; min-height: 48px; font-size: 16px; }

  .bento, .services, .steps { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .services .service:last-child, .steps .step:last-child { grid-column: span 2; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; aspect-ratio: 5 / 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-ghost { border: 1px solid var(--line-2); }

  .stage { margin-top: 40px; }
  .device { border-radius: 14px; }
  .device-bar { height: 34px; }
  .device-meta { display: none; }
  .dash { padding: 10px; font-size: 12px; }
  .dash-head { padding: 12px 14px; }
  .dash-h { font-size: 15px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi span { font-size: 11px; }
  .dash-row { gap: 8px; margin-top: 8px; }
  .chart-panel .legend { display: none; }
  .linechart { height: 140px; }
  .budget li { grid-template-columns: 80px 1fr 40px; }

  .facts { grid-template-columns: 1fr; padding: 8px 0; row-gap: 0; }
  .facts li, .facts li:nth-child(3) { border-left: 0; padding: 14px 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }

  .bento, .services, .steps { grid-template-columns: 1fr; }
  .tile-wide, .services .service:last-child, .steps .step:last-child { grid-column: auto; }
  .tile { padding: 24px; }
  .tile-wide { padding: 28px 0 0 24px; }
  .tile-wide .tile-copy { padding-right: 24px; }
  .tile-wide p { font-size: 16px; }
  .tile-dark .viz-lock { margin-bottom: 40px; }
  .portrait { aspect-ratio: 1; }
  .about-facts { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .cta-card { border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

/* Feinschliff */
.chart-panel { display: flex; flex-direction: column; }
.chart-panel .linechart { flex: 1; min-height: 170px; height: auto; }
.tile-dark { grid-column: span 2; justify-content: flex-end; }
.tile-dark .viz-lock { margin-bottom: auto; }
.tile-dark h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 40px; }
.tile-dark p { max-width: 46ch; }
.svc-viz { height: 164px; }
.svc-kpis div { padding: 8px 12px; }
@media (max-width: 640px) {
  .tile-dark { grid-column: auto; }
  .chart-panel .linechart { min-height: 130px; }
}
.budget b { white-space: nowrap; }
@media (max-width: 640px) { .budget li { grid-template-columns: 76px 1fr 48px; gap: 8px; } }
.copy-btn { margin-left: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: rgba(255,255,255,.85); font: 600 13px/1.4 var(--font); cursor: pointer; }
.copy-btn:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.viz-rueck b { margin-left: auto; min-width: 0; white-space: nowrap; color: var(--green); }
