/* Onboarding-Fragebogen */
[hidden] { display: none !important; }
.ob-section { padding-top: 48px; }
.ob-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.ob-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); min-width: 0; scroll-margin-top: 100px; }

.ob-steps { display: flex; gap: 6px; margin-bottom: 10px; }
.ob-steps button { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 8px; background: none; padding: 0 2px; font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-align: left; cursor: pointer; overflow-wrap: anywhere; } /* klein9: ohne nowrap/overflow:hidden – mit größeren Textabständen (WCAG 1.4.12) bricht der Text um, statt abgeschnitten zu werden */
.ob-steps button:disabled { cursor: default; }
.ob-steps button.is-active, .ob-steps button.is-done { color: var(--brand); }
.ob-bar { height: 8px; background: var(--soft); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.ob-bar div { height: 100%; width: 0; background: var(--grad); border-radius: 8px; transition: width 0.4s ease; }
.ob-count { font-size: 0.85rem; color: var(--muted); margin: 10px 0 18px; font-weight: 600; }

.ob-step h2 { font-size: 1.6rem; margin-bottom: 6px; }
.ob-step > p { margin-bottom: 22px; }
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.ob-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ob-field.full { grid-column: 1 / -1; }
.ob-field > span { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.ob-field > span em { font-style: normal; color: var(--brand); }
.ob-field input:not([type=checkbox]):not([type=color]):not([type=radio]), .ob-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #8190A5; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.ob-field input:focus, .ob-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.ob-field textarea { resize: vertical; min-height: 96px; }
.ob-field.is-invalid input, .ob-field.is-invalid textarea { border-color: #DC2626; }
/* BF6: Die Grundregel der Textfelder ist spezifischer (:not(…)) – Fokus- und Fehlerfarbe wirkten dort bisher nicht. */
.ob-field input:not([type=checkbox]):not([type=color]):not([type=radio]):focus { border-color: var(--brand); }
.ob-field.is-invalid input:not([type=checkbox]):not([type=color]):not([type=radio]) { border-color: #DC2626; }
.ob-hint { font-size: 0.8rem; color: var(--muted); text-align: right; margin-top: -4px; }

.ob-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-pills label { cursor: pointer; }
.ob-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid #D5DCE6; border-radius: 20px; font-weight: 600; font-size: 0.92rem; color: var(--text); transition: all 0.15s; }
.ob-pills input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.ob-pills input[type=checkbox]:checked + span::before { content: '✓'; }
.ob-pills input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }

.ob-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.ob-tiles label { cursor: pointer; }
.ob-tiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-tile { display: block; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.15s, transform 0.15s; background: #fff; }
.ob-tile:hover { transform: translateY(-2px); }
.ob-tiles input:checked + .ob-tile { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.ob-tiles input:focus-visible + .ob-tile { outline: 3px solid var(--brand); outline-offset: 2px; }
.ob-sample { height: 84px; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ob-sample b { font-size: 1.05rem; line-height: 1.1; }
.ob-sample i { display: block; height: 6px; border-radius: 3px; width: 70%; opacity: 0.5; background: currentColor; }
.ob-tile-label { display: block; padding: 10px 12px; font-weight: 700; font-size: 0.9rem; color: var(--ink); border-top: 1px solid var(--line); }
.s-modern { background: #F1F5FF; color: #1D4ED8; font-family: system-ui, sans-serif; }
.s-klassisch { background: #F7F5F0; color: #1E2B4A; font-family: Georgia, 'Times New Roman', serif; }
.s-warm { background: #FBEFE7; color: #9A3B1B; font-family: 'Segoe UI', system-ui, sans-serif; border-radius: 0 0 24px 0; }
.s-mutig { background: #111; color: #FACC15; font-family: Impact, 'Arial Black', sans-serif; text-transform: uppercase; }

.ob-colors { display: flex; align-items: center; gap: 10px; }
.ob-colors input[type=color] { width: 52px; height: 44px; border: 1.5px solid #8190A5; border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.ob-colors input[type=text] { font-family: ui-monospace, monospace; text-transform: uppercase; }
.ob-field.is-disabled { opacity: 0.4; pointer-events: none; }
.ob-check { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.ob-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.ob-check > span { font-weight: 600; }
.ob-number { max-width: 140px; }

.ob-error { margin-top: 18px; color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.ob-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ob-nav .btn-primary { margin-left: auto; }

.ob-review { display: grid; gap: 12px; margin-bottom: 22px; }
.ob-review section { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--soft); }
.ob-review header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ob-review h3 { font-size: 1rem; }
.ob-review button { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; font-weight: 700; font-size: 0.88rem; min-height: 44px; padding: 0 6px; margin: -10px -6px -10px 0; }
.ob-review dl { display: grid; grid-template-columns: 190px 1fr; gap: 4px 14px; font-size: 0.92rem; }
.ob-review dt { color: var(--muted); }
.ob-review dd { color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.ob-review .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.ob-review .empty { color: var(--muted); font-size: 0.9rem; }

.ob-done { text-align: center; padding: 20px 0; }
.ob-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; animation: obPop 0.4s ease; }
@keyframes obPop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ob-done h2 { margin-bottom: 8px; }
.ob-next { list-style: none; counter-reset: n; text-align: left; max-width: 440px; margin: 26px auto; display: grid; gap: 12px; }
.ob-next li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: start; }
.ob-next li::before { content: counter(n); grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.ob-next strong { color: var(--ink); }
.ob-next span { color: var(--muted); font-size: 0.92rem; }

.ob-aside { display: grid; gap: 14px; position: sticky; top: 100px; }
.ob-tip { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.ob-tip strong { display: block; color: var(--ink); margin-bottom: 4px; }
.ob-tip a { display: inline-block; padding: 12px 0; margin: -12px 0; }

@media (max-width: 900px) {
    .ob-wrap { grid-template-columns: minmax(0, 1fr); }
    .ob-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
}
@media (max-width: 600px) {
    .ob-card { padding: 22px 16px; }
    .ob-grid { grid-template-columns: minmax(0, 1fr); }
    .ob-steps button { font-size: 0; text-align: center; }
    .ob-steps button::after { content: attr(data-n); font-size: 0.9rem; }
    .ob-review dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ob-review dd { margin-bottom: 8px; }
    .ob-nav .btn { padding: 12px 16px; }
}

@media (prefers-color-scheme: dark) {
    .ob-card, .ob-tile { background: #0F1829; }
    .ob-field input:not([type=checkbox]):not([type=color]):not([type=radio]), .ob-field textarea, .ob-colors input[type=color] { background: #070C16; border-color: #5B6B82; color: #F1F5F9; }
    .ob-pills span { border-color: #334155; }
    .ob-pills input:checked + span { background: #2563EB; border-color: #2563EB; }
    .ob-tile-label { color: #F1F5F9; }
    .ob-field > span, .ob-next strong, .ob-tip strong { color: #F1F5F9; }
    .ob-error { background: rgba(220, 38, 38, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #FCA5A5; }
}
/* Kopfleiste bei größeren Textabständen (WCAG 1.4.12): seit klein15 (03.10.2026) für alle Seiten in style.css gelöst
   (kompakte Suche unter 1340 px, Menü-Links rutschen bei Bedarf in eine zweite Zeile). Die Sonderregeln von klein10 sind
   deshalb entfallen – „overflow: hidden“ am Suchknopf hätte „Schnellsuche“ sonst abgeschnitten. */
