/* Onboarding-Dienst: Registrierung, Fragebogen, Demoanfrage, Bestätigung. Farben und Schrift wie in der App. */
@font-face { font-family: "Lexend"; font-weight: 300; font-display: swap; src: url("/assets/Lexend-Light.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("/assets/Lexend-Regular.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("/assets/Lexend-Medium.ttf") format("truetype"); }

:root { --primary: #124932; --primary-dark: #0e3927; --accent: #ccffba; --gray-100: #edecec; --gray-200: #bababa; --text: #1c1c1c; --error: #b42318; --radius: 24px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; color: var(--text); background: var(--gray-100); min-height: 100dvh; }
body.embed { background: #fff; }
a { color: inherit; }
h1, h2 { font-weight: 500; color: var(--primary); margin: 0; }
.hidden { display: none !important; }

.shell { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 16px; }
.embed .shell { align-items: flex-start; padding: 0; }
.card { width: 100%; max-width: 896px; background: #fff; border-radius: var(--radius); padding: 24px 20px; }
.embed .card { border-radius: 0; }
.card.narrow { max-width: 560px; }

.head { display: flex; flex-direction: column-reverse; align-items: center; gap: 16px; text-align: center; }
.head img { height: 44px; width: auto; }
.head h1 { font-size: 24px; }
.head p { margin: 4px 0 0; font-size: 14px; }
@media (min-width: 640px) { .head { flex-direction: row; align-items: flex-start; justify-content: space-between; text-align: left; } .card { padding: 28px 32px; } }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.field { display: flex; flex-direction: column; }
.field label { font-size: 14px; color: #6f6f6f; margin-bottom: 4px; }
.field input, .field select { font: inherit; font-weight: 400; color: var(--text); background: var(--gray-100); border: 0; border-radius: 999px; padding: 10px 16px; outline: 2px solid transparent; width: 100%; appearance: none; }
.field input:focus, .field select:focus { outline-color: var(--primary); }
.field.invalid input, .field.invalid select { outline-color: var(--error); }
.field .error { margin-top: 4px; font-size: 12px; color: var(--error); min-height: 0; }
/* Unsichtbares Feld gegen einfache Formular-Bots – für Menschen und Vorleseprogramme ausgeblendet. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checks { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; font-size: 12px; line-height: 1.6; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; background: var(--gray-100); border: 1px solid var(--gray-200); cursor: pointer; }
.check input:checked { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.9' fill='none' stroke='%23ccffba' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--primary); }
.check input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.check.invalid input { border-color: var(--error); }

.actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.actions.between { justify-content: space-between; }
.button { font: inherit; font-weight: 400; display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--accent); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--primary-dark); }
.button:disabled { background: var(--gray-100); color: var(--gray-200); cursor: not-allowed; }
.button.round { padding: 12px; }
.button svg { width: 22px; height: 22px; }
.message { margin-top: 18px; padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 400; }
.message.error { background: #fdecea; color: var(--error); }
.message.info { background: #eef8f1; color: var(--primary); }

/* Fragebogen */
.wizard { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .wizard { grid-template-columns: 1fr 1fr; align-items: center; } }
.wizard .art { display: none; }
@media (min-width: 860px) { .wizard .art { display: block; width: 100%; height: auto; } }
.progress { height: 6px; border-radius: 999px; background: var(--gray-100); margin: 18px 0 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.25s ease; }
.step { font-size: 12px; color: #6f6f6f; }
.options { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.option { font: inherit; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--gray-100); color: #6f6f6f; border: 0; border-radius: 999px; padding: 10px 12px 10px 18px; cursor: pointer; text-align: left; }
.option .tick { flex: none; width: 34px; height: 34px; border-radius: 999px; background: #fff; display: grid; place-items: center; color: var(--gray-200); }
.option .tick svg { width: 18px; height: 18px; }
.option[aria-pressed="true"] { background: var(--primary); color: var(--accent); }
.option[aria-pressed="true"] .tick { background: var(--accent); color: var(--primary); }
.option:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.other { margin-top: 4px; }
.foot { margin-top: 24px; text-align: center; font-size: 10px; color: var(--gray-200); }

.done { text-align: center; padding: 16px 0; }
.done .badge { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.done .badge svg { width: 36px; height: 36px; }
.done h1 { font-size: 26px; }
.done p { font-size: 15px; line-height: 1.6; margin: 10px auto 0; max-width: 460px; }
