:root {
  --ink: #1e232b;
  --ink-soft: #5e646c;
  --paper: #fbfaf8;
  --paper-deep: #f0eee9;
  --red: #b41e23;
  --red-deep: #86191f;
  --line: rgba(30, 35, 43, 0.14);
  --gold-line: #c6a86d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

img { max-width: 100%; }

.webinar-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.webinar-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.8rem clamp(1rem, 5vw, 3.75rem);
  background: #1a1d1f;
  color: white;
}

.webinar-header__brand {
  display: inline-flex;
  flex: 0 1 294px;
  min-width: 0;
}

.webinar-header__brand img {
  display: block;
  width: min(294px, 100%);
  height: auto;
}

.webinar-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.65rem, 2vw, 1.65rem);
  font-size: 0.84rem;
  font-weight: 760;
  white-space: nowrap;
}

.webinar-header__nav a { text-decoration: none; }

.webinar-header__nav a:not(.webinar-header__profile):hover { color: #f3d7d7; }

.webinar-header__profile {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.webinar-header__profile:hover { background: rgba(255, 255, 255, 0.12); }

.webinar-header__profile img { width: 22px; height: 22px; }

.webinar-hero {
  background: var(--paper);
}

.webinar-hero__inner {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6.25rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.webinar-hero h1 {
  max-width: 850px;
  margin-bottom: 1.55rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
}

.webinar-hero__lead {
  max-width: 710px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.webinar-past-status {
  width: fit-content;
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
  line-height: 1.5;
}

.webinar-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.1rem;
  color: var(--red);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  font-weight: 750;
}

.webinar-meta svg {
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.webinar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button--primary {
  background: var(--red);
  color: white;
}

.button--primary:hover { background: var(--red-deep); }

.button--outline {
  border-color: var(--red);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover { background: rgba(180, 30, 35, 0.06); }

.button--outline svg,
.button--secondary svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.webinar-note {
  margin: 0.9rem 0 0;
  color: #8a8d91;
  font-size: 0.85rem;
}

.outcomes {
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
  background: var(--paper);
}

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.outcome {
  min-height: 150px;
  padding: 0.2rem clamp(1rem, 4vw, 3rem) 0;
  border-left: 1px solid var(--line);
}

.outcome:first-child {
  padding-left: 0;
  border-left: 0;
}

.checkmark {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  margin-bottom: 1.15rem;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 1rem;
  font-weight: 800;
}

.outcome h3 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.agenda {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background: #fff;
}

.agenda h2,
.registration h2 {
  margin-bottom: 2.7rem;
  color: var(--red);
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
  line-height: 1.05;
}

.agenda__list {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda__list::before {
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0.62rem;
  width: 1px;
  background: var(--red);
  content: "";
}

.agenda__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 7vw, 6rem);
  padding: 0.4rem 0 2rem 3.1rem;
}

.agenda__item::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: white;
  content: "";
}

.agenda__time { display: grid; gap: 0.15rem; }

.agenda__time time {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
}

.agenda__time strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.1;
}

.agenda__item p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
}

.about-speaker { background: var(--paper-deep); }

.about-speaker__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 5vw, 4rem);
  padding: 2.4rem 0;
}

.about-speaker__monogram {
  display: grid;
  width: 6.2rem;
  min-width: 6.2rem;
  height: 6.2rem;
  place-items: center;
  border-radius: 50%;
  background: #d9d5ce;
}

.about-speaker__monogram img {
  display: block;
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.about-speaker h2 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.about-speaker p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.registration {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 4rem;
  background: #fff;
}

.registration h2 { margin-bottom: 0.4rem; }

.registration__lead {
  margin-bottom: 1.7rem;
  color: var(--ink-soft);
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 355px);
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--gold-line);
  border-radius: 0.5rem;
  background: #fffdf8;
}

.registration-card__intro {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.registration-card__icon {
  display: inline-flex;
  width: 4rem;
  min-width: 4rem;
  height: 4rem;
}

.registration-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.registration-card h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.registration-card p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.registration-card .registration-card__meta {
  margin-top: 0.45rem;
  color: var(--red);
  font-weight: 750;
}

.registration-card__actions { display: grid; gap: 0.7rem; }

.registration-card__actions .button { width: 100%; }

.button--secondary {
  border-color: #a9a39a;
  background: white;
  color: var(--ink);
}

.button--secondary:hover { border-color: var(--ink); background: #faf8f3; }

.button--ghost {
  border-color: #a9a39a;
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover { border-color: var(--ink); background: #faf8f3; }

.registration-card.is-loading {
  opacity: 0.72;
}

.registration-message {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.registration-message.is-error {
  color: var(--red-deep);
  font-weight: 700;
}

.registration-privacy {
  max-width: 940px;
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.registration-privacy a {
  color: var(--red-deep);
  font-weight: 750;
  text-underline-offset: 0.2rem;
}

.provider-mark {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 960px;
  margin: 2.2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.disclaimer__icon {
  display: inline-grid;
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.webinar-footer { background: var(--paper-deep); }

.webinar-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.webinar-footer nav { display: flex; gap: 1.25rem; }

.webinar-footer a { text-underline-offset: 0.2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #e3bd78;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .webinar-header__nav { gap: 0.7rem; }
  .webinar-header__nav > a:nth-child(1),
  .webinar-header__nav > a:nth-child(2) { display: none; }
  .webinar-header__brand { flex-basis: 230px; }
  .agenda__item { grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 640px) {
  .webinar-header { align-items: flex-start; padding-block: 0.7rem; }
  .webinar-header__brand { flex-basis: 190px; }
  .webinar-header__nav { gap: 0.55rem; padding-top: 0.15rem; font-size: 0.76rem; }
  .webinar-header__nav > a:nth-child(3) { display: none; }
  .webinar-header__profile { width: 38px; min-width: 38px; height: 38px; }
  .webinar-hero__inner { padding-top: 3.8rem; }
  .webinar-hero h1 { font-size: clamp(2.8rem, 13vw, 4.1rem); }
  .webinar-hero__lead { font-size: 1rem; }
  .webinar-meta { align-items: flex-start; font-size: 0.95rem; }
  .webinar-meta svg { margin-top: 0.15rem; }
  .webinar-actions { display: grid; }
  .webinar-actions .button { width: 100%; }
  .outcomes__grid { grid-template-columns: 1fr; gap: 2rem; }
  .outcome,
  .outcome:first-child { min-height: 0; padding: 0 0 1.6rem; border-bottom: 1px solid var(--line); border-left: 0; }
  .outcome:last-child { padding-bottom: 0; border-bottom: 0; }
  .outcome h3 { font-size: 2rem; }
  .agenda__item { grid-template-columns: 1fr; gap: 0.3rem; padding-bottom: 1.8rem; padding-left: 2.7rem; }
  .agenda__item p { font-size: 0.96rem; }
  .about-speaker__inner { align-items: flex-start; }
  .about-speaker__monogram { width: 4.6rem; min-width: 4.6rem; height: 4.6rem; font-size: 1.6rem; }
  .registration-card { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.2rem; }
  .registration-card__intro { align-items: flex-start; }
  .registration-card__icon { width: 3.2rem; min-width: 3.2rem; height: 3.2rem; }
  .desktop-break { display: none; }
  .webinar-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Variante 1: Webinar als klare, redaktionelle Fabian-Seite. */
body[data-webinar-event] {
  background: #f2f2f2;
}

body[data-webinar-event] .webinar-hero,
body[data-webinar-event] .registration {
  background: #fff;
}

body[data-webinar-event] .about-speaker,
body[data-webinar-event] .webinar-footer {
  background: #f2f2f2;
}

body[data-webinar-event] .webinar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-webinar-event] .webinar-header__profile {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 4px;
}

body[data-webinar-event] .button,
body[data-webinar-event] .registration-card,
body[data-webinar-event] .button--secondary,
body[data-webinar-event] .button--ghost {
  border-radius: 4px;
}

body[data-webinar-event] .registration-card {
  border-color: rgba(167, 172, 179, 0.75);
  background: #fff;
}

body[data-webinar-event] .about-speaker__monogram {
  border-radius: 4px;
  background: #e3e5e7;
}

body[data-webinar-event] a:focus-visible,
body[data-webinar-event] button:focus-visible,
body[data-webinar-event] summary:focus-visible {
  outline: 3px solid rgba(180, 30, 35, 0.45);
  outline-offset: 3px;
}
