/* ==========================================================================
   DenkDa – Startseite, gehobene Bausteine
   Ergänzt style.css. Farben, Schrift und Maße folgen der DenkDa-CI:
   Navy #0f3557, Gold #d3a13c / #c08a2b, Schrift Lato.
   ========================================================================== */

:root {
  --text-3xl: clamp(1.95rem, 1.35rem + 2.2vw, 3.15rem);
  --hair: rgba(211, 161, 60, .38);
  --lux-ease: cubic-bezier(.22, 1, .28, 1);
}

/* ---------- feines Korn über dunklen Flächen ---------- */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- Held ---------- */
.hero--lux {
  position: relative; isolation: isolate;
  padding-block: clamp(var(--space-10), 5vw, 4.5rem) clamp(var(--space-10), 5vw, var(--space-20));
  background: #08182a;
  border-bottom: none;
}
.hero--lux .hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero--lux .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  opacity: .62; filter: saturate(.9) contrast(1.03);
}
.hero--lux .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(115% 85% at 8% 25%, rgba(8, 24, 42, .93), rgba(8, 24, 42, .74) 58%, rgba(8, 24, 42, .6)),
    linear-gradient(100deg, #08182a 4%, rgba(11, 38, 64, .7) 48%, rgba(8, 24, 42, .82));
}
.hero--lux .rings {
  right: -180px; top: -140px; width: 720px; height: 720px; opacity: .22; z-index: 1;
}
.hero--lux .wrap { z-index: 3; }
.hero-grid--lux {
  display: grid; grid-template-columns: 1.14fr .86fr;
  gap: clamp(var(--space-8), 5vw, 4.5rem); align-items: center;
}
.hero--lux h1 {
  font-size: var(--text-3xl); color: #fff; max-width: 24ch;
  line-height: 1.06; letter-spacing: -.025em;
}
.hero--lux h1 em { font-style: normal; color: var(--gold-bright); }

.kicker {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 900; letter-spacing: .2em;
  text-transform: uppercase; color: var(--on-navy-gold); margin: 0 0 var(--space-5);
}
.kicker::before {
  content: ""; width: 42px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--gold-bright), rgba(211, 161, 60, 0));
}
.hero--lux .sub {
  font-size: clamp(1.1rem, .98rem + .6vw, 1.45rem); color: var(--on-navy-gold);
  font-weight: 900; letter-spacing: -.01em; max-width: 30ch;
  margin: var(--space-5) 0 var(--space-4);
}
.hero--lux .sub::before {
  content: ""; display: block; width: 96px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), rgba(211, 161, 60, .1));
  margin-bottom: var(--space-4);
}
.hero--lux p.intro { color: #cadaea; max-width: 50ch; font-size: var(--text-base); }

.hero-meta {
  list-style: none; margin: var(--space-8) 0 0; padding: var(--space-5) 0 0;
  border-top: 1px solid rgba(211, 161, 60, .28);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
}
.hero-meta li {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #b9cadb; display: flex; align-items: center; gap: var(--space-2);
}
.hero-meta li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); flex: none;
}

/* Portrait im Held: Goldrahmen mit versetzter Linie */
.portrait--lux { position: relative; margin: 0; max-width: 420px; margin-inline-start: auto; }
.portrait--lux::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(211, 161, 60, .55); border-radius: 2px; z-index: 0;
}
.portrait--lux img {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 22%; border-radius: 2px;
  border: 1px solid rgba(211, 161, 60, .8);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .8);
}
.portrait--lux figcaption {
  position: relative; z-index: 1; margin-top: var(--space-4);
  font-size: var(--text-xs); color: #b9cadb; letter-spacing: .04em;
}
.portrait--lux figcaption b {
  display: block; color: #fff; font-size: var(--text-base); letter-spacing: -.01em; margin-bottom: 2px;
}

/* ---------- Kennzahlenband ---------- */
.statband { background: #0b2842; color: #e9f1f8; padding-block: var(--space-6); position: relative; }
.statband .row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
}
.statband .item { padding-left: var(--space-5); border-left: 1px solid rgba(211, 161, 60, .3); }
.statband .item:first-child { border-left: 0; padding-left: 0; }
.statband .k {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 900; color: var(--on-navy-gold); margin-bottom: 6px;
}
.statband .v { font-weight: 900; color: #fff; font-size: var(--text-sm); line-height: 1.35; }

/* ---------- Ornament als Abschnittstrenner ---------- */
.ornament { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), rgba(211, 161, 60, 0)); }
.ornament svg { width: 20px; height: 20px; color: var(--gold-bright); flex: none; }

/* ---------- Redaktioneller Zweispalter mit Bild ---------- */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(var(--space-8), 4.5vw, var(--space-16)); align-items: center; }
.split--flip { grid-template-columns: 1.08fr .92fr; }
.figure--edge { position: relative; margin: 0; }
.figure--edge .fr { position: relative; }
.figure--edge img {
  display: block; width: 100%; height: auto; border-radius: 2px;
  aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 0 30px 56px -32px rgba(15, 53, 87, .55);
}
.figure--edge .fr::before {
  content: ""; position: absolute; left: -14px; top: -14px; width: 88px; height: 88px;
  border-top: 2px solid var(--gold-bright); border-left: 2px solid var(--gold-bright);
}
.figure--edge .fr::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid rgba(192, 138, 43, .4); border-radius: 2px; z-index: -1;
}
.figure--edge .fr { z-index: 0; }
[data-theme="dark"] .figure--edge .fr::after { border-color: rgba(224, 178, 92, .45); }
.split--top { align-items: start; }
@media (min-width: 981px) {
  .figure--sticky { position: sticky; top: 96px; }
}
.figure--edge figcaption {
  margin-top: var(--space-4); font-size: var(--text-xs); color: var(--faint); letter-spacing: .04em;
}

/* ---------- Kurskarten, gehobene Fassung ---------- */
.kurse { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.kurs {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 3px;
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: 0 1px 2px rgba(15, 53, 87, .05);
  transition: transform .35s var(--lux-ease), box-shadow .35s var(--lux-ease), border-color .35s var(--lux-ease);
  overflow: hidden;
}
.kurs::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--navy));
  transform: scaleX(.34); transform-origin: left; transition: transform .45s var(--lux-ease);
}
.kurs:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -28px rgba(15, 53, 87, .5); border-color: var(--border); }
.kurs:hover::before { transform: scaleX(1); }
.kurs .no {
  font-size: var(--text-xs); font-weight: 900; letter-spacing: .16em; color: var(--gold);
}
.kurs h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-2); }
.kurs .role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; color: var(--faint); margin-bottom: var(--space-4); }
.kurs p { color: var(--muted); font-size: var(--text-sm); }
.kurs .foot {
  margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--border-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
}
.kurs .foot .price { font-weight: 900; color: var(--navy); font-size: var(--text-sm); }
.kurs .foot .price small { display: block; font-weight: 700; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.kurs .foot a { font-weight: 900; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.kurs .foot a::after { content: " →"; }
.kurs--feature {
  background: linear-gradient(165deg, #0e3252, #0a2137 70%);
  border-color: rgba(211, 161, 60, .45);
}
.kurs--feature::before { transform: scaleX(1); }
.kurs--feature h3 { color: #fff; }
.kurs--feature .no, .kurs--feature .foot .price { color: var(--on-navy-gold); }
.kurs--feature .role { color: rgba(211, 161, 60, .8); }
.kurs--feature p { color: #c6d7e6; }
.kurs--feature .foot { border-top-color: rgba(211, 161, 60, .3); }
.kurs--feature .foot .price small { color: #9fb4c7; }
.kurs--feature .foot a { color: var(--on-navy-gold); }
.kurs--feature .foot a:hover { color: #fff; }

/* ---------- Zitatband, vollflächig ---------- */
.quoteband {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
  background: #0a1f34; color: #fff; border-top: none;
}
.quoteband img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 55%; opacity: .38; z-index: 0;
}
.quoteband::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 24, 42, .82), rgba(8, 24, 42, .62) 45%, rgba(8, 24, 42, .9));
}
.quoteband .wrap { position: relative; z-index: 3; }
.quoteband blockquote {
  margin: 0; max-width: 30ch;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.35rem); font-weight: 400; font-style: italic;
  line-height: 1.28; letter-spacing: -.015em; color: #fff; text-wrap: balance;
}
.quoteband .mark { font-size: 3.4rem; line-height: .6; color: var(--gold-bright); display: block; margin-bottom: var(--space-4); }
.quoteband cite {
  display: block; margin-top: var(--space-6); font-style: normal;
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  font-weight: 900; color: var(--on-navy-gold);
}

/* ---------- Zwei Verweiskacheln ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.tile {
  display: block; text-decoration: none; border-radius: 3px;
  border: 1px solid var(--border); background: var(--surface-2);
  padding: var(--space-6); transition: .3s var(--lux-ease);
}
.tile:hover { border-color: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 24px 40px -26px rgba(15, 53, 87, .45); }
.tile .k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 900; color: var(--gold); }
.tile h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-lg); }
.tile p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.tile .go { display: inline-block; margin-top: var(--space-4); font-weight: 900; font-size: var(--text-sm); color: var(--gold); }
.tile .go::after { content: " →"; }

/* ---------- Abschluss ---------- */
.cta--lux { position: relative; overflow: hidden; isolation: isolate; border-radius: 3px; }
.cta--lux img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: 0; }
.cta--lux::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(8, 24, 42, .94), rgba(13, 47, 78, .8) 55%, rgba(8, 24, 42, .92));
}
.cta--lux > div { position: relative; z-index: 3; }
.cta--lux h2 { font-size: var(--text-2xl); color: #fff; max-width: 24ch; }
.cta--lux p { max-width: 52ch; }
.cta--lux .contact {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid rgba(211, 161, 60, .3);
  font-size: var(--text-sm); color: #c9d7e3;
}
.cta--lux .contact a { color: var(--on-navy-gold); text-decoration: none; font-weight: 700; }
.cta--lux .contact a:hover { color: #fff; }

/* ---------- Feinheiten ---------- */
.section-head h2 { font-size: var(--text-xl); }
.lede { font-size: var(--text-lg); color: var(--muted); max-width: 54ch; line-height: 1.5; }
.hairline { height: 1px; background: linear-gradient(90deg, var(--hair), rgba(211, 161, 60, 0)); margin-block: var(--space-8); }

@media (max-width: 980px) {
  .hero-grid--lux, .split, .split--flip { grid-template-columns: 1fr; }
  .portrait--lux { margin-inline: 0; max-width: 330px; }
  .statband .row { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .statband .item:nth-child(3) { border-left: 0; padding-left: 0; }
  .kurse { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .split--flip .figure--edge { order: -1; }
}
@media (max-width: 560px) {
  .statband .row { grid-template-columns: 1fr; }
  .statband .item { border-left: 0; padding-left: 0; padding-top: var(--space-3); border-top: 1px solid rgba(211,161,60,.22); }
  .statband .item:first-child { border-top: 0; padding-top: 0; }
  .figure--edge .fr::before { width: 54px; height: 54px; }
  .figure--edge .fr::after { inset: 10px -10px -10px 10px; }
}
