/* =====================================================================
   NEST Explore – gemeinsame Bausteine des Redesigns (Startseite und
   Terminkalender), damit Ablauf, Schulen, Kontakt und Ranking gleich
   aussehen. Die Startseite bringt dieselben Regeln in content/index.json
   selbst mit.
   Vorlagen (Mobbin): Wild und Zaro (Phasen-Zeitleiste), Charma und Fiasco
   (Kontakt mit Symbol-Kacheln und Ansprechpartner), Notion (Zahlen und
   Zitat).
   ===================================================================== */
:root {
  --nx-navy: #0F2145;
  --nx-gold: #EFA500;
  --nx-gold-hover: #ffb81f;
  --nx-gold-soft: rgba(239,165,0,0.14);
  --nx-text: #4b5563;
  --nx-muted: #6b7280;
  --nx-line: rgba(15,33,69,0.10);
  --nx-surface: #F4F6FA;
  --nx-radius: 20px;
  --nx-shadow: 0 1px 2px rgba(15,33,69,0.04), 0 12px 32px rgba(15,33,69,0.07);
}

/* ---------- Sektionen ---------- */
.nx-section { padding: clamp(72px, 9vw, 120px) 24px; background: #ffffff; color: var(--nx-navy); font-family: 'Jost', sans-serif; }
.nx-section *, .nx-cta-wrap *, .nx-stats * { box-sizing: border-box; }
.nx-surface { background: var(--nx-surface); }
.nx-inner { max-width: 1160px; margin: 0 auto; }

.nx-head { margin-bottom: clamp(40px, 5vw, 64px); }
.nx-head h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--nx-navy); text-wrap: balance; }
.nx-head p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--nx-text); max-width: 520px; }
.nx-head em { font-style: normal; padding: 0 0.06em; background: linear-gradient(transparent 60%, rgba(239,165,0,0.38) 60%, rgba(239,165,0,0.38) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nx-head h2 + p { margin-top: 16px; }
.nx-head--split h2 + p, .nx-head--split p { margin-top: 0; }
.nx-head--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.nx-head--center p { margin: 18px auto 0; }
.nx-head--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.nx-head--split p { padding-bottom: 6px; }

.nx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 13px 6px 11px; border-radius: 9999px; background: var(--nx-gold-soft); color: var(--nx-navy); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.3; text-transform: uppercase; }
.nx-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-gold); flex-shrink: 0; }

/* ---------- Buttons und Links ---------- */
.nx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nx-actions--center { justify-content: center; }
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 9999px; border: 1.5px solid transparent; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.nx-btn:hover { transform: translateY(-2px); }
.nx-btn:focus-visible, .nx-link:focus-visible { outline: 3px solid rgba(239,165,0,0.6); outline-offset: 3px; }
.nx-btn--gold { background: var(--nx-gold); color: var(--nx-navy); }
.nx-btn--gold:hover { background: var(--nx-gold-hover); color: var(--nx-navy); }
.nx-btn--navy { background: var(--nx-navy); color: #ffffff; }
.nx-btn--navy:hover { background: #1a3266; color: #ffffff; }
.nx-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.28); color: #ffffff; }
.nx-btn--ghost:hover { border-color: var(--nx-gold); color: var(--nx-gold); }
.nx-btn--line { background: #ffffff; border-color: var(--nx-line); color: var(--nx-navy); }
.nx-btn--line:hover { border-color: var(--nx-navy); }
.nx-link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 2px solid var(--nx-gold); color: var(--nx-navy); font-size: 16px; font-weight: 600; text-decoration: none; transition: gap 0.2s ease; }
.nx-link:hover { gap: 10px; }

/* ---------- Goldkante unter dunklen Heros + Kennzahlen ---------- */
.nx-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--nx-gold); clip-path: polygon(0 100%, 100% 35%, 100% 100%); pointer-events: none; z-index: 2; }
.nx-stats { background: var(--nx-gold); padding: 48px 24px 68px; font-family: 'Jost', sans-serif; }
.nx-stats-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.nx-stats-inner--4 { grid-template-columns: repeat(4, 1fr); }
.nx-stat { padding-top: 20px; border-top: 2px solid rgba(15,33,69,0.22); }
.nx-stat-num { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--nx-navy); }
.nx-stat-label { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: rgba(15,33,69,0.78); }

/* ---------- Karten mit Symbol (gleich hoch) ---------- */
.nx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nx-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--nx-radius); background: #ffffff; border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); }
.nx-surface .nx-card { box-shadow: none; }
.nx-card-ic { width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 22px; border-radius: 14px; background: var(--nx-gold-soft); color: var(--nx-navy); display: flex; align-items: center; justify-content: center; }
.nx-card-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nx-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--nx-navy); }
.nx-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--nx-text); }
.nx-card p b, .nx-card p strong { color: var(--nx-navy); font-weight: 600; }
.nx-card-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 22px; }
.nx-card-foot::before { content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--nx-gold); color: var(--nx-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.nx-card-foot span { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--nx-navy); }
.nx-card-foot-wrap { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--nx-line); }
.nx-card-foot-wrap .nx-card-foot { padding-top: 0; }
.nx-card-gap { margin-top: 22px; }

/* ---------- Schritte ---------- */
.nx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nx-step { display: flex; flex-direction: column; padding: 28px; border-radius: var(--nx-radius); background: #ffffff; border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); }
.nx-step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.nx-step-num { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--nx-navy); color: var(--nx-gold); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.nx-step-time { padding: 6px 12px; border-radius: 9999px; background: var(--nx-gold-soft); color: var(--nx-navy); font-size: 13px; font-weight: 600; text-align: right; }
.nx-step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--nx-navy); }
.nx-step p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--nx-text); }
.nx-step p b { color: var(--nx-navy); font-weight: 600; }
.nx-step-bar { margin-top: auto; padding-top: 28px; }
.nx-step-bar span { display: block; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--nx-gold) var(--p), rgba(15,33,69,0.08) var(--p)); }

/* ---------- Phasen-Zeitleiste (Wild / Zaro) ---------- */
.nx-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.nx-phase { position: relative; padding-top: 34px; }
.nx-phase::before { content: ''; position: absolute; top: 7px; left: 0; right: -24px; height: 2px; background: var(--nx-line); }
.nx-phase:last-child::before { right: 0; }
.nx-phase::after { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 4px; background: var(--nx-navy); }
.nx-phase--gold::after { background: var(--nx-gold); }
.nx-phase-label { display: block; margin-bottom: 10px; color: var(--nx-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nx-phase h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--nx-navy); }
.nx-phase p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--nx-text); }

/* ---------- Dunkle Sektion und Zitat ---------- */
.nx-dark { position: relative; overflow: hidden; background: var(--nx-navy); color: #ffffff; }
.nx-dark::before { content: ''; position: absolute; top: -220px; left: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(239,165,0,0.12), rgba(239,165,0,0) 70%); pointer-events: none; }
.nx-dark .nx-inner { position: relative; z-index: 1; }
.nx-dark .nx-eyebrow { background: rgba(239,165,0,0.16); color: #ffffff; }
.nx-dark .nx-head h2 { color: #ffffff; }
.nx-dark .nx-head h2 em { background: none; padding: 0; color: var(--nx-gold); }
.nx-dark .nx-head p { color: rgba(255,255,255,0.70); }
.nx-quote { max-width: 900px; margin: 0 auto; text-align: center; }
.nx-quote-mark { display: block; height: 40px; font-family: Georgia, 'Times New Roman', serif; font-size: 84px; line-height: 0.9; color: var(--nx-gold); }
.nx-quote blockquote { margin: 18px 0 22px; font-size: clamp(22px, 2.8vw, 32px); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: #ffffff; text-wrap: balance; }
.nx-quote blockquote em { font-style: normal; color: var(--nx-gold); }
.nx-quote cite { font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---------- CTA-Karte ---------- */
.nx-cta-wrap { padding: 0 24px clamp(72px, 9vw, 120px); background: #ffffff; font-family: 'Jost', sans-serif; }
.nx-cta-wrap--top { padding-top: clamp(72px, 9vw, 120px); }
.nx-cta { position: relative; overflow: hidden; max-width: 1160px; margin: 0 auto; padding: clamp(36px, 6vw, 72px); border-radius: 32px; background: var(--nx-navy); display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px 48px; align-items: end; }
.nx-cta::before { content: ''; position: absolute; right: -140px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(239,165,0,0.30), rgba(239,165,0,0) 68%); pointer-events: none; }
.nx-cta::after { content: ''; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 0 0 48px rgba(255,255,255,0.02); pointer-events: none; }
.nx-cta-text, .nx-cta-actions { position: relative; z-index: 1; }
.nx-cta .nx-eyebrow { background: rgba(239,165,0,0.16); color: #ffffff; }
.nx-cta h2 { margin: 0; max-width: 640px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: #ffffff; text-wrap: balance; }
.nx-cta h2 em { font-style: normal; color: var(--nx-gold); }
.nx-cta p { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.72); }

/* ---------- Einblenden beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .nx-reveal { animation: nx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes nx-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nx-head--split { grid-template-columns: 1fr; align-items: start; }
  .nx-cards, .nx-steps { grid-template-columns: 1fr; max-width: 640px; }
  .nx-cards--2 { grid-template-columns: 1fr; }
  .nx-phases { grid-template-columns: 1fr; gap: 32px; }
  .nx-phase::before { display: none; }
  .nx-cta { grid-template-columns: 1fr; align-items: start; }
  .nx-stats-inner--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nx-section { padding-left: 20px; padding-right: 20px; }
  .nx-stats-inner { grid-template-columns: 1fr; gap: 20px; }
  .nx-stats-inner--4 { grid-template-columns: repeat(2, 1fr); }
  .nx-cta-wrap { padding-left: 20px; padding-right: 20px; }
  .nx-cta { border-radius: 24px; }
  .nx-cta-actions .nx-btn { flex: 1 1 auto; }
  .nx-edge { height: 44px; }
}
