:root {
  --brand: #1580ae;
  --on-brand: #ffffff;
  --bg: #f3f8fb;
  --surface: #ffffff;
  --text: #11232f;
  --muted: #566875;
  --border: #d6e3ec;
  --link: #0f6a92;
  --brand-strong: #106a91;
  --brand-strong-hover: #0c5677;
  --brand-tint: #e7f3f9;
  --field: #ffffff;
  --field-border: #b9cddb;
  --ring: rgba(21, 128, 174, 0.28);
  --danger: #b3261e;
  --danger-tint: #fdecea;
  --success: #1e7d4f;
  --success-tint: #e3f4ea;
  --shadow: 0 1px 2px rgba(17, 35, 47, 0.05), 0 10px 30px rgba(17, 35, 47, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1820;
    --surface: #15232e;
    --text: #e5eef4;
    --muted: #9db0bd;
    --border: #253744;
    --link: #6cc3ea;
    --brand-strong: #12709a;
    --brand-strong-hover: #157aa5;
    --brand-tint: #133246;
    --field: #0f1d27;
    --field-border: #34505f;
    --ring: rgba(108, 195, 234, 0.35);
    --danger: #f2b8b5;
    --danger-tint: #3b1b1a;
    --success: #7fdcaa;
    --success-tint: #173628;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--brand); color: var(--on-brand); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-brand); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; }

/* Sprachen: Handy Menü «DE ▾», Computer Kürzel nebeneinander */
.top .languages { display: none; gap: 2px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.top .languages a, .top .languages span { padding: 5px 9px; border-radius: 999px; color: var(--on-brand); text-decoration: none; }
.top .languages a { opacity: 0.85; }
.top .languages a:hover { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.top .languages span { background: var(--on-brand); color: var(--brand); }
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: var(--on-brand);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; cursor: pointer; list-style: none; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
}
.lang-menu[open] summary { background: rgba(255, 255, 255, 0.26); }
.lang-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lang-menu summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px;
  border-radius: 10px; color: var(--text); text-decoration: none;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--brand-tint); outline: none; }
.lang-menu a[aria-current] { font-weight: 700; color: var(--link); }
.lang-menu a[aria-current]::after { content: '✓'; }
@media (min-width: 640px) {
  .top .languages { display: flex; }
  .lang-menu { display: none; }
}

main.wrap { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.4rem 0; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 0.4rem; }
h3 { font-size: 1.05rem; margin: 0.4rem 0 0.2rem; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 2.6rem; }
.tagline { font-size: 1.2rem; color: var(--muted); margin: 0; }
.hero-cta { margin: 24px 0 0; }
.hero-note { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 24px 0; }
.feature, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature .icon { font-size: 1.8rem; }
.card { margin-top: 16px; }
.card h2 { margin-top: 0; }
.signature { font-style: italic; color: var(--muted); }

.legal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 22px 22px; }
.legal section h2 { font-size: 1.1rem; }
.lead { font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.9rem; margin: 0; }
li { margin: 0.2rem 0; }

footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: grid; gap: 8px; padding-top: 24px; padding-bottom: 36px; }
footer p { margin: 0; }
.foot-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; font-size: 0.95rem; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 500; }
footer a { white-space: nowrap; }
@media (min-width: 640px) {
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
}
.foot-links a:hover, .foot-links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2.1rem; }
  .legal { padding: 4px 14px 16px; }
}

.note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--brand-strong); color: #ffffff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, transform 0.05s ease;
}
.button:hover { background: var(--brand-strong-hover); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.button:disabled { opacity: 0.65; cursor: default; transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Beta-Anmeldung: Handy Einleitung → Formular → Schritte; Computer links Einleitung und Schritte, rechts Formular */
.beta { display: grid; gap: 28px; margin-top: 8px; grid-template-areas: 'intro' 'card' 'steps'; }
.beta-intro { grid-area: intro; }
.beta-steps { grid-area: steps; }
.beta-card { grid-area: card; }
.beta-otter { display: block; width: 72px; height: 72px; }
.beta-intro h1 { font-size: 2.1rem; margin: 14px 0 10px; }
.beta-intro .lead { margin: 0; }
.steps-title { font-size: 1.05rem; margin: 4px 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; margin: 0; }
.step-no {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-tint); color: var(--link); font-weight: 700;
}
.steps strong { display: block; line-height: 1.35; padding-top: 5px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.beta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow);
}
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: 0.98rem; padding: 0; }
.field > legend { float: left; width: 100%; margin-bottom: 8px; }
.field input[type='email'], .field input:not([type]) {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--field-border); border-radius: 12px;
  background: var(--field); color: var(--text); font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }

.choices { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  position: relative; display: grid; align-content: start; gap: 2px; padding: 14px 16px; min-height: 64px;
  border: 1.5px solid var(--field-border); border-radius: 12px; background: var(--field);
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice:hover { border-color: var(--brand); }
/* Kreis oben rechts in der Kachel, gewählt: gefüllt mit weissem Punkt */
.choice::after {
  content: ''; position: absolute; right: 14px; top: 16px; width: 18px; height: 18px;
  border: 2px solid var(--field-border); border-radius: 50%; box-sizing: border-box; background: var(--field);
}
.choice-name { font-weight: 700; padding-right: 26px; }
.choice-via { color: var(--muted); font-size: 0.88rem; }
input:checked + .choice { border-color: var(--brand); background: var(--brand-tint); }
input:checked + .choice::after { border-color: var(--brand-strong); background: radial-gradient(circle, #ffffff 0 3px, var(--brand-strong) 3.5px); }
input:focus-visible + .choice { box-shadow: 0 0 0 4px var(--ring); }

.hint { margin: 2px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--brand-tint); font-size: 0.9rem; line-height: 1.5; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-strong); cursor: pointer; }
.consent a { white-space: nowrap; }

.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--danger-tint); color: var(--danger); font-size: 0.95rem; font-weight: 500; }
.button-lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.button-block { width: 100%; min-height: 56px; border-radius: 14px; font-size: 1.05rem; }

.thanks { text-align: center; padding: 20px 4px 8px; outline: none; }
.thanks-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto;
  border-radius: 50%; background: var(--success-tint); color: var(--success); font-size: 2.2rem; font-weight: 700;
}
.thanks h2 { font-size: 1.4rem; margin: 18px 0 8px; }
.thanks p { margin: 0 auto; max-width: 34ch; color: var(--muted); }

.beta-contact { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 0.93rem; }

@media (min-width: 860px) {
  .beta {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); grid-template-rows: auto 1fr;
    grid-template-areas: 'intro card' 'steps card'; column-gap: 56px; row-gap: 32px; align-items: start; margin-top: 24px;
  }
  .beta-intro { padding-top: 12px; }
}
@media (max-width: 520px) {
  .beta-card { padding: 22px 18px; border-radius: 16px; }
  .beta-intro h1 { font-size: 1.8rem; }
  .steps-title { margin-top: 8px; }
}
@media (max-width: 400px) {
  .beta-card { padding: 20px 14px; }
  .choice { padding: 12px; }
  .choice::after { right: 10px; top: 14px; }
}
@media (max-width: 339px) {
  .choices { grid-template-columns: 1fr; }
}
