:root {
  --ink: #0d0f14;
  --ink-2: #161a22;
  --panel: #1b2029;
  --panel-2: #222834;
  --line: #2c3340;
  --fog: #8b95a7;
  --cloud: #cfd6e2;
  --white: #f4f6fb;
  --amber: #38b0e6;        /* Radio-Lozärn-Blau (hell) */
  --amber-2: #1f93cd;      /* Radio-Lozärn-Blau (tief) */
  --brand-deep: #0f6f9e;   /* tiefster Blauton für Verläufe */
  --signal: #ff5d3b;       /* ON-AIR-Rot (Kontrastakzent) */
  --mint: #38e0a6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --maxw: 1140px;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

/* hidden-Attribut muss IMMER greifen – auch über .form{display:grid} / .btn{display:inline-flex} */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cloud);
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(255, 138, 43, 0.16), transparent 60%),
    radial-gradient(900px 520px at 8% 12%, rgba(56, 224, 166, 0.08), transparent 55%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--serif); color: var(--white); line-height: 1.05; margin: 0; font-weight: 600; }

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

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(13, 15, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--white); }
.brand__logo { height: 46px; width: auto; display: block; }
.brand__logo--sm { height: 34px; }
.brand__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--signal); align-self: center;
  box-shadow: 0 0 0 4px rgba(255, 93, 59, 0.18);
}
.brand__name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: -0.01em; }
.brand__name strong { color: var(--amber); font-weight: 700; }
.brand__sub { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fog); }
.brand--sm .brand__name { font-size: 1.05rem; }

.onair {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
  color: var(--signal); padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 93, 59, 0.4); background: rgba(255, 93, 59, 0.08);
}
.onair__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(38px, 7vw, 84px) 0 36px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-block; margin: 0 0 16px; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -0.02em; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--amber), var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-style: italic;
}
.lede { font-size: clamp(1.04rem, 1.6vw, 1.22rem); color: var(--cloud); max-width: 30ch; margin: 22px 0 24px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--cloud); font-size: 0.98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint);
  transform: rotate(-45deg);
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px);
}
.card__title { font-size: 1.5rem; margin-bottom: 4px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field__label { font-size: 0.82rem; font-weight: 500; color: var(--fog); letter-spacing: 0.01em; }
.req { color: var(--signal); margin-left: 2px; }
.opt { color: var(--fog); font-weight: 400; }

input, select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--white);
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #5d667a; }
input:focus, select:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 58, 0.16);
}
select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b95a7' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid transparent; padding: 14px 22px;
  text-decoration: none; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; position: relative;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(100deg, var(--amber), var(--amber-2)); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(31, 147, 205, 0.6);
}
.btn--primary:hover { box-shadow: 0 18px 38px -12px rgba(31, 147, 205, 0.8); }
.btn--ghost { background: var(--panel-2); color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--amber); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn__spinner { display: none; width: 17px; height: 17px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__hint { font-size: 0.8rem; color: var(--fog); margin: 2px 0 0; text-align: center; }
.form__error { color: var(--signal); font-size: 0.86rem; margin: 0; min-height: 1px; }

/* ---------- E-Mail-Gate (Schritt 2) ---------- */
.gate__back {
  align-self: flex-start; background: none; border: none; color: var(--amber);
  font-family: var(--sans); font-size: 0.9rem; cursor: pointer; padding: 0; margin-bottom: -4px;
}
.gate__back:hover { text-decoration: underline; }
.gate__lede { color: var(--cloud); font-size: 0.98rem; margin: 0 0 4px; }
.gate__lede strong { color: var(--white); }

/* ---------- Result / Player ---------- */
.result { padding: 8px 0 30px; }
.result .wrap { display: grid; gap: 22px; }

.player__head { margin-bottom: 20px; }
.player__kicker { margin: 0 0 4px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mint); }
.player__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.player__stage {
  display: flex; align-items: center; gap: 18px;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 18px;
}
.playbtn {
  flex: none; width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  border: none; background: linear-gradient(100deg, var(--amber), var(--brand-deep));
  display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(31, 147, 205, 0.75);
  transition: transform 0.12s;
}
.playbtn:hover { transform: scale(1.05); }
.playbtn__icon { width: 26px; height: 26px; fill: #fff; }
.playbtn__icon--pause { display: none; }
.playbtn.is-playing .playbtn__icon--play { display: none; }
.playbtn.is-playing .playbtn__icon--pause { display: block; }

.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 46px; overflow: hidden; }
.wave__bar { flex: 1; min-width: 2px; background: linear-gradient(180deg, var(--amber), var(--panel-2)); border-radius: 2px; height: 18%; transition: height 0.12s ease; opacity: 0.55; }
.wave.is-active .wave__bar { opacity: 1; }
.player__time { flex: none; font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--fog); min-width: 38px; text-align: right; }

.script { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); padding: 16px 18px; }
.script__label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fog); }
.script__text { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--white); margin: 8px 0 0; }

.player__mailed { color: var(--mint); font-weight: 500; font-size: 0.92rem; margin: 16px 0 0; }

.player__demo {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 180, 58, 0.06); border: 1px solid rgba(56, 176, 230, 0.28);
}
.player__demo-badge {
  display: inline-block; margin-bottom: 6px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber);
}
.player__demo p { margin: 0; font-size: 0.9rem; color: var(--cloud); line-height: 1.55; }
.player__demo strong { color: var(--white); }

.player__actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.player__actions .btn { flex: 1; min-width: 150px; }

/* ---------- Lead ---------- */
.lead { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.lead__copy h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 10px; }
.lead__copy p { color: var(--cloud); margin: 0; }
.lead__form { display: grid; gap: 13px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--fog); }
.checkbox input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--amber); }
.lead__success { color: var(--mint); font-weight: 500; margin: 4px 0 0; }

/* ---------- Steps ---------- */
.steps { padding: 40px 0 64px; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-align: center; margin-bottom: 34px; }
.steps__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step__num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, var(--amber), var(--amber-2)); margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--fog); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 24px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { color: var(--fog); text-decoration: none; font-size: 0.9rem; }
.footer__nav a:hover { color: var(--amber); }
.footer__ver { font-size: 0.78rem; color: #4a5365; font-variant-numeric: tabular-nums; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal__updated { color: var(--fog); font-size: 0.86rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; color: var(--white); margin: 30px 0 8px; }
.legal h3 { font-size: 1.02rem; color: var(--cloud); margin: 20px 0 6px; }
.legal p, .legal li { color: var(--cloud); font-size: 0.98rem; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--amber); }
.legal address { font-style: normal; color: var(--cloud); line-height: 1.7; }
.legal__back { display: inline-block; margin-bottom: 28px; color: var(--amber); text-decoration: none; font-size: 0.92rem; }
.legal__back:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { order: 1; }
  .generator { order: 2; }
  .lead { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .player__actions .btn { flex: 1 1 100%; }
  .topbar__inner { height: 56px; }
  .brand__sub { display: none; }
}
