/* Trumpetstar Webinar – gemeinsames Design (Anmeldung + Raum) */
:root {
  --sky: #008CFD;
  --deep: #0068DB;
  --bright: #0087FA;
  --gradient: linear-gradient(180deg, #008CFD 0%, #0068DB 40%, #0087FA 100%);
  --gold: #F5A623;
  --gold-hover: #FFB838;
  --star: #FFD700;
  --red: #E74C3C;
  --green: #1E8E4E;
  --ink: #222222;
  --muted: #5c5f66;
  --line: #e4e8ef;
  --paper: #ffffff;
  --page: #eef3fa;
  --ice: #D5E8F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 40, 90, .10);
  --font: Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif;
  --fs: 17px;
}
html[data-size="l"] { --fs: 19px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.5;
  color: var(--ink); background: var(--page);
}
img { max-width: 100%; display: block; }
a { color: var(--deep); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 10px; padding: .95em 1.4em; font-weight: 700; font-size: 1.05em;
  text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-gold { background: var(--gold); color: #1d1d1f; box-shadow: 0 6px 18px rgba(245, 166, 35, .35); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-blue { background: var(--deep); color: #fff; }
.btn-blue:hover { background: #0058bb; }
.btn-ghost { background: transparent; color: var(--deep); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--deep); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn .arrow { font-size: 1.3em; line-height: 1; }

/* ---------- Header ---------- */
.topbar {
  background: var(--gradient); color: #fff;
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}
.topbar img.logo { height: 44px; width: auto; }
.topbar .title { font-weight: 700; font-size: 1.05em; line-height: 1.2; }
.topbar .title small { display: block; font-weight: 400; opacity: .85; font-size: .8em; }
.topbar .spacer { flex: 1; }
.chip-btn {
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 6px 12px; font-size: .85em;
}
.chip-btn[aria-pressed="true"] { background: #fff; color: var(--deep); }

/* ---------- Anmeldung ---------- */
.reg-hero { background: var(--gradient); color: #fff; padding: 28px 16px 120px; text-align: center; }
.reg-hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 4px 14px; font-size: .85em; letter-spacing: .02em;
}
.reg-hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 14px auto 10px; max-width: 760px; }
.reg-hero h1 .gold { color: var(--star); }
.reg-hero p.sub { margin: 0 auto; max-width: 640px; opacity: .95; font-size: 1.05em; }
.reg-wrap { max-width: 1040px; margin: -96px auto 0; padding: 0 16px 48px; display: grid; gap: 24px; grid-template-columns: 1.25fr 1fr; align-items: start; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.video-card { overflow: hidden; }
.ratio { position: relative; padding-top: 56.25%; background: #0b1a33; }
.ratio iframe, .ratio .ratio-inner { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.learn { padding: 20px 22px 24px; }
.learn h2 { font-size: 1.15em; margin: 0 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
.ticks li::before {
  content: "★"; color: var(--gold); font-size: 1.2em; line-height: 1.25;
}
.form-card { padding: 26px 24px 22px; position: sticky; top: 16px; }
.form-card h2 { margin: 0 0 4px; font-size: 1.35em; text-align: center; }
.form-card .meta { text-align: center; color: var(--muted); font-size: .92em; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92em; margin: 0 0 6px; }
.field input {
  width: 100%; font: inherit; font-size: 1.05em; padding: .85em .9em; border: 2px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus { border-color: var(--deep); outline: none; box-shadow: 0 0 0 4px rgba(0,104,219,.12); }
.field .hint { font-size: .88em; color: var(--muted); margin-top: 6px; }
.field .fix { margin-top: 8px; font-size: .92em; background: #fff8e8; border: 1px solid #f5d38f; border-radius: 8px; padding: 8px 10px; }
.field .fix button { background: none; border: 0; color: var(--deep); font-weight: 700; text-decoration: underline; padding: 0; }
.field.error input { border-color: var(--red); }
.field .err { color: #b3261e; font-size: .9em; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.promise { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin: 14px 0 6px; font-size: .9em; color: var(--muted); }
.promise span::before { content: "✓ "; color: var(--green); font-weight: 700; }
.legal { font-size: .78em; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.45; }
.host { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.host img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.host p { margin: 0; font-size: .93em; color: var(--muted); }
.host strong { color: var(--ink); }
.proof { max-width: 1040px; margin: 0 auto; padding: 0 16px 56px; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.proof .card { padding: 20px 22px; }
.proof h3 { color: var(--deep); margin: 0 0 6px; font-size: 1.05em; }
.proof p { margin: 0; color: var(--muted); font-size: .95em; }
.quote { font-style: italic; }
.reg-faq { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.reg-faq h2 { text-align: center; font-size: 1.3em; margin: 0 0 12px; }
.reg-faq .card { padding: 6px 22px 12px; }
.reg-cta { text-align: center; padding: 0 16px 48px; }
.foot { text-align: center; padding: 24px 16px 40px; color: var(--muted); font-size: .85em; }
.foot a { color: var(--muted); }

/* ---------- Raum ---------- */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; padding: 20px; max-width: 1500px; margin: 0 auto; }
.stage { min-width: 0; }
.player-shell { position: relative; background: #0b1a33; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player-shell .ratio { background: #0b1a33; }
.player-shell:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #000; }
.player-shell:fullscreen .ratio { padding-top: 0; flex: 1; }
.player-shell iframe { pointer-events: none; }
.start-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(5,20,45,.55), rgba(5,20,45,.75)), url("img/poster.jpg") center/cover;
  z-index: 5; padding: 16px;
}
.start-overlay .play {
  width: clamp(84px, 14vw, 128px); height: clamp(84px, 14vw, 128px); border-radius: 50%; border: 5px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.12); display: grid; place-items: center; margin: 0 auto 14px; transition: transform .2s ease;
}
.start-overlay button:hover .play { transform: scale(1.06); }
.start-overlay .play svg { width: 42%; height: 42%; margin-left: 8%; fill: #fff; }
.start-overlay button { background: none; border: 0; color: #fff; }
.start-overlay .big { font-size: clamp(20px, 3.4vw, 32px); font-weight: 800; letter-spacing: .02em; }
.start-overlay .small { opacity: .9; margin-top: 6px; font-size: .95em; }
.controls {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0f2342; color: #fff;
  flex-wrap: wrap;
}
.controls button {
  background: transparent; border: 0; color: #fff; min-width: 44px; height: 44px; border-radius: 8px;
  display: inline-grid; place-items: center; font-size: .9em; padding: 0 8px;
}
.controls button:hover { background: rgba(255,255,255,.12); }
.controls button[aria-pressed="true"] { background: rgba(255,255,255,.2); }
.controls svg { width: 22px; height: 22px; fill: #fff; }
.controls .time { font-variant-numeric: tabular-nums; font-size: .88em; opacity: .9; padding: 0 6px; white-space: nowrap; }
.controls .grow { flex: 1; }
.track { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,.18); flex: 1 1 200px; cursor: pointer; margin: 0 6px; }
.track .watched { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.28); border-radius: 6px; }
.track .played { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); border-radius: 6px; }
.track .tick { position: absolute; top: -3px; width: 2px; height: 16px; background: rgba(255,255,255,.55); }
.track .tick.star { background: var(--star); width: 3px; }
.track:focus-visible { outline-offset: 4px; }
.status-line { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; color: var(--muted); font-size: .92em; flex-wrap: wrap; }
.status-line .now { font-weight: 700; color: var(--ink); }
.stars { display: inline-flex; gap: 2px; font-size: 1.25em; letter-spacing: 1px; }
.stars .s { color: #c9d3e2; transition: color .4s ease, transform .4s ease; }
.stars .s.on { color: var(--gold); transform: scale(1.12); }

/* Einblendungen über dem Video */
.toast-star {
  position: absolute; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0;
  background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 18px 10px 12px; z-index: 6;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 10px; font-weight: 700;
  transition: opacity .35s ease, transform .35s ease; pointer-events: none; max-width: calc(100% - 24px);
}
.toast-star.show { opacity: 1; transform: translate(-50%, 0); }
.toast-star .big-star { font-size: 1.8em; color: var(--gold); line-height: 1; }
.overlay-card {
  position: absolute; right: 16px; bottom: 16px; width: min(420px, calc(100% - 32px)); z-index: 6;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; align-items: center;
  animation: slideIn .45s ease both;
}
.overlay-card img { width: 84px; border-radius: 8px; }
.overlay-card h4 { margin: 0 0 4px; font-size: 1em; }
.overlay-card p { margin: 0 0 10px; font-size: .88em; color: var(--muted); }
.overlay-card .btn { padding: .6em 1em; font-size: .95em; }
.overlay-card .close { position: absolute; top: 6px; right: 6px; background: none; border: 0; font-size: 1.3em; color: var(--muted); width: 36px; height: 36px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Seitenleiste */
.side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 110px); position: sticky; top: 20px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 14px 12px 12px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap; font-size: .95em;
}
.tabs button[aria-selected="true"] { color: var(--deep); border-bottom-color: var(--deep); }
.tabs .badge { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; font-size: .72em; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.panel { padding: 16px; overflow-y: auto; flex: 1; }
.panel[hidden] { display: none; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li button {
  width: 100%; display: grid; grid-template-columns: 56px 1fr 22px; gap: 8px; align-items: center; text-align: left;
  background: none; border: 0; padding: 9px 8px; border-radius: 8px; color: var(--ink); font-size: .93em;
}
.chapters li button:hover:not([disabled]) { background: #f3f7fd; }
.chapters li button[disabled] { color: #9aa3b2; cursor: default; }
.chapters li.current button { background: #e9f3ff; font-weight: 700; }
.chapters .t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9em; }
.chapters .mark { text-align: center; color: var(--gold); }
.panel h3 { margin: 4px 0 10px; font-size: 1.05em; }
.panel p.lead { color: var(--muted); margin: 0 0 14px; font-size: .93em; }
.ask textarea { width: 100%; min-height: 96px; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; resize: vertical; }
.ask textarea:focus { border-color: var(--deep); outline: none; }
.ask .row { display: flex; gap: 8px; align-items: center; margin-top: 10px; justify-content: space-between; flex-wrap: wrap; }
.ask .note { font-size: .82em; color: var(--muted); }
.qlist { margin-top: 16px; display: grid; gap: 10px; }
.qlist .q { background: #f3f7fd; border-radius: 10px; padding: 10px 12px; font-size: .92em; }
.qlist .q small { display: block; color: var(--green); margin-top: 4px; font-weight: 600; }
.ready { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ready label { display: flex; gap: 10px; align-items: center; background: #f6f9fd; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: .95em; }
.ready input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.choice { display: grid; gap: 8px; margin: 8px 0 16px; }
.choice button { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.choice button[aria-pressed="true"] { border-color: var(--deep); background: #eef6ff; font-weight: 700; }
.tipbox { background: #fff8e8; border: 1px solid #f5d38f; border-radius: 10px; padding: 12px 14px; font-size: .92em; margin: 0 0 14px; }
.tipbox strong { display: block; margin-bottom: 4px; }

/* Angebot */
.offer-hero { background: var(--gradient); color: #fff; border-radius: 12px; padding: 18px 16px; margin-bottom: 14px; }
.offer-hero .kicker { font-size: .8em; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.offer-hero h3 { color: #fff; margin: 4px 0 10px; font-size: 1.25em; }
.offer-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93em; }
.offer-hero li::before { content: "✔ "; color: var(--star); font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.price .now { font-size: 2em; font-weight: 800; color: var(--ink); }
.price .then { color: var(--muted); font-size: .92em; }
.benefit { display: inline-block; background: #e8f6ee; color: var(--green); font-weight: 700; border-radius: 8px; padding: 4px 10px; font-size: .9em; margin: 4px 0 12px; }
.facts { font-size: .86em; color: var(--muted); margin: 10px 0 0; }
.guarantee { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; margin: 14px 0; font-size: .9em; }
.guarantee .seal { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8em; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: .95em; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--deep); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 8px 0 0; color: var(--muted); font-size: .92em; }
.wa { display: flex; gap: 10px; align-items: center; background: #effaf3; border-radius: 10px; padding: 10px 12px; font-size: .9em; margin-top: 12px; }

/* Mobile Angebotsleiste */
.offer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.14);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px;
}
.offer-bar .txt { flex: 1; font-size: .88em; line-height: 1.3; }
.offer-bar .txt strong { display: block; font-size: 1.05em; }
.offer-bar .btn { padding: .75em 1em; white-space: nowrap; }

/* Banner (Bestätigung, Wiedereinstieg, Netz) */
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-size: .95em; }
.banner.ok { background: #e8f6ee; color: #135c33; }
.banner.info { background: #e9f3ff; color: #0b3f86; }
.banner.warn { background: #fff4e5; color: #7a4a00; }
.banner button { margin-left: auto; }
.banner[hidden] { display: none; }

/* Abschluss */
.finale { position: absolute; inset: 0; z-index: 7; background: rgba(5, 20, 45, .94); color: #fff; overflow-y: auto; display: grid; place-items: center; padding: 20px; }
.finale[hidden] { display: none; }
.finale .inner { max-width: 640px; text-align: center; }
.finale h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 8px 0; }
.finale .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.finale .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.finale .bigstars { font-size: 2.4em; color: var(--gold); letter-spacing: 6px; }

@media (max-width: 1080px) {
  .room { grid-template-columns: 1fr; padding: 0 0 90px; gap: 0; }
  .player-shell { border-radius: 0; }
  .status-line { padding: 0 16px; }
  .side { position: static; max-height: none; border-radius: 0; box-shadow: none; margin-top: 12px; }
  .offer-bar.on { display: flex; }
  /* Am Handy nicht übers Video legen, sondern darunter */
  .overlay-card { position: static; grid-template-columns: 60px 1fr; width: auto; margin: 0; border-radius: 0; box-shadow: none; padding: 12px 16px; gap: 12px; }
  .overlay-card img { width: 60px; }
  .overlay-card p { display: none; }
}
@media (max-width: 860px) {
  .reg-wrap { grid-template-columns: 1fr; margin-top: -90px; }
  .form-card { position: static; order: -1; }
  .proof { grid-template-columns: 1fr; }
  .reg-hero { padding-bottom: 110px; }
}
@media (max-width: 520px) {
  .topbar img.logo { height: 36px; }
  .topbar .title small { display: none; }
  .controls .hide-s { display: none; }
  .toast-star { font-size: .9em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
