/* DRAMARAMA companion site — design tokens mirror the app (src/theme). */

:root {
  --blue-deep: #0a1a6e;
  --blue-mid: #1a3a9e;
  --blue-dark: #0d2060;
  --gold: #fde68a;
  --gold-deep: #f59e0b;
  --gold-shadow: #b45309;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-faint: rgba(255, 255, 255, 0.7);
  --overlay: rgba(0, 0, 0, 0.2);
  --overlay-strong: rgba(0, 0, 0, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --accent-party: #22c55e;
  --accent-world: #ec4899;
  --accent-noah: #3b82f6;
  --accent-chaos: #a855f7;
  --accent-hyde: #14b8a6;
  --accent-rumble: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-mid) 40%, var(--blue-dark) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, .display { font-family: 'Fredoka One', 'Nunito', sans-serif; font-weight: 400; }

a { color: var(--gold); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.nav img { height: 56px; width: auto; }
.nav .links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--text-muted); text-decoration: none;
  font-weight: 700; font-size: 15px;
}
.nav a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero-stage {
  /* The AI key visual as the hero backdrop; gradient keeps the copy legible. */
  background:
    linear-gradient(100deg, rgba(10, 26, 110, 0.94) 0%, rgba(10, 26, 110, 0.82) 45%, rgba(13, 32, 96, 0.45) 100%),
    url('../assets/hero_keyvisual.jpg') center 30% / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero {
  display: flex; align-items: center; gap: 48px;
  padding: 48px 0 72px; flex-wrap: wrap;
}
.appicon {
  width: 58px; height: 58px; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.hero-copy { flex: 1 1 380px; }
.hero-copy h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.05;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.hero-copy h1 .gold { color: var(--gold); }
.hero-copy .claim {
  display: inline-block; margin-top: 18px;
  background: var(--overlay-strong); border-radius: 12px;
  padding: 10px 20px; font-weight: 800; font-size: 20px;
  letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-copy p.sub { margin-top: 18px; font-size: 18px; color: var(--text-muted); max-width: 46ch; }
.store-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.store-pill {
  display: inline-flex; flex-direction: column; line-height: 1.25;
  border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 14px;
  padding: 10px 22px; background: var(--overlay);
  text-decoration: none; color: var(--text);
}
.store-pill small { font-size: 12px; color: var(--text-faint); }
.store-pill strong { font-size: 17px; }
.hero-phones { flex: 1 1 340px; display: flex; justify-content: center; gap: 0; }
.hero-phones img { max-width: 100%; height: auto; }
.hero-phones .phone-a { width: 46%; transform: rotate(-6deg) translateY(12px); z-index: 2; }
.hero-phones .phone-b { width: 46%; transform: rotate(5deg) translateX(-8%); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(28px, 4vw, 40px); text-align: center; margin-bottom: 12px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
section .lead { text-align: center; color: var(--text-muted); max-width: 62ch; margin: 0 auto 40px; font-size: 17px; }

/* Steps — Einstein ponders next to the how-to on wide screens. */
.how-grid { position: relative; }
.how-grid .einstein {
  display: none;
  position: absolute; right: -12px; top: 40px;
  width: 190px; height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}
@media (min-width: 1180px) {
  .how-grid .einstein { display: block; }
  .how-grid .steps, .how-grid h2, .how-grid .lead { max-width: 880px; }
  /* Lead follows the same left column as h2/steps (no auto-centering — the
     steps would run under Einstein). */
  .how-grid .lead { margin-left: 0; margin-right: 0; }
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  background: var(--overlay); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center;
}
.step .num {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1f2937; font-family: 'Fredoka One', sans-serif; font-size: 24px;
  box-shadow: 0 5px 0 var(--gold-shadow); margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15.5px; }

/* Modes grid */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.mode { text-align: center; }
.mode img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); border: 4px solid var(--mode-accent, var(--gold));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.mode p { margin-top: 12px; font-weight: 700; color: var(--text-muted); font-size: 15.5px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--overlay); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.feature .ico { font-size: 26px; line-height: 1.2; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* Screens strip */
.screens { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.screens figure { width: min(240px, 42vw); text-align: center; }
.screens img { width: 100%; height: auto; }
.screens figcaption { color: var(--text-faint); font-size: 14px; margin-top: 4px; font-weight: 700; }

/* Detective peek above footer */
.peek { position: relative; margin-top: 40px; text-align: center; overflow: hidden; padding-top: 40px; }
.peek img { width: 190px; margin-bottom: -58px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4)); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 28px 0 40px; font-size: 14.5px; color: var(--text-faint);
}
footer .cols { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 24px 24px 80px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 24px 0 6px; text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
.legal .stand { color: var(--text-faint); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; text-align: left; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; font-family: 'Nunito', sans-serif; font-weight: 800; }
.legal p, .legal li { color: var(--text-muted); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.legal td { padding: 8px 12px 8px 0; vertical-align: top; color: var(--text-muted); }
.legal td:first-child { font-weight: 800; white-space: nowrap; color: var(--text); }
.draft {
  background: rgba(244, 63, 94, 0.16); border: 2px solid #f43f5e;
  border-radius: var(--radius-md); padding: 14px 18px; margin: 26px 0;
  font-weight: 700; color: #ffd7de;
}
.placeholder { background: rgba(253, 230, 138, 0.18); border-radius: 6px; padding: 0 6px; color: var(--gold); font-weight: 800; }

@media (max-width: 640px) {
  .hero { padding-top: 16px; }
  .hero-phones .phone-a { transform: rotate(-4deg); }
}

/* ---------- Print (PDF-Export für Kunden-Review) ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background-attachment: initial; }
  .nav .links a[href^="index"], .nav .links { display: none; }
  section, .legal h2 { break-inside: avoid; }
}
