/* ============================================================
   Schalterix — Waitlist Landingpage
   Design: Option 3a (Desktop) / 1b (Mobile-Referenz)
   ============================================================ */

/* ---------- Self-hosted Webfont: Source Serif 4 ---------- */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-700.woff2') format('woff2');
}

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --bg: #faf7f0;          /* warmes Papier */
  --band: #f1ebdf;        /* Band / Mat */
  --card-page: #ffffff;   /* Karte auf Seite */
  --card-band: #faf7f0;   /* Karte auf Band */
  --ink: #2b2620;         /* Headings / body strong */
  --body: #5a5348;        /* Fliesstext */
  --muted: #8c8478;       /* gedämpft */
  --accent: #9E3F2E;      /* Oxblood */
  --accent-hover: #833427;
  --accent-tint: #efdcd3;
  --accent-dark: #dd9273; /* Akzent auf Dunkel */
  --dashed: #c8bfae;      /* gestrichelte Border */
  --input-border: #ddd4c4;
  --hairline: #e7dfd0;    /* Footer-Linie */
  --dark: #2b2620;        /* dunkles Band */
  --dark-text: #f5f0e6;
  --dot-green: #3d9e63;
  --dot-amber: #e3a93c;
  --dot-red: #c75b38;

  /* Typo */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --content: 1240px;
  --pad-x: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

/* ---------- Reusable ---------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.serif { font-family: var(--serif); }

.btn-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color .15s ease, transform .08s ease;
}
.btn-pill:hover { background: var(--accent-hover); }
.btn-pill:active { transform: translateY(1px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad-x);
  max-width: var(--content);
  margin: 0 auto;
}
.site-header .wordmark { height: 34px; width: auto; display: block; }
.site-header .btn-pill {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
  padding: 64px var(--pad-x) 80px;
  max-width: var(--content);
  margin: 0 auto;
}
.ticket-badge {
  display: inline-block;
  background: #fff;
  border: 1px dashed var(--dashed);
  border-radius: 8px;
  padding: 9px 18px;
  margin-bottom: 26px;
  box-shadow: 0 2px 6px rgba(60, 40, 10, .06);
}
.ticket-badge .label {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.ticket-badge .num {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero .lead {
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 32px;
}
.hero .lead .lead-punch {
  display: block;
  margin-top: 0.7em;
  color: var(--ink);
  font-weight: 700;
}
.hero .cta {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 48px;
}
.hero .cta-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Dashboard-Mock */
.dash-mat {
  background: var(--band);
  border-radius: 18px;
  padding: 22px;
}
.dash-card {
  background: #fff;
  border: 1px dashed var(--dashed);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(60, 40, 10, .08);
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--dashed);
}
.dash-head .title { font-family: var(--serif); font-size: 14.5px; font-weight: 700; }
.dash-head .live { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.dash-rows {
  padding: 16px 20px;
  display: grid;
  gap: 12px;
}
.dash-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-row .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.dot.green { background: var(--dot-green); }
.dot.amber { background: var(--dot-amber); }
.dot.red { background: var(--dot-red); }
.dash-row .dept { font-size: 13.5px; flex: 1; }
.dash-row .status { font-size: 11.5px; color: var(--muted); }
.dash-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-top: 1px dashed var(--dashed);
  background: var(--card-band);
}
.dash-foot .label { font-size: 12px; color: var(--muted); }
.dash-foot .gen { font-size: 12px; font-weight: 600; color: var(--accent); }

/* ============================================================
   Problem — "Kennen Sie das?"
   ============================================================ */
.problem {
  background: var(--band);
  padding: 64px 0;
}
.problem h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--card-band);
  border-radius: 14px;
  padding: 26px;
}
.problem-card .h { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.problem-card .t { font-size: 14.5px; line-height: 1.6; color: var(--body); }

/* ============================================================
   Solution — drei Versprechen + So funktioniert es
   ============================================================ */
.solution { padding: 76px 0; }
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.promise { text-align: center; }
.promise .circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 18px;
}
.promise .h { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.promise .t { font-size: 14.5px; line-height: 1.6; color: var(--body); }

.how {
  margin-top: 64px;
  border-top: 1px dashed var(--dashed);
  padding-top: 44px;
}
.how .kicker {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}
.how-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.how-step { text-align: center; max-width: 240px; }
.how-step .h {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.how-step .t { font-size: 13px; line-height: 1.55; color: var(--body); }
.how-arrow { color: var(--accent); font-size: 22px; }

/* ============================================================
   eduQua-Fakten
   ============================================================ */
.facts {
  background: var(--band);
  padding: 64px 0 68px;
  margin-bottom: 72px;
}
.facts .kicker {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}
.facts h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
}
.facts-lead {
  max-width: 740px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fact {
  background: var(--card-band);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
}
.fact .num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.fact .t {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}
.facts-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body);
}
.facts-note strong { color: var(--ink); }

/* ============================================================
   Audit-Band (dunkel)
   ============================================================ */
.audit {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.audit-band {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: 18px;
  padding: 44px 52px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
.audit .label {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-dark);
  max-width: 280px;
  line-height: 1.25;
}
.audit p { font-size: 16px; line-height: 1.65; margin: 0; }
.audit p strong { color: var(--accent-dark); }

/* ============================================================
   Security & Trust
   ============================================================ */
.trust { padding: 64px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.trust-item .plus { color: var(--accent); font-weight: 700; }
.trust-item .t { font-size: 14px; line-height: 1.5; color: var(--body); }
.trust-note {
  margin: 36px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body);
}
.trust-note strong { color: var(--ink); }

/* ============================================================
   Waitlist-Formular
   ============================================================ */
.waitlist { padding: 0 var(--pad-x) 64px; }
.waitlist-card {
  margin: 0 auto;
  max-width: 720px;
  background: var(--card-page);
  border: 1px dashed var(--dashed);
  border-radius: 16px;
  padding: 40px 44px;
}
.waitlist-card h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.waitlist-card .intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  text-align: center;
  margin-bottom: 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid input,
.form-grid select {
  font: 400 14.5px var(--sans);
  padding: 13px 15px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--card-band);
  color: var(--ink);
  width: 100%;
}
.form-grid select { color: var(--body); }
.form-grid input::placeholder { color: var(--muted); }
.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-grid input[aria-invalid="true"] {
  border-color: var(--dot-red);
}
.form-submit {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 0;
  width: 100%;
}
.form-submit:disabled { opacity: .6; cursor: default; }
.privacy-note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Form-Status-Meldungen */
.form-message {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.55;
  border-radius: 10px;
  padding: 12px 15px;
  text-align: center;
}
.form-message.error {
  background: #f7e7e2;
  color: #8a2f20;
  border: 1px solid #e2b5aa;
}
.form-success {
  text-align: center;
  padding: 12px 0;
}
.form-success .h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success .t {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.field-error {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: #8a2f20;
  text-align: left;
  margin-top: -4px;
}
[hidden] { display: none !important; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.footer-cols {
  max-width: var(--content);
  margin: 0 auto;
  padding: 52px var(--pad-x) 0;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.footer-wordmark { height: 24px; width: auto; }
.footer-tagline {
  margin-top: 15px;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-col a,
.footer-faint,
.footer-self {
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-faint { color: var(--muted); }
/* "Du bist hier": eigener Eintrag in der Gud-Familie, kraeftiger als die Links
   daneben (--ink statt --body). Auf hellem Papier heisst "kraeftiger" dunkler.
   Nie schwaecher — --muted faellt auf 3.5:1 und wirkt wie eine leere Zeile. */
.footer-self { color: var(--ink); }
.footer-bottom {
  max-width: var(--content);
  margin: 40px auto 0;
  padding: 18px var(--pad-x) 30px;
  border-top: 1px solid var(--hairline);
}
.footer-bottom span {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   Rechtsseiten (Impressum / Datenschutz)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 80px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.legal .back {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 32px;
}
.legal .back:hover { text-decoration: underline; }
.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 34px 0 10px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}
.legal p { margin-bottom: 14px; }
.legal a { color: var(--accent); }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal .placeholder {
  background: var(--band);
  border: 1px dashed var(--dashed);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: 700–1080px */
@media (max-width: 1080px) {
  :root { --pad-x: 40px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero .dash-mat {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .problem-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; gap: 32px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .audit-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile: <700px — Referenz Option 1b */
@media (max-width: 700px) {
  :root { --pad-x: 26px; }

  .site-header { padding: 18px 26px; }
  .site-header .wordmark { height: 29px; }
  .site-header .btn-pill { padding: 9px 18px; font-size: 13px; }

  .hero {
    text-align: center;
    padding-top: 36px;
    padding-bottom: 42px;
    gap: 32px;
  }
  .ticket-badge { margin-bottom: 24px; }
  .hero h1 { font-size: 33px; line-height: 1.14; letter-spacing: -0.01em; }
  .hero .lead { font-size: 15px; margin: 0 auto 28px; }
  .hero .dash-mat { max-width: 100%; }

  .problem { padding: 34px 0; }
  .problem h2 { font-size: 24px; margin-bottom: 18px; }
  .problem-grid { gap: 12px; }
  .problem-card { padding: 16px 18px; border-radius: 10px; }
  .problem-card .h { font-size: 15px; }
  .problem-card .t { font-size: 13.5px; line-height: 1.55; }

  .solution { padding: 38px 0; }
  .promises { gap: 26px; }
  .promise { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .promise .circle {
    flex: none;
    width: 44px;
    height: 44px;
    font-size: 19px;
    margin: 0;
  }
  .promise .h { font-size: 15.5px; margin-bottom: 4px; }
  .promise .t { font-size: 13.5px; line-height: 1.55; }

  .how { margin-top: 30px; padding-top: 30px; }
  .how .kicker { font-size: 11px; margin-bottom: 16px; }
  .how-row { flex-direction: column; gap: 18px; }
  .how-arrow { display: none; }
  .how-step { max-width: none; }
  .how-step .h { font-size: 16px; }

  .facts { padding: 36px 0 40px; margin-bottom: 40px; }
  .facts h2 { font-size: 24px; }
  .facts-lead { font-size: 14px; margin-bottom: 24px; text-align: left; }
  .facts-grid { gap: 12px; }
  .fact { padding: 16px 14px; border-radius: 10px; }
  .fact .num { font-size: 25px; margin-bottom: 5px; }
  .fact .t { font-size: 12.5px; }
  .facts-note { margin-top: 22px; font-size: 13px; text-align: left; }

  .audit-band {
    padding: 26px 24px;
    border-radius: 12px;
    gap: 14px;
  }
  .audit .label { font-size: 21px; max-width: none; }
  .audit p { font-size: 14.5px; line-height: 1.6; }

  .trust { padding: 36px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-note { margin-top: 22px; font-size: 13px; text-align: left; }

  .waitlist { padding: 0 26px 36px; }
  .waitlist-card { padding: 28px 24px; border-radius: 12px; }
  .waitlist-card h2 { font-size: 23px; text-align: left; }
  .waitlist-card .intro { font-size: 13px; text-align: left; margin-bottom: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .privacy-note { text-align: left; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding-top: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 32px; }

  .legal h1 { font-size: 30px; }
}

/* ============================================================
   Animationen — dezent, nur wenn erwünscht
   .reveal wird per anim.js gesetzt; ohne JS bleibt alles sichtbar.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
