/* =====================================================================
   agorum Event-Landingpages. Gemeinsame Basis fuer alle Varianten
   (event-webinar-vertrieb, event-webinar-info, event-campus).
   Quelle: Skill "agorum-style-guide", abgeleitet aus agorum-check.css des
   KI-Readiness-Checks. Schriften, Logo und Favicon liegen als eigene
   Dateien direkt neben dieser CSS-Datei (relative Pfade).

   Diese Datei wird NICHT je Termin angepasst. Alles, was eine Variante
   anders macht, steht in ihrer eigenen CSS-Datei (vertrieb.css, campus.css),
   die NACH dieser Datei eingebunden wird.
   ===================================================================== */

@font-face { font-family: "New Science"; src: url("NewScience-Light.woff2") format("woff2"); font-weight: 300; font-display: block; }
@font-face { font-family: "New Science"; src: url("NewScience-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "New Science"; src: url("NewScience-Medium.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "New Science"; src: url("NewScience-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "New Science"; src: url("NewScience-Bold.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  --color-blue:        #006BFF;
  --color-blue-dark:   #0052C4;
  --color-orange:      #EB4D27;
  --color-orange-dark: #d5411f;
  --color-text:        #3B3B3B;
  --color-dark:        #3B3B3B;   /* Text Dark, zugleich Campus-Hintergrund */
  --color-text-soft:   #6E6E6E;
  --color-white:       #FFFFFF;
  --color-cyan:        #4EE3FF;
  --color-cyan-tint:   rgba(78, 227, 255, 0.20);
  --color-neon:        #C7FF7F;
  --color-neon-tint:   rgba(199, 255, 127, 0.25);
  --color-blue-tint:   rgba(0, 107, 255, 0.07);
  --color-bg-soft:     #F7F7F7;
  --color-caption:     #B3B3B3;
  --color-border:      #E3E3E3;
  --font-base:         "New Science", Arial, sans-serif;
  --fs-h1:             50.89px;
  --fs-h2:             42.26px;
  --fs-eyebrow:        18.18px;
  --fs-body:           18.18px;
  --fs-h3:             15.09px;
  --lh-headline:       1.10;
  --lh-body:           1.40;
  --container:         1256px;
  --container-text:    760px;
  --section-pad-y:     96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; font-family: var(--font-base); font-size: 16px; color: var(--color-text);
  background: var(--color-white); line-height: var(--lh-body); -webkit-font-smoothing: antialiased;
}
body, h1, h2, h3, h4, p, a, span, li, ul, ol, dl, dt, dd, td, th, div, section, header, footer, nav, button, input, textarea, select, strong, em, small, label, figcaption, time {
  font-family: "New Science", Arial, sans-serif !important;
}
img, svg { max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--text { max-width: var(--container-text); margin: 0 auto; padding: 0 24px; }
.container--mid { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

h1, h2 { font-weight: 400; color: var(--color-text); letter-spacing: normal; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-headline); }
h2 { font-size: clamp(30px, 3.2vw, var(--fs-h2)); line-height: var(--lh-headline); }
h1 > span, h2 > span {
  display: block; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.16px;
  margin-bottom: 12px; color: var(--color-blue);
}
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0.16px; color: var(--color-text); margin: 0; }
p { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.caption { font-size: 14px; color: var(--color-caption); }
.lead { font-size: 21px; font-weight: 300; }
a { color: var(--color-blue); }
.section-intro { max-width: 62ch; margin-top: 18px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Header: Logo links, Knopf rechts. Der Knopf ist Pflicht. ---------- */
.ag-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); height: 88px; position: sticky; top: 0; z-index: 20; }
.ag-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ag-header img.logo { height: 30px; display: block; }
.ag-header .logo-link { display: flex; align-items: center; }
.ag-header .headtag { font-size: 14px; color: var(--color-caption); font-weight: 500; display: flex; align-items: center; gap: 12px; }
.ag-header .head-cta { padding: 12px 20px; font-size: 15px; }
.tag-test { display: inline-block; background: var(--color-neon); color: var(--color-text); font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 3px 8px; }

/* ---------- Buttons. Kein Pfeil auf den Knoepfen (Vorgabe Daniela Lutz). ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-base);
  font-weight: 600; font-size: 16px; letter-spacing: 0.16px; border-radius: 0; transition: all 0.2s;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1;
}
.btn-primary { background: var(--color-orange); color: var(--color-white); padding: 18px 30px; font-size: 17px; }
.btn-primary:hover { background: var(--color-orange-dark); }
.btn-primary[disabled] { background: var(--color-border); color: var(--color-caption); cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--color-text); padding: 14px 24px; border: 2px solid var(--color-text); }
.btn-secondary:hover { background: var(--color-bg-soft); }
.btn-hero { margin-top: 30px; padding: 19px 34px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 44px; }
.cta-row.center { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: var(--section-pad-y) 0; }
section.alt { background: var(--color-bg-soft); }
section.tight { padding: 36px 0; }

/* ---------- Kacheln mit Benefit-Icon (Versprechen, Mitnahme) ----------
   Icons aus agorum-style-guide/assets/benefits. Keine Haken als Aufzaehlung. */
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.promise { background: var(--color-white); padding: 28px 30px; display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: center; font-size: 18px; line-height: 1.35; }
.promise img { width: 60px; height: 60px; }
.promise-grid--3 { grid-template-columns: repeat(3, 1fr); }
.promise-grid--3 .promise { grid-template-columns: 1fr; gap: 16px; align-items: start; font-size: 17px; }
.promise-grid--3 .promise img { width: 60px; height: 60px; }
.promise-note { margin-top: 28px; font-size: 20px; font-weight: 300; }

/* ---------- Referent oder Referentin ---------- */
.speaker { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; margin-top: 40px; }
.speaker-photo { width: 260px; aspect-ratio: 4 / 5; background: var(--color-cyan-tint); overflow: hidden; position: relative; }
.speaker-photo::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 110px; height: 110px; background: var(--color-blue); transform: rotate(45deg); }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker h3 { font-size: 26px; font-weight: 400; margin-bottom: 4px; }
.speaker .role { color: var(--color-text-soft); margin-bottom: 14px; font-size: 16px; }
.speaker .audience { margin-top: 18px; font-size: 15px; color: var(--color-text-soft); }

/* ---------- Formular. Feldnamen wie in anmeldung.php. ---------- */
.form-wrap { background: var(--color-white); border: 2px solid var(--color-text); padding: 36px 36px 32px; margin-top: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: var(--font-base); font-size: 16px; padding: 12px 14px; border: 2px solid var(--color-border);
  border-radius: 0; background: var(--color-white); color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-blue); }
.field input.is-invalid, .field select.is-invalid { border-color: var(--color-orange); }
.field-error { display: block; margin-top: 6px; font-size: 14px; color: var(--color-orange); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--color-text-soft); }
.consent input { margin-top: 3px; }
.consent a { color: var(--color-blue); text-decoration: underline; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 15px; color: var(--color-orange); font-weight: 600; }
.mini-countdown { display: inline-flex; gap: 6px; align-items: baseline; margin-top: 14px; font-size: 15px; color: var(--color-text-soft); }
.mini-countdown b { font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; }
.countdown b.tick { animation: tick .45s ease-out; }
@keyframes tick { 0% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 300; color: var(--color-orange); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 18px; font-size: 16px; max-width: 72ch; }

/* ---------- Sticky CTA ---------- */
.sticky-cta { position: fixed; right: 24px; bottom: 24px; z-index: 30; transform: translateY(140%); transition: transform .3s; }
.sticky-cta.is-visible { transform: none; }

/* ---------- Dankeseite ---------- */
.thanks-hero { text-align: center; padding-top: 72px; }
.thanks-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.thanks-hero .lead { margin: 22px auto 0; max-width: 60ch; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--color-border); margin-top: 40px; }
.step { background: var(--color-white); padding: 32px; }
.step--plain { padding: 0; }
.step .step-num { font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--color-blue); margin-bottom: 10px; }
.step h2 { font-size: 26px; margin-bottom: 12px; }
.cal-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cal-buttons .btn-secondary { padding: 10px 16px; font-size: 14px; }
/* Die Punkte sind Fliesstext mit einem Pfeil davor. Nicht als Flex bauen,
   sonst wird ein Link im Satz zu einem eigenen Kasten. */
.next-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.next-steps li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
.next-steps li:last-child { margin-bottom: 0; }
.next-steps li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--color-orange); font-weight: 700; }
.next-steps--wide li { max-width: 88ch; }

/* ---------- Begruessungsvideo auf der Dankeseite (nur Vertrieb) ----------
   Der Videodienst wird erst beim Klick geladen (Zwei-Klick-Loesung). */
.video-intro { font-size: 21px; font-weight: 300; margin: 0 0 26px; }
.video-steps { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--color-blue) center/cover no-repeat; overflow: hidden; }
.video-frame.has-poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.48); }
.video-frame.has-poster .video-label, .video-frame.has-poster .video-note { text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.video-frame.is-empty { background: var(--color-bg-soft); border: 2px dashed var(--color-border); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.is-playing { background: #000; }
.video-cover {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: none; border: 0; padding: 24px; cursor: pointer; color: var(--color-white);
  font-family: var(--font-base);
}
.video-frame.is-empty .video-cover { color: var(--color-text-soft); cursor: default; }
.video-play { width: 74px; height: 74px; background: var(--color-orange); flex-shrink: 0; position: relative; transition: background .2s; }
.video-play::before {
  content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%);
  border-left: 22px solid var(--color-white); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-cover:hover .video-play { background: var(--color-orange-dark); }
.video-frame.is-empty .video-play { background: var(--color-border); }
.video-frame.is-empty .video-play::before { border-left-color: var(--color-caption); }
.video-label { font-size: 19px; font-weight: 600; }
.video-note { font-size: 13px; max-width: 34ch; line-height: 1.35; opacity: 0.85; }

/* ---------- Footer: nur Datenschutz und Impressum ---------- */
.ag-footer { background: var(--color-blue); color: var(--color-white); padding: 32px 0; }
.ag-footer .container { display: flex; justify-content: space-between; align-items: center; font-size: 14px; flex-wrap: wrap; gap: 8px; }
.ag-footer a { color: var(--color-white); text-decoration: underline; }

.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 960px) {
  :root { --section-pad-y: 72px; }
  .promise-grid, .promise-grid--3, .steps-grid, .video-steps { grid-template-columns: 1fr; }
  .video-steps { gap: 28px; }
}
@media (max-width: 720px) {
  :root { --section-pad-y: 56px; }
  h1 { font-size: 34px; } h2 { font-size: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 20px; }
  .speaker { grid-template-columns: 1fr; }
  .speaker-photo { width: 200px; }
  .ag-header { height: 72px; }
  .ag-header .headtag span.label { display: none; }
  .ag-header .head-cta { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
  .tag-test { display: none; }
  .sticky-cta { left: 0; right: 0; bottom: 0; }
  .sticky-cta .btn { width: 100%; }
  .ag-footer .container { flex-direction: column; text-align: center; }
  .btn-hero { width: 100%; justify-content: center; padding: 16px 20px; font-size: 16px; white-space: nowrap; }
}
