/* doinstruct Customer Academy. Farben und Typo nach doinstruct.com (helles Theme). */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Swatches wie auf doinstruct.com */
  --dark-green:  #11190C;
  --green:       #153327;
  --mid-green:   #6E7664;
  --light-green: #C1CAB7;
  --gray:        #F2EFEC;
  --off-white:   #FCFBF8;
  --white:       #FFFFFF;
  --yellow:      #D9FF1E;

  /* Theme (light) */
  --bg:          var(--white);
  --bg-2:        var(--off-white);
  --text:        var(--dark-green);
  --text-faded:  var(--mid-green);
  --border:      var(--gray);
  --border-2:    var(--light-green);
  --dot:         #F6F4F2;

  --radius-main: 24px;
  --radius-small: 8px;
  --radius-tiny: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', Arial, sans-serif; font-weight: 400;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.3; -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--yellow), white 40%); color: var(--dark-green); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark-green); color: var(--white); padding: 8px 12px; border-radius: var(--radius-small); z-index: 100; }
.skip-link:focus { left: 8px; }

/* Punktraster wie auf der Website: helle Punkte auf Weiß */
.grid-bg {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.grid-bg.dark {
  background-color: var(--dark-green);
  background-image: radial-gradient(rgba(193, 202, 183, .22) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; color: inherit; }
h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.1; max-width: 18ch; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }

/* Header: weiß-transparent mit Blur, wie die Website-Navigation */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.lock { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
.logo { height: 22px; width: auto; }
.rule { width: 1px; height: 22px; background: var(--border-2); }
.prog { font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: var(--text-faded); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 16px; padding: 10px 14px; border-radius: var(--radius-small); }
.site-nav a:hover { background: var(--gray); }
.site-nav .nav-cta { background: var(--dark-green); color: var(--white); font-weight: 600; padding: 12px 20px; margin-left: 8px; }
.site-nav .nav-cta:hover { background: var(--green); }

/* Buttons wie auf der Website: primär dunkelgrün/weiß, sekundär weiß mit dunkelgrünem Rand */
.btn-primary, .cta, .book, .field button {
  display: inline-block; text-decoration: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  padding: 16px 24px; border-radius: var(--radius-small);
  background: var(--dark-green); color: var(--white); border: 2px solid var(--dark-green);
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary:hover, .cta:hover, .book:hover, .field button:hover { background: var(--green); border-color: var(--green); }
.btn-secondary {
  background: var(--white); color: var(--text); border-color: var(--dark-green);
}
.btn-secondary:hover { background: var(--dark-green); color: var(--white); }

/* Hero: dunkel wie im Entwurf (einzige dunkle Fläche neben Anmeldung und Footer) */
.hero { padding: 96px 0 104px; color: var(--white); }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--light-green); font-weight: 600; margin-bottom: 24px;
}
h1 .hl { color: var(--yellow); }
.sub { margin-top: 28px; font-size: 19px; font-weight: 500; color: var(--light-green); max-width: 56ch; line-height: 1.5; }
.meta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.pill { border: 1px solid rgba(252, 251, 248, .28); border-radius: 100vw; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--white); }
.cta { margin-top: 40px; background: var(--yellow); border-color: var(--yellow); color: var(--dark-green); }
.cta:hover { background: var(--white); border-color: var(--white); }

/* Sections */
section { padding: 88px 0; }
section.tight { padding-top: 0; }
.lede { margin-top: 16px; font-size: 18px; color: var(--text-faded); max-width: 60ch; line-height: 1.5; }

/* Sessions: Karten off-white mit grauem Rand, nächste Session dunkelgrün */
.sessions { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-main); padding: 34px 36px;
  display: grid; grid-template-columns: 150px 1fr 200px; gap: 32px; align-items: start;
}
.card.next { background: var(--dark-green); border-color: var(--dark-green); color: var(--white); }
.date { font-size: 24px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.time { font-size: 14px; font-weight: 500; color: var(--text-faded); margin-top: 6px; }
.card.next .time { color: var(--light-green); }
.tag { display: inline-block; margin-bottom: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-faded); }
.card.next .tag { color: var(--yellow); }
.speaker { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--text-faded); }
.card.next .speaker { color: var(--light-green); }
.desc { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--text); }
.card.next .desc { color: var(--white); }
ul.learn { margin-top: 18px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
ul.learn li { font-size: 15px; line-height: 1.5; padding-left: 24px; position: relative; color: var(--text-faded); }
.card.next ul.learn li { color: var(--light-green); }
ul.learn li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 7px;
  border-left: 2px solid var(--mid-green); border-bottom: 2px solid var(--mid-green); transform: rotate(-45deg);
}
.card.next ul.learn li::before { border-color: var(--yellow); }
.actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.book { text-align: center; width: 100%; background: var(--white); color: var(--text); border-color: var(--dark-green); }
.book:hover { background: var(--dark-green); color: var(--white); }
.card.next .book { background: var(--yellow); border-color: var(--yellow); color: var(--dark-green); }
.card.next .book:hover { background: var(--white); border-color: var(--white); }
.ics { font-size: 14px; font-weight: 500; text-align: center; color: var(--text-faded); background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.ics:hover { color: var(--text); text-decoration-color: currentColor; }
.card.next .ics { color: var(--light-green); }
.card.next .ics:hover { color: var(--white); }
.empty { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-main); padding: 34px 36px; color: var(--text-faded); }

/* Anmeldung: dunkelgrüner Abschnitt wie die dunklen Sektionen der Website */
.band { border-radius: var(--radius-main); padding: 56px; color: var(--white); }
.band h2 { max-width: 20ch; }
.band p { margin-top: 16px; font-size: 18px; color: var(--light-green); max-width: 56ch; line-height: 1.5; }
/* Anmeldeformular (im dunklen Band) */
.reg { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reg-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--light-green); }
.reg-field em, .reg-consent em { font-style: normal; color: var(--yellow); margin-left: 2px; }
.reg-field input {
  font: inherit; font-size: 16px; color: var(--text);
  padding: 14px 16px; border-radius: var(--radius-small);
  border: 1px solid var(--border-2); background: var(--white);
}
.reg-field input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.reg-field input[aria-invalid="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.reg-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--light-green); margin-top: 4px; }
.reg-consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--yellow); }
.reg-consent a { color: var(--white); }
.reg-consent.is-invalid { color: var(--yellow); }
.reg .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg { position: relative; }
.reg-error { font-size: 14px; font-weight: 600; color: var(--yellow); }
.reg-submit {
  align-self: flex-start; margin-top: 8px; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; line-height: 1; padding: 16px 28px; border-radius: var(--radius-small);
  background: var(--yellow); color: var(--dark-green); border: 2px solid var(--yellow);
  transition: background .15s ease, border-color .15s ease;
}
.reg-submit:hover { background: var(--white); border-color: var(--white); }
.reg-submit[disabled] { opacity: .6; cursor: wait; }
.reg-success { margin-top: 32px; font-size: 18px; font-weight: 600; color: var(--white); }
.bandnote { margin-top: 18px; font-size: 14px; color: var(--light-green); }
.bandnote a { color: var(--yellow); font-weight: 600; }

/* Archiv */
.archive { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rec { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-main); overflow: hidden; display: flex; flex-direction: column; }
.thumb {
  height: 150px; background-color: var(--green);
  background-image: radial-gradient(rgba(193, 202, 183, .3) 1.2px, transparent 1.3px); background-size: 22px 22px;
  display: flex; align-items: flex-end; padding: 18px;
}
.thumb span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--white); }
/* Video-Aufzeichnung: volle Breite, 16:9, Player nach Klick */
.rec-video { grid-column: 1 / -1; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--dark-green); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background-color: var(--dark-green);
  background-image: radial-gradient(rgba(193, 202, 183, .22) 1.2px, transparent 1.3px); background-size: 26px 26px;
  color: var(--white);
}
.poster .play {
  width: 72px; height: 72px; border-radius: 100vw; background: var(--yellow); color: var(--dark-green);
  display: flex; align-items: center; justify-content: center; font-size: 26px; padding-left: 6px;
  transition: transform .15s ease;
}
.poster:hover .play { transform: scale(1.06); }
.poster:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.poster-label { font-size: 15px; font-weight: 600; }
.rec .body { padding: 24px 26px 28px; flex: 1; }
.rec h4 { font-size: 18px; line-height: 1.25; }
.rec .when { margin-top: 8px; font-size: 14px; color: var(--text-faded); }
.links { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.links a { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-2); padding-bottom: 2px; }
.links a:hover { border-color: var(--text); }
.links .soon { font-size: 14px; color: var(--text-faded); }

/* Themenwunsch */
.wish { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-main); padding: 52px 56px; }
.wish h2 { max-width: 18ch; }
.wish p { margin-top: 14px; font-size: 18px; color: var(--text-faded); max-width: 52ch; line-height: 1.5; }
.field { margin-top: 28px; display: flex; gap: 12px; max-width: 560px; }
.field input {
  flex: 1; min-width: 0; border: 1px solid var(--border-2); background: var(--white); border-radius: var(--radius-small);
  padding: 15px 18px; font-family: inherit; font-size: 16px; color: var(--text);
}
.field input:focus { outline: 2px solid var(--dark-green); outline-offset: 2px; }
.field button { padding: 15px 28px; }
.field button[disabled] { opacity: .6; cursor: wait; }
.field { position: relative; }
.field .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wish-status { margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--text); }
.wish-status.is-error { color: var(--green); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--border-2); }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--text-faded); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 22px; font-size: 16px; color: var(--text-faded); line-height: 1.5; max-width: 72ch; }

/* Footer: dunkelgrün, weißer Text wie auf der Website */
.site-footer { background: var(--dark-green); color: var(--white); padding: 56px 0; }
.fbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .lock { color: var(--white); }
.site-footer .rule { background: rgba(252, 251, 248, .35); }
.site-footer .prog { color: var(--light-green); }
.site-footer a { color: var(--white); text-decoration: none; font-size: 14px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.flinks { display: flex; gap: 16px; }
.fnote { font-size: 14px; color: var(--light-green); }

/* Responsive */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 72px; }
  section { padding: 64px 0; }
  .card { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .archive { grid-template-columns: 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
  .band, .wish { padding: 36px 24px; }
  .field { flex-direction: column; }
  .reg-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .prog, .rule { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-primary, .cta, .book, .field button { transition: none; } }
