/* Teilnahme auf dem Handy */
body.teilnahme { background: var(--grund); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.t-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.t-kopf .luecke { flex: 1; }
.t-kopf .titel { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45vw; }
.t-name { border: 0; background: var(--grund); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; max-width: 40vw; overflow: hidden; }
.t-name svg { width: 15px; height: 15px; flex: none; }
.t-haupt { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 22px 16px 120px; }
.t-titel { font-size: 23px; font-weight: 750; margin: 0 0 6px; line-height: 1.2; }
.t-beschr { color: var(--text-2); margin: 0 0 16px; }
.t-bild { width: 100%; border-radius: 16px; margin-bottom: 16px; max-height: 240px; object-fit: cover; }
.t-hinweis { color: var(--text-2); font-size: 14px; margin: 12px 0; }
.t-fortschritt { display: flex; gap: 4px; margin-bottom: 18px; }
.t-fortschritt i { flex: 1; height: 4px; border-radius: 4px; background: var(--linie); }
.t-fortschritt i.an { background: var(--akzent); }

.t-optionen { display: grid; gap: 10px; margin-top: 14px; }
.t-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 16px; border-radius: 14px; border: 2px solid var(--linie); background: #fff; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.t-option:active { transform: scale(.98); }
.t-option .marke { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linie-2); flex: none; display: grid; place-items: center; }
.t-option.eckig .marke { border-radius: 6px; }
.t-option[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-hell); }
.t-option[aria-pressed="true"] .marke { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.t-option .marke svg { width: 13px; height: 13px; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .15s; }
.t-option[aria-pressed="true"] .marke svg { opacity: 1; transform: none; }
.t-senden { width: 100%; margin-top: 18px; padding: 15px; font-size: 16px; }

.t-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.t-quiz button { border: 0; border-radius: 16px; min-height: 110px; color: #fff; font-size: 16px; font-weight: 700; padding: 14px; cursor: pointer; display: grid; place-items: center; gap: 4px; text-align: center; transition: transform .1s, opacity .2s; }
.t-quiz button:active { transform: scale(.96); }
.t-quiz .form { font-size: 26px; }
.t-quiz.eine-spalte { grid-template-columns: 1fr; }
.t-uhr { text-align: center; font-size: 44px; font-weight: 800; color: var(--akzent); margin: 6px 0; font-variant-numeric: tabular-nums; }

.t-skala-zeile { margin: 18px 0; }
.t-skala-zeile .text { font-weight: 650; margin-bottom: 8px; }
.t-stufen { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; }
.t-stufen button { border: 2px solid var(--linie); background: #fff; border-radius: 10px; padding: 10px 0; font-weight: 700; cursor: pointer; font-size: 15px; }
.t-stufen button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.t-stufen.mit-text { grid-template-columns: 1fr; }
.t-stufen.mit-text button { text-align: left; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.t-enden { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 5px; }

.t-feld { width: 100%; padding: 14px; border-radius: 14px; border: 2px solid var(--linie); font-size: 16px; background: #fff; }
.t-feld:focus { border-color: var(--akzent); outline: none; }
textarea.t-feld { min-height: 110px; resize: vertical; }
.t-woerter { display: grid; gap: 8px; margin-top: 14px; }
.t-zeichen { text-align: right; font-size: 12px; color: var(--text-3); margin-top: 4px; }

.t-rang { display: grid; gap: 8px; margin-top: 14px; }
.t-rang-zeile { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--linie); border-radius: 14px; padding: 10px 10px 10px 12px; transition: transform .2s; }
.t-rang-zeile .nr { width: 30px; height: 30px; border-radius: 9px; background: var(--akzent); color: var(--akzent-text); display: grid; place-items: center; font-weight: 800; }
.t-rang-zeile .pfeile { display: flex; gap: 4px; }
.t-rang-zeile .pfeile button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--linie-2); background: #fff; display: grid; place-items: center; cursor: pointer; }
.t-rang-zeile .pfeile button:disabled { opacity: .3; }
.t-rang-zeile svg { width: 18px; height: 18px; }

.t-punkte-rest { position: sticky; top: 60px; z-index: 5; background: var(--dunkel); color: #fff; border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; font-weight: 700; margin: 12px 0; }
.t-punkte-zeile { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--linie); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.t-stepper { display: flex; align-items: center; gap: 6px; }
.t-stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--linie-2); background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.t-stepper output { min-width: 40px; text-align: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }

.t-ampel { display: grid; gap: 12px; margin-top: 16px; }
.t-ampel button { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; border: 3px solid transparent; background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: var(--schatten); }
.t-ampel button i { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.t-ampel .gruen i { background: var(--gruen); } .t-ampel .gelb i { background: var(--gelb); } .t-ampel .rot i { background: var(--rot); }
.t-ampel button[aria-pressed="true"] { border-color: var(--text); }

.t-danke { text-align: center; padding: 26px 10px 10px; }
.t-danke .haken { width: 68px; height: 68px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; animation: aufploppen2 .4s cubic-bezier(.2, .9, .3, 1.4); }
.t-danke .haken svg { width: 36px; height: 36px; }
.t-danke.falsch .haken { background: var(--rot); }
.t-danke h2 { font-size: 22px; }
.t-danke p { color: var(--text-2); margin: 6px 0 0; }
@keyframes aufploppen2 { from { transform: scale(.3); opacity: 0; } }

.t-ergebnis { margin-top: 20px; border-radius: 16px; overflow: hidden; box-shadow: var(--schatten); background: #fff; }
.t-meine { display: grid; gap: 8px; margin-top: 14px; }
.t-mein { background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--linie); font-size: 14px; }
.t-mein small { display: block; color: var(--text-3); margin-top: 3px; }

.t-fragen { display: grid; gap: 8px; margin-top: 18px; }
.t-frage { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 12px 12px 14px; border: 1px solid var(--linie); }
.t-frage.beantwortet { opacity: .55; }
.t-frage small { display: block; color: var(--text-3); font-size: 12px; margin-top: 3px; }
.t-stimme { border: 2px solid var(--linie); background: #fff; border-radius: 12px; min-width: 54px; padding: 6px 8px; display: grid; justify-items: center; cursor: pointer; font-weight: 800; line-height: 1.1; }
.t-stimme[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); }
.t-stimme span { font-size: 11px; }

.t-nav { display: flex; gap: 10px; margin-top: 26px; }
.t-nav .knopf { flex: 1; padding: 13px; }

.t-reaktionen { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; background: #fff; padding: 6px; border-radius: 99px; box-shadow: var(--schatten-gross); z-index: 20; }
.t-reaktionen button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; font-size: 24px; cursor: pointer; transition: transform .1s; }
.t-reaktionen button:active { transform: scale(1.35); }

.t-start { text-align: center; padding-top: 6vh; }
.t-start h1 { font-size: 26px; margin: 18px 0 8px; }
.t-code { font-size: 34px; text-align: center; letter-spacing: .25em; font-weight: 800; font-variant-numeric: tabular-nums; padding: 14px; }
.t-warten .puls { width: 74px; height: 74px; border-radius: 50%; background: var(--akzent); margin: 20px auto; animation: warten 1.6s ease-in-out infinite; }
@keyframes warten { 50% { transform: scale(.75); opacity: .5; } }
.t-fuss { text-align: center; font-size: 12px; color: var(--text-3); padding: 16px 16px 90px; }
.t-fuss a { color: var(--text-2); margin: 0 6px; }
.t-fehler { color: var(--rot); font-size: 14px; margin-top: 10px; min-height: 1.3em; }
@media (max-width: 380px) {
  .t-kopf .titel { display: none; }
  .t-kopf .marke-kopf { font-size: 14px; }
  .t-haupt { padding-top: 16px; }
}

/* Lange Wörter (z. B. „Besprechungsaufzeichnung“) sauber umbrechen */
.t-haupt { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.t-option, .t-quiz button, .t-rang-zeile, .t-punkte-zeile, .t-ampel button, .t-stufen button { min-width: 0; }
.t-option > :last-child, .t-rang-zeile > span:nth-child(2), .t-punkte-zeile > span:first-child { min-width: 0; }
body.teilnahme { overflow-x: hidden; }

/* Bildauswahl */
.t-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.t-bild-wahl { display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 3px solid var(--linie); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; text-align: center; }
.t-bild-wahl img, .t-bild-leer { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: var(--grund); display: grid; place-items: center; font-size: 28px; color: var(--text-3); }
.t-bild-wahl[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-hell); }

/* Schätzfrage */
.t-schaetzen { margin-top: 16px; display: grid; gap: 12px; }
.t-zahl { display: flex; align-items: center; gap: 10px; }
.t-zahl input { font-size: 28px; font-weight: 800; text-align: center; }
.t-zahl span { font-size: 20px; font-weight: 700; color: var(--text-2); }
.t-schaetzen input[type=range], .t-matrix-zeile input[type=range] { width: 100%; accent-color: var(--akzent); height: 30px; }
.t-histo { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.t-histo i { flex: 1; background: var(--akzent); border-radius: 4px 4px 0 0; min-height: 2px; }

/* Matrix */
.t-matrix-zeile { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 12px; margin: 10px 0; display: grid; gap: 4px; }
.t-matrix-zeile .text { font-weight: 700; }
.t-matrix-zeile label { font-size: 12.5px; color: var(--text-2); display: grid; }
.t-nachweis-form { display: grid; gap: 10px; }
