:root {
  --bg: #F3EFE7;
  --ink: #1C2D4F;        /* Navy aus dem Logo */
  --ink-2: #5B6478;
  --gold: #B7961F;       /* Gold aus dem Logo */
  --card: #FFFFFF;
  --ring: 0 0 0 1px rgba(28, 45, 79, .08);
  --shadow: 0 8px 24px rgba(28, 45, 79, .10);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --r: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2 { text-wrap: balance; letter-spacing: -.02em; }
p { text-wrap: pretty; }

/* ---- Kopfleiste ---- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  padding-top: max(16px, env(safe-area-inset-top));
}
.bar.is-solid { background: var(--bg); box-shadow: 0 1px 0 rgba(28, 45, 79, .08); }
.bar.is-solid.on-white { background: #fff; }
.bar-logo img { display: block; height: 52px; width: auto; }
#kontakt { scroll-margin-top: 64px; }

/* ---- Knöpfe ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 200ms var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--ring), var(--shadow); }
.btn-icon-left { padding-left: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ---- Geschichte (angeheftete 3D-Bühne) ---- */
.story { height: 640vh; position: relative; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cap {
  position: absolute; z-index: 2;
  opacity: 0; transform: translateY(16px);
  pointer-events: none;
  transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in);
}
.cap.is-on {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.cap-hero { left: 32px; top: 50%; translate: 0 -50%; max-width: 560px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.cap-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; font-weight: 800; }
.row { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.hint svg { width: 18px; height: 18px; animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }

.cap-card {
  left: 32px; bottom: 32px; width: 380px;
  background: var(--card); border-radius: var(--r);
  padding: 24px; box-shadow: var(--ring), var(--shadow);
}
.step { font-size: 13px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.cap-card h2 { font-size: 28px; line-height: 1.15; font-weight: 800; margin-top: 4px; }
.cap-card p:not(.step) { margin-top: 8px; color: var(--ink-2); }

.swatches { display: flex; gap: 8px; margin-top: 16px; }
.sw {
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(28, 45, 79, .12);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.sw:active { transform: scale(.94); }
.sw.is-on { box-shadow: inset 0 0 0 1px rgba(28, 45, 79, .12), 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

.progress {
  position: absolute; right: 32px; top: 50%; translate: 0 -50%;
  width: 4px; height: 120px; border-radius: 4px; background: rgba(28, 45, 79, .12); overflow: hidden;
}
.progress i { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0); }

/* ---- Inhalt unten ---- */
.sec { padding: 96px 32px; }
.wrap { max-width: 960px; margin: 0 auto; }
.sec h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; font-weight: 800; }
.muted { color: var(--ink-2); margin-top: 8px; }

.list { list-style: none; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.list li { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; }
.list svg { width: 24px; height: 24px; color: var(--gold); flex: none; stroke-width: 2.5; }

.contact { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--r);
  background: var(--bg); box-shadow: var(--ring);
  transition: transform 200ms var(--ease-out);
}
.card:active { transform: scale(.98); }
.ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff;
  display: grid; place-items: center; margin-bottom: 24px;
}
.ico svg { width: 20px; height: 20px; }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.val { font-size: 17px; font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }

.foot { padding: 32px; font-size: 14px; color: var(--ink-2); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; }

/* ---- Handy ---- */
@media (max-width: 760px) {
  .bar { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .bar-logo img { height: 40px; }
  .bar .btn span { display: none; }
  .bar .btn { width: 44px; padding: 0; justify-content: center; }

  .cap-hero { left: 16px; right: 16px; top: auto; bottom: 32px; translate: none; }
  .cap-card { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 16px 24px 24px; }
  .cap-card h2 { font-size: 24px; }
  .progress { display: none; }
  .story { height: 460vh; }

  .sec { padding: 64px 16px; }
  .list { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 16px; }
  .card .ico { grid-row: span 2; margin: 0; }
  .card .val { margin-top: 0; }
  .foot { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hint svg { animation: none; }
  .cap, .cap.is-on { transition: none; }
}
