/* ADLIONS Förderportal — helles Lila wie das CRM (Duralux). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/Archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152, U+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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/Archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --accent: #a855f7;
  --accent-deep: #8b5cf6;
  --accent-btn: #7052cf;
  --accent-btn-hover: #5d40bb;
  --accent-ink: #6d28d9;
  --accent-soft: #f3e8ff;
  --ink: #16181f;
  --ink-2: #4b5160;
  --ink-3: #7c8398;
  --canvas: #f4f4f5;
  --surface: #ffffff;
  --line: #ececf1;
  --line-strong: #dedee7;
  --ok: #15803d;
  --ok-soft: #e8f6ec;
  --warn: #b45309;
  --warn-soft: #fdf3e5;
  --err: #b42318;
  --err-soft: #fdecea;
  --head: "Archivo", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.fd-body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(820px 360px at 88% -12%, rgba(168, 85, 247, .20), transparent 70%),
    radial-gradient(560px 300px at -8% 2%, rgba(217, 70, 239, .12), transparent 72%),
    radial-gradient(700px 420px at 50% 108%, rgba(112, 82, 207, .10), transparent 70%),
    var(--canvas);
  background-attachment: fixed;
  font: 15px/1.55 var(--head);
  letter-spacing: -.005em;
}

/* ---------- Kopf ---------- */
.fd-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(168, 85, 247, .10), 0 10px 26px -26px rgba(22, 24, 31, .5);
}
.fd-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .55), rgba(217, 70, 239, .45), transparent);
}
.fd-brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.fd-logo { display: block; height: 34px; width: auto; }
.fd-nav { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.fd-nav a { color: var(--ink-2); text-decoration: none; }
.fd-nav a:hover { color: var(--accent-ink); }
.fd-nav a.is-on { color: var(--accent-ink); font-weight: 650; }
.fd-mail {
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-3); font-size: 12.5px;
}
.fd-quiet { color: var(--ink-3) !important; }

/* ---------- Flächen ---------- */
.fd-main { flex: 1; width: 100%; padding: 26px 18px 60px; }
.fd-wrap { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
.fd-wrap--single { grid-template-columns: 1fr; max-width: 760px; }
.fd-wrap--wide { grid-template-columns: 1fr; max-width: 1120px; }
.fd-side { display: grid; gap: 12px; position: sticky; top: 76px; }

.fd-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(22, 24, 31, .04), 0 20px 36px -32px rgba(22, 24, 31, .55);
}
.fd-h1 { margin: 2px 0 6px; font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.h1 { margin: 0 0 10px; font-size: 27px; font-weight: 700; letter-spacing: -.035em; }
.fd-lead { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.fd-kicker { margin: 0 0 3px; color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.fd-note { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; }
.fd-tip { margin: 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--ink-3); font-size: 12.5px; }

/* ---------- Startseite ---------- */
.fd-hero {
  width: min(1080px, 100%);
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: start;
}
.fd-hero h1 { margin: 4px 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.04em; }
.fd-hero .fd-lead { max-width: 46ch; }
.fd-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.fd-points li { display: flex; gap: 12px; align-items: flex-start; }
.fd-points li > span {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px;
}
.fd-points strong { display: block; font-size: 14.5px; }
.fd-points em { font-style: normal; color: var(--ink-3); font-size: 13px; }

.fd-auth { padding: 18px; }
.fd-auth-form { display: grid; gap: 4px; }
.fd-alt { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.fd-alt a { color: var(--accent-ink); }
.fd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fd-help { width: min(560px, 100%); margin: 10px auto 0; display: grid; gap: 10px; text-align: center; }
.fd-help h1 { margin: 0; }
.fd-help-stack { display: grid; gap: 10px; }
.fd-help-stack article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.fd-help-stack strong { display: block; margin-bottom: 4px; font-size: 15px; }
.fd-help-stack p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.fd-help .fd-actions { justify-content: center; }

/* ---------- Startseite: nur die zwei Funktionen ---------- */
.fd-start { width: min(640px, 100%); margin: 5vh auto 0; display: grid; gap: 16px; justify-items: center; }
.fd-start-eyebrow {
  margin: 0; padding: 5px 10px; border: 1px solid #e9dcff; border-radius: 6px;
  background: linear-gradient(180deg, #faf7ff, #f3e8ff); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.fd-start-title { margin: 0; text-align: center; font-size: clamp(30px, 7vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; }
.fd-start-hi {
  background: linear-gradient(96deg, var(--accent-ink), var(--accent) 55%, #d946ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fd-start-sub { margin: 0; max-width: 48ch; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.fd-start-list { width: 100%; display: grid; gap: 12px; }
.fd-start-item {
  position: relative; display: grid; gap: 3px; padding: 20px 50px 20px 20px; text-align: center; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #fff, #fdfcff); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22, 24, 31, .05), 0 16px 30px -24px rgba(94, 66, 180, .5);
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.fd-start-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22, 24, 31, .06), 0 22px 36px -24px rgba(94, 66, 180, .6); }
.fd-start-item strong { font-size: 17.5px; letter-spacing: -.025em; }
.fd-start-item span:not(.fd-arrow):not(.fd-start-emoji) { color: var(--ink-2); font-size: 13px; }
.fd-start-emoji { font-size: 27px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(94, 66, 180, .18)); }
.fd-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--accent-ink); transition: right .14s ease; }
.fd-start-item:hover .fd-arrow { right: 13px; }
.fd-start-facts { margin: 0; text-align: center; color: var(--ink-3); font-size: 12.5px; }

/* ---------- Fördergeber-Siegel ---------- */
.fd-seals { width: 100%; display: grid; gap: 10px; margin-top: 10px; }
.fd-seals-title { margin: 0; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fd-seal-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.fd-seal-list li:last-child:nth-child(3n + 2) { grid-column: span 2; }
.fd-seal-item {
  display: grid; justify-items: center; gap: 3px; padding: 14px 9px; text-align: center;
  background: linear-gradient(180deg, #fff, #fbfbfe); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22, 24, 31, .04);
  transition: border-color .14s ease, transform .14s ease;
}
.fd-seal-item:hover { border-color: #e4cd8f; transform: translateY(-2px); }
.fd-seal { width: 58px; height: 58px; display: block; }
.fd-seal--xs { width: 22px; height: 22px; flex: 0 0 auto; }
.fd-seal-name { font-size: 13px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fd-seal-note { color: var(--ink-3); font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.fd-seals--sm .fd-seal { width: 42px; height: 42px; }
.fd-seals--sm .fd-seal-item { padding: 11px 6px; gap: 2px; }
.fd-seals--sm .fd-seal-note { display: none; }
.fd-seals--sm .fd-seal-name { font-size: 12px; }
.fd-seals--sm .fd-seal-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fd-seals--sm .fd-seal-list li:last-child:nth-child(3n + 2) { grid-column: auto; }

/* ---------- Schnelltest ---------- */
.fd-step-emoji { display: block; font-size: 34px; line-height: 1; margin-bottom: 2px; filter: drop-shadow(0 6px 10px rgba(94, 66, 180, .16)); }
.fd-test-geber { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-3); font-size: 12px; }
.fd-help-emoji { display: block; font-size: 24px; line-height: 1; margin-bottom: 6px; }

.fd-authpage { width: min(470px, 100%); margin: 10px auto 0; display: grid; gap: 10px; }
.fd-back { color: var(--ink-3); font-size: 13px; text-decoration: none; }
.fd-back:hover { color: var(--accent-ink); }

/* ---------- Förder-Schnelltest: eine Frage nach der anderen ---------- */
.fd-wrap--test { max-width: 560px; display: grid; gap: 14px; }
.fd-wrap--test .fd-card { text-align: center; }
.fd-funnel { display: grid; gap: 16px; }
.fd-step { display: grid; gap: 6px; }
.fd-step .fd-label { font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.fd-step .fd-input { text-align: center; }
.fd-step-dots { display: none; gap: 6px; justify-content: center; }
.fd-step-nav { display: flex; gap: 8px; justify-content: center; }
html.fd-js .fd-step { display: none; }
html.fd-js .fd-step.is-on { display: grid; }
html.fd-js .fd-step-dots { display: flex; }
html.fd-js .fd-step-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line-strong); }
html.fd-js .fd-step-dots i.is-on { background: var(--accent); }
html.fd-js .fd-step-nav #testBack,
html.fd-js .fd-step-nav #testNext,
html.fd-js .fd-step-nav [type="submit"] { display: none; }
html.fd-js .fd-step-nav #testBack { display: inline-flex; }
html.fd-js .fd-funnel.is-first .fd-step-nav #testBack { display: none; }
html.fd-js .fd-funnel:not(.is-last) .fd-step-nav #testNext { display: inline-flex; }
html.fd-js .fd-funnel.is-last .fd-step-nav [type="submit"] { display: inline-flex; }
html.fd-js .fd-test-card.is-done { display: none; }
.fd-actions-note { color: var(--ink-3); font-size: 12.5px; }
.fd-test-load { display: none; flex-direction: column; align-items: center; gap: 18px; padding: 56px 22px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.fd-test-load.is-on { display: flex; }
.fd-test-load strong { display: block; font-size: 16px; letter-spacing: -.025em; }
.fd-test-load p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; min-height: 18px; }
.fd-spin {
  flex: 0 0 auto; width: 78px; height: 78px; border-radius: 50%;
  border: 6px solid #cde9d6; border-top-color: var(--ok);
  animation: fd-spin 1.5s linear infinite;
}
@keyframes fd-spin { to { transform: rotate(360deg); } }

.fd-test-result { display: grid; gap: 4px; animation: fd-rise .3s ease-out; }
@keyframes fd-rise { from { opacity: 0; transform: translateY(6px); } }
html.fd-wait .fd-test-result { visibility: hidden; }
.fd-test-top { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 14px; }
.fd-test-plz { color: var(--ink-3); font-size: 12.5px; }
.fd-test-nums { display: grid; gap: 10px; }
.fd-test-num { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfd; }
.fd-test-num--hi { border-color: #e6d5ff; background: var(--accent-soft); }
.fd-test-num span { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.fd-test-num strong { display: block; margin: 3px 0 1px; font-size: clamp(28px, 7vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.fd-test-num--hi strong { color: var(--accent-ink); }
.fd-test-num em { font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.fd-test-explain { margin: 14px 0 0; color: var(--ink-2); font-size: 13.5px; }
.fd-test-explain strong { display: block; margin-top: 6px; color: var(--warn); }

.fd-inqa { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; }
.fd-inqa.is-ok { border-color: #cde9d6; background: #f7fcf8; }
.fd-inqa-head { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.fd-inqa-head strong { font-size: 15px; letter-spacing: -.02em; }
.fd-inqa-head .fd-seal { width: 36px; height: 36px; }
.fd-test-flag { padding: 4px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 650; }
.fd-test-flag.is-ok { background: var(--ok-soft); color: var(--ok); }
.fd-test-flag.is-no { background: var(--warn-soft); color: var(--warn); }
.fd-inqa-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.fd-inqa-list li { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.fd-inqa-list span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; font-size: 12px; font-weight: 700; }
.fd-inqa-list .is-ok span { background: var(--ok-soft); color: var(--ok); }
.fd-inqa-list .is-no span { background: var(--err-soft); color: var(--err); }
.fd-inqa-text { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fd-test-cta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.fd-test-result .fd-note { text-align: center; }

/* ---------- Formulare ---------- */
.fd-form-card { padding: 22px; }
.fd-form { display: block; }
.fd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.fd-cell { padding: 6px 0; }
.fd-cell--full { grid-column: 1 / -1; }
.fd-label { display: block; margin: 8px 0 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.fd-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.4 var(--head);
  appearance: none;
}
select.fd-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237c8398' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.fd-input:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.fd-input::placeholder { color: #a3a9ba; }
.fd-textarea { resize: vertical; min-height: 110px; }
.fd-hint { margin: 5px 0 0; font-size: 12px; color: var(--ink-3); }
.has-err .fd-input { border-color: var(--err); background: #fffafa; }
.fd-field-err { margin: 5px 0 0; font-size: 12.5px; color: var(--err); }
.fd-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: var(--err-soft); color: var(--err); font-size: 13.5px; }
.fd-ok { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; }
.fd-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-size: 13.5px; color: var(--ink-2); }
.fd-check input { width: 15px; height: 15px; accent-color: var(--accent); }

.fd-choice { padding: 0; }
.fd-choice-label { display: block; margin: 8px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fd-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-choice-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  cursor: pointer; background: var(--surface);
}
.fd-choice-card:hover { border-color: var(--accent); }
.fd-choice-card.is-on { border-color: var(--accent); background: var(--accent-soft); }
.fd-choice-card input { margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--accent); }
.fd-choice-card strong { display: block; font-size: 14.5px; }
.fd-choice-card em { font-style: normal; display: block; color: var(--ink-3); font-size: 12.5px; }

.fd-seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--canvas); border-radius: 7px; }
.fd-seg-opt { position: relative; }
.fd-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fd-seg-opt span { display: block; padding: 7px 16px; border-radius: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fd-seg-opt.is-on span { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(22, 24, 31, .10); }

.fd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }

/* ---------- Knöpfe ---------- */
.fd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 15px; border: 1px solid transparent; border-radius: 6px;
  font: 600 14px/1.2 var(--head); text-decoration: none; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.fd-btn--sm { padding: 7px 11px; font-size: 13px; }
.fd-btn--wide { width: 100%; }
.fd-btn--go { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; box-shadow: 0 3px 9px rgba(94, 66, 180, .15); }
.fd-btn--go:hover { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); }
.fd-btn:active { transform: translateY(1px); }
.fd-btn--soft { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.fd-btn--soft:hover { border-color: var(--accent); color: var(--accent-ink); }
.fd-btn--quiet { background: transparent; color: var(--ink-3); }
.fd-btn--quiet:hover { color: var(--accent-ink); }

/* ---------- Fortschritt ---------- */
.fd-progress-card { display: grid; gap: 12px; }
.fd-progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fd-progress-top strong { font-size: 22px; letter-spacing: -.03em; }
.fd-progress-top span { font-size: 12px; color: var(--ink-3); }
.fd-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fd-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); transition: width .3s ease; }
.fd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fd-steps a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-size: 13.5px;
}
.fd-steps a:hover { background: var(--canvas); }
.fd-steps .is-current a { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.fd-stepnum {
  flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.fd-steps .is-done .fd-stepnum { border-color: var(--accent); background: var(--accent); color: #fff; }
.fd-steplabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Übersicht ---------- */
.fd-banner {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline;
  padding: 14px 16px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid #e4ccff; color: var(--accent-ink);
}
.fd-banner strong { font-size: 15px; }
.fd-banner span { font-size: 13.5px; color: var(--ink-2); }
.fd-sum-head { display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: center; }
.fd-sum-head .fd-h1 { margin: 0 0 4px; }
.fd-sum-meter { display: grid; gap: 6px; justify-items: end; min-width: 150px; }
.fd-sum-meter strong { font-size: 20px; }
.fd-sum-meter span { font-size: 12px; color: var(--ink-3); }
.fd-sum-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

.fd-group { margin-top: 0; }
.fd-group header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fd-group h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.fd-chip { font: 600 11px/1 var(--head); padding: 4px 7px; border-radius: 5px; letter-spacing: .03em; }
.fd-chip--done { background: var(--ok-soft); color: var(--ok); }
.fd-chip--partial { background: var(--warn-soft); color: var(--warn); }
.fd-chip--open { background: var(--line); color: var(--ink-3); }
.fd-group dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.fd-group dl > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.fd-group dl > div:first-child { border-top: 0; }
.fd-group dl > .is-wide { grid-column: 1 / -1; }
.fd-group dt { color: var(--ink-3); font-size: 12.5px; padding-top: 1px; }
.fd-group dd { margin: 0; font-size: 14.5px; word-break: break-word; }
.fd-group dd.is-empty { color: #b6bbc9; }
.fd-todo { border-color: #f0d9ff; }
.fd-todo h2 { margin: 0 0 10px; font-size: 16px; }
.fd-todo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fd-todo a {
  display: inline-block; padding: 7px 11px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.fd-pass { display: grid; gap: 4px; max-width: 420px; }
.fd-pass .fd-btn { justify-self: start; }
.fd-pass-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.fd-pass-row .fd-cell { flex: 1 1 180px; padding: 0; }

/* ---------- Team ---------- */
.fd-list-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.fd-list-head .fd-lead { margin: 0; }
.fd-search { display: flex; gap: 8px; align-items: center; }
.fd-search .fd-input { width: min(300px, 60vw); }
.fd-table-card { padding: 6px 0 0; overflow: hidden; }
.fd-table-wrap { overflow-x: auto; }
.fd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fd-table th, .fd-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fd-table thead th {
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); background: var(--canvas);
}
.fd-table tbody tr:hover { background: #fbfaff; }
.fd-table td:first-child a { display: block; font-weight: 650; color: var(--ink); text-decoration: none; }
.fd-table td:first-child a:hover { color: var(--accent-ink); }
.fd-table td em { display: block; font-style: normal; color: var(--ink-3); font-size: 12px; }
.fd-pill { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 650; }
.fd-pill.is-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Fuß ---------- */
.fd-foot {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px;
}
.fd-foot a { color: var(--accent-ink); text-decoration: none; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .fd-main { padding: 18px 14px 46px; }
  .fd-test-card .fd-input { font-size: 16px; }
  .fd-authpage { width: 100%; }
  .fd-wrap { grid-template-columns: 1fr; gap: 14px; }
  .fd-side { position: static; }
  .fd-progress-card .fd-steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
  .fd-progress-card .fd-steps a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fd-steplabel { white-space: normal; font-size: 12.5px; }
  .fd-grid { grid-template-columns: 1fr; }
  .fd-choice-grid { grid-template-columns: 1fr; }
  .fd-group dl { grid-template-columns: 1fr; }
  .fd-group dl > div { grid-template-columns: 1fr; gap: 3px; }
  .fd-sum-head { grid-template-columns: 1fr; }
  .fd-sum-meter { justify-items: start; }
  .fd-actions { position: sticky; bottom: 0; margin: 20px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
  .fd-actions .fd-btn--go { flex: 1; }
  .fd-mail { display: none; }
  .fd-seal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fd-seal { width: 48px; height: 48px; }
  .fd-seal-name { font-size: 12px; }
  .fd-seal-note { font-size: 11px; }
  .fd-seal-item { padding: 12px 7px; }
  .fd-seals--sm .fd-seal { width: 40px; height: 40px; }
  .fd-start { margin-top: 3vh; gap: 14px; }
  .fd-step-emoji { font-size: 30px; }
  .fd-top { padding-top: calc(10px + env(safe-area-inset-top)); }
  .fd-logo { height: 29px; }
  .fd-btn { -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 430px) {
  .fd-seal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-seal-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fd-input { font-size: 16px; }
}

/* ---------- Drucken ---------- */
@media print {
  body.fd-body { background: #fff; }
  .fd-top, .fd-foot, .fd-side, .fd-actions, .fd-sum-actions, .fd-print-off, .fd-pass, .fd-test-load { display: none !important; }
  .fd-card { border-color: #d5d5dd; break-inside: avoid; }
  .fd-wrap { grid-template-columns: 1fr; }
}
