/* ============================================================
   SB Media – Erstgespräch (Pitchdeck)
   Slides are authored at 1920×1080 and scaled to fit the stage.
   ============================================================ */

:root {
  /* brand */
  --navy: #0c1a32;
  --navy-glow: #1b4590;
  --blue: #1c6fd4;
  --blue-mid: #296cd8;
  --blue-deep: #1034b1;
  --blue-ink: #0b2466;
  --sky: #9dd0ff;
  --white: #f7f9fc;
  --mist: #b8c3d6;          /* muted text on dark slides */

  /* light surfaces */
  --paper: #f5f8fc;
  --card: #fbfcfe;
  --line: #dee4ed;
  --tint: #e6f0fc;
  --tint-strong: #eef4fd;
  --bar: #e7ecf3;

  /* text on light slides */
  --ink: #050505;
  --ink-2: #4a4f5a;
  --ink-3: #565d6a;

  --font-body: Inter, Arial, sans-serif;
  --font-head: Manrope, Arial, sans-serif;
  --gradient-blue: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-deep) 100%);

  /* presenter UI (left column, notes) */
  --ui-bg: #0f172a;
  --ui-line: #1e293b;
  --ui-raised: #334155;
  --ui-hover: #475569;
  --ui-text: #cbd5e1;
  --ui-muted: #94a3b8;
  --ui-dim: #64748b;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #0a0f1a; overflow: hidden; }
body { font-family: var(--font-body); color: var(--ink); display: flex; flex-direction: row; }
img { display: block; object-fit: cover; }
ul, ol { list-style: none; }
a { color: inherit; }

* { scrollbar-width: thin; scrollbar-color: var(--ui-raised) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ui-raised); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ui-hover); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- stage & deck ---------- */
#stage { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#deck { position: relative; width: 1920px; height: 1080px; flex: none; transform-origin: center center; }
#deck > .slide { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
#deck > .slide.active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { #deck > .slide { transition: none !important; } }

/* ============================================================
   Slides – shared
   ============================================================ */
.slide {
  position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden;
  font-family: var(--font-body); color: var(--ink); isolation: isolate;
}
.slide aside { display: none; }          /* speaker notes, shown in the notes panel */

.slide--light { background: var(--paper); }
.slide--glow { background: radial-gradient(ellipse at 0% 0%, #dce6f7 0%, #f5f8fc 45%), #f5f8fc; }
.slide--dark {
  color: var(--white);
  background-color: var(--navy);
  background-image: radial-gradient(ellipse at 4% 22%, var(--navy-glow) 0%, var(--navy) 58%);
}
.slide--dark::before {                   /* faint 96px grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #f7f9fc12 0, #f7f9fc12 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(0deg, #f7f9fc12 0, #f7f9fc12 1px, transparent 1px, transparent 96px);
}

/* typography */
.kicker { font-size: 24px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--ink); }
.slide--dark .kicker { color: var(--white); }

.headline { font-family: var(--font-head); font-size: 72px; font-weight: 600; line-height: 1.1; letter-spacing: -2px; color: var(--ink); }
.headline--gradient {
  background: linear-gradient(90deg, var(--blue-ink) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.headline--navy { font-size: 64px; color: #10265e; }
.headline--navy .accent { color: #1d5bd8; }
.headline--xl { font-size: 96px; line-height: 1.05; letter-spacing: -3px; color: var(--white); }
.headline--hero { font-size: 128px; line-height: 1.05; letter-spacing: -4px; color: var(--white); }
.slide--dark .accent { color: var(--sky); }

.lead { font-size: 32px; line-height: 1.5; color: var(--mist); }
.intro { font-size: 28px; line-height: 1.55; color: var(--ink-2); }

.section-head { display: flex; flex-direction: column; gap: 16px; }

/* footer line on content slides */
.footer { position: absolute; bottom: 64px; font-size: 24px; color: var(--ink-3); }
.footer--brand { left: 128px; width: 900px; }
.footer--page { right: 128px; width: 200px; text-align: right; }
.slide--dark .footer { color: var(--mist); }

/* small round icon badge */
.icon-circle {
  flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--blue);
}
.icon-circle svg { width: 26px; height: 26px; }

/* arrow glyph */
.x-arrow { clip-path: polygon(0 35%, 62% 35%, 62% 0, 100% 50%, 62% 100%, 62% 65%, 0 65%); }

/* ============================================================
   Cover & closing slide
   ============================================================ */
.cover { display: flex; flex-direction: column; justify-content: space-between; padding: 128px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 16px; align-items: center; }
.brand__logo { width: 48px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--font-head); font-size: 32px; font-weight: 600; letter-spacing: -1px; color: var(--white); }
.topbar__meta { font-size: 24px; color: var(--mist); }
.hero { display: flex; flex-direction: column; gap: 32px; }
.hero .lead { width: 1100px; }
.pills { display: flex; gap: 16px; }
.pill {
  padding: 14px 32px; font-size: 24px; font-weight: 600; color: var(--white); text-decoration: none;
  background: #f7f9fc12; border: 1px solid #f7f9fc38; border-radius: 50px;
}
.pill--solid { color: var(--navy); background: var(--white); border-color: var(--white); }

/* ============================================================
   02 · Über uns
   ============================================================ */
.about__head { position: absolute; top: 128px; left: 128px; width: 1664px; }
.about__body { position: absolute; top: 305px; left: 128px; width: 1664px; display: flex; gap: 56px; align-items: flex-start; }
.about__intro { flex: 1; display: flex; flex-direction: column; gap: 28px; }

.services { display: flex; flex-direction: column; gap: 10px; }
.service {
  display: flex; gap: 20px; align-items: center; padding: 12px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.service__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.service h3 { font-family: var(--font-head); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; }
.service p { font-size: 24px; line-height: 1.4; color: var(--ink-2); }
.service--primary { background: var(--gradient-blue); border-color: transparent; color: var(--white); }
.service--primary p { color: var(--white); }
.service--primary .icon-circle { background: #f7f9fc29; border-color: #f7f9fc52; color: var(--white); }

.team { width: 620px; display: flex; gap: 24px; }
.person {
  flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.person img { width: 270px; height: 400px; border-radius: 10px; }
.person__name { padding: 4px 8px 0; font-family: var(--font-head); font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.person__role { padding: 0 8px; font-size: 24px; color: var(--ink-3); }

/* ============================================================
   03 · Referenzen
   ============================================================ */
.refs { padding: 96px 128px 112px; display: flex; flex-direction: column; gap: 32px; }
.refs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.refs__head .section-head { flex: 1; }
.refs__intro { width: 620px; font-size: 28px; line-height: 1.5; color: var(--ink-2); }
.refs .footer { bottom: 48px; }

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 22px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 30px -22px rgba(16, 38, 94, .35);
}
.logo-card--partner { background: var(--tint-strong); border: 2px solid var(--blue); }
.tags { display: flex; gap: 8px; }
.tag {
  display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 50px;
  background: var(--tint); font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: 1px; text-transform: uppercase; color: var(--blue);
}
.tag--solid { background: var(--gradient-blue); color: var(--white); }
.logo-box { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 72px; }
.logo-box img { width: 300px; height: 72px; max-height: 92px; object-fit: contain; filter: brightness(0); opacity: .85; }
.logo-box img.logo--color { width: 360px; height: 124px; filter: none; }

.cta-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 32px;
  background: var(--bar); border: 1px solid var(--line); border-radius: 12px;
}
.cta-bar__label { font-family: var(--font-head); font-size: 32px; font-weight: 500; letter-spacing: -0.5px; }
.cta-link {
  display: flex; gap: 20px; align-items: center; padding: 10px 10px 10px 32px; border-radius: 50px; text-decoration: none;
  background: var(--gradient-blue); font-family: var(--font-head); font-size: 28px; font-weight: 600; color: var(--white);
}
.cta-link__arrow { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 50%; }
.cta-link__arrow .x-arrow { width: 22px; height: 14px; background: var(--blue-deep); }

/* ============================================================
   04 · Ihr Unternehmen (Fragen)
   ============================================================ */
.you__head { position: absolute; top: 112px; left: 128px; width: 1664px; display: flex; flex-direction: column; gap: 20px; }
.you__head .lead { width: 1300px; font-size: 30px; }
.q-cards { position: absolute; top: 432px; left: 128px; width: 1664px; display: flex; gap: 24px; align-items: stretch; }
.q-card {
  flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 32px;
  background: #f7f9fc0f; border: 1px solid #f7f9fc29; border-radius: 10px;
}
.q-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.q-card .icon-circle { width: 56px; height: 56px; background: var(--white); color: var(--navy); }
.q-card .icon-circle svg { width: 28px; height: 28px; }
.q-card__num { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--mist); }
.q-card h3 { font-family: var(--font-head); font-size: 31px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; color: var(--white); }
.q-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.q-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 23px; line-height: 1.4; color: var(--mist); }
.q-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 12px; border-radius: 50%; background: var(--sky); }

/* ============================================================
   05 · Wie es weitergeht
   ============================================================ */
.process { display: flex; flex-direction: column; gap: 48px; padding: 128px 128px 160px; }
.steps { display: flex; gap: 24px; }
.steps > .x-arrow { flex: none; align-self: center; width: 48px; height: 24px; background: var(--blue); }
.step {
  flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.step__label { font-size: 24px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); }
.step h3 { font-family: var(--font-head); font-size: 44px; font-weight: 600; line-height: 1.15; letter-spacing: -1px; }
.step p { font-size: 28px; line-height: 1.5; color: var(--ink-2); }
.step--primary { background: var(--gradient-blue); border-color: transparent; color: var(--white); }
.step--primary .step__label, .step--primary p { color: var(--white); }
.callout { padding: 4px 0 4px 28px; font-size: 28px; color: var(--ink-2); border-left: 4px solid var(--blue); }

/* ============================================================
   06 · Häufige Fragen
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 36px; padding: 96px 128px 120px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; flex: 1; }
.faq-item {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.faq-item h3 { font-family: var(--font-head); font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; color: var(--blue-ink); }
.faq-item p { font-size: 23px; line-height: 1.45; color: var(--ink-2); }

/* ============================================================
   Optional · Analyse der aktuellen Webseite (client data)
   ============================================================ */
.analysis { display: flex; flex-direction: column; gap: 28px; padding: 88px 128px 112px; }
.analysis__body { flex: 1; min-height: 0; display: flex; gap: 40px; align-items: flex-start; }
.analysis__left { flex: none; width: 760px; }
.analysis__right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -30px rgba(16, 38, 94, .45); }
.browser__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: var(--bar); border-bottom: 1px solid var(--line); }
.browser__bar span { width: 12px; height: 12px; border-radius: 50%; background: #c9d2df; }
.browser__url { flex: 1; margin-left: 10px; padding: 6px 14px; font-size: 18px; color: var(--ink-3); background: #fff; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.fact { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.fact__value { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.5px; color: var(--blue-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact__label { margin-top: 2px; font-size: 16px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.findings { display: flex; flex-direction: column; gap: 8px; }
.finding { display: flex; gap: 16px; align-items: flex-start; padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.finding__dot { flex: none; width: 12px; height: 12px; margin-top: 10px; border-radius: 50%; background: var(--blue); }
.finding--high .finding__dot { background: #d64545; }
.finding--medium .finding__dot { background: #e0a100; }
.finding--low .finding__dot { background: var(--blue); }
.finding h3 { font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; color: var(--ink); }
.finding p { margin-top: 3px; font-size: 20px; line-height: 1.35; color: var(--ink-2); }

.positives { margin-top: 4px; }
.positives__label { font-size: 16px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }
.positives__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.positives__list li { max-width: 100%; padding: 7px 16px; font-size: 19px; color: var(--blue-ink); background: var(--tint); border-radius: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.positives__list li::before { content: "✓ "; color: var(--blue); font-weight: 600; }

/* reference logos that match the prospect's industry (client.json → highlightReferences) */
.logo-card--match { background: var(--tint-strong); border: 2px solid var(--blue); }

/* ============================================================
   Shared building blocks (used by the Zweitgespräch deck)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
.info-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.info-card--muted { background: var(--bar); }
.info-card__label { font-size: 16px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.info-card h3 { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; color: var(--ink); }
.info-card p { font-size: 22px; line-height: 1.45; color: var(--ink-2); }
.info-card__foot { font-size: 18px !important; color: var(--ink-3) !important; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 26px; line-height: 1.4; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 30px; height: 30px; margin-top: 4px; border-radius: 50%; background: var(--tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c6fd4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 18px; background-position: center; background-repeat: no-repeat;
}
.checklist--muted li { color: var(--ink-2); }
.checklist--muted li::before { background-color: var(--bar); }
.checklist--compact { grid-template-columns: 1fr; gap: 8px; }
.checklist--compact li { font-size: 22px; }
.checklist--compact li::before { width: 24px; height: 24px; margin-top: 3px; background-size: 14px; }

.caption { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); text-align: center; }

/* ============================================================
   Zweitgespräch · Rückblick / Idee
   ============================================================ */
.recap { display: flex; flex-direction: column; gap: 36px; padding: 96px 128px 120px; }
.concept__head { position: absolute; top: 128px; left: 128px; width: 1664px; display: flex; flex-direction: column; gap: 24px; }
.concept__head .lead { width: 1400px; }
.sitemap { position: absolute; left: 128px; bottom: 160px; width: 1664px; display: flex; flex-direction: column; gap: 16px; }
.sitemap__label { font-size: 20px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); }
.sitemap .pills { flex-wrap: wrap; }

/* ============================================================
   Zweitgespräch · Entwurf
   ============================================================ */
.draft { display: flex; flex-direction: column; gap: 24px; padding: 72px 128px 112px; }
.draft__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.draft__hint { font-size: 20px; color: var(--ink-3); }
.browser--large { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.browser--large .browser__view { flex: 1; aspect-ratio: auto; }
.browser__view--tall { aspect-ratio: 16 / 10; }

.draft-more { display: flex; flex-direction: column; gap: 28px; padding: 88px 128px 112px; }
.draft-more__body { flex: 1; min-height: 0; display: flex; gap: 64px; align-items: flex-start; justify-content: center; }
.phone { flex: none; width: 340px; }
.phone__screen { aspect-ratio: 390 / 844; max-height: 660px; margin: 0 auto; overflow: hidden; border-radius: 34px; border: 8px solid #1b2330; background: #fff; box-shadow: 0 30px 60px -30px rgba(16, 38, 94, .5); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.draft-more__sub { flex: 1; max-width: 920px; }

/* ============================================================
   Zweitgespräch · Vorher / Nachher
   ============================================================ */
.compare { display: flex; flex-direction: column; gap: 36px; padding: 88px 128px 112px; }
.compare__body { display: flex; gap: 32px; align-items: center; }
.compare__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.compare__label { font-size: 20px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); }
.compare__col--new .compare__label { color: var(--sky); }
.compare__col .browser { border-color: #f7f9fc29; }
.compare__col--new .browser { box-shadow: 0 0 0 4px #9dd0ff55, 0 30px 60px -30px rgba(0, 0, 0, .6); }
.compare__arrow { flex: none; width: 56px; height: 28px; background: var(--sky); }

/* ============================================================
   Zweitgespräch · Leistungsumfang / Investment / Ablauf / Nächste Schritte
   ============================================================ */
.scope { display: flex; flex-direction: column; gap: 40px; padding: 96px 128px 120px; }
.scope__body { display: flex; flex-direction: column; gap: 36px; }
.scope__extras { padding-top: 28px; border-top: 1px solid var(--line); }
.scope__extras-label { margin-bottom: 14px; font-size: 16px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }

.offer { display: flex; flex-direction: column; gap: 36px; padding: 96px 128px 120px; }
.offer__body { display: flex; gap: 32px; align-items: stretch; }
.offer__main { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 44px 48px; background: var(--gradient-blue); border-radius: 20px; color: var(--white); }
.offer__label { font-size: 20px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #dbe8ff; }
.offer__price { font-family: var(--font-head); font-size: 112px; font-weight: 600; line-height: 1; letter-spacing: -4px; }
.offer__sub { font-size: 24px; color: #dbe8ff; }
.offer__main .checklist { margin-top: 18px; }
.offer__main .checklist li { color: var(--white); }
.offer__main .checklist li::before { background-color: #f7f9fc29; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }
.offer__side { flex: none; width: 640px; display: flex; flex-direction: column; gap: 16px; }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-list li { display: flex; justify-content: space-between; gap: 16px; font-size: 22px; color: var(--ink-2); }
.option-list li b { color: var(--ink); white-space: nowrap; }

.timeline { display: flex; gap: 16px; }
.phase { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.phase__when { font-size: 18px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.phase h3 { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.5px; }
.phase p { font-size: 21px; line-height: 1.4; color: var(--ink-2); }
.phase--primary { background: var(--gradient-blue); border-color: transparent; color: var(--white); }
.phase--primary .phase__when, .phase--primary p { color: var(--white); }

.next { padding: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.next__head { display: flex; flex-direction: column; gap: 24px; }
.next__steps { display: flex; gap: 24px; }
.next-step { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 32px; background: #f7f9fc0f; border: 1px solid #f7f9fc29; border-radius: 12px; }
.next-step__num { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--sky); }
.next-step h3 { font-family: var(--font-head); font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; color: var(--white); }
.next-step p { font-size: 23px; line-height: 1.45; color: var(--mist); }

/* ============================================================
   Slide themes (presenter switch "Gemischt / Hell / Dunkel", key T)
   Default: slides mix dark and light as designed. body[data-theme] turns every slide into one
   look by re-pointing the design tokens on the slides that don't match, plus a few fixed colours.
   ============================================================ */

/* ---------- Dunkel: light slides go dark ---------- */
body[data-theme="dark"] :is(.slide--light, .slide--glow) {
  --ink: #f7f9fc; --ink-2: #b8c3d6; --ink-3: #93a1b8;
  --paper: #f7f9fc14; --card: #f7f9fc0d; --bar: #f7f9fc14; --line: #f7f9fc29;
  --tint: #9dd0ff1f; --tint-strong: #9dd0ff1a;
  --blue: var(--sky); --blue-ink: #dbe8ff;
  color: var(--ink);
  background: radial-gradient(ellipse at 4% 22%, var(--navy-glow) 0%, var(--navy) 58%), var(--navy);
}
body[data-theme="dark"] :is(.slide--light, .slide--glow)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #f7f9fc12 0, #f7f9fc12 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(0deg, #f7f9fc12 0, #f7f9fc12 1px, transparent 1px, transparent 96px);
}
body[data-theme="dark"] :is(.slide--light, .slide--glow) .headline--gradient {
  background-image: linear-gradient(90deg, var(--white) 0%, var(--sky) 100%);
}
body[data-theme="dark"] :is(.slide--light, .slide--glow) .headline--navy { color: var(--white); }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .headline--navy .accent { color: var(--sky); }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .logo-box img { filter: brightness(0) invert(1); opacity: .9; }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .logo-box img.logo--color { filter: invert(1) hue-rotate(180deg); opacity: 1; }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .browser__url { background: #f7f9fc14; }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .browser__bar span { background: #f7f9fc38; }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .cta-link__arrow .x-arrow { background: var(--blue-deep); }
body[data-theme="dark"] :is(.slide--light, .slide--glow) .logo-card { box-shadow: none; }

/* ---------- Hell: dark slides go light (navy becomes the ink, white the paper) ---------- */
body[data-theme="light"] .slide--dark {
  --white: #0c1a32; --navy: #f7f9fc; --mist: #4a4f5a; --sky: #1c6fd4;
  background: radial-gradient(ellipse at 0% 0%, #dce6f7 0%, #f5f8fc 45%), #f5f8fc;
}
body[data-theme="light"] .slide--dark::before {
  background:
    repeating-linear-gradient(90deg, #0c1a320a 0, #0c1a320a 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(0deg, #0c1a320a 0, #0c1a320a 1px, transparent 1px, transparent 96px);
}
body[data-theme="light"] .slide--dark .brand__logo { filter: brightness(0) saturate(100%) invert(9%) sepia(34%) saturate(2400%) hue-rotate(200deg); }
body[data-theme="light"] .slide--dark .pill { background: #0c1a320a; border-color: #0c1a3233; }
body[data-theme="light"] .slide--dark .pill--solid { background: var(--white); border-color: var(--white); }
body[data-theme="light"] .slide--dark :is(.q-card, .next-step) { background: var(--card); border-color: var(--line); }
body[data-theme="light"] .slide--dark .compare__col .browser { border-color: var(--line); }
body[data-theme="light"] .slide--dark .compare__col--new .browser { box-shadow: 0 0 0 4px #1c6fd455, 0 30px 60px -30px rgba(16, 38, 94, .45); }

/* ============================================================
   Presenter UI – slide overview (left column)
   ============================================================ */
#nav {
  flex: none; width: 300px; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ui-bg); border-right: 1px solid var(--ui-line); color: var(--ui-text);
  font: 14px/1.4 var(--font-body); transition: width .2s ease;
}
#nav header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 12px 16px; }
#nav header span { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ui-muted); white-space: nowrap; }
#nav button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; color: var(--ui-text);
  background: var(--ui-line); border: 1px solid var(--ui-raised); border-radius: 6px; padding: 7px 10px; cursor: pointer; white-space: nowrap;
}
#nav button:hover { background: var(--ui-raised); }
#nav button svg { width: 16px; height: 16px; flex: none; }
#nav button kbd { font: 11px var(--font-body); color: var(--ui-muted); border: 1px solid var(--ui-hover); border-radius: 4px; padding: 1px 5px; }
#navToggle svg { transition: transform .2s ease; }

#thumbs { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.thumb { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.thumb .num { flex: none; width: 14px; padding-top: 2px; font-size: 12px; font-weight: 600; text-align: right; color: var(--ui-dim); }
.thumb .body { flex: 1; min-width: 0; }
.thumb .frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  border: 2px solid var(--ui-line); background: #0a0f1a; pointer-events: none;
}
.thumb .frame > .slide { transform-origin: top left; }
.thumb .title { margin-top: 6px; font-size: 12px; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb:hover .frame { border-color: var(--ui-hover); }
.thumb:hover .title { color: var(--ui-text); }
.thumb.active .frame { border-color: var(--sky); box-shadow: 0 0 0 3px #9dd0ff33; }
.thumb.active .num, .thumb.active .title { color: var(--sky); }

#tools { flex: none; border-top: 1px solid var(--ui-line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
#tools .row { display: flex; gap: 8px; }
#tools .row button { flex: 1; }
#tools .theme { gap: 0; padding: 2px; background: var(--ui-line); border: 1px solid var(--ui-raised); border-radius: 7px; }
#tools .theme button { border: 0; background: none; padding: 5px 6px; font-size: 12px; color: var(--ui-muted); }
#tools .theme button:hover { background: var(--ui-raised); color: var(--ui-text); }
#tools .theme button[aria-pressed="true"] { background: var(--ui-hover); color: #f1f5f9; }
#count { font-size: 13px; text-align: center; color: var(--ui-muted); }
#count b { color: #e2e8f0; }
#hint { font-size: 11px; text-align: center; color: var(--ui-dim); }
#client { font-size: 11px; text-align: center; line-height: 1.35; }
#client:empty { display: none; }
#client.ok { color: var(--sky); }
#client.ok::before { content: "Kunde: "; color: var(--ui-dim); }
#client.error { color: #f4a3a3; }

body.nav-collapsed #nav { width: 56px; }
body.nav-collapsed #nav header { justify-content: center; padding: 14px 0 12px; }
body.nav-collapsed #navToggle svg { transform: rotate(180deg); }
body.nav-collapsed #nav header span, body.nav-collapsed #thumbs, body.nav-collapsed #hint, body.nav-collapsed #client,
body.nav-collapsed #tools kbd, body.nav-collapsed #tools .label, body.nav-collapsed #tools .theme { display: none; }
body.nav-collapsed #tools { padding: 12px 8px; }
body.nav-collapsed #tools .row { flex-direction: column; }
body.nav-collapsed #count { font-size: 11px; }

/* speaker notes panel (over the stage) */
#notes {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 40vh; overflow: auto;
  background: #111827f2; color: #e5e7eb; font: 16px/1.55 var(--font-body);
  padding: 20px 28px 24px; display: none; white-space: pre-wrap;
}
body.show-notes #notes { display: block; }

/* ============================================================
   Launcher (root index.html) + login (server/login.php)
   ============================================================ */
body.launcher {
  display: block; overflow: auto; min-height: 100%; color: var(--white); background: var(--navy);
  background-image: radial-gradient(ellipse at 0% 0%, #13305f 0%, var(--navy) 55%);
  background-attachment: fixed;
}
body.launcher a { text-decoration: none; }
.launcher input, .launcher select, .launcher button { font: inherit; color: inherit; }

/* top bar */
.lbar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 24px;
  padding: 14px 32px; background: #0c1a32e6; backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff14;
}
.lbar__brand { display: flex; align-items: center; gap: 12px; font: 700 18px var(--font-head); white-space: nowrap; }
.lbar__brand img { width: 34px; height: auto; object-fit: contain; }
.lbar__search {
  flex: 1; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 46px; border-radius: 23px; background: #ffffff12; border: 1px solid #ffffff1f; color: var(--mist);
}
.lbar__search:focus-within { background: #ffffff1c; border-color: var(--sky); }
.lbar__search svg { width: 18px; height: 18px; flex: none; }
.lbar__search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--white); font-size: 16px; }
.lbar__search input::placeholder { color: var(--mist); }
.lbar__search kbd { font: 12px var(--font-body); padding: 2px 7px; border-radius: 5px; border: 1px solid #ffffff2e; }
.lbar__user { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--mist); white-space: nowrap; }
.lbar__user[hidden] { display: none; }
.lbar__user a { color: var(--sky); }
.lbar__user a:hover { text-decoration: underline; }

.lmain { max-width: 1280px; margin: 0 auto; padding: 32px 32px 80px; }
.lsec + .lsec { margin-top: 44px; }
.lsec__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lsec__title { font: 600 17px var(--font-head); color: var(--white); }
.lsec--new .lsec__title { margin-bottom: 18px; }
.lsec__title span { color: var(--mist); font-weight: 500; }
.lsec__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mist); }
.lsec__sort select { background: var(--navy); border: 1px solid #ffffff2e; border-radius: 8px; padding: 7px 10px; color: var(--white); }
.lstate { color: var(--mist); padding: 40px 0; text-align: center; }

/* "Neue Präsentation": base decks as mini covers */
.tpl-row { display: flex; gap: 24px; flex-wrap: wrap; }
.tpl { width: 248px; display: flex; flex-direction: column; gap: 10px; }
.tpl__cover {
  aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid #ffffff24; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  background: radial-gradient(ellipse at 4% 22%, var(--navy-glow) 0%, var(--navy) 70%);
  transition: border-color .15s, transform .15s;
}
.tpl:hover .tpl__cover, .tpl:focus-visible .tpl__cover { border-color: var(--sky); transform: translateY(-2px); }
.tpl__kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.tpl__name { font: 700 21px/1.15 var(--font-head); }
.tpl__label { font-size: 14px; font-weight: 500; }
.tpl__label small { display: block; font-size: 12px; color: var(--mist); font-weight: 400; margin-top: 2px; }

/* client cards */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.cc {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: #ffffff0b; border: 1px solid #ffffff1a; transition: border-color .15s, transform .15s;
}
.cc:hover, .cc:focus-within { border-color: #9dd0ff80; transform: translateY(-2px); }
.cc__thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.cc__thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cc__initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 700 44px var(--font-head); color: var(--blue); background: var(--tint);
}
.cc__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px; flex: 1; }
.cc__name { font: 700 18px/1.25 var(--font-head); }
.cc__meta { font-size: 13px; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cc__stage, .cc__flag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--sky); background: #9dd0ff1f; }
.cc__flag { color: var(--mist); background: none; border: 1px solid #ffffff2e; }
.cc__flag[hidden] { display: none; }
.cc__stage.is-past { color: var(--mist); background: #ffffff12; }
.cc__stage.is-error { color: #fca5a5; background: #f871711f; }
.cc__actions { display: flex; gap: 8px; margin-top: 10px; }
.cc__btn {
  flex: 1; text-align: center; font-size: 14px; font-weight: 600; padding: 9px 10px; border-radius: 8px;
  border: 1px solid #ffffff2e; color: var(--white);
}
.cc__btn:hover { background: #ffffff14; }
.cc__btn.is-primary { background: var(--gradient-blue); border-color: transparent; }
.cc__btn.is-primary:hover { filter: brightness(1.1); }
.cc__mod { font-size: 12px; color: var(--ui-dim); margin-top: 4px; }

/* login */
.login { max-width: 400px; margin: 0 auto; padding: 96px 16px; }
.login__logo { width: 64px; height: auto; object-fit: contain; margin-bottom: 28px; }
.login__title { font: 700 32px/1.15 var(--font-head); margin-bottom: 6px; }
.login__lead { color: var(--mist); margin-bottom: 28px; }
.login__form { display: flex; flex-direction: column; gap: 16px; }
.login__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mist); }
.login__form input {
  font-size: 16px; color: var(--white); background: #ffffff0f; border: 1px solid #ffffff2e; border-radius: 10px; padding: 12px 14px;
}
.login__form input:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.login__form button {
  margin-top: 6px; font-weight: 600; color: var(--white); background: var(--gradient-blue);
  border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer;
}
.login__form button:hover { filter: brightness(1.1); }
.login__error { color: #fca5a5; font-size: 14px; }

@media (max-width: 720px) {
  .lbar { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .lbar__search { order: 3; flex-basis: 100%; }
  .lbar__search kbd { display: none; }
  .lbar__user { margin-left: auto; }
  .lmain { padding: 24px 16px 64px; }
  .tpl { width: calc(50% - 12px); }
  .tpl__name { font-size: 16px; }
}

/* ---------- print: one slide per page ---------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { height: auto; overflow: visible; background: none; }
  body { display: block; }
  #stage { position: static; display: block; height: auto; overflow: visible; }
  #deck { transform: none !important; width: auto; height: auto; }
  #deck > .slide { position: relative; opacity: 1; visibility: visible; break-after: page; }
  #nav, #notes { display: none !important; }
}
