/* Befragung: eine Handy-Ansicht. Oben Fortschritt, darunter Heimo mit Sprechblase, dann Frage und große Antwortflächen. */
body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 14px 28px; }
.app { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.screen { display: grid; gap: 16px; }
.top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.top .bar { flex: 1; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.top .bar i { display: block; height: 100%; background: var(--petrol); border-radius: 5px; transition: width .3s ease; }
.top small { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn[aria-pressed="true"] { background: var(--soft); color: var(--accent); }
.q { display: grid; gap: 6px; }
.q h1 { font-size: clamp(24px, 6.4vw, 30px); }
.q p { margin: 0; color: var(--muted); font-size: 17px; }
.answers { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 19px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.opt .bx { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; font-size: 16px; background: var(--white); }
.opt[aria-pressed="true"] .bx { background: var(--accent); border-color: var(--accent); color: var(--white); }
.opt.round .bx { border-radius: 50%; }
.hint-top { font-size: 15px; color: var(--muted); margin: 0; }
.nav { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nav .big.primary { flex: 1; min-width: 180px; }
.slider { background: var(--white); border: 2px solid var(--line); border-radius: 22px; padding: 18px 18px 14px; display: grid; gap: 10px; }
.slider .val { text-align: center; font-family: var(--title); font-weight: 900; font-size: 46px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; min-height: 46px; }
.slider .val.empty { font-size: 20px; color: var(--muted); font-family: var(--font); font-weight: 700; line-height: 46px; }
.slider .ends { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--petrol) var(--p, 0%), var(--line) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 14px; border-radius: 7px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 14px; border-radius: 7px; background: var(--petrol); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; margin-top: -13px; border-radius: 50%; background: var(--honey); border: 4px solid var(--white); box-shadow: 0 2px 6px rgba(18, 48, 43, .35); }
input[type="range"]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--honey); border: 4px solid var(--white); box-shadow: 0 2px 6px rgba(18, 48, 43, .35); }
input[type="range"].untouched::-webkit-slider-thumb { background: var(--line); }
input[type="range"].untouched::-moz-range-thumb { background: var(--line); }
.speak { display: grid; gap: 10px; }
textarea { width: 100%; min-height: 150px; resize: vertical; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--white); font-size: 19px; line-height: 1.45; }
textarea:focus { border-color: var(--accent); outline: none; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--honey-l); color: var(--honey-d); border-radius: 16px; padding: 12px 14px; font-size: 16px; }
.tip svg { flex: none; margin-top: 2px; }
.cards { display: grid; gap: 10px; }
.card { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.card .dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.card b { display: block; font-family: var(--title); font-weight: 900; font-size: 19px; }
.card span span { font-size: 16px; color: var(--muted); }
.consent { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; display: grid; gap: 8px; font-size: 17px; }
.consent ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; background: var(--soft); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.haken input { width: 28px; height: 28px; flex: none; margin: 0; accent-color: var(--accent); }
.dialog { background: var(--white); border: 2px solid var(--crit); border-radius: 20px; padding: 16px; display: grid; gap: 10px; }
.code { font-family: var(--title); font-weight: 900; font-size: 34px; letter-spacing: .08em; text-align: center; color: var(--accent); background: var(--white); border: 2px dashed var(--accent); border-radius: 16px; padding: 10px; user-select: all; }
.auskunft { margin: 0; display: grid; gap: 2px; font-size: 16px; }
.auskunft dt { font-weight: 700; margin-top: 8px; }
.auskunft dd { margin: 0; color: var(--muted); }
.klein { font-size: 14px; color: var(--muted); }
.eingabe.plz { max-width: 270px; font-size: 32px; letter-spacing: .15em; text-align: center; font-family: var(--title); font-weight: 900; }
.aufnahme { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.aufnahme b { font-size: 19px; font-variant-numeric: tabular-nums; }
.aufnahme audio { width: 100%; height: 40px; }
.aufnahme .punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.aufnahme.laeuft { border-color: var(--rot); }
.aufnahme.laeuft .punkt { background: var(--rot); }
@media (prefers-reduced-motion: no-preference) { .aufnahme.laeuft .punkt { animation: blink 1s infinite; } }
@keyframes blink { 50% { opacity: .2; } }
.aufnahme.fertig { border-color: var(--accent); }
.auskunft-zeile { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
.auskunft-zeile > div { min-width: 0; }
.auskunft-zeile audio { width: 100%; max-width: 280px; height: 36px; vertical-align: middle; }
.danger-text { color: var(--crit); border-color: var(--crit-soft); }
.consent.hilfe { background: var(--ground); border-style: dashed; font-size: 16px; }
.consent.hilfe a { font-weight: 700; color: inherit; }
