/* ============================================================
   High Five — KI-Kurs Landing Page · v3
   Faithful recreation of the High Five CI (preview.high-five.ai):
   warm off-white surface, near-black text, BLACK pill buttons,
   yellow MARKER highlight on key phrases, Instrument Serif display
   + Inter UI/body, subtle rounded gray cards, lots of whitespace.
   ============================================================ */

:root {
  --bg:        #F1EFE9;   /* warm off-white page */
  --surface:   #E8E6DE;   /* subtle card fill */
  --surface-2: #E2E0D7;   /* slightly deeper / hover */
  --ink:       #1B1A15;   /* near-black headings */
  --ink-2:     #65635C;   /* warm gray body */
  --ink-3:     #93908760; /* faint */
  --ink-soft:  #8A877E;   /* muted labels */
  --line:      #DAD7CC;   /* hairline */
  --line-2:    #CFCCC0;

  --accent:  #F6CD24;     /* brand yellow (logo) */
  --hl:      #FBD52B;     /* marker highlight */
  --black:   #16150F;     /* button black */
  --on-black:#F3F1EA;

  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --maxw: 1180px;
  --gutter: 40px;

  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
  color: var(--ink);
}
h3, h4 { font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }

/* marker highlight — the High Five signature */
.hl {
  background-image: linear-gradient(180deg, transparent 14%, var(--hl) 14%, var(--hl) 90%, transparent 90%);
  padding: 0 .06em;
  border-radius: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* eyebrow: small bold sans, sentence case, no decoration */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink-2);
  margin: 0 0 22px;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  padding: 15px 27px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--on-black); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,21,15,.25); }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-text { background: transparent; color: var(--ink); padding: 15px 8px; }
.btn-text:hover { color: var(--ink); }
.btn-text .chev { transition: transform .18s ease; }
.btn-text:hover .chev { transform: translateX(4px); }
.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(130%) blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; gap: 16px;
}
.header-left { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.header-left b { color: var(--ink); font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: center; text-decoration: none; }
.brand .brand-logo { height: 40px; width: auto; display: block; }
.brand .logo-arrow { width: 30px; height: 22px; flex: none; }
.brand .wordmark { font-family: var(--font-ui); font-weight: 600; font-size: 23px; letter-spacing: -0.02em; color: var(--ink); }
.header-right { justify-self: end; display: inline-flex; align-items: center; gap: 22px; }
.header-right .nav-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.header-right .nav-link:hover { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(50px, 7.4vw, 96px); max-width: 15ch; }
.hero .lead { margin-top: 30px; font-size: 21px; max-width: 52ch; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.hero .cta-row { margin-top: 36px; }
.hero .micro { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }
.hero .micro b { color: var(--ink); font-weight: 600; }

/* ---------- photo band ---------- */
.photo-band { padding: 8px 0 64px; }
.photo-frame { width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.photo-frame img { width: 100%; height: clamp(320px, 46vw, 600px); object-fit: cover; display: block; }
.photo-credit { margin-top: 12px; font-size: 13px; color: var(--ink-soft); font-style: italic; }

/* ---------- section heads ---------- */
.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(40px, 5.2vw, 68px); }
.section-head .lead { margin-top: 26px; }

/* ---------- feature columns (pain) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.feature .ic { width: 26px; height: 26px; color: var(--ink); margin-bottom: 16px; }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); }

/* ---------- benefits 2x2 ---------- */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 56px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.benefit {
  background: var(--bg); padding: 38px 40px 40px;
}
.benefit .b-mark { display: inline-block; font-family: var(--font-serif); font-size: 26px; color: var(--ink); line-height: 1; }
.benefit .b-mark em { font-style: normal; background-image: linear-gradient(180deg, transparent 50%, var(--hl) 50%); padding: 0 .12em; }
.benefit h3 { font-size: 20px; margin-top: 16px; }
.benefit p { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- generic content card ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 40px; }

/* ---------- finanzierung ---------- */
.finance-cols { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; margin-top: 8px; }
.price-card { background: var(--surface); border-radius: var(--r-lg); padding: 14px 36px 30px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.price-label { font-weight: 600; font-size: 18px; }
.price-note { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.price-val { font-family: var(--font-serif); font-weight: 400; font-size: 28px; white-space: nowrap; }
.price-total { border-bottom: none; padding-bottom: 6px; }
.price-total .price-label { font-size: 19px; }
.price-total .price-val { font-size: 36px; }
.price-foot { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 16px; color: var(--ink-2); }
.price-foot .free { font-weight: 600; color: var(--ink); }
.price-foot .free .hl { font-family: inherit; }

.steps { margin-top: 4px; display: grid; gap: 30px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step .step-n { font-family: var(--font-serif); font-size: 40px; line-height: .9; color: var(--ink); width: 54px; }
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
.step .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }

/* ---------- timeline ---------- */
.tl { margin-top: 56px; border-top: 1px solid var(--line-2); }
.tl-row { display: grid; grid-template-columns: 132px 1fr auto; gap: 28px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.tl-date { font-family: var(--font-serif); font-size: 24px; color: var(--ink); line-height: 1.1; }
.tl-date .time { display: block; font-family: var(--font-ui); font-size: 14px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }
.tl-body h3 { font-size: 20px; }
.tl-body p { margin-top: 7px; color: var(--ink-2); font-size: 16px; }
.tl-mode { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; text-align: right; }
.tl-mode.onsite { color: var(--ink); }

.cert-track { margin-top: 40px; background: var(--surface); border-radius: var(--r-lg); padding: 34px 40px; }
.cert-track .ct-label { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.cert-items { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cert-item h4 { font-size: 17px; }
.cert-item .opt { font-weight: 500; color: var(--ink-soft); }
.cert-item p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.cert-item .tbd { color: var(--ink); font-weight: 600; }
.cert-note { margin-top: 24px; font-size: 14px; color: var(--ink-soft); padding-top: 18px; border-top: 1px solid var(--line-2); }

.audience { margin-top: 40px; display: flex; gap: 14px 28px; align-items: baseline; flex-wrap: wrap; }
.audience .a-label { font-weight: 700; font-size: 15px; }
.audience .a-val { color: var(--ink-2); font-size: 17px; }

/* ---------- zertifikat ---------- */
.zert { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zert .lead { margin-top: 22px; }
.zert .lead b { color: var(--ink); font-weight: 600; }
.zert-aside { background: var(--surface); border-radius: var(--r-lg); padding: 40px; }
.zert-aside .issuer { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; font-weight: 600; letter-spacing: .02em; }
.zert-aside .ict { font-family: var(--font-serif); font-size: 40px; color: var(--ink); }
.zert-aside p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- kursleitung ---------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 56px; }
.leader { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 28px 30px; }
.leader image-slot { width: 92px; height: 92px; flex: none; }
.leader h3 { font-size: 21px; }
.leader .role { color: var(--ink-2); font-size: 15.5px; margin-top: 5px; }
.leader .ln { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.leader .ln:hover { border-color: var(--accent); }

/* ---------- lisa cta ---------- */
.lisa { text-align: center; max-width: 30ch; margin: 0 auto; }
.lisa h2 { font-size: clamp(38px, 5vw, 60px); }
.lisa .lead { margin: 22px auto 0; text-align: center; }
.lisa .cta-row { justify-content: center; margin-top: 30px; }

/* ---------- testimonial (hidden until cohort) ---------- */
.quote { text-align: center; max-width: 22ch; margin: 0 auto; }
.quote blockquote { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 4vw, 50px); line-height: 1.18; margin: 0; }
.quote .who { margin-top: 34px; display: grid; justify-items: center; gap: 4px; }
.quote .who image-slot { width: 56px; height: 56px; margin-bottom: 10px; }
.quote .who .name { font-weight: 700; font-size: 16px; }
.quote .who .role { color: var(--ink-2); font-size: 14px; }

/* ---------- form ---------- */
.signup-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.signup-aside h2 { font-size: clamp(40px, 5.2vw, 64px); }
.signup-aside .lead { margin-top: 24px; }
.signup-aside .micro { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.signup-aside .micro b { color: var(--ink); font-weight: 600; }
.signup-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.signup-list li { display: flex; gap: 11px; align-items: baseline; font-size: 15.5px; color: var(--ink-2); }
.signup-list .dash { color: var(--ink); font-weight: 700; flex: none; }

.form-card { background: var(--surface); border-radius: var(--r-lg); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-ui); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color .15s, box-shadow .15s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,26,21,.08);
}
.field textarea { resize: vertical; min-height: 84px; }
.field.invalid input, .field.invalid select { border-color: #B43A28; box-shadow: 0 0 0 3px rgba(180,58,40,.1); }
.err-msg { display: none; color: #B43A28; font-size: 13px; margin-top: 6px; font-weight: 500; }
.field.invalid .err-msg { display: block; }

.radio-group { display: grid; gap: 10px; }
.radio-opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg); }
.radio-opt:hover { border-color: var(--line); }
.radio-opt input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--black); flex: none; cursor: pointer; }
.radio-opt:has(input:checked) { border-color: var(--ink); background: #fff6; }
.radio-body b { font-weight: 600; font-size: 15px; }
.radio-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.field.invalid .radio-opt { border-color: #B43A28; }

.checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; cursor: pointer; background: var(--bg); }
.checkbox-field.invalid { border-color: #B43A28; }
.checkbox-field input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--black); flex: none; cursor: pointer; }
.checkbox-field .cb-text { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.checkbox-field .cb-text b { font-weight: 700; }

.form-submit { width: 100%; margin-top: 6px; }
.form-foot { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
.form-success { display: none; text-align: center; padding: 26px 8px; }
.form-success.show { display: block; }
.form-success .big-serif { font-family: var(--font-serif); font-size: 40px; line-height: 1.1; }
.form-success p { color: var(--ink-2); margin-top: 12px; font-size: 17px; }

/* ---------- footer ---------- */
.site-footer { padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-news h4 { font-size: 16px; font-weight: 700; }
.footer-news p { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 32ch; }
.footer-col h4 { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 15px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-soft); }
.footer-legal a { color: var(--ink-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; gap: 34px; }
  .benefit-grid, .finance-cols, .cert-items, .zert, .leaders, .signup-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: 36px; }
  .benefit-grid { gap: 1px; }
  .section { padding: 80px 0; }
  .header-left { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; }
  .zert-aside { order: -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 22px; }
  body { font-size: 17px; }
  .hero { padding: 48px 0 32px; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-mode { text-align: left; }
  .header-right .nav-link { display: none; }
  .btn { width: 100%; }
  .cta-row .btn { width: auto; }
  .price-card, .form-card, .card, .cert-track, .zert-aside, .leader { padding: 26px 22px; }
}

/* ============================================================
   Port-Anpassungen (site/) — echte Assets statt Prototyp-Slots
   + Versand-Status/Fehlerbox (siehe landing.js)
   ============================================================ */
.leader img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }
.quote .who .avatar-ph { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); margin: 0 auto 10px; }

.form-submit[disabled] { opacity: .6; cursor: default; }
.form-submit[disabled]:hover { transform: none; box-shadow: none; }
.form-error {
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  background: #FBEDE9; border: 1.5px solid #B43A28; color: #B43A28;
  font-size: 14px; font-weight: 500; line-height: 1.45;
}
