/* Stations-Awards – Code-Eingabe, Einladung, Abstimmung, Übersicht (nur index.php). */

/* ---------- Grundlage der Abstimmung ---------- */

.abstimmung {
  --siegel: #8e2331;
  --siegel-hell: #c04a55;
  --siegel-dunkel: #5a1420;
  --gold-glanz: #fff3c8;
  --flaeche-glas: rgba(30, 50, 96, .55);
  --linie-gold: rgba(242, 213, 138, .32);
  --dunkel-text: rgba(143, 163, 199, .6);
}
.abstimmung .blatt { display: flex; flex-direction: column; }
.am-stueck { white-space: nowrap; }

.rein-vor { animation: ab-rein-vor .26s cubic-bezier(.2, .8, .2, 1) backwards; }
.rein-zurueck { animation: ab-rein-zurueck .26s cubic-bezier(.2, .8, .2, 1) backwards; }
/* Höchstens so weit wie der Seitenrand (--rand), damit nichts seitlich übersteht. */
@keyframes ab-rein-vor { from { opacity: 0; transform: translateX(var(--rand)); } }
@keyframes ab-rein-zurueck { from { opacity: 0; transform: translateX(calc(-1 * var(--rand))); } }

/* ---------- Medaille am Band (Einladung, Code-Eingabe) ---------- */

.orden { position: relative; width: 84px; height: 110px; margin: 0 auto; flex: none; }
.orden-band {
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 56px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7d1f2c 0 30%, var(--gold-hell) 30% 36%, #b3313e 36% 64%, var(--gold-hell) 64% 70%, #7d1f2c 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.orden-scheibe {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 78px;
  height: 78px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--gold-dunkel);
  background: radial-gradient(circle at 34% 28%, var(--gold-glanz) 0, var(--gold-hell) 24%, var(--gold) 60%, var(--gold-dunkel) 100%);
  box-shadow:
    inset 0 0 0 3px rgba(156, 116, 38, .6),
    inset 0 0 0 6px rgba(255, 243, 200, .35),
    0 10px 26px rgba(0, 0, 0, .4),
    0 0 46px rgba(242, 213, 138, .2);
}
.orden-stern { width: 40px; height: 40px; fill: currentColor; filter: drop-shadow(0 1px 0 rgba(255, 243, 200, .7)); }
.orden-scheibe::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%);
  transform: translateX(-110%);
}
.orden.klein { transform: scale(.82); margin: -10px auto -8px; }

/* ---------- Einladung ---------- */

.einladung { min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); justify-content: center; }
.einladung .blatt { gap: 18px; }

.einladung-karte {
  position: relative;
  padding: 28px 22px 26px;
  border-radius: 20px;
  border: 1px solid rgba(242, 213, 138, .45);
  background: linear-gradient(180deg, rgba(30, 50, 96, .78), rgba(14, 26, 51, .88));
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
}
.einladung-karte::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(242, 213, 138, .16);
  border-radius: 15px;
  pointer-events: none;
}

.einladung-titel {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 9.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: .005em;
  color: var(--gold-hell);
  text-align: center;
  text-shadow: 0 2px 24px rgba(242, 213, 138, .22);
}
.einladung-anlass {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--nebel);
  text-align: center;
}

.zierlinie { display: flex; align-items: center; gap: 10px; width: 56%; margin: 18px auto; color: var(--gold); }
.zierlinie::before, .zierlinie::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.zierlinie::after { transform: scaleX(-1); }
.zierlinie-stern { width: 12px; height: 12px; fill: currentColor; flex: none; }

.einladung-text {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.4;
  text-wrap: balance;
}
.einladung-muenzen { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.einladung-start { min-height: 60px; font-size: 1.1875rem; }
.einladung-klein { max-width: 34ch; margin: 0 auto; color: var(--nebel); font-size: .9375rem; text-align: center; text-wrap: pretty; }

.auftritt .einladung-karte { animation: ab-auftritt .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.auftritt .einladung-start, .auftritt .einladung-klein { animation: ab-auftritt .5s cubic-bezier(.2, .8, .2, 1) .12s backwards; }
.auftritt .orden-scheibe::after { animation: ab-glanz 1.1s ease-in-out .45s; }
@keyframes ab-auftritt { from { opacity: 0; transform: translateY(14px); } }
@keyframes ab-glanz { from { transform: translateX(-110%); } to { transform: translateX(110%); } }

/* ---------- Plaketten mit Emblem ---------- */

.muenze {
  --gr: 30px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--gr);
  height: var(--gr);
  border-radius: 50%;
  color: var(--akzent, var(--gold-hell));
  background: radial-gradient(circle at 35% 28%, var(--flaeche-hell), var(--nacht-tief) 80%);
  box-shadow: inset 0 0 0 1px var(--linie-gold);
}
.muenze::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, var(--gold-glanz) 0, var(--gold-hell) 30%, var(--gold) 68%, var(--gold-dunkel) 100%);
  box-shadow: inset 0 0 0 1px rgba(156, 116, 38, .6);
  opacity: 0;
  transition: opacity .25s ease;
}
.muenze svg { position: relative; width: 62%; height: 62%; }

/* Fortschritt oben und Ring der Übersicht: Plaketten zeigen den Stand, nicht die Farbe. */
.fortschritt-muenzen .muenze, .siegel-ring .muenze { color: var(--dunkel-text); transition: color .25s ease; }
.fortschritt-muenzen .muenze.erledigt, .siegel-ring .muenze.erledigt { color: var(--nacht-tief); }
.fortschritt-muenzen .muenze.erledigt::before, .siegel-ring .muenze.erledigt::before { opacity: 1; }
.fortschritt-muenzen .muenze.aktuell { color: var(--akzent); box-shadow: inset 0 0 0 1.5px var(--akzent); outline: 2px solid var(--schnee); outline-offset: 2px; }
.fortschritt-muenzen .muenze.aktuell.erledigt { color: var(--nacht-tief); }

/* ---------- Eine Frage ---------- */

.fortschritt-muenzen { display: flex; justify-content: center; gap: 7px; }
.fortschritt-muenzen .muenze { --gr: 28px; }
.frage-zaehler { margin: 10px 0 0; color: var(--nebel); font-size: .9375rem; text-align: center; }

.frage-orden { position: relative; display: grid; place-items: center; width: 92px; height: 112px; margin: 6px auto 0; padding-top: 20px; }
.frage-orden::before {
  content: "";
  position: absolute;
  inset: 0 -30px -12px;
  background: radial-gradient(closest-side, var(--akzent), transparent);
  opacity: .16;
  pointer-events: none;
}
.frage-band {
  position: absolute;
  top: 0;
  left: 50%;
  width: 42px;
  height: 48px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--band-dunkel) 0 30%, var(--gold-hell) 30% 36%, var(--band-hell) 36% 64%, var(--gold-hell) 64% 70%, var(--band-dunkel) 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.frage-scheibe {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: var(--akzent);
  background: radial-gradient(circle at 35% 26%, var(--flaeche-hell), var(--nacht-tief) 78%);
  box-shadow:
    inset 0 0 0 2px rgba(242, 213, 138, .35),
    inset 0 0 0 7px rgba(9, 18, 37, .55),
    inset 0 0 0 8px rgba(242, 213, 138, .14),
    0 12px 30px rgba(0, 0, 0, .4);
  transition: box-shadow .3s ease;
}
.frage-scheibe svg { width: 56px; height: 56px; }
.frage-orden.vergeben .frage-scheibe {
  box-shadow:
    inset 0 0 0 3px var(--gold-hell),
    inset 0 0 0 7px rgba(9, 18, 37, .55),
    inset 0 0 0 8px rgba(242, 213, 138, .3),
    0 12px 30px rgba(0, 0, 0, .4),
    0 0 34px rgba(242, 213, 138, .35);
}

.frage-titel {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 8.2vw, 2.125rem);
  line-height: 1.1;
  color: var(--gold-hell);
  text-align: center;
  text-wrap: balance;
}
.frage-frage {
  max-width: 32ch;
  margin: 10px auto 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(244, 246, 251, .92);
  text-align: center;
  text-wrap: pretty;
}

/* ---------- Namen ---------- */

.namen-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.name-knopf {
  appearance: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 246, 251, .18);
  border-radius: 14px;
  background: var(--flaeche-glas);
  color: var(--schnee);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .1s ease;
}
.name-knopf:active { transform: scale(.97); background-color: rgba(30, 50, 96, .9); }
.name-text { min-width: 0; overflow-wrap: anywhere; }
.name-ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(244, 246, 251, .5);
  border-radius: 50%;
  transition: background-color .18s ease, border-color .18s ease;
}

.name-knopf.gewaehlt {
  border-color: var(--gold-hell);
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  color: var(--nacht-tief);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 20px rgba(212, 168, 75, .32);
}
.name-knopf.gewaehlt .name-ring { border-color: var(--nacht-tief); background: var(--nacht-tief); }
.name-knopf.gewaehlt .name-ring::after {
  content: "";
  width: 10px;
  height: 5px;
  margin-top: -2px;
  border-left: 2.5px solid var(--gold-hell);
  border-bottom: 2.5px solid var(--gold-hell);
  transform: rotate(-45deg);
}

.name-knopf.gewaehlt.frisch { animation: ab-pop .34s cubic-bezier(.3, 1.5, .5, 1); }
.name-knopf.gewaehlt.frisch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: ab-glanz .55s ease-out .04s forwards;
  pointer-events: none;
}
@keyframes ab-pop { 0% { transform: scale(.94); } 55% { transform: scale(1.045); } 100% { transform: none; } }

/* ---------- Leiste unten ---------- */

.leiste-unten {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 40px calc(-1 * var(--rand)) 0;
  padding: 4px var(--rand) calc(14px + env(safe-area-inset-bottom));
  background: var(--nacht-tief);
}
/* Weicher Übergang über der Leiste, damit die Namen nicht hart abgeschnitten wirken. */
.leiste-unten::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 28px;
  background: linear-gradient(180deg, rgba(9, 18, 37, 0), var(--nacht-tief));
  pointer-events: none;
}
.auswahl { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.auswahl-ansage { min-width: 0; }
.auswahl-zeile { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.auswahl-zeile strong { color: var(--gold-hell); font-weight: 700; }
.auswahl-zeile.leer { color: var(--nebel); }
.auswahl-zeile.frisch strong { display: inline-block; animation: ab-aufleuchten-text .3s ease-out; }
@keyframes ab-aufleuchten-text { from { opacity: 0; transform: translateY(6px); } }

.aufheben {
  appearance: none;
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--nebel);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.auswahl-fehler {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(242, 167, 167, .4);
  border-radius: 12px;
  background: rgba(242, 167, 167, .12);
  color: var(--fehler);
  font-weight: 600;
  line-height: 1.4;
}
.auswahl-fehler[hidden] { display: none; }

.schritte-knoepfe { display: flex; gap: 12px; }
.schritte-knoepfe .knopf { min-height: 58px; font-size: 1.125rem; }
.schritte-knoepfe .zurueck { flex: none; padding: 0 22px; }
.schritte-knoepfe .weiter { flex: 1; transition: background-color .2s ease, box-shadow .2s ease; }
.knopf.weiter.erwacht { animation: ab-erwachen .8s ease-out; }
@keyframes ab-erwachen {
  0% { box-shadow: 0 0 0 0 rgba(242, 213, 138, .65), 0 6px 18px rgba(212, 168, 75, .25); }
  100% { box-shadow: 0 0 0 16px rgba(242, 213, 138, 0), 0 6px 18px rgba(212, 168, 75, .25); }
}

/* ---------- Übersicht ---------- */

.siegel-ring { --gr: 36px; position: relative; width: 196px; height: 196px; margin: 0 auto; flex: none; }
.siegel-ring .muenze { --gr: 36px; position: absolute; margin: calc(var(--gr) / -2) 0 0 calc(var(--gr) / -2); }

.siegel, .ring-mitte {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  display: grid;
  place-items: center;
}
.siegel-rand { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--siegel); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
.siegel-kern {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--siegel-hell), var(--siegel) 55%, var(--siegel-dunkel));
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .18), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 0 0 3px rgba(90, 20, 32, .55);
}
.siegel-stern { width: 38px; height: 38px; fill: var(--gold-hell); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.siegel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--gold-hell);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.ring-mitte { border: 1.5px dashed rgba(242, 213, 138, .4); border-radius: 50%; align-content: center; gap: 0; }
.ring-zahl { font-family: var(--serif); font-weight: 600; font-size: 2.25rem; line-height: 1; color: var(--gold-hell); }
.ring-von { color: var(--nebel); font-size: .9375rem; }

/* Abschluss-Moment: Plaketten leuchten nacheinander auf, dann wird gesiegelt. */
.siegel-ring.feiern .muenze.erledigt { animation: ab-muenze-an .42s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i) * 55ms) backwards; }
.siegel-ring.feiern .muenze.erledigt::before { animation: ab-gold-an .3s ease-out calc(var(--i) * 55ms) backwards; }
.siegel-ring.feiern .siegel { animation: ab-stempeln .36s cubic-bezier(.25, 1.3, .5, 1) .5s backwards; }
.siegel-ring.feiern .siegel::after { animation: ab-welle .7s ease-out .74s; }
@keyframes ab-muenze-an { 0% { color: var(--dunkel-text); transform: scale(.8); } 55% { transform: scale(1.18); } 100% { transform: none; } }
@keyframes ab-gold-an { from { opacity: 0; } }
@keyframes ab-stempeln {
  0% { opacity: 0; transform: scale(1.9) rotate(-16deg); }
  65% { opacity: 1; transform: scale(.94) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes ab-welle { 0% { opacity: .85; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.75); } }

.uebersicht-titel {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 10vw, 2.75rem);
  line-height: 1.05;
  color: var(--gold-hell);
  text-align: center;
}
.uebersicht-einleitung { max-width: 28ch; margin: 8px auto 0; font-size: 1.1875rem; line-height: 1.45; text-align: center; text-wrap: balance; }
.uebersicht-aendern { max-width: 34ch; margin: 10px auto 0; color: var(--nebel); font-size: 1rem; text-align: center; text-wrap: pretty; }
.uebersicht-fehler {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(242, 167, 167, .4);
  border-radius: 12px;
  background: rgba(242, 167, 167, .12);
  color: var(--fehler);
  font-weight: 600;
}

.wahl-liste { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.wahl-zeile {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 78px;
  padding: 12px 16px 12px 14px;
  border: 1px solid rgba(242, 213, 138, .22);
  border-radius: 16px;
  background: var(--flaeche-glas);
  color: var(--schnee);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .15s ease, transform .1s ease;
}
.wahl-zeile:active { transform: scale(.985); background-color: rgba(30, 50, 96, .9); }
.wahl-zeile .muenze { --gr: 46px; }
.zeile-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.zeile-titel { font-family: var(--serif); font-size: 1rem; line-height: 1.25; color: var(--gold-hell); }
.zeile-name { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.zeile-aktion { flex: none; color: var(--nebel); font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px; }

.wahl-zeile.offen { border: 1.5px dashed rgba(242, 213, 138, .55); background: rgba(9, 18, 37, .45); }
.wahl-zeile.offen .zeile-name { color: var(--nebel); font-weight: 500; font-style: italic; }
.wahl-zeile.offen .zeile-aktion {
  padding: 7px 14px;
  border-radius: var(--rund-voll);
  box-shadow: inset 0 0 0 1.5px var(--gold-hell);
  color: var(--gold-hell);
  font-weight: 700;
  text-decoration: none;
}
.uebersicht-weiter { align-self: stretch; min-height: 60px; margin-top: 18px; font-size: 1.1875rem; }

.uebersicht-bild .zierlinie { margin: 26px auto 14px; }
.uebersicht-notiz { max-width: 34ch; margin: 0 auto 8px; color: var(--nebel); font-size: 1rem; text-align: center; text-wrap: pretty; }

/* ---------- Code-Eingabe ---------- */

.zugang { padding-top: 2vh; gap: 0; }
.zugang-kopf { text-align: center; }
.zugang-text { max-width: 30ch; margin: 22px auto 0; font-size: 1.125rem; text-align: center; text-wrap: balance; }

.code-formular { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.code-label { font-size: 1.0625rem; font-weight: 600; }
.code-feld {
  width: 100%;
  min-height: 70px;
  padding: 0 16px;
  border: 2px solid rgba(242, 213, 138, .45);
  border-radius: 16px;
  background: rgba(9, 18, 37, .72);
  color: var(--gold-hell);
  caret-color: var(--gold-hell);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.code-feld::selection { background: rgba(242, 213, 138, .35); color: var(--schnee); }
.code-feld:focus { border-color: var(--gold-hell); box-shadow: 0 0 0 4px rgba(242, 213, 138, .2); outline: none; }
.code-feld[aria-invalid="true"] { border-color: var(--fehler); }
.code-feld[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(242, 167, 167, .2); }
.code-hilfe { margin: 0; color: var(--nebel); font-size: .9375rem; }
.code-meldung {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 167, 167, .4);
  border-radius: 12px;
  background: rgba(242, 167, 167, .12);
  color: var(--fehler);
  font-weight: 600;
  line-height: 1.4;
}
.code-meldung[hidden] { display: none; }
.code-formular .knopf { min-height: 60px; margin-top: 6px; font-size: 1.1875rem; }

/* ---------- Karte schon woanders offen / anderes Handy ---------- */

.karten-hinweis {
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  justify-content: center;
}
.karten-hinweis .blatt { text-align: center; }

/* Abbild der gedruckten Karte: weißes Papier, goldener Rand, wie in der Hand. */
.karten-bild {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  width: min(100%, 268px);
  aspect-ratio: 85 / 55;
  margin: 6px auto 30px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--nacht);
  text-align: left;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  transform: rotate(-2.5deg);
  animation: ab-karte .45s cubic-bezier(.2, .8, .2, 1) backwards;
}
.karten-bild::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid #b8892f;
  border-radius: 7px;
  pointer-events: none;
}
.karten-qr svg { display: block; width: 100%; height: auto; fill: var(--nacht); }
.karten-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.karten-titel { font-family: var(--serif); font-weight: 600; font-size: .9375rem; line-height: 1.1; white-space: nowrap; }
.karten-stern { width: .8em; height: .8em; fill: #b8892f; vertical-align: -.04em; }
.karten-code { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; letter-spacing: .1em; white-space: nowrap; }
@keyframes ab-karte { from { opacity: 0; transform: translateY(14px) rotate(-2.5deg); } }

.hinweis-titel {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.625rem, 7.2vw, 2rem);
  line-height: 1.15;
  color: var(--gold-hell);
  text-wrap: balance;
}
.hinweis-text { max-width: 30ch; margin: 14px auto 0; font-size: 1.1875rem; line-height: 1.45; text-wrap: pretty; }
.hinweis-frei { max-width: 32ch; margin: 12px auto 0; color: var(--nebel); font-size: 1rem; }
.hinweis-kasten {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(143, 163, 199, .3);
  border-radius: 14px;
  background: var(--flaeche-glas);
  color: rgba(244, 246, 251, .9);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}
.hinweis-status { margin: 16px 0 0; color: var(--gold-hell); font-weight: 600; }
.hinweis-status:empty { display: none; }
.hinweis-knoepfe { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.hinweis-knoepfe .knopf { min-height: 60px; font-size: 1.1875rem; }

/* ---------- Niedrige Bildschirme (z. B. Safari mit Leisten): mehr Platz für Namen ---------- */

@media (max-height: 720px) {
  .einladung-karte { padding: 20px 18px; }
  .einladung .orden { transform: scale(.85); margin: -8px auto -10px; }
  .einladung-muenzen { margin-top: 16px; }
  .zierlinie { margin: 14px auto; }

  .frage-orden { width: 78px; height: 94px; padding-top: 16px; margin-top: 4px; }
  .frage-scheibe { width: 78px; height: 78px; }
  .frage-scheibe svg { width: 48px; height: 48px; }
  .frage-band { width: 34px; height: 40px; }
  .frage-titel { margin-top: 10px; }
  .namen-raster { margin-top: 20px; }

  .karten-bild { width: min(100%, 236px); margin-bottom: 22px; padding: 14px 16px; grid-template-columns: 64px 1fr; gap: 12px; }
  .karten-titel { font-size: .875rem; }
  .hinweis-kasten { margin-top: 16px; }
  .hinweis-knoepfe { margin-top: 20px; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .abstimmung, .abstimmung *, .abstimmung *::before, .abstimmung *::after {
    animation: none !important;
    transition: none !important;
  }
}
