/* ============================================================
   wps4digital · Landingpage-Fragebogen
   Schriften lokal gehostet (DSGVO) – keine Google-Server
   ============================================================ */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #04060b;
  --text: #f2f5f9;
  --text-2: #c3ccd8;
  --muted: #8a96a8;
  --dim: #5d6878;
  --label: #9fb0c4;
  --blue: #2f9bff;
  --blue-light: #5ab4ff;
  --blue-pale: #9fd0ff;
  --blue-deep: #1f7fe0;
  --pill-bg: #0a1a2b;
  --pill-line: rgba(90, 180, 255, .22);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .12);
  --card: linear-gradient(180deg, #161b24, #0c0f15);
  --input: rgba(2, 3, 6, .6);
  --green: #6cc391;
  --amber: #f2c14e;
  --red: #ff7a7a;
  --btn: linear-gradient(180deg, #5ab4ff, #1f7fe0);
  --btn-glow: 0 8px 28px rgba(47, 155, 255, .35);
  --sans: "Inter Tight", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: transparent;
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Hintergrund-Glow als feste Ebene (funktioniert auch auf iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1300px 900px at 88% -15%, rgba(20, 110, 190, .28), transparent 62%),
    radial-gradient(900px 700px at -10% 110%, rgba(15, 50, 90, .18), transparent 70%),
    linear-gradient(180deg, #080b12, #030409);
}
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
code { background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--blue-pale); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
::placeholder { color: #4d5868; }

/* ---------- Typografie ---------- */
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--label);
}
.display {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(180deg, #f5f7fa 15%, #9fb0c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--blue-light); }
.dot-end { color: var(--blue); }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--text); }

.pill {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 99px;
  background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--blue-pale);
  font-variant-numeric: tabular-nums;
}
.pill:empty { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 13px 24px;
  border: 1px solid var(--line-2); border-radius: 99px;
  background: transparent; color: var(--text-2);
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { border-color: rgba(90, 180, 255, .4); color: var(--text); }
.btn-primary { background: var(--btn); border-color: transparent; color: var(--bg); font-weight: 700; box-shadow: var(--btn-glow); }
.btn-primary:hover { color: var(--bg); border-color: transparent; box-shadow: 0 10px 34px rgba(47, 155, 255, .5); transform: translateY(-1px); }
.btn-large { min-height: 54px; padding: 16px 28px; font-size: 16px; }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-danger { color: var(--red); border-color: rgba(255, 122, 122, .4); }
.btn-danger:hover { color: var(--red); border-color: var(--red); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-light); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 11, 18, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--text); }
.brand-logo { width: 40px; height: 40px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-client { font-size: 13px; color: var(--muted); }
.top-progress { flex: 1; min-width: 180px; max-width: 440px; display: flex; align-items: center; gap: 14px; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #1f7fe0, #5ab4ff); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.progress-label { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.save-state {
  margin-left: auto; white-space: nowrap;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 99px;
  background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--blue-pale);
}
.save-state.is-saving { color: var(--amber); border-color: rgba(242, 193, 78, .3); background: rgba(242, 193, 78, .06); }
.save-state.is-error { color: var(--red); border-color: rgba(255, 122, 122, .4); background: rgba(255, 122, 122, .06); }
.nav-toggle { display: none; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) 96px;
  display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 920px);
  gap: clamp(32px, 4vw, 64px);
}
.content { min-width: 0; }

/* Seitenleiste */
.sidebar { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.sidebar-label { font-size: 12px; padding: 0 14px 4px; }
.progress-text { display: none; }
.steps-nav { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--text-2); font: 15px/1.35 var(--sans); text-align: left; cursor: pointer;
}
.nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav-plain { grid-template-columns: 1fr; color: var(--muted); }
.nav-nr { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.nav-count { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.nav-item.is-started .nav-count { color: var(--blue-pale); }
.nav-item.is-complete .nav-count { color: var(--green); }
.nav-item[aria-current="step"] {
  background: var(--card); border-color: var(--pill-line);
  box-shadow: 0 0 24px rgba(47, 155, 255, .12);
  color: var(--text); font-weight: 600;
}
.nav-item[aria-current="step"] .nav-nr { color: var(--blue-light); font-weight: 700; }
.nav-item[aria-current="step"] .nav-count { color: var(--blue-pale); font-weight: 600; }
.sidebar-contact { margin: 20px 14px 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--dim); }

/* ---------- Schritte ---------- */
.step-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.eyebrow-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.step-title:focus { outline: none; }
.howto { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.howto li {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 24px; color: var(--muted); font-size: 15.5px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.howto strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.bookmark-tip { color: var(--dim); font-size: 15px; max-width: 70ch; }

/* ---------- Fragen ---------- */
.q-list { display: flex; flex-direction: column; gap: 20px; }
.q {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transition: border-color .3s;
}
.q.is-filled { border-color: rgba(90, 180, 255, .28); }
.q.is-discuss { border-color: rgba(242, 193, 78, .45); }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.q-head { display: flex; gap: 16px; align-items: baseline; }
.q-nr { flex: none; font-size: 13px; font-weight: 700; color: var(--blue-light); font-variant-numeric: tabular-nums; }
.q-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.q-label { display: block; padding: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--text); text-wrap: pretty; }
.q-hint { margin: 0; font-size: 15px; color: var(--muted); }
.field {
  display: block; width: 100%;
  background: var(--input); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; color: var(--text); font: 16px/1.55 var(--sans);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.field { min-height: 120px; resize: vertical; }
.field:focus { border-color: rgba(90, 180, 255, .5); box-shadow: 0 0 0 4px rgba(47, 155, 255, .12); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice span {
  display: inline-block; padding: 11px 18px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--input); color: var(--text-2); font-size: 15px;
  transition: border-color .2s, background .2s, color .2s;
}
.choice:hover span { border-color: rgba(90, 180, 255, .4); color: var(--text); }
.choice input:checked + span { background: var(--btn); border-color: transparent; color: var(--bg); font-weight: 700; box-shadow: 0 6px 20px rgba(47, 155, 255, .3); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.discuss { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 14px; color: var(--dim); cursor: pointer; }
.discuss:hover { color: var(--text-2); }
.discuss input { width: 18px; height: 18px; margin: 0; accent-color: var(--amber); }
.q.is-discuss .discuss { color: var(--amber); }

/* Upload */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 18px; text-align: center; cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, .16); border-radius: 14px; background: var(--input);
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over, .drop:focus-within { border-color: rgba(90, 180, 255, .5); background: rgba(47, 155, 255, .06); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-main { font-weight: 700; color: var(--blue-light); }
.drop-sub { font-size: 14px; color: var(--dim); }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-item { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.file-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--pill-bg); text-decoration: none; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-ext { font-size: 12px; font-weight: 700; color: var(--blue-pale); letter-spacing: .04em; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-meta small { color: var(--dim); }
.file-del { border: 0; background: none; color: var(--dim); font: 14px var(--sans); cursor: pointer; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.file-del:hover { color: var(--red); }
.bar { display: block; height: 4px; margin-top: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1f7fe0, #5ab4ff); transition: width .2s; }

.step-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.step-nav-start { border-top: 0; padding-top: 0; margin-top: 32px; justify-content: flex-start; }

.open-list { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 28px; margin-bottom: 20px; color: var(--muted); }
.open-list:empty { display: none; }
.open-list ul { padding-left: 1.2em; }
.open-list li { margin: 6px 0; }
.done-note { background: rgba(108, 195, 145, .08); border: 1px solid rgba(108, 195, 145, .35); color: var(--text); padding: 18px 22px; border-radius: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: min(560px, calc(100% - 32px)); padding: 14px 20px;
  background: #161b24; color: var(--text); border: 1px solid rgba(255, 122, 122, .4);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

/* ---------- Zugang / Login ---------- */
.gate { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.gate-card {
  width: min(480px, 100%); margin: 64px auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 40px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.gate-logo { width: 64px; height: 64px; display: block; margin-bottom: 24px; }
.gate-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.gate-card p { color: var(--muted); }
.gate-form { display: grid; gap: 10px; margin-top: 24px; }
.gate-form label { font-size: 14px; font-weight: 600; color: var(--label); }
.gate-form input { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font: 16px var(--sans); background: var(--input); color: var(--text); outline: none; }
.gate-form input:focus { border-color: rgba(90, 180, 255, .5); box-shadow: 0 0 0 4px rgba(47, 155, 255, .12); }
.gate-form .btn { margin-top: 8px; }
.alert { background: rgba(242, 193, 78, .07); border: 1px solid rgba(242, 193, 78, .35); color: var(--text) !important; padding: 14px 16px; border-radius: 14px; }

/* ---------- Designer-Bereich ---------- */
.admin-main { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 96px; }
.admin-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 3vw, 32px); margin-bottom: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.admin-card h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 20px; }
.admin-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.flash { background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--blue-pale); padding: 14px 20px; border-radius: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.inline-form input { flex: 1 1 260px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font: 16px var(--sans); background: var(--input); color: var(--text); outline: none; }
.inline-form input:focus { border-color: rgba(90, 180, 255, .5); box-shadow: 0 0 0 4px rgba(47, 155, 255, .12); }
.danger-zone .inline-form { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
table.clients { width: 100%; border-collapse: collapse; font-size: 15px; }
.clients th, .clients td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.clients th { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.clients td a { color: var(--text); }
.clients td a:hover { color: var(--blue-light); }
.clients tr.is-new td { background: rgba(47, 155, 255, .07); }
.mini-progress { display: inline-block; width: 80px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, #1f7fe0, #5ab4ff); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--blue-pale); }
.badge-done { background: rgba(108, 195, 145, .1); border-color: rgba(108, 195, 145, .4); color: var(--green); }
.badge-muted { background: transparent; border-color: var(--line-2); color: var(--dim); }
.badge-discuss { background: rgba(242, 193, 78, .08); border-color: rgba(242, 193, 78, .4); color: var(--amber); }
.link-cell { display: flex; gap: 8px; align-items: center; min-width: 320px; }
.link-input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: 13px/1.3 ui-monospace, Menlo, Consolas, monospace; background: var(--input); color: var(--text-2); }
.link-wide { margin: 20px 0 12px; }
.empty { color: var(--muted); }
.admin-info p { color: var(--muted); font-size: 15px; }
.admin-info strong { color: var(--text); }
.back { margin: 0 0 16px; }
.client-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.client-head h1 { margin-bottom: 8px; }
.client-stats { color: var(--muted); margin: 0; }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.filter { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.filter input { accent-color: var(--blue); width: 16px; height: 16px; }
.answers h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.answer { padding: 18px 0; border-bottom: 1px solid var(--line); }
.answer:last-child { border-bottom: 0; padding-bottom: 0; }
.answer h3 { font-size: 14px; font-weight: 600; color: var(--label); margin-bottom: 8px; line-height: 1.4; }
.answer-text { max-width: 75ch; color: var(--text); }
.answer .badge-discuss { margin-bottom: 8px; }
.no-answer { color: var(--dim); font-style: italic; margin: 0; font-size: 14px; }
.answer.is-empty h3 { opacity: .55; }
.hide-empty .answer.is-empty, .hide-empty .all-empty { display: none; }
.gallery { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.gallery li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.gallery-thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--pill-bg); border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.gallery small { color: var(--dim); }

/* Optionen im Designer-Bereich */
.option-check { flex-basis: 100%; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.inline-form .option-check input { flex: none; width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; border: 0; box-shadow: none; accent-color: var(--blue); }
.muted-note { color: var(--dim); font-size: 12px; }
.detail-options { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; margin-top: 4px; }
.option-form { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 40px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.switch input:checked + .switch-track { background: var(--blue-deep); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.page-tag { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 4px 12px; border-radius: 99px; background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--blue-pale); }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .top-progress { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    border: 1px solid var(--line-2); border-radius: 99px; background: transparent;
    color: var(--text); font: 600 14px var(--sans); cursor: pointer;
  }
  .sidebar {
    display: none; position: fixed; inset: 0; z-index: 30; max-height: none;
    padding: 96px var(--gutter) 32px; overflow: auto;
    background: #04060b;
  }
  .sidebar.open { display: block; }
  .progress-text { display: block; margin: 4px 14px 8px; color: var(--muted); }
  .progress-text strong { font-size: 28px; font-weight: 800; color: var(--text); margin-right: 6px; letter-spacing: -.03em; }
  .save-state { padding: 0; width: 12px; height: 12px; font-size: 0; border-radius: 50%; background: var(--green); border: 0; }
  .save-state.is-saving { background: var(--amber); }
  .save-state.is-error { background: var(--red); }
  /* mobiler Fortschrittsbalken unter der Kopfzeile */
  .topbar::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: linear-gradient(90deg, #1f7fe0, #5ab4ff); transition: width .6s; }
}
@media (max-width: 700px) {
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-client { display: none; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-title { font-size: 15px; }
  .q { border-radius: 18px; }
  .q-head { gap: 12px; }
  .q-label { font-size: 17px; }
  .step-nav .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck (Designer-Bereich) ---------- */
@media print {
  body::before { display: none; }
  .topbar, .client-actions, .link-wide, .filter, .detail-options, .danger-zone, .back, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .admin-card { background: none; border: 0; box-shadow: none; padding: 0; }
  .admin-card h1, .admin-card h2, .answer-text { color: #000; }
  .answer h3 { color: #444; }
  .answer { break-inside: avoid; border-color: #ddd; }
  .answer.is-empty, .all-empty { display: none; }
}
