/* ============================================================
   k-AIzen v2 — Politur-Layer (Dark: Charcoal & Ember)
   Rhythmus · Bewegung · Feinschliff. Lädt NACH kz-v2.css.
   ============================================================ */

/* ---------- HERO: Glutbett im Charcoal (atmet langsam) ----------
   Auf Dunkel darf der Grund arbeiten: zwei Ember-Herde und ein
   kühler Teal-Gegenpol, tief unter dem Text. */
.kz-hero {
  background:
    radial-gradient(90% 60% at 12% 108%, rgba(232, 90, 43, 0.20), transparent 60%),
    radial-gradient(70% 55% at 88% -10%, rgba(255, 122, 69, 0.10), transparent 55%),
    radial-gradient(50% 40% at 70% 90%, rgba(69, 191, 198, 0.05), transparent 70%),
    var(--paper);
}
.kz-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 38% at 24% 78%, rgba(232, 90, 43, 0.16), transparent 70%),
    radial-gradient(30% 30% at 74% 30%, rgba(255, 122, 69, 0.08), transparent 70%);
  filter: blur(48px);
  animation: kz-aurora 22s ease-in-out infinite alternate;
}
@keyframes kz-aurora {
  0%   { opacity: 0.66; }
  50%  { opacity: 1; }
  100% { opacity: 0.78; }
}
/* Sakura-Zweig als große, leise Form oben rechts — die hellen
   botanischen Icons tragen auf Charcoal von selbst. */
.kz-hero::after {
  content: '';
  position: absolute;
  top: 64px; right: -70px;
  width: clamp(260px, 32vw, 480px);
  aspect-ratio: 480 / 470;
  background: url('/icons/icon-sakura-branch.png') no-repeat center / contain;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .kz-hero::after { top: 88px; right: -90px; width: 240px; opacity: 0.10; }
}
@media (prefers-reduced-motion: reduce) { .kz-hero::before { animation: none; } }

/* ---------- Sektions-Rhythmus: Glut-Naht zwischen dunklen Sektionen ---------- */
.kz-section + .kz-section:not([style*="background"])::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.55;
}

/* ---------- Eyebrow mit Akzent-Linie davor (Alt-Klasse, ungenutzt) ---------- */
.kz-eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.kz-eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  border-radius: 2px;
}

/* ---------- Karten: Lichtkante, die beim Hover aufglüht ----------
   (1px statt 3px — farbige Kanten über 1px sind gebannt) */
.kz-feat, .kz-split-card, .kz-step {
  position: relative; overflow: hidden;
}
.kz-feat::after, .kz-step::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--indigo), var(--violet));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.kz-feat:hover::after, .kz-step:hover::after { transform: scaleY(1); }

/* Feat-Karten: Icon-Diamant größer + glow on hover */
.kz-feat span { transition: transform 0.3s var(--ease-out), filter 0.3s; display:inline-block; }
.kz-feat:hover span { transform: scale(1.25) rotate(45deg); filter: drop-shadow(0 0 8px var(--glow)); }

/* ---------- Zahlen-Band (Rhythmus + Beweis-Gefühl) ----------
   Solide Glut statt Verlaufs-Text (craft-floor: background-clip
   ist gebannt; der Verlauf gehört nur dem Logo-„AI"). */
.kz-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding-block: clamp(48px, 8vw, 88px);
  border-block: 1px solid var(--line-soft);
  background: radial-gradient(60% 120% at 50% 50%, rgba(232, 90, 43, 0.06), transparent 70%);
}
.kz-stat { text-align: center; }
.kz-stat__num {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 44px rgba(255, 122, 69, 0.30);
}
.kz-stat__label { margin-top: 12px; color: var(--slate); font-size: 0.98rem; }
@media (max-width: 640px){ .kz-stats { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Groß-Zitat-Sektion (Rhythmus-Bruch, ruhiger Moment) ---------- */
.kz-quote {
  text-align: center;
  padding-block: clamp(72px, 12vw, 140px);
  position: relative;
}
.kz-quote__mark {
  font-size: clamp(4rem, 10vw, 8rem); line-height: 1; font-weight: 800;
  color: var(--indigo); opacity: 0.30; display: block; margin-bottom: 36px;
  font-family: Georgia, serif;
}
.kz-quote blockquote {
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.25; max-width: 20ch;
  margin: 0 auto; color: var(--ink);
}
.kz-quote cite { display: block; margin-top: 28px; font-style: normal; color: var(--slate); font-size: 1rem; }

/* ---------- Hero-Headline: Akzent-Wort glüht sanft nach ---------- */
.kz-h1 .accent { text-shadow: 0 0 38px rgba(255, 122, 69, 0.40); }

/* ---------- Scroll-getriebene Progress-Linie oben ---------- */
.kz-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- Buttons: subtiler Shine-Sweep beim Hover ---------- */
.kz-btn--primary { position: relative; overflow: hidden; }
.kz-btn--primary::before {
  content: ''; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,244,235,0.35), transparent);
  transform: translateX(-220%) skewX(-20deg); transition: transform 0.6s var(--ease-out);
}
.kz-btn--primary:hover::before { transform: translateX(240%) skewX(-20deg); }

/* ---------- Feinschliff: weichere Sektions-Luft, bessere Lead-Lesbarkeit ---------- */
.kz-lead { line-height: 1.7; }
.kz-h2 { line-height: 1.06; }

/* ---------- Feinschliff: Hero-Grid subtiler ---------- */
.kz-hero__grid { opacity: 0.34; }

/* ---------- Nav-Brand: Hover hebt das Logo leicht ---------- */
.kz-nav__brand { transition: opacity 0.2s; }
.kz-nav__brand:hover { opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .kz-btn--primary::before { display: none; }
  .kz-hero::before { animation: none; }
}

/* ============================================================
   EIN TAG MIT LENA — vertikale Timeline
   (derzeit auf keiner Seite eingebunden; auf Dunkel nachgezogen,
   damit sie beim Reaktivieren nicht hell aufreißt)
   ============================================================ */
.kz-day { position: relative; }
.kz-day__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--line), var(--indigo) 12%, var(--indigo) 88%, var(--line));
  opacity: 0.4;
}
.kz-scene {
  position: relative;
  display: grid; grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  margin-block: clamp(56px, 8vw, 110px);
}
.kz-scene__dot {
  grid-column: 2; justify-self: center; align-self: start;
  margin-top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--indigo);
  box-shadow: 0 0 0 6px var(--indigo-wash);
  z-index: 2; position: relative;
}
/* Zeit-Label: eigene volle Reihe ÜBER der Szene, mittig auf der Linie sitzend */
.kz-scene__time {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--indigo-deep);
  background: var(--card); padding: 6px 18px; border-radius: 999px;
  border: 1px solid rgba(232,90,43,0.28);
  box-shadow: 0 0 0 10px var(--paper);
  margin-bottom: 28px;
}
.kz-scene__timewrap {
  grid-column: 1 / -1; text-align: center; position: relative; z-index: 3;
}
/* media (image) side */
.kz-scene__media {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/10;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out);
}
.kz-scene__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kz-scene__media:hover { transform: translateY(-4px) scale(1.01); }
/* text side */
.kz-scene__body { }
.kz-scene__spoken {
  font-style: italic; font-size: 1.05rem; color: var(--ink);
  border-left: 1px solid var(--indigo);
  background: linear-gradient(90deg, rgba(232,90,43,0.08), transparent 70%);
  padding: 8px 0 8px 16px; margin-bottom: 14px;
  line-height: 1.5;
}
.kz-scene__result { color: var(--slate); line-height: 1.65; font-size: 1.02rem; }
.kz-scene__mechanic {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(232,90,43,0.22);
  border-radius: var(--radius-lg);
  background: rgba(232,90,43,0.07);
  text-align: left;
}
.kz-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kz-source-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--indigo-deep);
}
.kz-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kz-source-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(232,90,43,0.22);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}
.kz-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.kz-flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 240, 225, 0.04);
  border: 1px solid rgba(255, 240, 225, 0.08);
  color: var(--slate);
  font-size: 0.84rem;
  line-height: 1.25;
}
.kz-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--indigo);
  opacity: 0.45;
}
.kz-flow__num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
/* left/right placement */
.kz-scene--left  .kz-scene__media { grid-column: 1; }
.kz-scene--left  .kz-scene__body  { grid-column: 3; text-align: left; }
.kz-scene--right .kz-scene__body  { grid-column: 1; text-align: right; }
.kz-scene--right .kz-scene__media { grid-column: 3; }
.kz-scene--right .kz-scene__spoken { border-left: none; border-right: 1px solid var(--indigo); background: linear-gradient(-90deg, rgba(232,90,43,0.08), transparent 70%); padding-left: 0; padding-right: 16px; }
/* discord mock card */
.kz-discord {
  margin-top: 16px; background: #2b2d31; color: #dbdee1;
  border-radius: 12px; padding: 14px 16px; font-size: 0.86rem; line-height: 1.5;
  box-shadow: var(--shadow-md); text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
}
.kz-discord__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #949ba4; font-size: 0.78rem; font-family: var(--font-mono); }
.kz-discord__head .ch { color: #f2a365; font-weight: 600; }
.kz-discord__head.alert .ch { color: #f23f43; }
.kz-discord__body { white-space: pre-wrap; }
.kz-discord__body strong { color: #fff; }

@media (max-width: 820px){
  .kz-scene { grid-template-columns: 28px 1fr; gap: 0 16px; margin-block: 44px; }
  .kz-day__line { left: 14px; }
  .kz-scene__timewrap { grid-column: 2; text-align: left; }
  .kz-scene__dot { grid-column: 1; justify-self: center; margin-top: 4px; }
  .kz-scene--left .kz-scene__media, .kz-scene--right .kz-scene__media,
  .kz-scene--left .kz-scene__body, .kz-scene--right .kz-scene__body { grid-column: 2; text-align: left; }
  .kz-scene--right .kz-scene__spoken { border-right:none; border-left:1px solid var(--indigo); background: linear-gradient(90deg, rgba(232,90,43,0.08), transparent 70%); padding-right:0; padding-left:16px; }
  .kz-scene__media { margin-bottom: 16px; }
  .kz-flow { grid-template-columns: 1fr; }
  .kz-flow__step:not(:last-child)::after {
    left: 20px;
    right: auto;
    top: auto;
    bottom: -8px;
    width: 1px;
    height: 8px;
  }
}
