/* DenkDa – Website in der Hausschrift und den Hausfarben */

:root {
  /* Type */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.075rem, 0.98rem + 0.55vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  --text-2xl: clamp(1.85rem, 1.2rem + 2vw, 2.9rem);

  /* Space */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  --radius: 6px;
  --measure: 62ch;
  --maxw: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root, [data-theme="light"] {
  --bg: #fdfbf6;
  --surface: #ffffff;
  --surface-2: #fbeed4;
  --surface-3: #e8f0f8;
  --border: #e0d3ba;
  --border-soft: #dde6ef;
  --navy: #0f3557;
  --navy-deep: #0b2842;
  --text: #22303c;
  --muted: #4a5865;
  --faint: #8797a4;
  --gold: #c08a2b;
  --gold-bright: #d3a13c;
  --on-navy: #eef3f8;
  --on-navy-gold: #f0c975;
  --shadow: 0 1px 2px rgba(15, 53, 87, .05), 0 8px 24px -12px rgba(15, 53, 87, .12);
}

[data-theme="dark"] {
  --bg: #0d1a27;
  --surface: #132635;
  --surface-2: #1b2b33;
  --surface-3: #14263a;
  --border: #2c4256;
  --border-soft: #24384a;
  --navy: #cfe0ee;
  --navy-deep: #0a1521;
  --text: #dde7ef;
  --muted: #a9bac7;
  --faint: #7c8e9c;
  --gold: #e0b25c;
  --gold-bright: #edc275;
  --on-navy: #eef3f8;
  --on-navy-gold: #f0c975;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  border-top: 4px solid var(--gold-bright);
  color: var(--text);
  font-family: Lato, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 900;
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-base); }
p  { margin: 0 0 var(--space-3); max-width: var(--measure); }
a  { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
[data-theme="dark"] a:hover { color: var(--gold-bright); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-6); }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 var(--space-3);
}
.rule { width: 74px; height: 4px; background: linear-gradient(90deg, var(--gold-bright), var(--navy)); margin: var(--space-3) 0 var(--space-4); border-radius: 3px; }
.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .3s var(--ease);
}
.header--scrolled { box-shadow: 0 1px 12px rgba(15, 53, 87, .07); }
.header .wrap { display: flex; align-items: center; gap: var(--space-6); min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--navy); }
.logo svg { width: 26px; height: 26px; flex: none; color: var(--gold-bright); }
.logo b { font-size: 1.22rem; font-weight: 900; letter-spacing: -.02em; text-transform: none; }
.logo b i { color: var(--gold-bright); font-style: normal; }
.logo b + span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); display: block; font-weight: 700; margin-top: -3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-5); }
.nav a {
  font-size: var(--text-sm); font-weight: 700; color: var(--muted);
  text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-color: var(--gold-bright); }

.tools { display: flex; align-items: center; gap: var(--space-3); margin-left: var(--space-2); }
.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted);
}
.iconbtn:hover { color: var(--navy); border-color: var(--gold-bright); }
.iconbtn svg { width: 17px; height: 17px; }
.navtoggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-2) var(--space-6) var(--space-6); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--border-soft); color: var(--gold); }
  .navtoggle { display: grid; }
  .header .wrap { gap: var(--space-3); }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-block; font-size: var(--text-sm); font-weight: 900;
  letter-spacing: .01em; text-decoration: none; border-radius: var(--radius);
  padding: 13px 24px; transition: .2s var(--ease); border: 1px solid transparent;
}
.btn--primary { background: var(--navy-deep); color: var(--on-navy-gold); }
.btn--primary:hover { background: #0f3557; color: #fff; transform: translateY(-1px); }
[data-theme="dark"] .btn--primary { background: var(--gold); color: #10202e; }
[data-theme="dark"] .btn--primary:hover { background: var(--gold-bright); color: #10202e; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(var(--space-10), 4.4vw, var(--space-16)); }
section + section { border-top: 1px solid var(--border-soft); }
.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.tint { background: linear-gradient(180deg, var(--surface-3), color-mix(in srgb, var(--surface-3) 55%, var(--bg))); }
.tint-warm { background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 45%, var(--bg))); }

/* ---------- Held ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  background: linear-gradient(125deg, #0a2338 0%, #124370 52%, #0d3253 100%);
  color: #e9f1f8;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: center; }
.hero h1 { font-size: var(--text-2xl); max-width: 19ch; color: #fff; }
.hero .eyebrow { color: var(--on-navy-gold); }
.hero .sub { font-size: var(--text-lg); color: var(--on-navy-gold); font-weight: 900; margin: var(--space-3) 0 var(--space-4); max-width: 34ch; }
.hero p { color: #c8d9e8; max-width: 54ch; }
.hero .btns { margin-top: var(--space-5); }
.hero .btn--primary { background: var(--gold-bright); color: #0b2842; }
.hero .btn--primary:hover { background: #fff; color: #0b2842; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { border-color: var(--on-navy-gold); color: var(--on-navy-gold); }
.rings { position: absolute; right: -160px; top: -90px; width: 620px; height: 620px; color: var(--gold-bright); opacity: .3; pointer-events: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rings { right: -230px; top: auto; bottom: -240px; width: 460px; height: 460px; opacity: .2; }
}

/* ---------- Portrait ---------- */
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: var(--radius);
}
.portrait--hero img {
  aspect-ratio: 4 / 5;
  border: 5px solid var(--gold-bright);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, .6);
}
.portrait--hero figcaption {
  margin-top: var(--space-3); font-size: var(--text-xs); color: #c8d9e8;
}
.portrait--hero figcaption b { display: block; color: #fff; font-size: var(--text-sm); }
.portrait--side img {
  aspect-ratio: 5 / 4;
  border-left: 4px solid var(--gold-bright);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) { .portrait--hero { max-width: 340px; } }

.pagehead {
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
  background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 20%, var(--bg)));
  border-bottom: 1px solid var(--border);
}
.pagehead h1 { font-size: var(--text-2xl); max-width: 24ch; }
.pagehead .lead { max-width: 62ch; }

/* ---------- Raster und Karten ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-top: 4px solid var(--gold-bright); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(15, 53, 87, .45); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { color: var(--muted); font-size: var(--text-sm); }
.card .price { font-weight: 900; color: var(--gold); font-size: var(--text-sm); letter-spacing: .02em; }
.card .more { margin-top: auto; padding-top: var(--space-4); font-size: var(--text-sm); font-weight: 900; text-decoration: none; }
.card .more::after { content: " →"; }
.card--feature { border-top-width: 4px; border-top-color: var(--navy); background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 40%, var(--surface))); }
[data-theme="dark"] .card--feature { background: var(--surface-2); }
.card .tag {
  align-self: flex-start; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 900; color: #0b2842; background: var(--gold-bright);
  padding: 3px 9px; border-radius: 999px; margin-bottom: var(--space-3);
}
.card--feature .tag { background: var(--navy); color: #fff; }
[data-theme="dark"] .card--feature .tag { color: #0b2842; background: var(--gold-bright); }

.fact { border: 1px solid var(--border-soft); border-top: 3px solid var(--gold-bright); border-radius: var(--radius); padding: var(--space-4); background: var(--surface); }
.fact .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; color: var(--gold); }
.fact .v { font-weight: 900; color: var(--navy); margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.4; }

/* ---------- Listen ---------- */
.nums { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.nums li {
  counter-increment: n; position: relative; padding: 0 0 var(--space-4) 44px;
  max-width: var(--measure); color: var(--muted);
}
.nums li::before {
  content: counter(n); position: absolute; left: 0; top: 1px;
  width: 27px; height: 27px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-bright), var(--navy));
  color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center;
}
[data-theme="dark"] .nums li::before { color: #fff; }
.nums strong { color: var(--navy); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0 0 var(--space-3) 26px; color: var(--muted); max-width: var(--measure); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--gold-bright);
}

.panel { border: 1px solid var(--border-soft); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: var(--space-5); background: var(--surface-3); }
.panel--warm { border-left-color: var(--gold-bright); background: var(--surface-2); }
.panel h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }
.panel ul { margin: 0; }

.quote {
  border-left: 4px solid var(--gold-bright); background: var(--surface-2);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius);
}
.quote p { font-size: var(--text-lg); font-weight: 700; color: var(--navy); margin: 0; max-width: 46ch; }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--text-sm); }
thead th {
  background: linear-gradient(100deg, var(--navy-deep), #17507f); color: var(--on-navy); text-align: left;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: var(--space-4) var(--space-5); font-weight: 900;
}
tbody td { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-soft); color: var(--muted); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--surface-3); }
td.name { color: var(--navy); font-weight: 900; }
td.price { color: var(--gold); font-weight: 900; white-space: nowrap; }

/* ---------- Zeitstrahl ---------- */
.steps { border-left: 2px solid var(--gold-bright); padding-left: var(--space-6); margin-top: var(--space-6); }
.step { position: relative; padding-bottom: var(--space-5); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: calc(var(--space-6) * -1 - 7px); top: 7px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 0 4px var(--bg);
}
.step .t { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 900; color: var(--gold); }
.step h3 { margin: var(--space-2) 0 var(--space-2); font-size: var(--text-base); }
.step p { color: var(--muted); font-size: var(--text-sm); margin: 0; }

/* ---------- Fragen ---------- */
.faq { border-top: 1px solid var(--border-soft); margin-top: var(--space-8); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-5) 40px var(--space-5) 0;
  font-weight: 900; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: var(--text-sm); padding-bottom: var(--space-5); margin: 0; }

/* ---------- Aufruf ---------- */
.cta {
  background: linear-gradient(120deg, #0a2338, #14487a 60%, #0f3557);
  color: var(--on-navy); border-radius: var(--radius);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  border-bottom: 4px solid var(--gold-bright);
}
.cta .eyebrow { color: var(--on-navy-gold); }
.cta h2 { color: #fff; font-size: var(--text-xl); }
.cta p { color: #c9d7e3; margin-top: var(--space-4); }
.cta .btn--primary { background: var(--on-navy-gold); color: #10202e; }
.cta .btn--primary:hover { background: #fff; color: #10202e; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn--ghost:hover { border-color: var(--on-navy-gold); color: var(--on-navy-gold); }

/* ---------- Fuß ---------- */
.footer { border-top: 4px solid var(--gold-bright); padding-block: var(--space-10) var(--space-6); background: var(--surface-3); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr; gap: var(--space-6); } }
.footer h4 { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); }
.footer a { color: var(--muted); text-decoration: none; font-size: var(--text-sm); display: block; margin-bottom: var(--space-2); }
.footer a:hover { color: var(--navy); }
.footer p { font-size: var(--text-sm); color: var(--muted); }
.legal { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border-soft); font-size: var(--text-xs); color: var(--faint); display: flex; flex-wrap: wrap; gap: var(--space-5); }
.legal p { font-size: var(--text-xs); color: var(--faint); margin: 0; }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy-deep); color: #fff;
  padding: var(--space-3) var(--space-5); z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }
