/* =========================================================
   Musclytics – Umfragen
   Design wie die Website (Landing-Repo assets/site/site.css):
   Marine #013462, Blau #0D6EFD, Orange #FFB84D, Hintergrund #F4F4F9, weiße Karten, Inter.
   ========================================================= */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/assets/fonts/inter-display-800.woff") format("woff"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --navy: #013462;
  --navy-deep: #001d3a;
  --navy-ink: #00152b;
  --blue: #0D6EFD;
  --blue-press: #0A58CA;
  --sky: #6EA8FF;
  --orange: #FFB84D;
  --orange-soft: #FFF1DC;
  --bg: #F4F4F9;
  --card: #FFFFFF;
  --line: #E5E5EA;
  --line-strong: #CDDFFF;
  --text: #1F2328;
  --text-2: #5F6672;
  --text-3: #9CA3AF;
  --primary-soft: #EEF3FF;
  --success: #198754;
  --danger: #B42318;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(1, 26, 51, .06), 0 2px 8px rgba(1, 26, 51, .05);
  --shadow: 0 2px 6px rgba(1, 26, 51, .06), 0 18px 40px -12px rgba(1, 26, 51, .18);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
main { flex: 1; padding-bottom: 72px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-press); }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -200px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; box-shadow: var(--shadow); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--form { max-width: 720px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand--light, .brand--light:hover { color: #fff; }

/* ---------- Kopf der Seite ---------- */
.hero { padding: clamp(36px, 6vw, 64px) 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow .ico { width: 16px; height: 16px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; color: var(--navy-ink); line-height: 1.06; text-wrap: balance; }
.hero__lead { color: var(--text-2); margin-top: 14px; font-size: clamp(17px, 1.6vw, 19px); max-width: 56ch; }

/* ---------- Karten ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(22px, 4vw, 34px); }
.panel--message { margin-top: clamp(36px, 6vw, 64px); }
.panel__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -.02em; color: var(--navy-ink); line-height: 1.15; }
.panel__text { color: var(--text-2); margin-top: 10px; }
.panel__text + .btn, .panel__text + .panel__actions { margin-top: 24px; }
.panel__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; background: var(--primary-soft); color: var(--blue); }
.panel__icon .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.panel__icon--ok { background: #E6F4EC; color: var(--success); }
.panel__icon--warn { background: var(--orange-soft); color: #C77A0A; }

.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; font-size: 16px; border: 1px solid; background: #FDECEC; border-color: #F5C2C2; color: #A12828; }
.alert .ico { width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- Fragen ---------- */
.form { display: grid; gap: 14px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(20px, 3.6vw, 30px); margin: 0; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.q.has-error { border-color: #F5C2C2; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.q__num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); margin-bottom: 6px; }
.q__label { display: block; padding: 0; float: left; width: 100%; font-size: 19px; font-weight: 700; color: var(--navy-ink); letter-spacing: -.01em; line-height: 1.35; }
.q__opt { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.q__body { clear: both; padding-top: 18px; }
.q__error { margin-top: 12px; color: var(--danger); font-size: 15px; font-weight: 600; }
.q__error[hidden] { display: none; }

/* Skala (1–5, 0–10) */
.scale { --n: 5; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.scale--11 { --n: 11; }
.scale__opt { position: relative; cursor: pointer; }
.scale__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.scale__opt span {
  display: grid; place-items: center; height: 52px; border-radius: 14px;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--navy-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.scale__opt:hover span { border-color: var(--line-strong); background: var(--primary-soft); }
.scale__opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(13, 110, 253, .9); }
.scale__opt input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.scale__ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.scale__ends span:last-child { text-align: right; }
@media (max-width: 560px) {
  .scale--11 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .scale__opt span { height: 48px; font-size: 18px; }
}

/* Auswahl (Ja/Nein, Einfach-, Mehrfachauswahl) */
.choices { display: grid; gap: 8px; }
.choices--row { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-strong); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #C5C9D2; background: #fff; transition: background .15s, border-color .15s; }
.opt__box--radio { border-radius: 50%; }
.opt__box--check { border-radius: 7px; }
.opt__box .ico { width: 14px; height: 14px; stroke-width: 3; color: #fff; opacity: 0; }
.opt__box--radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; }
.opt__label { font-weight: 600; color: var(--navy-ink); line-height: 1.35; }
.opt input:checked + .opt__box { background: var(--blue); border-color: var(--blue); }
.opt input:checked + .opt__box .ico, .opt input:checked + .opt__box--radio::after { opacity: 1; }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--sky); outline-offset: 2px; }
.opt.is-on, .opt:has(input:checked) { border-color: var(--blue); background: var(--primary-soft); }

/* Freitext */
.textarea {
  display: block; width: 100%; min-height: 132px; resize: vertical;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--text);
  font-size: 17px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.textarea::placeholder { color: var(--text-3); }
.textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13, 110, 253, .14); }

/* Absenden */
.submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-top: 10px; }
.submit__note { color: var(--text-2); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; background: var(--blue); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: 0 10px 22px -12px rgba(13, 110, 253, .9); transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-press); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: default; }
.btn .ico { width: 18px; height: 18px; }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; padding: 12px 22px; }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: var(--blue); }
@media (max-width: 520px) { .submit .btn { width: 100%; } }

/* ---------- Fuß ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .72); padding: 44px 0 24px; font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 40px; }
.site-footer__slogan { font-family: var(--font-display); font-weight: 800; color: var(--orange); font-size: 17px; margin-top: 12px; letter-spacing: -.01em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 6px; }
.site-footer a:not(.brand) { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Offener Link: unsichtbares Feld gegen Bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
