/* Tool „Formular“ – baut auf /tools/assets/tools.css auf (Farben, Schrift, Karten, Knöpfe). Verhalten: formular.js. */

/* ================= Allgemein ================= */
.fm-breit { width: 100%; }
.fm-mitte { text-align: center; }
.fm-leise { color: var(--text-3); }
.fm-meldung { margin-bottom: 1.2rem; animation: t-ein .45s var(--kurve) both; }
.fm-link { border: 0; background: none; padding: 0; color: var(--text-2); font: 600 .9rem 'Exo 2', sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.fm-link:hover { color: #fff; }
.fm-link.gefahr:hover { color: var(--rot); }
.t-knopf.fm-rot { background: var(--rot); color: #1a0710; }
.t-knopf.fm-rot:hover { box-shadow: 0 14px 28px -12px rgba(251, 113, 133, .8); color: #000; }
.t-knopf.fm-klein { padding: .5rem .9rem; font-size: .88rem; }
.fm-haken { position: relative; box-sizing: border-box; width: 100%; display: flex; gap: .7rem; align-items: flex-start; margin: .2rem 0 1rem; color: var(--text-2); font-size: .88rem; cursor: pointer; }
.fm-haken input { position: absolute; opacity: 0; }
.fm-haken > span:last-child { flex: 1; min-width: 0; }
.fm-haken-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--rand-2); background: rgba(0, 0, 0, .25); color: transparent; font-size: .7rem; transition: background .2s, border-color .2s, color .2s, transform .3s var(--feder); }
.fm-haken input:checked + .fm-haken-box { background: var(--gelb); border-color: var(--gelb); color: #111; transform: scale(1.08); }
.fm-haken input:focus-visible + .fm-haken-box { outline: 2px solid var(--gelb); outline-offset: 3px; }
.fm-neu h2 i, .t-karte h2 > i { color: var(--gelb); margin-right: .3rem; }
.fm-meine { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.fm-meine li { animation: t-ein .45s var(--kurve) both; animation-delay: calc(var(--i, 0) * 60ms); }
.fm-meine a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .7rem .85rem; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); color: #fff; font-weight: 600; transition: border-color .2s, transform .3s var(--kurve); }
.fm-meine a:hover { border-color: rgba(255, 198, 26, .45); transform: translateX(3px); color: #fff; }
.fm-meine a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-meine a i:first-child { color: var(--gelb); }
.fm-meine a i:last-child { color: var(--text-3); transition: transform .3s var(--feder); }
.fm-meine a:hover i:last-child { transform: translateX(3px); color: var(--gelb); }
.fm-wie ol { margin: 0; padding-left: 1.2rem; color: var(--text-2); display: grid; gap: .45rem; }
.fm-wie b { color: #fff; }
.fm-dialog { width: min(100% - 24px, 420px); padding: 22px; border: 0; border-radius: 22px; background: #10163d; color: var(--text); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--rand-2); }
.fm-dialog::backdrop { background: rgba(4, 7, 22, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fm-dialog[open] { animation: fm-auf .35s var(--feder); }
.fm-dialog p { font-weight: 600; }
@keyframes fm-auf { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ================= Anmeldung (Code) ================= */
.fm-anmeldung { max-width: 520px; margin: clamp(10px, 4vw, 40px) auto 0; text-align: center; }
.fm-anmeldung h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.fm-anmeldung .t-unter { margin: 0 auto 1.4rem; font-size: 1rem; }
.fm-schloss { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; background: rgba(255, 198, 26, .12); color: var(--gelb); font-size: 1.6rem; box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .3); animation: fm-wippen 3.2s ease-in-out infinite; }
@keyframes fm-wippen { 50% { transform: translateY(-4px) rotate(-4deg); } }
.fm-code { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.2rem; }
.fm-code input { width: 52px; height: 64px; padding: 0; border-radius: 14px; border: 1.5px solid var(--rand-2); background: rgba(0, 0, 0, .3); color: #fff; font: 800 1.7rem 'Exo 2', sans-serif; text-align: center; caret-color: var(--gelb); transition: border-color .2s, transform .25s var(--feder), background .2s; }
.fm-code input:focus { outline: 0; border-color: var(--gelb); box-shadow: 0 0 0 4px rgba(255, 198, 26, .15); transform: translateY(-2px); }
.fm-code input.voll { background: rgba(255, 198, 26, .1); border-color: rgba(255, 198, 26, .55); animation: fm-ziffer .3s var(--feder); }
@keyframes fm-ziffer { 50% { transform: scale(1.1); } }
[data-code-form].fertig .fm-code input { border-color: var(--gruen); background: rgba(52, 211, 153, .12); animation: fm-welle .5s var(--feder) both; }
[data-code-form].fertig .fm-code input:nth-child(2) { animation-delay: .04s; } [data-code-form].fertig .fm-code input:nth-child(3) { animation-delay: .08s; } [data-code-form].fertig .fm-code input:nth-child(4) { animation-delay: .12s; } [data-code-form].fertig .fm-code input:nth-child(5) { animation-delay: .16s; } [data-code-form].fertig .fm-code input:nth-child(6) { animation-delay: .2s; }
@keyframes fm-welle { 40% { transform: translateY(-8px); } }
.fm-nochmal { margin-top: 1rem; }
@media (max-width: 420px) { .fm-code { gap: .35rem; } .fm-code input { width: 44px; height: 56px; font-size: 1.45rem; } }

/* ================= Verwaltung: Kopf und Reiter ================= */
.fm-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.fm-kopf h1 { margin: .35rem 0 .3rem; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.fm-kopf-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.fm-status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.fm-status-offen { background: rgba(52, 211, 153, .12); color: var(--gruen); }
.fm-status-offen i { animation: fm-atmen 2s ease-in-out infinite; }
@keyframes fm-atmen { 50% { opacity: .45; } }
.fm-status-zu { background: var(--flaeche-2); color: var(--text-2); }
.fm-status-gesperrt { background: rgba(251, 113, 133, .12); color: var(--rot); }
.fm-zahlen { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; color: var(--text-2); font-size: .92rem; }
.fm-zahlen b { color: #fff; font-variant-numeric: tabular-nums; }
.fm-reiter { margin-bottom: 1.3rem; }
.fm-reiter a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid var(--rand); border-radius: 99px; background: var(--flaeche); color: var(--text-2); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s, border-color .2s; }
.fm-reiter a:hover { color: #fff; border-color: var(--rand-2); }
.fm-reiter a[aria-current] { background: var(--gelb); border-color: var(--gelb); color: #111; }
.fm-reiter a b { min-width: 1.4rem; padding: 0 .35rem; border-radius: 99px; background: rgba(0, 0, 0, .18); font-size: .75rem; text-align: center; }

/* ================= Baukasten ================= */
.fm-bau-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .fm-bau-spalten { grid-template-columns: minmax(0, 1fr); } .fm-palette { order: -1; } }
.fm-bau-liste { display: grid; gap: 10px; counter-reset: frage; }
.fm-bau-karte { border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); border: 1px solid var(--rand); overflow: hidden; animation: t-ein .45s var(--kurve) both; animation-delay: calc(var(--i, 0) * 35ms); transition: border-color .25s, box-shadow .25s; }
.fm-bau-karte.offen { border-color: rgba(255, 198, 26, .35); box-shadow: 0 18px 40px -26px rgba(255, 198, 26, .5); }
.fm-bau-karte.fm-bau-rahmen { border-style: dashed; border-color: var(--rand-2); box-shadow: none; }
.fm-bau-karte.neu { animation: fm-neu .6s var(--feder) both; }
@keyframes fm-neu { from { opacity: 0; transform: translateY(-10px) scale(.97); box-shadow: 0 0 0 4px rgba(255, 198, 26, .5); } }
.fm-bau-karte.weg { animation: fm-weg .26s ease-in forwards; }
@keyframes fm-weg { to { opacity: 0; transform: translateX(-20px) scale(.97); } }
.fm-bau-kopf { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .75rem .9rem; cursor: pointer; }
.fm-bau-kopf-fest { grid-template-columns: auto minmax(0, 1fr); cursor: default; }
.fm-bau-kopf:hover .fm-bau-text b { color: #fff; }
.fm-bau-kopf > i:last-child { color: var(--text-3); transition: transform .3s var(--kurve); }
.fm-bau-karte.offen .fm-bau-kopf > i:last-child { transform: rotate(180deg); color: var(--gelb); }
.fm-bau-nr { min-width: 1.6rem; color: var(--text-3); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.fm-bau-typ { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(139, 160, 255, .12); color: #a9b8ff; }
.fm-bau-typ.fm-gelb { background: rgba(255, 198, 26, .14); color: var(--gelb); }
.fm-bau-typ.fm-gruen { background: rgba(52, 211, 153, .14); color: var(--gruen); }
.fm-bau-text { min-width: 0; }
.fm-bau-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); transition: color .2s; }
.fm-bau-text small { color: var(--text-3); font-size: .8rem; }
.fm-bau-knoepfe { display: flex; gap: .1rem; opacity: .55; transition: opacity .2s; }
.fm-bau-kopf:hover .fm-bau-knoepfe, .fm-bau-karte.offen .fm-bau-knoepfe { opacity: 1; }
.fm-mini { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.fm-mini:hover:not(:disabled) { background: var(--flaeche-2); color: #fff; }
.fm-mini:disabled { opacity: .25; cursor: default; }
.fm-bau-knoepfe .fm-mini:last-child:hover { color: var(--rot); }
.fm-bau-koerper { padding: .3rem 1rem 1rem calc(1rem + 0px); border-top: 1px solid var(--rand); animation: fm-koerper .35s var(--kurve) both; }
@keyframes fm-koerper { from { opacity: 0; transform: translateY(-6px); } }
.fm-bau-koerper .t-feld { margin: .8rem 0 0; }
.fm-bau-koerper .t-feld input, .fm-bau-koerper .t-feld textarea, .fm-bau-koerper .t-feld select { padding: .65rem .85rem; }
.fm-bau-koerper textarea { min-height: 0; }
.fm-bau-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; align-items: end; }
.fm-bau-vier { display: grid; grid-template-columns: 90px 90px minmax(0, 1fr) minmax(0, 1fr); gap: 0 .7rem; }
@media (max-width: 600px) { .fm-bau-vier { grid-template-columns: 1fr 1fr; } .fm-bau-kopf { grid-template-columns: auto minmax(0, 1fr) auto; } .fm-bau-nr, .fm-bau-kopf > i:last-child { display: none; } }
.fm-bau-skala { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; margin-top: .8rem; padding: .7rem; border-radius: 12px; background: rgba(0, 0, 0, .2); color: var(--text-3); font-size: .8rem; }
.fm-bau-skala-zahlen { display: flex; justify-content: space-between; gap: 2px; }
.fm-bau-skala-zahlen span { flex: 1; min-width: 0; padding: .25rem 0; border-radius: 6px; background: var(--flaeche-2); color: var(--text); text-align: center; font-weight: 700; font-size: .78rem; }
.fm-bau-optionen { margin-top: .9rem; }
.fm-bau-label { display: block; margin-bottom: .4rem; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.fm-bau-optionen ol { margin: 0 0 .6rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.fm-bau-optionen li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; animation: t-ein .3s var(--kurve) both; }
.fm-bau-optionen li input { width: 100%; padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .25); color: #fff; font: 500 15px 'Exo 2', sans-serif; }
.fm-bau-optionen li input:focus { outline: 0; border-color: var(--gelb); }
.fm-bau-buchstabe { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--flaeche-2); color: var(--text-2); font-size: .78rem; font-weight: 800; }
.fm-bau-leer { margin: 0; padding: 1.4rem; border: 1.5px dashed var(--rand-2); border-radius: 18px; color: var(--text-2); text-align: center; }
.fm-palette { position: sticky; top: 130px; padding: 16px; }
.fm-palette .ueber { margin-bottom: .6rem; }
.fm-palette-knoepfe { display: grid; gap: .3rem; }
@media (max-width: 900px) { .fm-palette { position: static; } .fm-palette-knoepfe { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .fm-palette-knopf small { display: none; } }
.fm-palette-knopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: center; padding: .45rem .5rem; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--feder); }
.fm-palette-knopf:hover { background: var(--flaeche-2); border-color: var(--rand); transform: translateX(3px); }
.fm-palette-knopf:hover .fm-bau-typ { background: var(--gelb); color: #111; transform: rotate(-8deg); }
.fm-palette-knopf .fm-bau-typ { width: 34px; height: 34px; border-radius: 10px; transition: background .25s, color .25s, transform .35s var(--feder); }
.fm-palette-knopf b { display: block; font-size: .9rem; }
.fm-palette-knopf small { display: block; color: var(--text-3); font-size: .76rem; line-height: 1.3; }
.fm-speicherleiste { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 16px; padding: .6rem .7rem .6rem 1.1rem; border-radius: 99px; background: rgba(16, 22, 61, .88); border: 1px solid var(--rand-2); box-shadow: 0 20px 40px -18px #000; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text-2); font-size: .9rem; font-weight: 600; transition: border-color .3s, box-shadow .3s; }
.fm-speicherleiste i { color: var(--gruen); margin-right: .3rem; }
.fm-speicherleiste.ungespeichert { border-color: rgba(255, 198, 26, .5); box-shadow: 0 0 0 4px rgba(255, 198, 26, .08), 0 20px 40px -18px #000; }
.fm-speicherleiste.ungespeichert i { color: var(--gelb); }
.fm-speicherleiste.ungespeichert [data-speichern] { animation: fm-bereit 2s ease-in-out infinite; }
@keyframes fm-bereit { 50% { box-shadow: 0 0 0 6px rgba(255, 198, 26, .2); } }
.fm-schalter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; margin-bottom: .6rem; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); cursor: pointer; }
.fm-schalter-klein { padding: .55rem .75rem; margin: 0 0 .1rem; }
.fm-schalter span { display: grid; }
.fm-schalter b { color: #fff; font-size: .93rem; }
.fm-schalter small { color: var(--text-3); font-size: .8rem; }
.fm-schalter input { position: absolute; opacity: 0; }
.fm-schalter > i { position: relative; flex: none; width: 44px; height: 25px; border-radius: 25px; background: rgba(255, 255, 255, .14); transition: background .3s; }
.fm-schalter > i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .35s var(--feder); }
.fm-schalter input:checked + i { background: var(--gelb); }
.fm-schalter input:checked + i::after { transform: translateX(19px); }
.fm-schalter input:focus-visible + i { outline: 2px solid var(--gelb); outline-offset: 2px; }
.fm-einstellungen .t-knopf { margin-top: .4rem; }
.fm-gefahr { border-color: rgba(251, 113, 133, .25); }
.fm-gefahr form + form { margin-top: .6rem; }

/* ================= Teilen ================= */
.fm-link-feld { display: flex; gap: .5rem; margin-bottom: 1rem; }
.fm-link-feld input { flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .3); color: var(--gelb); font: 600 15px ui-monospace, Menlo, monospace; }
@media (max-width: 520px) { .fm-link-feld { flex-direction: column; } }
.fm-qr { text-align: center; }
.fm-qr-bild { width: min(240px, 100%); margin: 0 auto 1rem; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -20px #000; animation: fm-qr .7s var(--feder) both; }
.fm-qr-bild svg { display: block; width: 100%; height: auto; }
@keyframes fm-qr { from { opacity: 0; transform: rotate(-6deg) scale(.85); } }

/* ================= Auswertung ================= */
.fm-antworten-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; color: var(--text-2); }
.fm-antworten-kopf p { margin: 0; } .fm-antworten-kopf b { color: #fff; font-size: 1.2rem; }
.fm-leer { display: grid; justify-items: center; gap: .3rem; padding: 3rem 1.5rem; text-align: center; }
.fm-leer > i { font-size: 2.4rem; color: var(--gelb); margin-bottom: .5rem; animation: fm-wippen 3s ease-in-out infinite; }
.fm-leer p { color: var(--text-2); }
.fm-auswertung { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 16px; }
.fm-auswertung-karte { animation-delay: calc(var(--i, 0) * 70ms); }
.fm-auswertung-karte + .fm-auswertung-karte { margin-top: 0; }
.fm-auswertung-kopf { display: flex; justify-content: space-between; gap: .6rem; margin: 0 0 .4rem; color: var(--text-3); font-size: .8rem; font-weight: 600; }
.fm-typ-marke { color: var(--text-2); } .fm-typ-marke i { color: var(--gelb); margin-right: .2rem; }
.fm-auswertung-karte h3 { margin-bottom: 1rem; line-height: 1.3; }
.fm-balken { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.fm-balken li { --f: var(--gelb); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .8rem; }
.fm-balken span { overflow-wrap: anywhere; }
.fm-balken b { font-variant-numeric: tabular-nums; }
.fm-balken small { color: var(--text-3); font-weight: 600; margin-left: .2rem; }
.fm-balken i { grid-column: 1 / -1; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.fm-balken i::after { content: ''; display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--f) 70%, #fff), var(--f)); transform-origin: left; animation: fm-wachsen 1s var(--kurve) both; animation-delay: calc(.2s + var(--i, 0) * 80ms); }
@keyframes fm-wachsen { from { transform: scaleX(0); } }
.fm-schnitt { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1rem; }
.fm-schnitt b { font-size: 2.6rem; line-height: 1; color: var(--gelb); font-variant-numeric: tabular-nums; }
.fm-schnitt span { color: var(--text-2); }
.fm-sterne-klein { display: inline-block; position: relative; width: 5.2em; height: 1em; vertical-align: -.1em; margin-left: .3rem; background: linear-gradient(90deg, var(--gelb) var(--w), rgba(255, 255, 255, .15) var(--w)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M12 1l3.3 7 7.7.9-5.7 5.2 1.6 7.6L12 17.8 5.1 21.7l1.6-7.6L1 8.9l7.7-.9z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M12 1l3.3 7 7.7.9-5.7 5.2 1.6 7.6L12 17.8 5.1 21.7l1.6-7.6L1 8.9l7.7-.9z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.fm-saeulen { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; }
.fm-saeulen > div { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; text-align: center; }
.fm-saeulen span { color: var(--text-2); font-size: .75rem; font-weight: 700; min-height: 1.1em; }
.fm-saeulen i { align-self: end; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gelb), #e09a00); transform-origin: bottom; animation: fm-saeule .9s var(--feder) both; animation-delay: calc(.2s + var(--i, 0) * 50ms); }
@keyframes fm-saeule { from { transform: scaleY(0); } }
.fm-saeulen small { margin-top: .3rem; color: var(--text-3); font-size: .74rem; font-weight: 700; }
.fm-skala-texte { display: flex; justify-content: space-between; margin: .5rem 0 0; color: var(--text-3); font-size: .8rem; }
.fm-textliste { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.fm-textliste li, .fm-texte li { padding: .6rem .8rem; border-radius: 12px; background: var(--flaeche); border-left: 3px solid rgba(255, 198, 26, .5); font-size: .93rem; overflow-wrap: anywhere; animation: t-ein .4s var(--kurve) both; }
.fm-texte { margin-top: .8rem; } .fm-texte summary { color: var(--gelb); font-weight: 600; cursor: pointer; }
.fm-texte ul { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; max-height: 360px; overflow: auto; }
.fm-einzeln-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.fm-einzeln-kopf h2 { margin: 0; }
.fm-blaettern { display: flex; align-items: center; gap: .6rem; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.fm-einzel { animation: fm-einzel .35s var(--kurve) both; }
.fm-einzel[data-richtung="links"] { animation-name: fm-einzel-links; }
@keyframes fm-einzel { from { opacity: 0; transform: translateX(14px); } }
@keyframes fm-einzel-links { from { opacity: 0; transform: translateX(-14px); } }
.fm-einzel dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; margin: .6rem 0 1rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--rand); }
.fm-einzel dt, .fm-einzel dd { margin: 0; padding: .65rem .85rem; border-top: 1px solid var(--rand); overflow-wrap: anywhere; }
.fm-einzel dt:first-of-type, .fm-einzel dd:first-of-type { border-top: 0; }
.fm-einzel dt { color: var(--text-2); background: var(--flaeche); font-size: .9rem; }
@media (max-width: 600px) { .fm-einzel dl { grid-template-columns: minmax(0, 1fr); } .fm-einzel dd { border-top: 0; padding-top: 0; } }

/* ================= Öffentliche Teilnahme ================= */
body.fm-oeffentlich { min-height: 100vh; min-height: 100dvh; overflow: hidden; }
body.fm-oeffentlich::before { opacity: .6; }
.fm-buehne { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.fm-fortschritt { position: fixed; inset: 0 0 auto; z-index: 10; height: 4px; background: rgba(255, 255, 255, .06); }
.fm-fortschritt i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gelb), #ffe38a); box-shadow: 0 0 14px rgba(255, 198, 26, .6); border-radius: 0 4px 4px 0; transition: width .6s var(--kurve); }
.fm-vorschau-band { position: fixed; top: 12px; left: 50%; z-index: 11; transform: translateX(-50%); padding: .35rem .9rem; border-radius: 99px; background: rgba(255, 198, 26, .14); border: 1px solid rgba(255, 198, 26, .4); color: var(--gelb); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.fm-rahmen { position: relative; grid-row: 2; width: min(100% - 2 * clamp(20px, 6vw, 48px), 720px); margin: 0 auto; }
/* Seitlich 16 px Luft (nach außen ausgeglichen): overflow-y schneidet sonst auch links/rechts ab – Vergrößern, Wackeln, Fokusrahmen */
.fm-schritt { position: absolute; inset: 0 -16px; display: flex; flex-direction: column; justify-content: center; padding: 48px 16px 24px; visibility: hidden; opacity: 0; overflow-y: auto; scrollbar-width: none; }
.fm-schritt::-webkit-scrollbar { display: none; }
.fm-schritt.aktiv { visibility: visible; opacity: 1; }
.fm-schritt.rein-unten { animation: fm-rein-unten .55s var(--kurve) both; }
.fm-schritt.rein-oben { animation: fm-rein-oben .55s var(--kurve) both; }
.fm-schritt.raus-hoch { visibility: visible; animation: fm-raus-hoch .45s var(--kurve) both; pointer-events: none; }
.fm-schritt.raus-runter { visibility: visible; animation: fm-raus-runter .45s var(--kurve) both; pointer-events: none; }
@keyframes fm-rein-unten { from { opacity: 0; transform: translateY(60px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fm-rein-oben { from { opacity: 0; transform: translateY(-60px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fm-raus-hoch { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-60px); filter: blur(4px); } }
@keyframes fm-raus-runter { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(60px); filter: blur(4px); } }
.fm-schritt.wackeln .fm-eingabe { animation: fm-wackeln .4s ease; }
@keyframes fm-wackeln { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.fm-start { text-align: left; }
.fm-start-symbol { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.4rem; border-radius: 20px; background: rgba(255, 198, 26, .12); color: var(--gelb); font-size: 1.6rem; box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .3); }
.fm-schritt.aktiv .fm-start-symbol { animation: fm-symbol .8s var(--feder) .1s both; }
@keyframes fm-symbol { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
.fm-start h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: .8rem; }
.fm-start-text { max-width: 600px; color: var(--text-2); font-size: clamp(1.05rem, 2.4vw, 1.2rem); white-space: pre-line; }
.fm-start-meta { color: var(--text-3); font-weight: 600; font-size: .92rem; }
.fm-frage-kopf { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem; }
.fm-nummer { display: inline-flex; align-items: center; gap: .3rem; flex: none; color: var(--gelb); font-weight: 800; font-size: 1rem; }
.fm-nummer i { font-size: .7rem; }
.fm-frage { margin: 0; font-size: clamp(1.45rem, 4.4vw, 2.2rem); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.fm-pflicht { color: var(--gelb); margin-left: .2rem; }
.fm-hilfe { margin: 0 0 1.4rem; color: var(--text-2); font-size: 1.05rem; white-space: pre-line; }
.fm-frage-kopf + .fm-eingabe { margin-top: 1.2rem; }
.fm-eingabe { margin-bottom: 1.2rem; }
.fm-schritt.aktiv .fm-frage-kopf, .fm-schritt.aktiv .fm-hilfe, .fm-schritt.aktiv .fm-eingabe, .fm-schritt.aktiv .fm-ok-zeile { animation: fm-stufe .6s var(--kurve) both; }
.fm-schritt.aktiv .fm-hilfe { animation-delay: .06s; } .fm-schritt.aktiv .fm-eingabe { animation-delay: .12s; } .fm-schritt.aktiv .fm-ok-zeile { animation-delay: .18s; }
@keyframes fm-stufe { from { opacity: 0; transform: translateY(18px); } }
.fm-linie { width: 100%; padding: .4rem 0 .6rem; border: 0; border-bottom: 2px solid rgba(255, 198, 26, .35); border-radius: 0; background: none; color: #fff; font: 500 clamp(1.3rem, 3.6vw, 1.75rem) 'Exo 2', sans-serif; transition: border-color .25s; color-scheme: dark; }
.fm-linie::placeholder { color: rgba(255, 255, 255, .25); }
.fm-linie:focus { outline: 0; border-bottom-color: var(--gelb); }
.fm-lang { resize: none; line-height: 1.4; overflow-y: auto; }
.fm-ok-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.fm-ok { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.3rem; border: 0; border-radius: 12px; background: var(--gelb); color: #111; font: 800 1.05rem 'Exo 2', sans-serif; cursor: pointer; transition: transform .25s var(--feder), box-shadow .25s; }
.fm-ok:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255, 198, 26, .85); }
.fm-ok:active { transform: scale(.96); }
.fm-ok:disabled { opacity: .6; cursor: default; transform: none; }
.fm-ok.fm-gross { padding: 1rem 1.7rem; font-size: 1.2rem; border-radius: 14px; }
.fm-taste { color: var(--text-3); font-size: .82rem; }
kbd { display: inline-block; padding: .05rem .4rem; border-radius: 6px; border: 1px solid var(--rand-2); background: var(--flaeche); font: 700 .78rem 'Exo 2', sans-serif; color: var(--text-2); }
.fm-hinweis { margin: 0 0 .8rem; color: var(--text-3); font-size: .9rem; }
.fm-fehler { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; padding: .45rem .8rem; border-radius: 10px; background: rgba(251, 113, 133, .12); color: #ffc2cc; font-weight: 600; font-size: .92rem; animation: fm-stufe .35s var(--kurve) both; }
.fm-fehler[hidden] { display: none; }
/* Auswahl */
.fm-optionen { display: grid; gap: .55rem; max-width: 560px; }
.fm-wahl { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1.5px solid rgba(255, 198, 26, .25); border-radius: 14px; background: rgba(255, 198, 26, .05); color: #fff; font: 600 1.08rem 'Exo 2', sans-serif; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--feder); animation: fm-stufe .5s var(--kurve) both; animation-delay: calc(.12s + var(--i, 0) * 45ms); }
.fm-wahl:hover { background: rgba(255, 198, 26, .12); border-color: rgba(255, 198, 26, .55); transform: translateX(4px); }
.fm-wahl kbd { min-width: 28px; text-align: center; border-color: rgba(255, 198, 26, .4); color: var(--gelb); background: transparent; transition: background .2s, color .2s; }
.fm-wahl > i { color: #111; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--feder); }
.fm-wahl[aria-pressed="true"] { background: rgba(255, 198, 26, .2); border-color: var(--gelb); }
.fm-wahl[aria-pressed="true"] kbd { background: var(--gelb); color: #111; }
.fm-wahl[aria-pressed="true"] > i { opacity: 1; transform: none; color: var(--gelb); }
.fm-wahl.puls { animation: fm-puls .45s var(--feder); }
@keyframes fm-puls { 0% { transform: scale(.97); } 50% { transform: scale(1.03); } 100% { transform: none; } }
.fm-sonstiges { padding: .2rem 0 0 .2rem; animation: fm-stufe .3s var(--kurve) both; }
.fm-sonstiges[hidden] { display: none; }
.fm-janein { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 520px; }
.fm-wahl-gross { grid-template-columns: 1fr; justify-items: center; gap: .5rem; padding: 1.4rem 1rem; text-align: center; font-size: 1.3rem; }
.fm-wahl-gross kbd { position: absolute; top: .6rem; left: .6rem; }
.fm-wahl-gross > i { opacity: 1; transform: none; color: var(--gelb); font-size: 2rem; }
.fm-wahl-gross[data-wert="nein"] > i { color: #fda4b4; }
.fm-wahl-gross:hover { transform: translateY(-3px); }
.fm-wahl-gross[aria-pressed="true"] > i { animation: fm-hupf .5s var(--feder); }
@keyframes fm-hupf { 40% { transform: scale(1.3) rotate(-10deg); } }
/* Skala */
.fm-skala { max-width: 600px; padding-top: 3.2rem; }
.fm-skala-spur { position: relative; }
.fm-skala-wert { position: absolute; bottom: calc(100% + 10px); left: calc(14px + var(--p, .5) * (100% - 28px)); transform: translateX(-50%); display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 .5rem; border-radius: 16px 16px 16px 4px; background: var(--gelb); color: #111; font-weight: 800; font-size: 1.5rem; box-shadow: 0 12px 26px -10px rgba(255, 198, 26, .8); transition: left .15s ease; }
.fm-skala-wert.hupf { animation: fm-blase .3s var(--feder); }
@keyframes fm-blase { 50% { transform: translateX(-50%) scale(1.15); } }
.unberuehrt .fm-skala-wert { background: var(--flaeche-2); color: var(--text-2); box-shadow: none; }
.fm-regler { width: 100%; height: 36px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 50%; }
.fm-regler::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--gelb) var(--p), rgba(255, 255, 255, .12) var(--p)); }
.fm-regler::-moz-range-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--gelb) var(--p), rgba(255, 255, 255, .12) var(--p)); }
.fm-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: #fff; border: 6px solid var(--gelb); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: transform .2s var(--feder); }
.fm-regler:active::-webkit-slider-thumb { transform: scale(1.2); }
.fm-regler::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--gelb); }
.unberuehrt .fm-regler::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .12); }
.unberuehrt .fm-regler::-webkit-slider-thumb { border-color: var(--text-3); animation: fm-lockt 1.6s ease-in-out infinite; }
@keyframes fm-lockt { 50% { transform: translateX(10px); } }
.fm-skala-ticks { position: relative; height: 30px; margin: .3rem 14px 0; }
.fm-skala-ticks button { position: absolute; left: calc(var(--p) * 100%); transform: translateX(-50%); min-width: 28px; padding: .2rem .3rem; border: 0; border-radius: 8px; background: none; color: var(--text-3); font: 700 .85rem 'Exo 2', sans-serif; cursor: pointer; transition: color .2s, background .2s; }
.fm-skala-ticks button:hover { color: #fff; background: var(--flaeche-2); }
.fm-skala-texte { display: flex; justify-content: space-between; color: var(--text-2); font-size: .92rem; font-weight: 600; }
.fm-schieb { margin-top: .8rem; }
/* Sterne */
.fm-sterne { display: flex; gap: .4rem; margin-bottom: .6rem; }
.fm-sterne button { padding: .2rem; border: 0; background: none; color: rgba(255, 255, 255, .16); font-size: clamp(2.2rem, 8vw, 3rem); cursor: pointer; transition: color .15s, transform .25s var(--feder); animation: fm-stufe .45s var(--kurve) both; animation-delay: calc(.1s + var(--i) * 50ms); }
.fm-sterne button.an { color: var(--gelb); text-shadow: 0 0 18px rgba(255, 198, 26, .55); }
.fm-sterne button:hover { transform: scale(1.15) rotate(-6deg); }
.fm-sterne button.funkeln { animation: fm-funkeln .5s var(--feder) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes fm-funkeln { 40% { transform: scale(1.35) rotate(12deg); } }
/* Steuerung, Fuß */
.fm-steuerung { position: fixed; right: clamp(14px, 3vw, 28px); bottom: 54px; z-index: 10; display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px -10px #000; }
.fm-pfeil { width: 44px; height: 40px; border: 0; background: var(--gelb); color: #111; cursor: pointer; transition: filter .2s; }
.fm-pfeil + .fm-pfeil { border-left: 1px solid rgba(0, 0, 0, .15); }
.fm-pfeil:hover:not(:disabled) { filter: brightness(1.1); }
.fm-pfeil:disabled { opacity: .45; cursor: default; }
.fm-fuss { grid-row: 3; display: flex; justify-content: center; gap: 1.2rem; padding: .8rem 1rem calc(.9rem + env(safe-area-inset-bottom)); font-size: .78rem; }
.fm-fuss a { color: var(--text-3); }
.fm-fuss a:hover { color: var(--text-2); }
.fm-honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Ende */
.fm-ende { align-items: center; text-align: center; }
.fm-ende h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 1rem 0 .4rem; }
.fm-ende p { max-width: 520px; color: var(--text-2); font-size: 1.1rem; white-space: pre-line; }
.fm-ende-symbol { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; background: var(--flaeche-2); color: var(--text-2); font-size: 2rem; }
.fm-danke-haken { width: 110px; height: 110px; }
.fm-danke-haken circle { fill: none; stroke: var(--gruen); stroke-width: 5; stroke-dasharray: 280; stroke-dashoffset: 280; animation: fm-zeichnen .7s var(--kurve) .15s forwards; }
.fm-danke-haken path { fill: none; stroke: var(--gruen); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: fm-zeichnen .45s var(--kurve) .65s forwards; }
@keyframes fm-zeichnen { to { stroke-dashoffset: 0; } }
.fm-konfetti { position: fixed; left: 0; top: 0; z-index: 30; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }
@media (max-width: 560px) {
    .fm-schritt { justify-content: flex-start; padding-top: max(40px, 12vh); }
    .fm-steuerung { bottom: 50px; }
    .fm-taste { display: none; }
    .fm-wahl kbd { display: none; } .fm-wahl { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) { .fm-schritt.raus-hoch, .fm-schritt.raus-runter { visibility: hidden; } }
