@font-face { font-family: "FatFrank"; src: url("fonts/FatFrank-Regular.bfcee09286f0.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_Regular.b80100e6e144.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_SemiBold.cdfef4a0671e.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --rot: #ff473d; --rot-dunkel: #5a1b25; --rot-hell: #ffdad8; --rot-text: #c4271e;
  --lila: #aba6f9;
  --gruen-hell: #e3f3e8; --gruen-text: #14532d;
  --creme: #fdf8f0; --weiss: #ffffff;
  --ink: #333333; --ink-70: rgba(51, 51, 51, .7); --ink-10: rgba(51, 51, 51, .1); --ink-5: rgba(51, 51, 51, .05);
  --rand: #8c8c8c;
  --anzeige: "FatFrank", "Inter", sans-serif;

  /* Schriftgrößen: Titel, Zwischenüberschrift, Text, klein. Mehr gibt es nicht. */
  --t-titel: clamp(1.9rem, 4.3vw, 3.25rem);
  --t-ueberschrift: clamp(1.75rem, 3.5vw, 2.5rem);
  --t-text: 1.0625rem;
  --t-klein: .9375rem;

  --rand-seite: clamp(16px, 4vw, 40px);
  --abstand: clamp(56px, 8vw, 104px);
  --r: 12px;
  --r-karte: clamp(16px, 2vw, 24px);
}
@media (min-width: 720px) { :root { --t-text: 1.125rem; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--ink); font: 400 var(--t-text)/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--rot-dunkel); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
p, ul, dl, h1, h2 { margin: 0; }
strong { font-weight: 600; }
.klein { font-size: var(--t-klein); color: var(--ink-70); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1 { line-height: 1.4; }
.badge {
  font: 500 var(--t-titel)/1.1 var(--anzeige); text-transform: uppercase; word-spacing: .125em;
  color: var(--weiss); background: var(--rot); padding: .08em .35em .14em; border-radius: .25em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
h2 { font: 500 var(--t-ueberschrift)/1.15 var(--anzeige); text-transform: uppercase; word-spacing: .125em; color: var(--rot); }

/* Rahmen */
.kopf { padding: clamp(32px, 5vw, 56px) var(--rand-seite) 0; text-align: center; }
.kopf img { width: min(220px, 50vw); height: auto; }
.inhalt { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--rand-seite) var(--abstand); display: grid; gap: var(--abstand); }
.inhalt.schmal { max-width: 720px; }
.fuss { max-width: 1120px; margin: 0 auto; padding: 32px var(--rand-seite) 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink-10); }
.fuss img { display: block; height: 44px; width: auto; }
.fuss nav { display: flex; gap: 24px; font-size: var(--t-klein); }
.fuss nav a { color: var(--ink-70); }

/* Startbereich: Logo und Termin neben der Anmeldung */
.buehne { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.buehne-titel { display: grid; gap: clamp(32px, 4vw, 48px); justify-items: center; }
.buehne-titel .logo { width: min(100%, 72vw, 480px); height: auto; }
@media (min-width: 960px) {
  .buehne { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); min-height: min(720px, 75vh); }
}
.termin { width: 100%; max-width: 480px; padding: 20px 24px; border-radius: var(--r-karte); background: var(--lila); color: var(--rot-dunkel); text-align: center; transform: rotate(-1.5deg); }
.termin-datum { font: 500 var(--t-ueberschrift)/1.1 var(--anzeige); text-transform: uppercase; word-spacing: .125em; }
.termin p + p { margin-top: 6px; font-weight: 600; }

/* Karten */
.karte { display: grid; gap: 28px; padding: clamp(24px, 4vw, 44px); background: var(--weiss); border-radius: var(--r-karte); box-shadow: 0 12px 40px rgba(90, 27, 37, .06); }
.karte.schmal { width: 100%; max-width: 560px; margin: 0 auto; }
.plaetze { display: grid; gap: 8px; }
progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 99px; background: var(--ink-10); overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background: var(--ink-10); }
progress::-webkit-progress-value { background: var(--rot); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--rot); border-radius: 99px; }
.hinweis { padding: 12px 16px; border-radius: var(--r); background: rgba(255, 218, 216, .5); color: var(--rot-dunkel); font-size: var(--t-klein); }

.daten { display: grid; gap: 16px; padding: 16px 20px; border-radius: var(--r); background: var(--ink-5); }
.daten div { display: grid; gap: 2px; }
.daten dt { font-size: var(--t-klein); color: var(--ink-70); }
.daten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.gesichert { justify-items: center; text-align: center; }
.gesichert .stuvie { width: 140px; height: auto; }
.gesichert .aktionen { justify-content: center; }

/* Formulare */
.formular { display: grid; gap: 24px; }
.feld { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.feld > label, .feld > legend { padding: 0; font-size: var(--t-klein); font-weight: 600; }
fieldset.feld > legend { margin-bottom: 8px; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--rand); border-radius: var(--r);
  background: var(--weiss); color: var(--ink); font: inherit;
}
textarea { min-height: 240px; resize: vertical; }
select { appearance: none; padding-right: 44px; background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 1px var(--rot); }
[aria-invalid=true] { border-color: var(--rot-text); }
.fehler-text { color: var(--rot-text); font-size: var(--t-klein); font-weight: 600; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--rot); }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }

.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { position: relative; }
.pille input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pille span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--rand); border-radius: 99px; background: var(--weiss); font-size: var(--t-klein); font-weight: 600; }
.pille input:checked + span { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.pille input:focus-visible + span { outline: 2px solid var(--rot); outline-offset: 2px; }

.auswahl { position: relative; }
.auswahl input { scroll-margin-top: 40px; }
.auswahl-liste { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; background: var(--weiss); border: 1px solid var(--ink-10); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.auswahl-liste li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.auswahl-liste li small { display: block; font-size: var(--t-klein); color: var(--ink-70); }
.auswahl-liste li:hover, .auswahl-liste li[aria-selected=true] { background: rgba(171, 166, 249, .25); }
.auswahl-liste li.leer { color: var(--ink-70); cursor: default; background: none; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--r); font: 600 var(--t-text)/1.2 "Inter", system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.knopf.primaer { background: var(--rot); color: var(--weiss); }
.knopf.primaer:hover { background: var(--rot-dunkel); }
.knopf.breit { width: 100%; }
.knopf.leise { background: var(--weiss); border-color: rgba(90, 27, 37, .3); color: var(--rot-dunkel); }
.knopf.leise:hover { background: var(--ink-5); }
.knopf.gefahr { background: var(--rot-text); color: var(--weiss); }
.link { padding: 0; border: 0; background: none; color: var(--rot-dunkel); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.klein { justify-self: start; font-size: var(--t-klein); }
.link.gefahr { color: var(--rot-text); }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* Meldungen */
.meldungen { display: grid; gap: 8px; width: 100%; text-align: left; }
.meldung { padding: 12px 16px; border-radius: var(--r); background: var(--weiss); border: 1px solid var(--ink-10); font-size: var(--t-klein); }
.meldung.success { background: var(--gruen-hell); border-color: var(--gruen-hell); color: var(--gruen-text); }
.meldung.error { background: rgba(255, 218, 216, .5); border-color: transparent; color: var(--rot-dunkel); }
details.meldung summary { cursor: pointer; font-weight: 600; }
details.meldung ul { margin: 8px 0 12px; padding-left: 20px; }

/* Inhalte nach dem Login */
.abschnitt { display: grid; gap: 28px; }
.abschnitt > p { max-width: 68ch; }
.raster { display: grid; gap: 28px 64px; padding: 0; list-style: none; }
.raster > * { display: grid; gap: 4px; align-content: start; }
.raster strong { color: var(--rot-dunkel); }
.raster a { margin-top: 4px; justify-self: start; }
@media (min-width: 720px) { .raster { grid-template-columns: 1fr 1fr; } }

.text { gap: 16px; }
.text h1 { margin-bottom: 16px; }
.text h2 { margin-top: 16px; font: 600 var(--t-text)/1.4 "Inter", system-ui, sans-serif; text-transform: none; word-spacing: normal; color: var(--ink); }

/* Hilfe */
.dialog { width: min(480px, calc(100vw - 32px)); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r-karte); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(51, 51, 51, .5); }
.dialog h2 { margin-bottom: 20px; font-size: 1.75rem; }
.dialog p { margin-bottom: 16px; }
.dialog a { overflow-wrap: anywhere; }
.dialog form { margin-top: 24px; }

/* Verwaltung */
.verwaltung { --t-text: 1rem; --t-klein: .875rem; }
.verwaltung .inhalt { max-width: 1200px; gap: 32px; padding-top: 32px; }
.verwaltung .karte { gap: 20px; padding: 28px; }
.verwaltung h1 { font: 600 1.5rem/1.3 "Inter", system-ui, sans-serif; color: var(--ink); }
.verwaltung h2 { font: 600 1.25rem/1.3 "Inter", system-ui, sans-serif; text-transform: none; word-spacing: normal; color: var(--ink); }
.verwaltung .knopf { min-height: 44px; padding: 10px 18px; }
.verwaltung input, .verwaltung select { min-height: 44px; }
.v-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px var(--rand-seite); background: var(--weiss); border-bottom: 1px solid var(--ink-10); }
.v-marke { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.v-menue { display: flex; flex-wrap: wrap; gap: 4px; }
.v-menue a { padding: 8px 12px; border-radius: 8px; color: var(--ink-70); font-weight: 600; text-decoration: none; }
.v-menue a:hover, .v-menue a[aria-current=page] { background: var(--ink-5); color: var(--ink); }
.v-nutzer { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: var(--t-klein); color: var(--ink-70); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kennzahl { display: grid; padding: 16px 20px; border-radius: var(--r-karte); background: var(--weiss); }
.kennzahl span, .kennzahl small { font-size: var(--t-klein); color: var(--ink-70); }
.kennzahl strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.werkzeuge .suche { flex: 1 1 260px; }
.tabelle { overflow-x: auto; border-radius: var(--r-karte); background: var(--weiss); }
.karte .tabelle { border: 1px solid var(--ink-10); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 10px 14px; border-top: 1px solid var(--ink-10); text-align: left; vertical-align: top; }
thead th { border-top: 0; font-size: var(--t-klein); color: var(--ink-70); white-space: nowrap; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; }
td.leer { padding: 32px; text-align: center; color: var(--ink-70); }

/* Feedback: Titel ohne Kasten. Die Größe hängt an der Kartenbreite (100vw minus Seiten- und Kartenrand), geteilt
   durch die Breite des längsten Worts in em (--teiler), damit nichts über den Rand läuft. Keine Trennung im Wort. */
.titel { font: 500 clamp(1rem, calc((100vw - 80px) / var(--teiler, 14)), var(--titel-max, 2.25rem)) / 1.1 var(--anzeige); text-transform: uppercase; word-spacing: .125em; color: var(--rot); text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
.titel .herz { display: inline-block; font-size: .85em; }

/* Dankeskarte mit dem Gewinnspiel im selben Rahmen */
.dank { justify-items: center; text-align: center; }
.dank .stuvie { width: clamp(88px, 22vw, 120px); height: auto; }
.dank .titel { --teiler: 6; --titel-max: 2rem; }
.gewinnspiel { display: grid; gap: 16px; width: 100%; padding: clamp(20px, 4vw, 28px); border-radius: var(--r-karte); background: var(--lila); color: var(--rot-dunkel); text-align: left; }
.gewinnspiel h2 { color: var(--rot-dunkel); }
.gewinnspiel .formular { gap: 16px; }
.gewinnspiel .feld > label, .gewinnspiel .link { color: var(--rot-dunkel); }
.gewinnspiel .hinweis { background: var(--weiss); }

/* Feedback: ein Schritt je Frage, Schieberegler, sortierbare Liste */
.feedback { gap: 32px; }
.feedback:not(.js) .schritt + .schritt { padding-top: 32px; border-top: 1px solid var(--ink-10); }
.fortschritt { height: 6px; }
.schritt, .schritt-inhalt { display: grid; gap: 24px; }
fieldset.ws { margin: 0; padding: 0; border: 0; min-width: 0; }
.frage { display: grid; gap: 8px; }
.frage-titel { font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
.frage-hinweis { color: var(--ink-70); }
.frage-nachsatz { margin-top: 4px; font-weight: 600; }
.frage .pillen { margin-top: 12px; }
.frage-kicker { font-size: var(--t-klein); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rot-dunkel); }
.schritt-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.schritt-nav-rechts { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.pillen.senkrecht { flex-direction: column; }
.pillen.senkrecht .pille, .pillen.senkrecht .pille span { width: 100%; }
.pillen.senkrecht .pille span { border-radius: var(--r); }
textarea.kurz { min-height: 140px; }
.zaehler { text-align: right; font-size: var(--t-klein); color: var(--ink-70); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.frage-titel:focus { outline: none; }

.note { display: grid; gap: 6px; padding-top: 4px; }
.note input[type=range] { width: 100%; height: 44px; margin: 0; padding: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.note input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--ink-10); }
.note input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--ink-10); }
.note input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border: 3px solid var(--weiss); border-radius: 50%; background: var(--rot); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.note input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 3px solid var(--weiss); border-radius: 50%; background: var(--rot); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.note input[type=range]:focus { outline: none; box-shadow: none; }
.note input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--rot); outline-offset: 2px; }
.note input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--rot); outline-offset: 2px; }
.skala { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; font-weight: 600; color: var(--ink-70); }
.skala li { width: 32px; text-align: center; font-size: var(--t-klein); transition: transform .15s; }
.skala li.aktiv { color: var(--rot); font-size: 1.5rem; }
.note-enden { display: flex; justify-content: space-between; font-size: var(--t-klein); color: var(--ink-70); }

.sortier { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sortier-eintrag { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px 8px 4px; border: 1px solid var(--rand); border-radius: var(--r); background: var(--weiss); }
.sortier-eintrag.zieht { position: relative; z-index: 2; border-color: var(--rot); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.sortier.zieht-aktiv { user-select: none; -webkit-user-select: none; }
.sortier-griff { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 44px; color: var(--rand); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.zieht .sortier-griff { cursor: grabbing; }
.sortier-platz { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rot); color: var(--weiss); font-size: var(--t-klein); font-weight: 600; }
.sortier-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.sortier-knoepfe { display: flex; flex: none; gap: 4px; }
.sortier-knoepfe button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ink-10); border-radius: 8px; background: var(--weiss); color: var(--ink); cursor: pointer; }
.sortier-knoepfe button:hover { background: var(--ink-5); }
.sortier-knoepfe button:disabled { opacity: .3; cursor: default; }
@media (max-width: 480px) {
  .sortier-eintrag { gap: 8px; padding-right: 6px; }
  .sortier-griff { width: 32px; }
  .sortier-knoepfe { flex-direction: column; }
  .sortier-knoepfe button { width: 36px; height: 32px; }
}
@media (max-width: 359px) { .sortier-platz { display: none; } }

/* Verwaltung: Feedback und Auslosung */
.link-zeile { display: flex; flex-wrap: wrap; gap: 12px; }
.link-zeile input { flex: 1 1 320px; font-size: var(--t-klein); }
.zitate { display: grid; gap: 8px; margin: 0; padding: 0 0 0 20px; }
.zitate li.leise { list-style: none; margin-left: -20px; color: var(--ink-70); }
.verwaltung .karte h2 { margin-top: 8px; }
