/* Le Noa – Anamnesebögen. Schwarz, Weiß, Beige, Lato. Eckige Formen wie im Mitgliederbereich. */
@font-face { font-family: 'Lato'; font-weight: 300; font-display: swap; src: url('/fonts/lato-300.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url('/fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url('/fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 300; font-display: swap; src: url('/fonts/lato-ext-300.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url('/fonts/lato-ext-400.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url('/fonts/lato-ext-700.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --ink: #212529; --black: #111111; --muted: #6B5B4B; --beige: #F3EEE7; --beige-2: #FAF8F5;
  --line: #E6E0D8; --field: #A89C8C; --err: #A32D2D; --err-bg: #FBF1F1; --err-ink: #7A1F1F;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: 'Lato', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.break { overflow-wrap: anywhere; }
.loading { padding: 40px 20px; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow.light { color: #D9CFC2; }
.test-banner { background: var(--black); color: #fff; font-size: 12px; letter-spacing: 0.06em; text-align: center; padding: 7px 12px; }
.notice { background: var(--beige); padding: 14px 16px; margin-bottom: 24px; }
.alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--err); background: var(--err-bg); color: var(--err-ink); padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.alert svg { flex: none; stroke: var(--err); margin-top: 1px; }
.alert a { color: var(--err-ink); }
.badge { font-size: 11px; letter-spacing: 0.18em; font-weight: 700; background: var(--black); color: #fff; padding: 3px 8px; }
.logo { width: 40px; height: 40px; display: block; }
.logo-sm { width: 48px; height: 48px; }
.logo-xs { width: 20px; height: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font-size: 15px; letter-spacing: 0.04em; border: 1px solid var(--black); border-radius: 0; cursor: pointer; text-decoration: none; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-dark:disabled { opacity: 0.6; cursor: progress; }
.btn-light { background: #fff; color: var(--black); }
.btn-white { background: #fff; color: var(--black); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.f-link { background: none; border: none; padding: 10px 0; min-height: 44px; color: var(--ink); text-decoration: underline; font-size: 15px; cursor: pointer; text-align: left; }

/* ---------- Formular (Kundin) ---------- */
.page-form { background: #fff; }
.f-head { padding: 14px 20px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; }
.f-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.f-studio { font-weight: 700; font-size: 15px; }
.f-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.f-seg { height: 4px; background: var(--line); }
.f-seg.on { background: var(--black); }
.f-wrap { max-width: 640px; margin: 0 auto; padding: 22px 20px 12px; display: flex; flex-direction: column; gap: 20px; }
.f-center { align-items: center; text-align: center; padding-top: 64px; }
.f-h1 { font-size: 28px; font-weight: 300; line-height: 1.15; margin: 0; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-label { font-size: 15px; font-weight: 700; }
.f-opt { font-weight: 400; color: var(--muted); }
.f-input { font: inherit; font-size: 17px; min-height: 52px; padding: 0 14px; border: 1px solid var(--field); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.f-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.f-input.invalid { border: 2px solid var(--err); }
.f-err { display: flex; gap: 6px; align-items: flex-start; color: var(--err); font-size: 14px; }
.f-err svg { flex: none; stroke: var(--err); margin-top: 2px; }
.f-fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.f-legend { font-size: 19px; font-weight: 700; line-height: 1.35; padding: 0; margin-bottom: 12px; }
.f-q { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.f-tiles { display: flex; flex-direction: column; gap: 10px; }
.f-tile { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; background: #fff; border: 1px solid var(--field); color: var(--ink); font-size: 17px; text-align: left; cursor: pointer; border-radius: 0; }
.f-tile .f-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--muted); flex: none; }
.f-tile.on { background: var(--beige); border: 2px solid var(--black); }
.f-tile.on .f-dot { border: 6px solid var(--black); }
.f-tile.invalid { border-color: var(--err); }
.f-follow { display: flex; flex-direction: column; gap: 12px; background: var(--beige-2); border-left: 2px solid var(--black); padding: 14px; }
.f-multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.f-chip { min-height: 52px; padding: 6px 10px; background: #fff; color: var(--ink); border: 1px solid var(--field); font-size: 15px; cursor: pointer; border-radius: 0; }
.f-chip.on { background: var(--black); color: #fff; border-color: var(--black); }
.f-hint { background: var(--beige); padding: 12px 14px; font-size: 15px; }
.f-info { display: flex; flex-direction: column; border-top: 1px solid var(--black); }
.f-info-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-info-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.f-info-item p { margin: 0; color: var(--muted); line-height: 1.6; }
.f-check { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--field); padding: 16px; cursor: pointer; font-size: 16px; line-height: 1.5; }
.f-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--black); }
.f-check.on { background: var(--beige); border-color: var(--black); }
.f-check.invalid { border: 2px solid var(--err); }
.f-section { display: flex; flex-direction: column; gap: 10px; }
.f-eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0; }
.f-privacy { background: var(--beige); padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.f-privacy p { margin: 0 0 6px; }
.f-sig { position: relative; height: 170px; border: 1px dashed var(--field); background: var(--beige-2); touch-action: none; }
.f-sig.invalid { border: 2px solid var(--err); }
.f-sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.f-sig-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; }
.f-nav { max-width: 640px; margin: 0 auto; padding: 12px 20px 20px; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.f-nav.single { grid-template-columns: 1fr; }
.f-foot { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 8px 20px 28px; }
.f-done-icon { width: 72px; height: 72px; background: var(--beige); display: flex; align-items: center; justify-content: center; }
.f-next { width: 100%; text-align: left; background: var(--beige); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.f-next p { margin: 0; }

/* ---------- Studio / Admin ---------- */
.s-head { border-bottom: 1px solid var(--line); }
.s-head-in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.s-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.s-brand-text { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.s-head-right { display: flex; align-items: center; gap: 16px; }
.s-hero { background: var(--beige); }
.s-container { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.s-hero .s-container { padding-top: 64px; padding-bottom: 56px; }
.s-h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 24px; }
.s-rule { width: 64px; height: 1px; background: var(--black); }
.s-main { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.s-h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; margin: 0; }
.s-h3 { font-size: 24px; font-weight: 300; margin: 0 0 12px; }
.s-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.s-tab { background: none; border: none; border-bottom: 2px solid transparent; min-height: 52px; padding: 0 18px; font-size: 15px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.s-tab.on { border-bottom-color: var(--black); font-weight: 700; }
.s-section { display: flex; flex-direction: column; gap: 22px; }
.s-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.s-list { border-top: 1px solid var(--black); }
.s-empty { padding: 24px 0; }
.s-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.s-row-main { flex: 2 1 240px; display: flex; flex-direction: column; gap: 4px; }
.s-row-title { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.s-row-meta { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.s-row-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.s-row-err { flex: 1 0 100%; }
.s-row-err:empty { display: none; }
.s-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: var(--beige-2); padding: 12px; }
.s-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.s-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.s-card { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.s-card p { margin: 0; }
.s-card-dark { background: var(--black); color: #fff; border-color: var(--black); }
.s-narrow { max-width: 560px; }
.s-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.s-qr svg { display: block; border: 1px solid var(--line); }
.recovery-code { background: var(--beige); padding: 16px; font-size: 18px; letter-spacing: 0.12em; font-weight: 700; text-align: center; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .s-row-actions { flex: 1 0 100%; }
  .s-row-actions .btn { flex: 1; }
  .s-card { padding: 22px; }
  .s-head-in, .s-container { padding-left: 16px; padding-right: 16px; }
}
@media print {
  .test-banner, .s-head, .s-hero, button, .f-link { display: none !important; }
  .recovery-code { font-size: 22px; border: 1px solid #000; }
}

/* Ein großer Hauptknopf auf Einrichtungs-Screens */
.btn-block { display: flex; width: 100%; justify-content: center; min-height: 52px; margin-top: 12px; }
.invite-link { background: #F3EEE7; padding: 10px 12px; word-break: break-all; }
@media print {
  .test-banner, .s-head, .s-hero, .btn, .f-link, .s-btns { display: none !important; }
  .recovery-code { font-size: 22px; border: 1px solid #111; }
}
