/* ==========================================================================
   Gemeinsames Stylesheet. Grundlage: design-guide.pdf (Farben, Inter Variable,
   Buttons, Radien, Abstände). Keine externen Ressourcen, keine Inline-Styles.
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Akzent (Grün) */
  --accent: #2e7d46;
  --accent-hover: #25663a;
  --accent-active: #1f5030;
  --accent-light: #46a265;
  --accent-subtle: #ebf6ee;
  --accent-subtle-hover: #dcefe2;
  --on-accent: #ffffff;
  /* Neutrale Töne */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --ink-5: #b4b4ba;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-deep: #ececf0;
  --line-subtle: #e8e8ed;
  --line: #d2d2d7;
  /* Status */
  --ok: #25663a;
  --warn: #9a5b00;
  --err: #c0352b;
  --info: #2563a8;
  --ok-subtle: #ebf6ee;
  --warn-subtle: #fdf3e1;
  --err-subtle: #fdecea;
  --info-subtle: #e8f0fa;
  --wa: #25d366;
  /* Maße */
  --r4: 4px;
  --r6: 6px;
  --r8: 8px;
  --r12: 12px;
  --r22: 22px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t: 150ms;
  --ring: rgba(46, 125, 70, 0.18);
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}


*, *::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(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); border-radius: var(--r6); }
/* Überschriften erhalten nur programmatisch den Fokus (für Screenreader nach einem Seitenwechsel). Kein sichtbarer Rahmen. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
[hidden] { display: none !important; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r8);
  text-decoration: none; transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 12px; }

/* Typografie ------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.04em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
h4 { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.subtitle { font-size: 17px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink-3); line-height: 1.45; }
.label { font-size: 13px; font-weight: 500; }
.overline { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
h1 .thin, h2 .thin { font-weight: 300; color: var(--accent); }

/* Layout ---------------------------------------------------------------- */
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Seitenrahmen: Desktop mit Menü links, Mobil mit Leiste oben ------------------ */
.shell { min-height: 100vh; display: block; }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-subtle); }
.topbar-inner { display: flex; align-items: center; gap: 8px; padding: 10px 20px; }
.topnav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: none; padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.topnav a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent-hover); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; }
.brand img { height: 32px; width: auto; }
.topbar .brand span { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.main-inner { width: 100%; max-width: 960px; margin: 0 auto; padding: 28px 20px 56px; flex: 1; }
.site-footer { padding: 24px 0 32px; color: var(--ink-3); font-size: 13px; background: var(--surface); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 24px; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.site-footer a, .site-footer button.link { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover, .site-footer button.link:hover { color: var(--accent); text-decoration: underline; }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 288px minmax(0, 1fr); }
  .topbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 32px 20px 24px; background: #212121; color: #f5f5f7;
  }
  .sidebar .brand { padding-left: 14px; }
  .sidebar .brand img { height: 40px; }
  .sidenav { display: grid; gap: 4px; }
  .sidenav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px;
    color: #d2d2d7; text-decoration: none; font-weight: 500; letter-spacing: -0.01em;
    transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
  }
  .sidenav a:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
  .sidenav a[aria-current="page"] { background: rgba(95, 181, 119, 0.18); color: #78c58d; }
  .sidenav .icon { width: 18px; height: 18px; }
  .side-extra { display: grid; gap: 10px; }
  .side-extra:empty { display: none; }
  .side-title { padding: 0 14px; color: #9a9a9a; }
  .sidebar :focus-visible { box-shadow: 0 0 0 2px #212121, 0 0 0 4px #5fb577; }
  .main-inner { padding: 40px 32px 72px; margin: 0; max-width: none; }
  .site-footer .links { padding: 0 32px; margin: 0; max-width: none; }
}

/* Übersicht in der Seitenleiste */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; color: var(--ink-3); font-size: 14px; }
.steps .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-5); display: grid; place-items: center; background: var(--bg); }
.steps .dot svg { width: 12px; height: 12px; stroke: var(--on-accent); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--accent); border-color: var(--accent); }
.steps li.done .dot svg { opacity: 1; }
.steps li.current { background: var(--accent-subtle); color: var(--accent-hover); font-weight: 600; }
.steps li.current .dot { border-color: var(--accent); }
.side-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-toc a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.side-toc a:hover { background: var(--surface); color: var(--ink); }

button.link { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover, .site-footer button.link:hover { color: var(--accent); text-decoration: underline; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
button.link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  border-radius: var(--r4);
}

/* Karten --------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r12);
  padding: 20px;
}
.card.soft { background: var(--surface); border-color: transparent; }
.card.accent { background: var(--accent-subtle); border-color: transparent; }
.card.big { border-radius: var(--r22); padding: 32px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r12); font-size: 14px; }
.callout svg { flex: none; margin-top: 2px; }
.callout.info { background: var(--surface); border: 1px solid var(--line-subtle); border-radius: 16px; padding: 18px 20px; gap: 16px; align-items: flex-start; }
.callout.info > svg { box-sizing: border-box; width: 36px; height: 36px; padding: 8px; margin-top: 0; border-radius: 50%; background: var(--accent-subtle); color: var(--accent-hover); }
.callout-title { margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.callout-body p { margin: 0; color: var(--ink-2); }
.callout-body p + p { margin-top: 0; }
.callout.warn { background: var(--warn-subtle); color: var(--warn); }
.callout.err { background: var(--err-subtle); color: var(--err); }
.callout.ok { background: var(--ok-subtle); color: var(--ok); }
.callout .callout-body { color: var(--ink); }
.callout.err .callout-body, .callout.warn .callout-body { color: var(--ink); }

/* Icons (Lucide-Stil: 1,5 px Strich, runde Enden) ------------------------ */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 22px;
  font: 400 15px/1 var(--font); letter-spacing: -0.01em;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.btn.sm { --btn-h: 36px; font-size: 14px; padding: 0 16px; }
.btn.lg { --btn-h: 52px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, #2e7d46 0%, #25663a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover:not(:disabled) {
  color: var(--on-accent);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #25663a 0%, #1f5030 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 18px rgba(31, 80, 48, 0.35);
}
.btn-primary:active:not(:disabled) { background: #1f5030; transform: scale(0.98); }
.btn-primary:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.btn-secondary { background: var(--accent-subtle); color: var(--accent-hover); }
.btn-secondary:hover:not(:disabled) { background: var(--accent-subtle-hover); color: var(--accent-hover); }
.btn-outline { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { background: var(--surface); color: var(--ink); border-color: var(--ink-5); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover:not(:disabled) { opacity: 0.88; color: var(--bg); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(0.92); color: #fff; }
.btn-white { background: #fff; color: #1d1d1f; }
.btn-whatsapp { background: var(--wa); color: #0b1a10; }
.btn-whatsapp:hover:not(:disabled) { filter: brightness(0.95); color: #0b1a10; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--surface-deep); color: var(--ink-5); border-color: transparent;
  box-shadow: none; cursor: not-allowed;
}
.btn.arrow::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor; margin-right: -4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.btn.arrow:hover:not(:disabled)::after { transform: translateX(2px); }
.btn.loading { pointer-events: none; }
.btn.loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Formularfelder ------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 500; }
.input {
  width: 100%; height: 44px; padding: 0 14px;
  font: 400 15px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r8);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--err); }
.help { font-size: 13px; color: var(--ink-3); }
.error-text { font-size: 13px; color: var(--err); font-weight: 500; }

/* Checkbox / Radio -------------------------------------------------------- */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check .box {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--ink-5); border-radius: var(--r6); background: var(--bg);
  display: grid; place-items: center;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.check .box svg { width: 14px; height: 14px; stroke: var(--on-accent); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.7); transition: all var(--t) var(--ease); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.check:hover .box { border-color: var(--accent); }
.check[data-invalid="true"] .box { border-color: var(--err); }

.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r12); background: var(--bg);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  position: relative;
}
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .dot {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid var(--ink-5); background: var(--bg); display: grid; place-items: center;
  transition: border-color var(--t) var(--ease);
}
.choice .dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform var(--t) var(--ease);
}
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); }
.choice:has(input:checked) .dot { border-color: var(--accent); }
.choice:has(input:checked) .dot::after { transform: scale(1); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.choice .choice-text { display: block; }
.choice.compact { padding: 11px 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row .choice { padding: 10px 14px; }

/* Fortschritt ----------------------------------------------------------- */
.progress { height: 6px; background: var(--surface-deep); border-radius: 999px; overflow: hidden; }
.progress > span {
  display: block; height: 100%; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 999px; transition: width 260ms var(--ease);
}
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }

/* Cookie-Banner ---------------------------------------------------------- */
.cc-root {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(24, 24, 26, 0.34); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cc-card {
  width: 100%; max-width: 620px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-subtle); border-radius: var(--r22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  padding: 36px; max-height: calc(100vh - 40px); overflow: auto;
}
.cc-card h2 { font-size: 24px; letter-spacing: -0.04em; margin-bottom: 12px; }
.cc-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cc-actions .btn { flex: 1 1 180px; --btn-h: 48px; }
.cc-cats { display: grid; gap: 10px; margin-top: 14px; }
.cc-cat { border: 1px solid var(--line-subtle); border-radius: var(--r12); padding: 12px 14px; background: var(--surface); }
.cc-cat .row { align-items: flex-start; }
.cc-cat h3 { font-size: 15px; letter-spacing: -0.01em; }
.cc-cat p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.switch { position: relative; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--ink-5); transition: background-color var(--t) var(--ease); }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform var(--t) var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .track { opacity: 0.6; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--surface-deep); color: var(--ink-3); letter-spacing: 0.02em; }
.badge.ok { background: var(--ok-subtle); color: var(--ok); }

/* Linktree (Startseite) ---------------------------------------------------- */
.hero { display: grid; gap: 28px; align-items: center; }
.portrait {
  width: 144px; height: 144px; border-radius: var(--r22); overflow: hidden;
  border: 1px solid var(--line-subtle); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); background: var(--surface);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero h1 { margin-bottom: 6px; font-size: 40px; }
.hero .cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.about { padding: 28px; }
.about h2 { font-size: 18px; letter-spacing: -0.03em; margin-bottom: 10px; }
.about p:last-child { margin-bottom: 0; }
.contact-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.link-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 20px 12px 14px; min-height: 68px;
  background: var(--bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.link-btn:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 6px 18px rgba(46, 125, 70, 0.14); color: var(--ink); }
.link-btn:active { transform: scale(0.99); }
.link-btn .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent-hover); display: grid; place-items: center; }
.link-btn .txt { flex: 1; min-width: 0; display: grid; }
.link-btn .t1 { font-weight: 600; letter-spacing: -0.01em; }
.link-btn .t2 { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn .go { color: var(--ink-4); }
@media (min-width: 720px) {
  .hero { grid-template-columns: 144px 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Umfrage ------------------------------------------------------------------ */
.survey-head { margin-bottom: 20px; }
.survey-head h1 { font-size: 28px; }
.survey-title { margin-bottom: 8px; }
.q { padding: 20px 0; border-top: 1px solid var(--line-subtle); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.35; }
.q-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.q-title + .choice-list, .q-title + .matrix { margin-top: 16px; }
.q-note { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--ink-4); }
.q.invalid .q-title { color: var(--err); }
.q .error-text { margin-top: 10px; display: block; }
.phase-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.phase-table th, .phase-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line-subtle); }
.phase-table th { width: 128px; font-weight: 600; white-space: nowrap; }
.phase-table tr:first-child th, .phase-table tr:first-child td { border-top: 0; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-subtle); }
.nav .grow { flex: 1; }
.form-error { margin-top: 16px; }

/* Skala (7 Stufen) */

.matrix { margin-top: 8px; }
.matrix-head { display: none; }
.stmt { margin: 0; padding: 18px 0; border-top: 1px solid var(--line-subtle); min-width: 0; }
.stmt:first-of-type { border-top: 0; }
.stmt-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.stmt-text { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.stmt.invalid .stmt-text { color: var(--err); }
.opts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt .num {
  display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--r8);
  background: var(--bg); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 15px;
  transition: all var(--t) var(--ease);
}
.opt .lbl { display: none; }
.opt:hover .num { border-color: var(--accent); }
.opt input:checked + .num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opt input:focus-visible + .num { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.scale-ends { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.scale-ends span:nth-child(2) { text-align: center; }
.scale-ends span:last-child { text-align: right; }
.echo { min-height: 20px; margin-top: 8px; font-size: 14px; color: var(--accent-hover); font-weight: 600; }

@media (min-width: 760px) {
  /* Desktop und Tablet: jede Aussage als eigene Karte, Text oben in voller Breite,
     darunter die sieben Stufen mit Beschriftung direkt unter dem Auswahlkreis (keine Legende nötig). */
  .matrix-head, .scale-ends, .scale-legend-sm, .stmt .echo { display: none; }
  .matrix { display: grid; gap: 12px; margin-top: 16px; }
  .stmt { padding: 22px 20px 14px; border: 1px solid var(--line-subtle); border-radius: var(--r12); background: var(--bg); }
  .stmt:first-of-type { border: 1px solid var(--line-subtle); }
  .stmt.invalid { border-color: var(--err); }
  .stmt-head { margin-bottom: 14px; }
  .stmt-text { font-size: 16px; line-height: 1.45; }
  .stmt .opts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .stmt .opt { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px 4px 10px; border-radius: var(--r12); text-align: center; transition: background-color var(--t) var(--ease); }
  .stmt .opt:hover { background: var(--surface); }
  .stmt .opt:has(input:checked) { background: var(--accent-subtle); }
  .stmt .opt .num { width: 22px; height: 22px; border-radius: 50%; border-width: 1.5px; font-size: 0; }
  .stmt .opt .lbl { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-3); hyphens: auto; }
  .stmt .opt:has(input:checked) .lbl { color: var(--accent-hover); font-weight: 600; }
  .stmt .opt input:checked + .num { background: var(--accent); box-shadow: inset 0 0 0 4px var(--bg); }
  .stmt .opt:hover .num { border-color: var(--accent); }
  .stmt .opt input:focus-visible + .num { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
  .stmt .opt input:checked:focus-visible + .num { box-shadow: inset 0 0 0 4px var(--bg), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
}

/* Q6: Nutzung je Phase */
.phase-card { border: 1px solid var(--line-subtle); border-radius: var(--r12); padding: 16px; margin-top: 14px; background: var(--bg); }
.phase-card.invalid { border-color: var(--err); }
.phase-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.phase-card h3 { font-size: 16px; letter-spacing: -0.02em; }
.channel { padding: 14px 0; border-top: 1px solid var(--line-subtle); }
.channel-label { font-size: 14px; font-weight: 500; margin-bottom: 16px; line-height: 1.4; }
.channel.invalid .channel-label { color: var(--err); }
.freq { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.freq .opt .num { height: 44px; font-size: 13px; padding: 0 4px; text-align: center; line-height: 1.15; }
.freq .opt .lbl { display: none; }
.channel.off { opacity: 0.45; }
.channel.off .opt { pointer-events: none; }
@media (max-width: 520px) {
  .freq { grid-template-columns: 1fr 1fr; }
}
.na-box { margin-bottom: 8px; }

/* Danke-Seite */
.done-head { display: flex; align-items: center; gap: 16px; }
.done-head h1 { font-size: 28px; }
.done-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent-hover); display: grid; place-items: center; }
.thanks-grid { display: grid; gap: 20px; align-items: start; }
.card p, .card li { max-width: 92ch; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Rechtstexte --------------------------------------------------------------- */
.legal { padding-bottom: 40px; }
.legal p, .legal li { max-width: 80ch; }
@media (min-width: 1024px) { .legal .toc { display: none; } }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; letter-spacing: -0.02em; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; margin-bottom: 12px; line-height: 1.6; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line-subtle); }
.legal th { background: var(--surface); font-weight: 600; }
.legal .toc { background: var(--surface); border-radius: var(--r12); padding: 16px 20px; margin: 20px 0 8px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }
.legal .stand { color: var(--ink-3); font-size: 13px; }
.table-scroll { overflow-x: auto; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .card.big { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .cc-root, .topbar, .sidebar, .site-footer, .nav { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Hilfsklassen (statt Inline-Styles, wegen strikter Content-Security-Policy) */
.list-plain { list-style: none; padding: 0; margin: 0; }
.flush { border: 0 !important; padding-bottom: 0 !important; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.tight { margin: 2px 0 0; }
.h-sm { font-size: 18px; letter-spacing: -0.03em; }
.not-reached-row {
  display: inline-flex; align-items: center; gap: 12px; margin: 24px 0 8px; padding: 10px 18px 10px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2);
  font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.not-reached-row .box { margin-top: 0; width: 22px; height: 22px; border-radius: 50%; }
.not-reached-row:hover { border-color: var(--accent); }
.not-reached-row:has(input:checked) { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent-hover); }
.not-reached-row + .channel { border-top: 0; }
.phase-card header { margin-bottom: 0; }

#progress { margin-bottom: 24px; }

/* Info-Knopf und Hinweisfenster (Kontrollfrage) */
.info-btn {
  flex: none; width: 24px; height: 24px; margin-top: -1px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-4); cursor: pointer; display: grid; place-items: center;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}
.info-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.info-btn:hover { color: var(--accent-hover); background: var(--accent-subtle); transform: scale(1.06); }
.info-dialog {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r22);
  background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}
.info-dialog::backdrop { background: rgba(17, 17, 19, 0.45); backdrop-filter: blur(2px); }
.info-dialog .dialog-body { padding: 28px 28px 24px; display: grid; gap: 12px; }
.info-dialog h2 { font-size: 20px; }
.info-dialog p { margin: 0; color: var(--ink-2); }
.info-dialog .dialog-actions { margin-top: 8px; display: flex; justify-content: flex-end; }

/* Kleine Legende (nur Handy): zusätzlich zu den Ankerpunkten unter den Auswahlfeldern */
.scale-legend-sm { display: none; }
@media (max-width: 759px) {
  .scale-legend-sm { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r12); background: var(--surface); font-size: 12px; line-height: 1.4; color: var(--ink-3); }
  .scale-legend-sm b { color: var(--accent-hover); font-weight: 600; }
}

@media (min-width: 1024px) {
  .sidebar .steps li { color: #b0b0b0; }
  .sidebar .steps .dot { border-color: #666666; background: transparent; }
  .sidebar .steps .dot svg { stroke: #0b1a10; }
  .sidebar .steps li.done { color: #d2d2d7; }
  .sidebar .steps li.done .dot { background: #5fb577; border-color: #5fb577; }
  .sidebar .steps li.current { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
  .sidebar .steps li.current .dot { border-color: #5fb577; }
  .sidebar .side-toc a { color: #a1a1a6; }
  .sidebar .side-toc a:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
}

/* Kontakt-Hinweis mit Foto: unten in der Seitenleiste (Desktop), im Seitenfuß (Handy) */
.contact-card { display: flex; align-items: center; gap: 14px; }
.contact-card .avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; border: 1px solid var(--line-subtle); }
.contact-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.contact-card a { display: block; color: var(--accent-hover); text-underline-offset: 3px; word-break: break-word; }
.footer-contact { width: 100%; max-width: 960px; margin: 0 auto 20px; padding: 0 20px; }
@media (min-width: 1024px) {
  .footer-contact { display: none; }
  .sidebar .contact-card { align-items: center; gap: 10px; padding: 18px 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .sidebar .contact-card .avatar { width: 42px; height: 42px; border-color: rgba(255, 255, 255, 0.2); }
  .sidebar .contact-card p { color: #b0b0b0; font-size: 12.5px; white-space: nowrap; }
  .sidebar .contact-card a { color: #78c58d; }
}
