/* Institut KMU-Werkplatz Schweiz – Gestaltung
   Schrift Geist (SIL Open Font License, siehe fonts/OFL.txt), lokal eingebunden: keine Anfragen an fremde Server. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/geist-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Layout: dunkler Hero mit rotem Verlauf, danach ruhige weisse Abschnitte in einer 1080px-Spalte */
  --ink: #0F1115;
  --text: #272A30;
  --muted: #6E727A;
  --faint: #A3A6AC;
  --line: #E9E9E7;
  --soft: #F5F5F3;
  --paper: #FFFFFF;
  --red: #D9102B;
  --red-light: #FF4D5E;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #FFFFFF; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 108%, rgba(217,16,43,.42) 0%, rgba(217,16,43,.14) 28%, rgba(217,16,43,0) 52%); }
.hero .wrap { position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { display: block; height: 44px; width: auto; }
.logo img { display: block; height: 100%; width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn-ghost { height: 40px; padding: 0 16px; font-size: 14px; background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #E9E9E7; }
.btn-dark { background: var(--ink); color: #FFFFFF; width: 100%; }
.btn-dark:hover { background: #272A30; }
.hero-body { padding: clamp(48px, 9vw, 110px) 0 clamp(64px, 10vw, 128px); max-width: 860px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero h1 { color: #FFFFFF; font-size: clamp(34px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -.04em; margin-top: 22px; }
.hero h1 .acc { color: var(--red-light); }
.hero p { color: rgba(255,255,255,.76); font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; max-width: 620px; margin-top: 24px; }
.hero .cta { margin-top: 34px; }

/* Abschnitte */
section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin-top: 14px; max-width: 720px; }
.lead { font-size: 18px; max-width: 640px; margin-top: 16px; }

.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 36px; }
.theme { background: var(--soft); border-radius: 14px; padding: 22px 20px 24px; }
.theme h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.theme p { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 8px; }

.tasks { margin-top: 36px; border-bottom: 1px solid var(--line); }
.task { display: grid; grid-template-columns: 56px minmax(0, 260px) minmax(0, 1fr); gap: 8px 20px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.task .no { font-size: 14px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.task h3 { font-size: 22px; letter-spacing: -.02em; }
.task p { font-size: 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.stat { background: var(--soft); border-radius: 14px; padding: 26px 24px; }
.stat .num { font-size: clamp(38px, 4.6vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat p { font-size: 15px; line-height: 1.5; margin-top: 12px; }
.src { font-size: 13px; color: var(--faint); margin-top: 16px; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.seats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.seat { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
.seat.you { background: var(--red); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 500; line-height: 1; }
.platform { background: var(--soft); border-radius: 14px; padding: 28px 26px; }
.platform h3 { font-size: 26px; letter-spacing: -.03em; margin-top: 10px; }
.platform p { font-size: 16px; margin-top: 10px; }
.platform a { display: inline-block; margin-top: 16px; font-weight: 500; color: var(--ink); text-underline-offset: 4px; }

/* Newsletter */
.news { background: var(--soft); border-top: 0; }
.form { background: var(--paper); border-radius: 16px; padding: clamp(22px, 3vw, 32px); }
.form label.f { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.form input[type="email"] { width: 100%; height: 50px; border-radius: 10px; border: 1px solid #C9CBD0; padding: 0 14px; font: 400 16px var(--font); color: var(--ink); background: #FFFFFF; }
.form input[type="email"]::placeholder { color: var(--faint); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin-top: 6px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--red); }
.err { min-height: 22px; font-size: 14px; color: #B8081F; margin-top: 6px; }
.done { min-height: 22px; font-size: 14px; color: #1F6B3A; margin-top: 12px; line-height: 1.5; }

/* Fuss */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 44px 0 48px; font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-end; }
footer .logo { height: 38px; }
footer .meta { margin-top: 18px; line-height: 1.6; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; color: rgba(255,255,255,.55); }
footer .links a { text-decoration: none; }
footer .links a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
footer strong { color: #FFFFFF; font-weight: 500; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .logo { height: 38px; }
  .task { grid-template-columns: 34px minmax(0, 1fr); }
  .task p { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Formular: Zusatzelemente */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn-dark { margin-top: 10px; }
.form .btn-dark[disabled] { opacity: .6; cursor: wait; }
.form .fine { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.form .fine a { color: var(--text); text-underline-offset: 3px; }
.thanks { background: var(--paper); border-radius: 16px; padding: clamp(22px, 3vw, 32px); }
.thanks h3 { font-size: 22px; letter-spacing: -.02em; }
.thanks p { margin-top: 8px; }
.thanks:focus { outline: none; }

/* Unterseiten (Rechtliches, Danke) */
.subhead { background: var(--ink); }
.subhead .nav { padding: 18px 0; }
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 8vw, 96px); }
.page h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.page h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 40px; }
.page p, .page ul { margin-top: 12px; }
.page ul { padding-left: 22px; }
.page li { margin-top: 4px; }
.page a { color: var(--ink); text-underline-offset: 3px; }
.page .back { margin-top: 40px; }

/* Auswertung (admin.php) */
.admin { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.admin h1 { font-size: 28px; letter-spacing: -.02em; }
.admin .btn-line { height: 40px; padding: 0 16px; font-size: 14px; background: transparent; color: var(--ink); border: 1px solid #C9CBD0; }
.admin .btn-line:hover { border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.kpi { background: var(--soft); border-radius: 14px; padding: 20px; }
.kpi small { display: block; font-size: 13px; color: var(--muted); }
.kpi strong { display: block; font-size: 36px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; margin-top: 6px; }
.tablebox { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.tablebox table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tablebox th, .tablebox td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.tablebox thead th { border-top: 0; background: var(--soft); font-weight: 500; color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #B8081F; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.warn { background: #FFF1F2; border: 1px solid #F5C2C8; color: #7A0616; border-radius: 10px; padding: 12px 14px; margin-top: 18px; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--soft); }
.card { background: var(--paper); border-radius: 16px; padding: 28px; width: 100%; max-width: 400px; }
.card h2 { font-size: 22px; letter-spacing: -.02em; }
.card .note { margin-top: 6px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border-radius: 10px; border: 1px solid #C9CBD0; padding: 0 12px; font: 400 16px var(--font); }
.card .btn-dark { margin-top: 18px; }
