/* ==================================================================
   Party-Foto-Wall - gemeinsames Stylesheet
   Upload-Seite (index.html) und Diashow (show.html)
   ================================================================== */

/* --- Schriften: liegen lokal in /public/fonts, kein Google -------- */

@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/monoton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/monoton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spacemono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spacemono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/spacemono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/spacemono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F;
}

/* --- Farben und Grundwerte ---------------------------------------- */

:root {
  --hintergrund: #120024;
  --magenta:     #FF2E88;
  --cyan:        #22E8F0;
  --gelb:        #FFD84D;
  --violett:     #7A2FF2;
  --mint:        #3DF5A5;
  --text:        #FFF3E9;

  --flaeche:      rgba(255, 243, 233, 0.05);
  --flaeche-rand: rgba(255, 243, 233, 0.16);

  --titel:  'Monoton', 'Outfit', system-ui, sans-serif;
  --bedien: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --technik:'Space Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --rund: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tastaturfokus muss immer gut sichtbar sein. */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.nur-fuer-screenreader {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.versteckt { display: none !important; }

/* ==================================================================
   Upload-Seite
   ================================================================== */

/* --- Memphis-Deko im Hintergrund ---------------------------------- */

#deko {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.form {
  position: absolute;
  opacity: 0.22;
}
.form--punkt  { border-radius: 50%; }
.form--ring   { border-radius: 50%; background: none !important; border-style: solid; }
.form--balken { border-radius: 3px; }
.form--dreieck {
  width: 0 !important; height: 0 !important;
  background: none !important;
  border-left: var(--kante) solid transparent;
  border-right: var(--kante) solid transparent;
  border-bottom: calc(var(--kante) * 1.7) solid var(--farbe);
}

/* --- Seitengeruest ------------------------------------------------ */

.seite {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* --- Kopf --------------------------------------------------------- */

.kicker {
  font-family: var(--technik);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
  margin: 0 0 14px;
}

.titel {
  font-family: var(--titel);
  font-weight: 400;
  font-size: clamp(4.5rem, 26vw, 8.5rem);
  /* Monoton ragt oben und unten aus der Zeile heraus, siehe .marke */
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.34em;
  text-align: center;
  /* Monoton laesst ueber Grossbuchstaben und Ziffern 0.378em und darunter
     0.574em reinen Leerraum stehen (aus der Schriftdatei gemessen). Die
     negativen Raender holen davon einen Teil zurueck, ohne die Buchstaben
     selbst anzutasten - Zeilenhoehe und Innenabstand bleiben unveraendert. */
  margin: -0.34em 0 -0.46em;
  color: var(--magenta);
  text-shadow:
    0 0 6px rgba(255, 46, 136, 0.9),
    0 0 22px rgba(255, 46, 136, 0.65),
    0 0 54px rgba(255, 46, 136, 0.4),
    0 0 96px rgba(122, 47, 242, 0.35);
}

.untertitel {
  font-family: var(--titel);
  font-weight: 400;
  font-size: clamp(1.8rem, 9vw, 3rem);
  /* Monoton ragt oben und unten aus der Zeile heraus, siehe .marke */
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.34em;
  text-align: center;
  /* wie bei .titel: nur der Leerraum wird zurueckgeholt */
  margin: -0.28em 0 -0.55em;
  color: var(--cyan);
  text-shadow:
    0 0 6px rgba(34, 232, 240, 0.85),
    0 0 24px rgba(34, 232, 240, 0.5);
}

/* --- Namenszeile -------------------------------------------------- */

.namen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.namen__strich {
  display: block;
  width: 1px;
  height: 20px;
  background: var(--gelb);
  opacity: 0.75;
}

.namen__alter {
  color: var(--gelb);
  font-weight: 800;
}

.trenner {
  height: 2px;
  margin: 22px 0 26px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--magenta) 0%, var(--violett) 33%, var(--cyan) 66%, var(--gelb) 100%);
  opacity: 0.9;
}

/* --- Knoepfe ------------------------------------------------------ */

.knoepfe {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.knopf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 18px 20px;
  border-radius: var(--rund);
  border: 2px solid transparent;
  background: none;
  color: var(--text);
  font-family: var(--bedien);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.knopf input[type='file'] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.knopf:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.knopf:active { transform: scale(0.985); }

.knopf--haupt {
  min-height: 104px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--violett) 100%);
  box-shadow:
    0 10px 30px rgba(255, 46, 136, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.knopf--cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}
.knopf--cyan:hover { background: rgba(34, 232, 240, 0.1); }

.knopf--gelb {
  border-color: var(--gelb);
  color: var(--gelb);
}
.knopf--gelb:hover { background: rgba(255, 216, 77, 0.1); }

.knopf__zusatz {
  font-family: var(--technik);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
  opacity: 0.8;
}

/* Der vierte Weg: gar kein Foto. Mint, damit er sich von den drei
   Aufnahme-Knoepfen absetzt - er tut etwas anderes als sie. */
.knopf--mint {
  border-color: var(--mint);
  color: var(--mint);
}
.knopf--mint:hover { background: rgba(61, 245, 165, 0.1); }

/* Aufgeklappt: der Knopf gehoert sichtbar zum Kasten darunter. */
.knopf--offen {
  background: rgba(61, 245, 165, 0.14);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.knopf--still {
  border-color: var(--flaeche-rand);
  background: none;
  color: rgba(255, 243, 233, 0.7);
  font-weight: 600;
}

/* --- Gruss ohne Foto ---------------------------------------------- */

.grusskasten {
  margin-top: -2px;              /* schliesst buendig an den Knopf an */
  padding: 16px 15px 18px;
  border: 2px solid var(--mint);
  border-top-width: 1px;
  border-radius: 0 0 var(--rund) var(--rund);
  background: rgba(61, 245, 165, 0.07);
}

.grusskasten__label {
  display: block;
  font-family: var(--technik);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}

/* Deutlich groesser als das kleine Grussfeld weiter unten: hier ist der
   Text der ganze Beitrag, nicht nur eine Beigabe zum Foto. */
.grusskasten__feld {
  width: 100%;
  min-height: 108px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--flaeche-rand);
  background: rgba(18, 0, 36, 0.55);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 1.08rem;
  line-height: 1.45;
  resize: vertical;
}

.grusskasten__feld:focus {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-color: transparent;
}

.grusskasten__zaehler {
  margin: 7px 0 14px;
  font-family: var(--technik);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: right;
  color: rgba(255, 243, 233, 0.55);
}

.grusskasten__zaehler--voll { color: var(--gelb); }

.grusskasten__reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.grusskasten__reihe .knopf--klein { flex: 1 1 auto; }

.grusskasten__reihe .knopf--mint {
  background: rgba(61, 245, 165, 0.16);
}

.grusskasten__hinweis {
  margin: 12px 0 0;
  font-family: var(--technik);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(255, 243, 233, 0.5);
}

/* --- Begruessung: die Namensfrage beim ersten Aufruf --------------- *
 * Sie steht an der Stelle der Aufnahme-Knoepfe, nicht darueber. Der Kopf
 * mit Titel und Namen bleibt sichtbar, damit der Gast sieht, wo er ist.
 * ------------------------------------------------------------------ */

.begruessung {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.begruessung__frage {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cyan);
}

/* Bewusst gross: das ist auf dieser Seite gerade das Einzige, was zaehlt. */
.begruessung__feld {
  width: 100%;
  padding: 18px 18px;
  border-radius: var(--rund);
  border: 2px solid var(--flaeche-rand);
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 1.3rem;
  font-weight: 600;
}

.begruessung__feld::placeholder {
  color: rgba(255, 243, 233, 0.35);
  font-weight: 400;
}

.begruessung__feld:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 232, 240, 0.22);
}

.begruessung__feld--fehler {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.22);
}

.begruessung__fehler {
  margin: -6px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--magenta);
}

.begruessung__hinweis {
  margin: 0;
  font-family: var(--technik);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(255, 243, 233, 0.5);
}

/* --- "Du schreibst als ..." --------------------------------------- */

.wer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 243, 233, 0.65);
}

.wer__text { min-width: 0; overflow-wrap: anywhere; }

.wer__text b {
  color: var(--text);
  font-weight: 700;
}

.wer__aendern {
  flex: none;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--flaeche-rand);
  background: none;
  color: var(--cyan);
  font-family: var(--bedien);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wer__aendern:hover { border-color: var(--cyan); }

/* --- Eingabefelder ------------------------------------------------ */

.felder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.feld { display: flex; flex-direction: column; gap: 6px; }

.feld label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 243, 233, 0.72);
}

.feld input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--rund);
  border: 2px solid var(--flaeche-rand);
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 1.05rem;
}

.feld input::placeholder { color: rgba(255, 243, 233, 0.35); }

.feld input:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 232, 240, 0.22);
}

/* --- Fortschritt und Meldungen ------------------------------------ */

.fortschritt {
  margin-top: 22px;
}

.fortschritt__text {
  font-family: var(--technik);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.fortschritt__schiene {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 243, 233, 0.1);
  overflow: hidden;
}

.fortschritt__balken {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transition: width 0.25s ease;
}

.meldung {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--rund);
  border: 2px solid var(--gelb);
  background: rgba(255, 216, 77, 0.1);
  color: var(--gelb);
  font-weight: 600;
}

.meldung--fehler {
  border-color: var(--magenta);
  background: rgba(255, 46, 136, 0.12);
  color: var(--magenta);
}

/* --- Bestaetigung ------------------------------------------------- */

.fertig {
  margin-top: 24px;
  padding: 26px 22px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid var(--cyan);
  background: rgba(34, 232, 240, 0.08);
  box-shadow: 0 0 40px rgba(34, 232, 240, 0.18);
}

.fertig__text {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--cyan);
}

/* Zeigt an, ob der Server den Beitrag schon auf die Leinwand geschickt hat. */
.fertig__stand {
  font-family: var(--technik);
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  color: rgba(255, 243, 233, 0.65);
}

.fertig__stand--live {
  color: var(--gelb);
  font-weight: 700;
}

.knopf--klein {
  display: inline-flex;
  padding: 12px 26px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--violett) 100%);
}

/* --- Feierabend ---------------------------------------------------- *
 * Steht anstelle der Aufnahme-Knoepfe, wenn der Admin zugemacht hat. Ton:
 * freundlich und endgueltig, keine Fehlerfarbe - es ist ja nichts kaputt,
 * die Party ist nur vorbei.
 * ------------------------------------------------------------------- */

.feierabend {
  margin: 8px 0 4px;
  padding: 26px 20px 28px;
  border: 2px solid var(--gelb);
  border-radius: var(--rund);
  background: rgba(255, 216, 77, 0.09);
  text-align: center;
}

.feierabend__gross {
  margin: 0 0 10px;
  font-family: var(--titel);
  font-size: clamp(1.6rem, 8vw, 2.3rem);
  line-height: 1.15;
  color: var(--gelb);
}

.feierabend__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 243, 233, 0.8);
}

/* --- Musikwunsch --------------------------------------------------- *
 * Eigener Kasten in Cyan, damit er sich vom Grusskasten in Mint absetzt.
 * Er steht immer offen, es gibt nichts aufzuklappen: wer Musik hoeren will,
 * soll nicht erst suchen muessen.
 * ------------------------------------------------------------------- */

.wunsch {
  margin-top: 34px;
  padding: 18px 15px 20px;
  border: 2px solid rgba(34, 232, 240, 0.5);
  border-radius: var(--rund);
  background: rgba(34, 232, 240, 0.07);
}

.wunsch__titel {
  margin: 0 0 4px;
  font-family: var(--technik);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.wunsch__text {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: rgba(255, 243, 233, 0.7);
}

.wunsch .feld { margin-bottom: 12px; }

.feld__frei {
  font-family: var(--technik);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 243, 233, 0.4);
  margin-left: 6px;
}

.wunsch .knopf--cyan {
  width: 100%;
  margin-top: 4px;
  background: rgba(34, 232, 240, 0.16);
}

.wunsch__danke,
.wunsch__fehler {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.wunsch__danke {
  border: 1px solid var(--mint);
  background: rgba(61, 245, 165, 0.12);
  color: var(--mint);
}

.wunsch__fehler {
  border: 1px solid var(--gelb);
  background: rgba(255, 216, 77, 0.12);
  color: var(--gelb);
}

.wunsch__listentitel {
  margin: 22px 0 10px;
  font-family: var(--technik);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 243, 233, 0.5);
}

.wunsch__leer {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 243, 233, 0.45);
}

.wunschliste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.wunschliste__zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--flaeche-rand);
  background: rgba(18, 0, 36, 0.4);
}

/* Gespielt ist die gute Nachricht und darf leuchten. Abgelehnt tritt
   zurueck, ohne Begruendung und ohne Warnfarbe - es soll niemandem den
   Abend verderben. */
.wunschliste__zeile--gespielt {
  border-color: var(--mint);
  background: rgba(61, 245, 165, 0.12);
}

.wunschliste__zeile--gespielt .wunschliste__text b { color: var(--mint); }

.wunschliste__zeile--abgelehnt { opacity: 0.45; }

.wunschliste__text {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.wunschliste__text b { font-weight: 700; }

.wunschliste__kuenstler { color: rgba(255, 243, 233, 0.65); }

.wunschliste__von {
  display: block;
  font-family: var(--technik);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(255, 243, 233, 0.4);
  margin-top: 2px;
}

.wunschliste__marke {
  flex: 0 0 auto;
  font-family: var(--technik);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wunschliste__marke--offen     { color: var(--cyan); }
.wunschliste__marke--gespielt  { color: var(--mint); }
.wunschliste__marke--abgelehnt { color: rgba(255, 243, 233, 0.4); }

/* --- Eigene Beitraege --------------------------------------------- */

.meine { margin-top: 34px; }

.meine__titel {
  font-family: var(--technik);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 243, 233, 0.6);
  margin: 0 0 12px;
}

.raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kachel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 243, 233, 0.07);
  border: 1px solid var(--flaeche-rand);
}

.kachel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kachel--laeuft,
.kachel--fehler {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--technik);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 6px;
  color: var(--cyan);
}

.kachel--fehler {
  color: var(--magenta);
  border-color: var(--magenta);
}

.kachel__weg {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 0, 36, 0.82);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.kachel__weg:hover { background: var(--magenta); }

.kachel__dauer {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(18, 0, 36, 0.82);
  color: var(--gelb);
  font-family: var(--technik);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

/* Gruesse haben kein Vorschaubild - die Kachel zeigt den Text. */
.kachel--gruss {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border-color: rgba(61, 245, 165, 0.5);
  background: linear-gradient(150deg,
    rgba(122, 47, 242, 0.45) 0%, rgba(255, 46, 136, 0.28) 100%);
}

.kachel--gruss.kachel--still { opacity: 0.5; }

.kachel__karte {
  margin: 0;
  font-family: var(--bedien);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* --- Fusszeile ---------------------------------------------------- */

.fuss {
  margin-top: 40px;
  font-family: var(--technik);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255, 243, 233, 0.5);
  text-align: center;
}

/* --- Sperrbildschirm bei falschem Code ---------------------------- */

.sperre {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.sperre p {
  max-width: 22ch;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gelb);
  margin: 0;
}

/* ==================================================================
   Diashow (show.html)
   ================================================================== */

body.diashow {
  background: #000;
  height: 100svh;
  overflow: hidden;
  cursor: none;
}

.buehne {
  position: fixed;
  inset: 0;
  background: #000;
}

/* Neon-Gitter im Hintergrund, dezent */
.gitter {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.3;
  perspective: 260px;
  pointer-events: none;
}

.gitter::after {
  content: '';
  position: absolute;
  left: -60%;
  right: -60%;
  bottom: -46%;
  height: 150%;
  transform: rotateX(74deg);
  transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 46, 136, 0.5) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg,
      rgba(34, 232, 240, 0.45) 0 1px, transparent 1px 84px);
  animation: gitterlauf 6s linear infinite;
}

@keyframes gitterlauf {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 0 84px; }
}

/* Eine Ebene der Buehne: Foto, Video, Grusskarte oder Aufgabe. Alle vier
   liegen im selben Stapel, blenden mit derselben Dauer und derselben Kurve
   und werden von show.js nacheinander ans Ende der Buehne gehaengt - die
   neueste liegt damit oben, ganz ohne z-index. Es laeuft dadurch immer
   genau ein Uebergang, nie zwei uebereinander.
   Die 0.9s muessen zu UEBERBLENDUNG in show.js passen. */
.medium {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: #000;
  pointer-events: none;
}

.medium.aktiv { opacity: 1; }

/* --- Camcorder-Sucher --------------------------------------------- */

.sucher {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  font-family: var(--technik);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.ecke {
  position: absolute;
  width: clamp(38px, 5vw, 74px);
  height: clamp(38px, 5vw, 74px);
  border: 4px solid rgba(255, 255, 255, 0.92);
}
.ecke--ol { top: 3vh; left: 3vw;  border-right: 0; border-bottom: 0; }
.ecke--or { top: 3vh; right: 3vw; border-left: 0;  border-bottom: 0; }
.ecke--ul { bottom: 3vh; left: 3vw;  border-right: 0; border-top: 0; }
.ecke--ur { bottom: 3vh; right: 3vw; border-left: 0;  border-top: 0; }

/* Block oben links: REC-Punkt, darunter der Party-Titel.
   Der linke Rand liegt bei 3vw + 26px, der Eckwinkel ist nur 4px breit und
   sitzt bei 3vw - dazwischen bleiben mindestens 22px Luft. */
.ecke-ol-block {
  position: absolute;
  top: calc(3vh + 14px);
  left: calc(3vw + 26px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 42vw;          /* haelt Abstand zum Block in der rechten Ecke */
}

.rec {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.28em;
}

.rec__punkt {
  width: clamp(12px, 1.2vw, 18px);
  height: clamp(12px, 1.2vw, 18px);
  border-radius: 50%;
  background: #FF2020;
  box-shadow: 0 0 16px rgba(255, 32, 32, 0.9);
  animation: blinken 1.4s steps(1, end) infinite;
}

/* Pause aus dem Admin-Bereich: der Punkt hoert auf zu blinken und wird gelb,
   daneben steht PAUSE statt REC. Sonst aendert sich an der Leinwand nichts. */
.rec--pause .rec__punkt {
  background: var(--gelb);
  box-shadow: 0 0 16px rgba(255, 216, 77, 0.7);
  animation: none;
}

@keyframes blinken {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.08; }
}

.zeitcode {
  position: absolute;
  right: calc(3vw + 26px);
  bottom: calc(3vh + 14px);
  text-align: right;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.zeitcode__datum {
  font-size: 0.78em;
  opacity: 0.78;
}

.gast {
  position: absolute;
  left: calc(3vw + 26px);
  bottom: calc(3vh + 14px);
  max-width: 56vw;
}

.gast__name {
  font-family: var(--bedien);
  font-size: clamp(1.6rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(34, 232, 240, 0.55), 0 2px 12px rgba(0, 0, 0, 0.9);
  margin: 0;
}

.gast__gruss {
  font-family: var(--bedien);
  font-size: clamp(1rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  margin: 4px 0 0;
}

/* Party-Titel unter dem REC-Punkt.
   margin-left rueckt ihn buendig unter das Wort REC: Breite des roten Punkts
   plus die 12px Abstand aus .rec.
   Monoton ragt oben und unten ueber die Zeile hinaus - darum line-height 1.45
   und padding-bottom, sonst werden die Buchstaben unten abgeschnitten.
   Titel und Untertitel sind zwei Kaesten mit gap dazwischen, siehe show.js. */
.marke {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42em;
  margin-top: 20px;
  margin-left: calc(clamp(12px, 1.2vw, 18px) + 12px);
  max-width: 100%;
  font-family: var(--titel);
  font-size: clamp(0.85rem, 1.4vw, 1.35rem);
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.34em;
  overflow: visible;
  letter-spacing: 0.06em;
  color: var(--magenta);
  opacity: 0.85;
  text-shadow: 0 0 14px rgba(255, 46, 136, 0.6);
}

.ecke-or-block {
  position: absolute;
  top: calc(3vh + 14px);
  right: calc(3vw + 26px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.zaehler {
  font-size: clamp(0.85rem, 1.4vw, 1.25rem);
  letter-spacing: 0.16em;
  color: var(--gelb);
}

/* "Gerade rein" - bewusst Outfit und nicht Monoton, damit die
   Zeilenhoehen-Frage hier gar nicht erst aufkommt. */
.badge {
  font-family: var(--bedien);
  font-size: clamp(0.78rem, 1.25vw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px 8px;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--hintergrund);
  box-shadow: 0 0 24px rgba(255, 46, 136, 0.6);
}

/* Winziger Verbindungspunkt in der unteren rechten Sucherecke. Er sitzt
   zwischen dem Eckwinkel (4px breit bei 3vw) und dem Zeitcode (bei 3vw+26px),
   beruehrt also weder das eine noch das andere. */
.punkt {
  position: absolute;
  right: calc(3vw + 8px);
  bottom: calc(3vh + 8px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.55;
  background: var(--gelb);
  transition: background-color 0.4s ease;
}

.punkt--an    { background: #35E07A; }
.punkt--sucht { background: var(--gelb); }

/* --- QR-Platzhalter ----------------------------------------------- */

.qr {
  --qr-groesse: 118px;
  width: var(--qr-groesse);
  height: var(--qr-groesse);
  position: relative;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Gezeichneter Platzhalter, solange kein qr.png hinterlegt ist */
.qr__zeichnung {
  position: absolute;
  inset: 9%;
  background:
    linear-gradient(#111 0 0) 0 0 / 30% 30% no-repeat,
    linear-gradient(#111 0 0) 100% 0 / 30% 30% no-repeat,
    linear-gradient(#111 0 0) 0 100% / 30% 30% no-repeat,
    repeating-linear-gradient(90deg, #111 0 6%, transparent 6% 12%) 50% 50% / 40% 40% no-repeat;
}

.qr__mitte {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--technik);
  font-weight: 700;
  font-size: clamp(0.62rem, calc(var(--qr-groesse) * 0.09), 1.1rem);
  letter-spacing: 0.22em;
  color: #111;
}

/* --- Startbildschirm, wenn noch nichts da ist --------------------- */

/* Blendet wie eine Ebene der Buehne, mit derselben Dauer. Bewusst kein
   'display: none' im ausgeblendeten Zustand: darauf gibt es keinen
   Uebergang, der Startbildschirm wuerde ueber dem letzten Foto aufpoppen. */
.leer {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 5vh 5vw;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.leer--an { opacity: 1; }

.leer__aufruf {
  font-family: var(--titel);
  font-size: clamp(2rem, 6.5vw, 5.5rem);
  /* Monoton ragt oben und unten aus der Zeile heraus, siehe .marke */
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.34em;
  margin: 0;
  color: var(--magenta);
  text-shadow:
    0 0 8px rgba(255, 46, 136, 0.9),
    0 0 34px rgba(255, 46, 136, 0.55),
    0 0 80px rgba(122, 47, 242, 0.4);
}

.leer .qr { --qr-groesse: clamp(200px, 26vh, 340px); }

.leer__adresse {
  font-family: var(--technik);
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin: 0;
  word-break: break-all;
}

/* --- Gruss ohne Foto -----------------------------------------------
 *
 * Liegt wie die Aufgabe ueber der Buehne und unter dem Sucher. Der Grund
 * ist ein sanfter Verlauf aus Violett und Magenta - anders als ein Foto
 * und anders als eine Aufgabe, die kuehl und cyan daherkommt.
 *
 * Kein QR-Code, kein Gitter: die Karte soll ruhig wirken, man liest sie.
 * Die Schriftgroesse setzt show.js nach der Textlaenge, siehe dort.
 * ------------------------------------------------------------------ */

/* Deckende Grundfarbe zuerst, die Verlaeufe liegen nur darueber: waehrend
   der Ueberblendung darf das vorige Foto nirgends durchscheinen. Die
   doppelte Klasse schlaegt das background aus .medium sicher, unabhaengig
   von der Reihenfolge im Stylesheet. */
.medium.grusskarte {
  background-color: #120024;
  background-image:
    radial-gradient(105% 78% at 26% 22%, rgba(122, 47, 242, 0.62) 0%, rgba(18, 0, 36, 0) 64%),
    radial-gradient(95% 72% at 78% 82%, rgba(255, 46, 136, 0.44) 0%, rgba(18, 0, 36, 0) 62%),
    linear-gradient(155deg, #1B0433 0%, #120024 52%, #22062E 100%);
}

.grusskarte__inhalt {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vh, 46px);
  padding: calc(3vh + 168px) calc(3vw + 40px) calc(3vh + 76px);
  text-align: center;
}

/* Der Kasten, in den der Text passen muss. */
.grusskarte__buehne {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Outfit, nicht Monoton: ein Gruss ist ein Satz, kein Schriftzug. */
.grusskarte__text {
  margin: 0;
  max-width: 18ch;
  font-family: var(--bedien);
  font-size: 5vw;          /* Startwert, show.js setzt ihn je nach Textlaenge */
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--text);
  text-shadow:
    0 0 30px rgba(255, 46, 136, 0.4),
    0 0 80px rgba(122, 47, 242, 0.45),
    0 3px 16px rgba(0, 0, 0, 0.8);
}

.grusskarte__name {
  flex: none;
  margin: 0;
  max-width: 90%;
  font-family: var(--bedien);
  font-size: clamp(1.1rem, 2.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(34, 232, 240, 0.5), 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* Der Gedankenstrich gehoert zur Gestaltung, nicht zum Namen - darum
   steht er hier und nicht im Text, den show.js setzt. */
.grusskarte__name::before { content: '\2014\00a0'; opacity: 0.75; }

.grusskarte__name:empty { display: none; }

/* --- Foto-Aufgabe --------------------------------------------------
 *
 * Liegt zwischen den Beitraegen ueber der Buehne, aber unter dem Sucher:
 * der Camcorder-Rahmen bleibt also sichtbar, die Wand wirkt als Einheit.
 * Der Grund ist deckend und dunkel mit eigenem Neon-Gitter - aus zehn
 * Metern sieht man sofort, dass das keine Aufnahme ist.
 *
 * Die Polster oben und unten sind so bemessen, dass der Text weder in den
 * Titelblock links oben noch in den QR-Block rechts oben oder den Zeitcode
 * unten hineinlaeuft. Die Schriftgroesse setzt show.js, siehe dort.
 * ------------------------------------------------------------------ */

/* Wie bei der Grusskarte: deckende Grundfarbe, Verlauf nur darueber. */
.medium.aufgabe {
  background-color: var(--hintergrund);
  background-image:
    radial-gradient(120% 85% at 50% 44%,
      rgba(122, 47, 242, 0.34) 0%, rgba(18, 0, 36, 0) 62%);
}

.aufgabe__inhalt {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 38px);
  padding: calc(3vh + 168px) calc(3vw + 40px) calc(3vh + 76px);
  text-align: center;
}

/* "DEINE AUFGABE" - klein, cyan, gesperrt. Space Mono wie der uebrige
   Sucherfunk, damit es zur Technikschrift der Leinwand passt. */
.aufgabe__marke {
  margin: 0;
  flex: none;
  font-family: var(--technik);
  font-size: clamp(0.85rem, 1.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;      /* gleicht die Sperrung hinter dem letzten Buchstaben aus */
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 232, 240, 0.7);
}

/* Der Kasten, in den der Text passen muss. show.js verkleinert die Schrift,
   bis nichts mehr ueber diese Hoehe hinausragt. */
.aufgabe__buehne {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Outfit fett, nicht Monoton: Monoton ist bei ganzen Saetzen unlesbar. */
.aufgabe__text {
  margin: 0;
  max-width: 20ch;
  font-family: var(--bedien);
  font-size: 5vw;          /* Startwert, show.js setzt ihn je nach Textlaenge */
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--text);
  text-shadow:
    0 0 26px rgba(255, 46, 136, 0.45),
    0 0 70px rgba(122, 47, 242, 0.4),
    0 3px 14px rgba(0, 0, 0, 0.8);
}

.aufgabe__fuss {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vh, 16px);
}

.aufgabe .qr { --qr-groesse: clamp(96px, 15vh, 190px); }

.aufgabe__hinweis {
  margin: 0;
  font-family: var(--technik);
  font-size: clamp(0.8rem, 1.4vw, 1.25rem);
  letter-spacing: 0.2em;
  color: var(--gelb);
}

/* ==================================================================
   Ruhigere Darstellung, wenn der Gast das so eingestellt hat
   ================================================================== */

/* --- Beamer schwarz ------------------------------------------------ *
 * Deckend, ueber allem, ohne jeden Inhalt. Der Uebergang ist bewusst weich:
 * ein hartes Umschalten mitten in der Party wirkt wie ein Defekt.
 * pointer-events bleibt aus, damit die Tastatursteuerung weiter geht.
 * ------------------------------------------------------------------- */

.schwarz {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.schwarz--an { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .medium,
  .leer { transition: none; }

  .rec__punkt {
    animation: none;
    opacity: 1;
  }

  .gitter::after { animation: none; }
}

/* ==================================================================
   Admin- und Moderationsseite (admin.html)

   Gleiche Farben und Schriften wie der Rest, aber ohne Leuchten und ohne
   Monoton: das hier ist ein Werkzeug, keine Show. Gebaut fuer den Daumen -
   jeder Knopf ist mindestens 44 Pixel hoch, Loeschen sitzt abgesetzt.
   ================================================================== */

body.admin {
  --rot:      #FF5C5C;
  --rot-dunkel: rgba(255, 92, 92, 0.12);
  --gedaempft: rgba(255, 243, 233, 0.55);

  background: #0E0020;
  padding-bottom: 88px;   /* Platz fuer die Rueckmeldung */
}

.admin h1, .admin h2 {
  font-family: var(--bedien);   /* ausdruecklich kein Monoton */
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

/* --- Knoepfe ------------------------------------------------------ */

.a-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--flaeche-rand);
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.a-knopf:active { background: rgba(255, 243, 233, 0.14); }

.a-knopf[disabled] {
  opacity: 0.45;
  cursor: default;
}

.a-knopf--haupt {
  border-color: var(--cyan);
  background: rgba(34, 232, 240, 0.14);
}

.a-knopf--gelb   { border-color: rgba(255, 216, 77, 0.55); }
.a-knopf--blenden { border-color: rgba(34, 232, 240, 0.5); }

/* Der eingeschaltete Zustand ist gefuellt, nicht nur umrandet - das erkennt
   man auch aus dem Augenwinkel. */
.a-knopf--aktiv {
  background: rgba(255, 216, 77, 0.2);
  border-color: var(--gelb);
  color: var(--gelb);
}

.a-knopf--loeschen {
  border-color: rgba(255, 92, 92, 0.55);
  background: var(--rot-dunkel);
  color: var(--rot);
}

.a-knopf--still {
  border-color: rgba(255, 243, 233, 0.14);
  color: var(--gedaempft);
  font-weight: 500;
}

/* --- Anmeldung ---------------------------------------------------- */

.anmeldung {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.anmeldung__kasten {
  width: 100%;
  max-width: 380px;
  padding: 26px 22px;
  border: 1px solid var(--flaeche-rand);
  border-radius: var(--rund);
  background: var(--flaeche);
}

.anmeldung__titel { font-size: 1.5rem; }

.anmeldung__zusatz {
  margin: 4px 0 22px;
  color: var(--gedaempft);
  font-size: 0.92rem;
}

.a-feld { display: block; margin-bottom: 18px; }

.a-feld > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gedaempft);
}

.a-feld input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 2px solid var(--flaeche-rand);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: var(--bedien);
  font-size: 1.05rem;
}

.a-feld input:focus { border-color: var(--cyan); outline: none; }

.a-fehler {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 92, 92, 0.45);
  background: var(--rot-dunkel);
  color: var(--rot);
  font-size: 0.95rem;
}

/* --- Beamer-Schalter ---------------------------------------------- *
 * Der wichtigste Knopf der ganzen Seite: ganz oben, klebt mit, deutlich
 * hoeher als die uebrigen und mit einer Farbe, die man aus dem Augenwinkel
 * erkennt. Gruen heisst laeuft, rot heisst schwarz - der Text sagt den
 * Zustand, nicht die Aktion.
 * ------------------------------------------------------------------- */

.a-knopf--beamer {
  min-height: 68px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-width: 3px;
  border-radius: 12px;
}

.a-knopf--beamer-an {
  border-color: #35E07A;
  background: rgba(53, 224, 122, 0.18);
  color: #8CF5B6;
}

.a-knopf--beamer-aus {
  border-color: var(--rot);
  background: rgba(255, 92, 92, 0.2);
  color: #FFC2C2;
}

/* Der Punkt links: gruen leuchtet, rot ist matt. Zwei Merkmale statt einem,
   damit es auch bei Rotschwaeche eindeutig bleibt. */
.a-knopf__marke {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.a-knopf--beamer-an .a-knopf__marke {
  background: #35E07A;
  box-shadow: 0 0 10px rgba(53, 224, 122, 0.8);
}

.a-knopf--beamer-aus .a-knopf__marke {
  background: transparent;
  border: 3px solid var(--rot);
}

/* --- Not-Aus-Leiste ----------------------------------------------- */

.notaus {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(14, 0, 32, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--flaeche-rand);
}

.a-knopf--notaus {
  min-height: 56px;
  font-size: 1.02rem;
  font-weight: 700;
}

/* --- Seite -------------------------------------------------------- */

.a-seite {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 12px 20px;
}

/* --- Stand -------------------------------------------------------- */

.stand {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.stand__wert {
  padding: 9px 6px;
  border: 1px solid var(--flaeche-rand);
  border-radius: 10px;
  background: var(--flaeche);
  text-align: center;
}

.stand__wert--weit { grid-column: span 2; }

.stand__wert b {
  display: block;
  font-family: var(--technik);
  font-size: 1.2rem;
  line-height: 1.2;
}

.stand__wert span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--gedaempft);
}

/* --- Filter ------------------------------------------------------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.chip {
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 22px;
  border: 2px solid var(--flaeche-rand);
  background: none;
  color: var(--gedaempft);
  font-family: var(--bedien);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chip--an {
  border-color: var(--cyan);
  background: rgba(34, 232, 240, 0.14);
  color: var(--text);
}

.a-hinweis {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--gedaempft);
}

.a-hinweis--an {
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 216, 77, 0.4);
  background: rgba(255, 216, 77, 0.1);
  color: var(--gelb);
}

/* --- Raster ------------------------------------------------------- */

.a-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}

.a-leer {
  padding: 30px 0;
  text-align: center;
  color: var(--gedaempft);
}

/* Die Kachel wird so hoch, wie ihr Inhalt es braucht: Bild, Namenszeile und
   beide Knopfreihen untereinander. Ausdruecklich keine feste Hoehe, kein
   aspect-ratio und kein overflow: hidden - genau das hat die Aktionsreihen
   unten abgeschnitten. Gerundet wird stattdessen am Bildkasten.
   Die Klassennamen tragen alle das a-Praefix, weil .kachel und .raster oben
   schon der Gaesteseite gehoeren und deren aspect-ratio sonst hier landet. */
.a-kachel {
  display: flex;
  flex-direction: column;
  height: auto;
  aspect-ratio: auto;
  border: 1px solid var(--flaeche-rand);
  border-radius: 12px;
  background: var(--flaeche);
}

.a-kachel--versteckt { border-style: dashed; }
.a-kachel--versteckt .a-kachel__bild img { opacity: 0.4; }

.a-kachel--geloescht { opacity: 0.62; }
.a-kachel--fehler    { border-color: rgba(255, 92, 92, 0.4); }

.a-kachel__bild {
  position: relative;
  flex: none;                    /* darf die Knopfreihen nicht verdraengen */
  aspect-ratio: 4 / 3;
  overflow: hidden;              /* klippt das Bild, nicht die Kachel */
  border-radius: 11px 11px 0 0;  /* 12px Kachelrundung minus 1px Rand */
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.a-kachel__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.a-kachel__ersatz {
  font-family: var(--technik);
  font-size: 0.8rem;
  color: var(--gedaempft);
}

.a-kachel__video,
.a-kachel__status {
  position: absolute;
  padding: 3px 7px;
  border-radius: 6px;
  font-family: var(--technik);
  font-size: 0.72rem;
  line-height: 1.3;
  background: rgba(0, 0, 0, 0.72);
}

.a-kachel__video  { left: 6px; bottom: 6px; }
.a-kachel__status { right: 6px; top: 6px; }

.a-kachel__status--versteckt        { color: var(--gelb); }
.a-kachel__status--fehler           { color: var(--rot); }
.a-kachel__status--wird_verarbeitet { color: var(--cyan); }
.a-kachel__status--geloescht        { color: var(--gedaempft); }

.a-kachel__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 0;
}

.a-kachel__name {
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-kachel__zeit {
  flex: none;
  font-family: var(--technik);
  font-size: 0.8rem;
  color: var(--gedaempft);
}

.a-kachel__gruss {
  margin: 3px 10px 0;
  font-size: 0.85rem;
  color: var(--gedaempft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-kachel__ruhe {
  margin: 8px 10px 12px;
  font-size: 0.8rem;
  color: var(--gedaempft);
}

.a-kachel__reihe { padding: 9px 10px 0; }

/* Loeschen sitzt hinter einer Trennlinie und mit deutlichem Abstand. */
.a-kachel__reihe--weg {
  margin-top: 9px;
  padding-top: 9px;
  padding-bottom: 10px;
  border-top: 1px dashed var(--flaeche-rand);
}

.a-kachel__reihe--weg .a-knopf { min-height: 44px; font-size: 0.92rem; }

/* Gruesse im Admin-Raster: der Text steht dort, wo sonst das Bild ist. */
.a-kachel__bild--gruss {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(150deg,
    rgba(122, 47, 242, 0.5) 0%, rgba(255, 46, 136, 0.3) 100%);
}

.a-kachel--gruss { border-color: rgba(61, 245, 165, 0.45); }

.a-kachel__karte {
  margin: 0;
  font-family: var(--bedien);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* --- Foto-Aufgaben ------------------------------------------------ *
 * Eigener Kasten in Cyan, damit er sich vom Archiv-Kasten darunter
 * unterscheidet. Hier loescht nichts etwas, darum keine Warnfarbe.
 * ------------------------------------------------------------------ */

.a-aufgaben {
  margin-top: 28px;
  padding: 16px 15px 18px;
  border: 1px solid rgba(34, 232, 240, 0.45);
  border-radius: 12px;
  background: rgba(34, 232, 240, 0.08);
}

.a-aufgaben__titel {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.a-aufgaben__text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gedaempft);
}

.a-aufgaben__text code {
  font-family: var(--technik);
  font-size: 0.86em;
  color: var(--cyan);
}

.a-aufgaben__stand {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cyan);
}

.a-aufgaben__stand--leer { color: var(--gelb); }

.a-aufgaben__knoepfe {
  display: grid;
  gap: 8px;
}

.a-knopf--aufgabe {
  border-color: rgba(34, 232, 240, 0.75);
  background: rgba(34, 232, 240, 0.18);
}

/* --- Geraete und Sperre -------------------------------------------- *
 * Der ruhigste Kasten der Seite: gedaempfter Rahmen, keine Signalfarbe.
 * Er ist eingeklappt und wird an einem normalen Abend nie aufgemacht.
 *
 * Gelb ist hier die Farbe der Sperre - dieselbe wie bei geschlossenen
 * Uploads. Rot bleibt Loeschen und dem schwarzen Beamer vorbehalten.
 * ------------------------------------------------------------------- */

.a-geraete {
  margin-top: 24px;
  padding: 16px 15px 18px;
  border: 1px solid var(--flaeche-rand);
  border-radius: 12px;
  background: var(--flaeche);
}

.a-geraete__titel {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.a-geraete__innen { margin-top: 14px; }

.a-geraete__text {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gedaempft);
}

.a-geraete__stand {
  margin: 0 0 12px;
  font-family: var(--technik);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gedaempft);
}

.a-geraete__stand--gesperrt { color: var(--gelb); }

.a-geraeteliste {
  display: grid;
  gap: 9px;
}

.a-geraet {
  padding: 11px 12px 12px;
  border-radius: 11px;
  border: 1px solid var(--flaeche-rand);
  background: rgba(0, 0, 0, 0.2);
}

/* Gesperrt ist ein Zustand, kein Fehler - der Kasten bekommt einen gelben
   Rahmen und bleibt sonst, wie er ist. Ausgegraut waere falsch: gerade das
   gesperrte Geraet will man ja lesen koennen. */
.a-geraet--gesperrt {
  border-color: rgba(255, 216, 77, 0.6);
  background: rgba(255, 216, 77, 0.08);
}

.a-geraet__kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* Die sechs Zeichen sind eine Kennung, keine Prosa - darum die technische
   Schrift und weite Sperrung. So liest man sie im Halbdunkel vom Handy ab. */
.a-geraet__kennung {
  font-family: var(--technik);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.a-geraet--gesperrt .a-geraet__kennung { color: var(--gelb); }

.a-geraet__marke {
  font-family: var(--technik);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--gelb);
  color: var(--gelb);
}

.a-geraet__namen {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  word-break: break-word;
}

.a-geraet__zahlen {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 243, 233, 0.75);
}

.a-geraet__zeit {
  margin: 4px 0 0;
  font-family: var(--technik);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gedaempft);
}

.a-geraet__reihe {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 10px;
}

.a-geraet__reihe .a-knopf {
  min-height: 46px;
  font-size: 0.94rem;
}

.a-knopf--sperren {
  border-color: rgba(255, 216, 77, 0.7);
  color: var(--gelb);
}

/* --- Archiv-Export ------------------------------------------------ *
 * Sitzt ganz unten und ist deutlich abgesetzt: eigener Kasten, eigene
 * Farbe. Nichts, was man beim Wischen aus Versehen trifft.
 * ------------------------------------------------------------------ */

.a-archiv {
  margin-top: 28px;
  padding: 16px 15px 18px;
  border: 1px solid rgba(122, 47, 242, 0.55);
  border-radius: 12px;
  background: rgba(122, 47, 242, 0.12);
}

.a-archiv__titel {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.a-archiv__text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gedaempft);
}

.a-archiv__text code {
  font-family: var(--technik);
  font-size: 0.86em;
  color: var(--cyan);
}

.a-knopf--archiv {
  border-color: rgba(122, 47, 242, 0.9);
  background: rgba(122, 47, 242, 0.28);
}

.a-archiv__lage {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--flaeche-rand);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  line-height: 1.5;
}

.a-archiv__lage--laeuft  { border-color: rgba(34, 232, 240, 0.5); color: var(--cyan); }
.a-archiv__lage--gut     { border-color: rgba(53, 224, 122, 0.5); }
.a-archiv__lage--warnung { border-color: rgba(255, 216, 77, 0.6); color: var(--gelb); }
.a-archiv__lage--fehler  { border-color: var(--rot); color: var(--rot); }

/* Zwei Knoepfe nebeneinander: erzeugen und herunterladen. Auf schmalen
   Handys untereinander, sonst waeren sie zu schmal fuer den Daumen. */
.a-archiv__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.a-archiv__knoepfe .a-knopf { flex: 1 1 190px; }

.a-knopf--laden {
  border-color: rgba(34, 232, 240, 0.75);
  background: rgba(34, 232, 240, 0.14);
  color: var(--cyan);
}

.a-knopf--laden:disabled {
  border-color: var(--flaeche-rand);
  background: none;
  color: var(--gedaempft);
  opacity: 0.6;
  cursor: default;
}

/* Wann wurde der Export gemacht und wie gross ist er - daran sieht man,
   ob er noch zum heutigen Stand passt. */
.a-archiv__bestand {
  margin: 10px 0 0;
  font-family: var(--technik);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gedaempft);
}

.a-archiv__bestand--da { color: var(--cyan); }

/* --- Rueckblick fuer die Gaeste ----------------------------------- *
 * Eigener Kasten neben dem Archiv: beides gehoert zu "nach der Party",
 * aber das eine ist fuer Benni und das andere fuer die Gaeste.
 * ------------------------------------------------------------------ */

.a-rueckblick {
  margin-top: 18px;
  padding: 16px 15px 18px;
  border: 1px solid rgba(34, 232, 240, 0.5);
  border-radius: 12px;
  background: rgba(34, 232, 240, 0.08);
}

.a-rueckblick__titel {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.a-rueckblick__text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gedaempft);
}

.a-rueckblick__text code {
  font-family: var(--technik);
  font-size: 0.86em;
  color: var(--cyan);
}

.a-knopf--rueckblick {
  border-color: rgba(53, 224, 122, 0.8);
  background: rgba(53, 224, 122, 0.2);
  margin-right: 9px;
}

/* Aus: dieselbe gelbe Warnfarbe wie beim geschlossenen Upload-Schalter -
   im Halbdunkel liest man die Farbe, nicht den Satz. */
.a-knopf--rueckblick.a-knopf--zu {
  border-color: rgba(255, 216, 77, 0.8);
  background: rgba(255, 216, 77, 0.16);
}

.a-rueckblick__stand {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gedaempft);
}

.a-rueckblick__stand--offen { color: var(--mint); }
.a-rueckblick__stand--zu    { color: var(--gelb); }

/* --- Fuss --------------------------------------------------------- */

.a-fuss {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

/* --- Party-Steuerung ---------------------------------------------- *
 * Bewusst ruhiger als der Beamer-Schalter: gedaempfter Rahmen, kein
 * Leuchten. Er wird einmal am Abend gebraucht und soll nicht danach rufen,
 * gedrueckt zu werden.
 * ------------------------------------------------------------------- */

.a-steuerung {
  margin-top: 28px;
  padding: 16px 15px 18px;
  border: 1px solid var(--flaeche-rand);
  border-radius: 12px;
  background: var(--flaeche);
}

.a-steuerung__titel {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.a-steuerung__text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gedaempft);
}

.a-knopf--uploads {
  min-height: 52px;
  font-size: 1rem;
}

/* Geschlossen ist ein Zustand, kein Fehler - gelb, nicht rot. Rot ist auf
   dieser Seite fuer Loeschen und fuer den schwarzen Beamer reserviert. */
.a-knopf--zu {
  border-color: var(--gelb);
  background: rgba(255, 216, 77, 0.16);
  color: var(--gelb);
}

.a-steuerung__stand {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gedaempft);
}

.a-steuerung__stand--zu { color: var(--gelb); }

/* --- Rueckmeldung nach jeder Aktion ------------------------------- */

.rueckmeldung {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--flaeche-rand);
  background: #21063C;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  font-size: 0.97rem;
  font-weight: 600;
  text-align: center;
}

.rueckmeldung--gut    { border-color: rgba(34, 232, 240, 0.5); }
.rueckmeldung--fehler {
  border-color: var(--rot);
  background: #3A0A18;
  color: #FFD9D9;
}

/* --- Rueckgaengig nach einem Wunsch-Klick -------------------------- *
 * Sitzt etwas hoeher als die Rueckmeldung, damit sich beide nicht
 * ueberdecken, wenn ausnahmsweise beide stehen.
 * ------------------------------------------------------------------ */

.zurueck {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 41;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 24px);
  max-width: 520px;
  padding: 10px 12px 10px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 216, 77, 0.6);
  background: #2A1A06;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.zurueck__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gelb);
}

.zurueck__knopf {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 2px solid var(--gelb);
  background: rgba(255, 216, 77, 0.16);
  color: var(--gelb);
  font-family: var(--bedien);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.zurueck__knopf:active { background: rgba(255, 216, 77, 0.3); }

/* --- Musikwuensche im Admin-Bereich -------------------------------- *
 * Eigener Kasten in Magenta - Foto-Aufgaben sind cyan, das Archiv ist
 * gedaempft, die Wuensche sollen sich davon abheben.
 * ------------------------------------------------------------------ */

.a-wuensche {
  margin-bottom: 18px;
  padding: 14px 13px 16px;
  border: 1px solid rgba(255, 46, 136, 0.45);
  border-radius: 12px;
  background: rgba(255, 46, 136, 0.07);
}

.a-wuensche__titel {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.a-wuensche__zahl {
  font-family: var(--technik);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-left: 6px;
}

.a-wuensche__leer {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gedaempft);
}

.a-wunschliste {
  display: grid;
  gap: 9px;
}

.a-wunschliste:empty { display: none; }

.a-wuensche__erledigt { margin-top: 12px; }

.a-knopf--klappe {
  min-height: 44px;
  font-size: 0.92rem;
}

.a-wunschliste--erledigt { margin-top: 9px; }

.a-wunsch {
  padding: 11px 12px 12px;
  border-radius: 11px;
  border: 1px solid var(--flaeche-rand);
  background: rgba(255, 243, 233, 0.05);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

/* Erledigtes tritt zurueck, bleibt aber lesbar. */
.a-wunsch--gespielt,
.a-wunsch--abgelehnt { opacity: 0.6; }

/* Dezente Hervorhebung fuer frisch Hereingekommenes - ein Rahmen, kein
   Blinken. Auf der Leinwand blinkt heute Abend genug. */
.a-wunsch--frisch {
  border-color: var(--magenta);
  background: rgba(255, 46, 136, 0.14);
}

.a-wunsch__kopf { margin-bottom: 10px; }

.a-wunsch__titel {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.a-wunsch__kuenstler {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 243, 233, 0.75);
}

.a-wunsch__zeile {
  margin: 5px 0 0;
  font-family: var(--technik);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gedaempft);
}

/* Zwei mal zwei: jeder Knopf bleibt daumenbreit, auch auf einem schmalen
   Handy im Hochformat. */
.a-wunsch__reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.a-wunsch__reihe .a-knopf {
  min-height: 46px;
  font-size: 0.94rem;
}

.a-knopf--suchen {
  border-color: rgba(122, 47, 242, 0.7);
  background: rgba(122, 47, 242, 0.18);
  text-decoration: none;
}

.a-knopf--gespielt { border-color: rgba(61, 245, 165, 0.55); }
.a-knopf--zurueck  { border-color: rgba(255, 216, 77, 0.55); color: var(--gelb); }

/* ==================================================================
   DJ-Seite (dj.html)

   Dieselben Farben und Knoepfe wie der Admin-Bereich, nur groesser und
   ruhiger: eine Spalte, viel Abstand, kein Kleingedrucktes. Bedient wird
   sie im abgedunkelten Raum, oft mit einer Hand und ohne hinzusehen.
   ================================================================== */

body.dj { padding-bottom: 96px; }

.dj-kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 14px;
  background: rgba(14, 0, 32, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--flaeche-rand);
}

.dj-kopf__titel {
  font-size: 1.25rem;
  font-weight: 700;
}

.dj-kopf__zahl {
  margin: 3px 0 0;
  font-family: var(--technik);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}

.dj-seite { max-width: 720px; }

.dj-liste {
  display: grid;
  gap: 12px;
}

.dj-liste:empty { display: none; }

.dj-leer {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--gedaempft);
}

.dj-erledigt { margin-top: 22px; }

.dj-liste--erledigt { margin-top: 12px; }

.dj-wunsch {
  padding: 16px 15px 15px;
  border-radius: 14px;
  border: 2px solid var(--flaeche-rand);
  background: rgba(255, 243, 233, 0.06);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.dj-wunsch--gespielt,
.dj-wunsch--abgelehnt { opacity: 0.55; }

.dj-wunsch--frisch {
  border-color: var(--magenta);
  background: rgba(255, 46, 136, 0.15);
}

/* Gross genug, um es aus einem Meter Abstand im Halbdunkel zu lesen. */
.dj-wunsch__titel {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

.dj-wunsch__kuenstler {
  margin: 4px 0 0;
  font-size: 1.1rem;
  color: rgba(255, 243, 233, 0.8);
}

.dj-wunsch__zeile {
  margin: 8px 0 0;
  font-family: var(--technik);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gedaempft);
}

.dj-wunsch__reihe {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.dj-knopf {
  min-height: 60px;
  font-size: 1.08rem;
  font-weight: 700;
}

/* --- Etwas mehr Platz auf groesseren Schirmen --------------------- */

/* Der Beamer-Schalter braucht in der klebenden Leiste Platz. Damit sie auf
   dem Handy nicht den halben Schirm belegt, ruecken die vier kleineren
   Knoepfe darunter auf zwei Spalten - der Beamer-Knopf behaelt die volle
   Breite. */
.notaus { grid-template-columns: 1fr 1fr; }
.a-knopf--beamer { grid-column: 1 / -1; }

@media (min-width: 620px) {
  /* Vier Knoepfe: zwei mal zwei, damit keiner allein in einer Zeile haengt. */
  .notaus { grid-template-columns: repeat(2, 1fr); }
  .a-aufgaben__knoepfe { grid-template-columns: 1fr 1fr; }
  .stand  { grid-template-columns: repeat(6, 1fr); }
  .stand__wert--weit { grid-column: auto; }
  .a-raster { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  /* Auf dem Handy im Hochformat bleibt es bei einer Spalte - erst ab hier
     stehen die drei DJ-Knoepfe nebeneinander. */
  .dj-wunsch__reihe { grid-template-columns: repeat(3, 1fr); }
  .a-wunsch__reihe  { grid-template-columns: repeat(4, 1fr); }
  .a-geraet__reihe  { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .notaus { grid-template-columns: repeat(4, 1fr); }
  .a-knopf--beamer { grid-column: 1 / -1; }
}

/* ==================================================================
   Tischkarte und Plakat (/karte)

   Drei Formate, eine Gestaltung. Alle Masse sind Vielfache von
   --einheit, und eine Einheit ist ein Hundertstel der Seitenbreite.
   A3 ist damit nicht ein A4 mit winzigem Text, sondern dieselbe Karte
   in gross. Nur der Anteil des QR-Codes ist je Format eigens gesetzt,
   damit die geforderten Mindestmasse herauskommen.

   Unumstoesslich: auf dem QR-Code selbst liegt nichts. Er ist reines
   Schwarz auf Weiss, sitzt auf einer weissen Flaeche mit runden Ecken
   und behaelt seinen weissen Rand. Alles Gestalterische bleibt daneben.
   ================================================================== */

body.karten-seite {
  margin: 0;
  padding: 0;
  background: #0E0020;
  color: var(--text);
}

/* --- Leiste ueber der Vorschau, wird nie gedruckt ------------------ */

.karten-leiste {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 4px;
  text-align: center;
}

.karten-leiste p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 243, 233, 0.72);
}

.karten-leiste__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.karten-leiste__knoepfe .a-knopf {
  width: auto;
  min-width: 132px;
  text-decoration: none;
}

/* --- Der Bogen ---------------------------------------------------- */

.bogen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 14px;
}

/* --- Die Karte ---------------------------------------------------- */

.karte {
  --breite: min(210mm, 92vw);
  --einheit: calc(var(--breite) / 100);
  --qr-anteil: 46;          /* je Format ueberschrieben */
  --rand: 8;                /* Sicherheitsabstand in Einheiten, nie unter 8 mm */

  position: relative;
  /* Haelt Deko und Gitter innerhalb der Karte - und verhindert zugleich,
     dass ein ueberlanger Titel eine zweite Seite anfaengt. */
  overflow: hidden;

  width: var(--breite);
  height: calc(var(--breite) * 1.412);
  padding: calc(var(--einheit) * var(--rand));

  background: var(--hintergrund);
  color: var(--text);
  border: 1px solid rgba(255, 243, 233, 0.16);   /* nur zur Vorschau */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.bogen--a4 .karte { --breite: min(210mm, 92vw);   --qr-anteil: 46; }
.bogen--a3 .karte { --breite: min(297mm, 92vw);   --qr-anteil: 51; }
.bogen--a5 .karte { --breite: min(148.4mm, 92vw); --qr-anteil: 48; }

/* --- Memphis-Deko ------------------------------------------------- *
 * Feste Plaetze, gesetzt in server.js. Sie liegen ausserhalb des
 * Bandes, in dem der QR-Code sitzt, und halten Abstand zum Rand.
 * ------------------------------------------------------------------ */

.k-deko {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.k-form {
  position: absolute;
  width: calc(var(--einheit) * var(--k));
  height: calc(var(--einheit) * var(--k));
  background: var(--farbe);
  opacity: var(--deckkraft, 0.18);
}

.k-form--punkt { border-radius: 50%; }

.k-form--ring {
  border-radius: 50%;
  background: none;
  border: calc(var(--einheit) * var(--k) / 6) solid var(--farbe);
}

.k-form--balken {
  width: calc(var(--einheit) * var(--k) * 2.2);
  height: calc(var(--einheit) * var(--k) * 0.34);
  border-radius: calc(var(--einheit) * 0.4);
}

.k-form--dreieck {
  width: 0;
  height: 0;
  background: none;
  border-left: calc(var(--einheit) * var(--k) / 2) solid transparent;
  border-right: calc(var(--einheit) * var(--k) / 2) solid transparent;
  border-bottom: calc(var(--einheit) * var(--k) * 0.85) solid var(--farbe);
}

/* --- Neon-Gitter, nur auf dem A3-Plakat --------------------------- */

.k-gitter {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 34%;
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
  transform: perspective(calc(var(--einheit) * 90)) rotateX(74deg);
  transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 46, 136, 0.55) 0 1px, transparent 1px calc(var(--einheit) * 9)),
    repeating-linear-gradient(0deg,
      rgba(34, 232, 240, 0.5) 0 1px, transparent 1px calc(var(--einheit) * 9));
}

/* --- Kopf --------------------------------------------------------- */

.k-kopf {
  position: relative;
  z-index: 2;
  width: 100%;
}

.k-kicker {
  margin: 0 0 calc(var(--einheit) * 4);
  font-family: var(--technik);
  font-size: calc(var(--einheit) * 2.2);
  line-height: 1.4;
  letter-spacing: 0.42em;
  text-indent: 0.42em;      /* gleicht die Sperrung hinter dem letzten Zeichen aus */
  text-transform: uppercase;
  color: var(--cyan);
}

/* Monoton ragt oben und unten weit aus der Zeile heraus. Zeilenhoehe 1.45
   plus Innenabstand geben ihm Platz, die negativen Raender holen nur den
   reinen Leerraum zurueck - dieselben Werte wie auf der Upload-Seite. */
.k-titel {
  margin: -0.34em 0 -0.46em;
  font-family: var(--titel);
  font-weight: 400;
  font-size: calc(var(--einheit) * 14);
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.34em;
  letter-spacing: 0.03em;
  color: var(--magenta);
  text-shadow:
    0 0 0.05em rgba(255, 46, 136, 0.9),
    0 0 0.18em rgba(255, 46, 136, 0.6),
    0 0 0.44em rgba(122, 47, 242, 0.4);
}

.k-untertitel {
  margin: -0.28em 0 -0.55em;
  font-family: var(--titel);
  font-weight: 400;
  font-size: calc(var(--einheit) * 6);
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.34em;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow:
    0 0 0.06em rgba(34, 232, 240, 0.8),
    0 0 0.24em rgba(34, 232, 240, 0.45);
}

/* --- Namenszeile -------------------------------------------------- */

.k-namen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(var(--einheit) * 2.2);
  margin: calc(var(--einheit) * 4.5) 0 0;
  font-family: var(--bedien);
  font-size: calc(var(--einheit) * 3.2);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Name und Alter gehoeren zusammen und duerfen nicht auseinandergerissen
   werden - sonst steht die Zahl allein in der naechsten Zeile. */
.k-namen__name { white-space: nowrap; }

.k-namen__strich {
  display: block;
  width: 1px;
  height: calc(var(--einheit) * 3.4);
  background: var(--gelb);
  opacity: 0.7;
}

.k-namen__alter {
  color: var(--gelb);
  font-weight: 800;
}

/* --- Farbverlaufsstrich als Trenner ------------------------------- */

.k-trenner {
  display: block;
  width: calc(var(--einheit) * 40);
  height: calc(var(--einheit) * 0.45);
  margin: calc(var(--einheit) * 3.5) auto 0;
  border-radius: calc(var(--einheit) * 0.4);
  background: linear-gradient(90deg,
    var(--magenta) 0%, var(--violett) 34%, var(--cyan) 68%, var(--gelb) 100%);
}

/* --- QR-Code ------------------------------------------------------ *
 * Der Rahmen ist magentafarben und beruehrt den Code nicht. Das Etikett
 * darunter ist weiss und deckt alles ab, was hinter ihm liegt - Deko
 * oder Gitter koennen den Code darum nicht stoeren.
 * ------------------------------------------------------------------ */

.k-rahmen {
  position: relative;
  z-index: 2;
  padding: calc(var(--einheit) * 1.2);
  border: calc(var(--einheit) * 0.4) solid rgba(255, 46, 136, 0.55);
  border-radius: calc(var(--einheit) * 4.4);
}

.k-etikett {
  padding: calc(var(--einheit) * 2.4);
  border-radius: calc(var(--einheit) * 3.2);
  background: #fff;
  line-height: 0;
}

.k-etikett img {
  display: block;
  width: calc(var(--einheit) * var(--qr-anteil));
  height: calc(var(--einheit) * var(--qr-anteil));
}

.k-fehlt {
  width: calc(var(--einheit) * var(--qr-anteil));
  margin: 0;
  padding: calc(var(--einheit) * 8) 0;
  font-family: var(--bedien);
  font-size: calc(var(--einheit) * 2.6);
  line-height: 1.5;
  color: #B00020;
}

/* --- Unterer Block ------------------------------------------------ */

.k-unten {
  position: relative;
  z-index: 2;
  width: 100%;
}

.k-aufruf {
  margin: 0;
  font-family: var(--bedien);
  font-size: calc(var(--einheit) * 3.6);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.k-adresse {
  margin: calc(var(--einheit) * 1.5) 0 0;
  font-family: var(--technik);
  font-size: calc(var(--einheit) * 2.7);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--cyan);
  word-break: break-all;
}

.k-fuss {
  margin: calc(var(--einheit) * 3) 0 0;
  font-family: var(--bedien);
  font-size: calc(var(--einheit) * 1.9);
  line-height: 1.5;
  color: rgba(255, 243, 233, 0.66);
}

/* --- Druck -------------------------------------------------------- */

@media print {
  .nur-schirm { display: none !important; }

  html, body.karten-seite {
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .bogen {
    gap: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .karte {
    border: 0;
    break-inside: avoid;
    page-break-inside: avoid;
    /* Der dunkle Grund soll wirklich mitgedruckt werden. */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Jeweils einen halben Millimeter unter dem Papier - so kann ein
     Rundungsfehler im Browser keine zweite, leere Seite anfangen. */
  .bogen--a4 .karte { --breite: 210mm;   height: 296.5mm; }
  .bogen--a3 .karte { --breite: 297mm;   height: 419.5mm; }
  .bogen--a5 .karte { --breite: 148.4mm; height: 209.5mm; }
}

/* ==================================================================
   Rueckblick nach der Party (rueckblick.html)

   Dieselben Farben, dieselben Schriften wie die Upload-Seite - nur
   ruhiger. Auf der Upload-Seite tippt jemand einmal auf einen grossen
   Knopf; hier scrollt jemand zehn Minuten durch hundert Bilder. Darum
   kleinere Ueberschriften, weniger Leuchten, weniger Deko.
   ================================================================== */

body.rueckblick {
  --gedaempft: rgba(255, 243, 233, 0.55);
}

/* Waehrend die grosse Ansicht offen ist, darf die Seite darunter nicht
   mitscrollen - sonst ist man nach dem Schliessen woanders. */
body.r-starr {
  overflow: hidden;
}

.r-seite {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 16px 56px;
}

/* --- Kopf --------------------------------------------------------- */

.r-kopf {
  max-width: 540px;
  margin: 0 auto;
}

/* Deutlich kleiner als auf der Upload-Seite: der Titel begruesst hier
   nur noch, er ist nicht mehr der Grund, warum man da ist. */
.r-titel {
  font-size: clamp(3.2rem, 17vw, 5.4rem);
  text-shadow:
    0 0 5px rgba(255, 46, 136, 0.75),
    0 0 18px rgba(255, 46, 136, 0.45),
    0 0 44px rgba(122, 47, 242, 0.28);
}

.r-untertitel {
  font-size: clamp(1.4rem, 6.5vw, 2.2rem);
  text-shadow:
    0 0 5px rgba(34, 232, 240, 0.7),
    0 0 18px rgba(34, 232, 240, 0.35);
}

.r-zahl {
  margin: 16px 0 0;
  font-family: var(--technik);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--gedaempft);
}

/* --- Alles herunterladen ------------------------------------------ */

.r-alles {
  max-width: 540px;
  margin: 0 auto 26px;
}

.r-alles__titel {
  font-family: var(--technik);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gedaempft);
  margin: 0 0 10px;
}

.r-alles__knopf {
  width: 100%;
  min-height: 80px;
  font-size: 1.22rem;
}

.r-alles__knopf:disabled {
  filter: grayscale(0.8);
  opacity: 0.5;
  cursor: default;
}

.r-alles__hinweis {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gedaempft);
}

.r-alles__meldung {
  margin: 10px 0 0;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(61, 245, 165, 0.45);
  background: rgba(61, 245, 165, 0.1);
  font-size: 0.9rem;
  color: var(--mint);
}

.r-alles__meldung--fehler {
  border-color: rgba(255, 46, 136, 0.55);
  background: rgba(255, 46, 136, 0.12);
  color: var(--magenta);
}

/* --- Filter -------------------------------------------------------- */

.r-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}

.r-chip {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 22px;
  border: 2px solid var(--flaeche-rand);
  background: none;
  color: var(--gedaempft);
  font-family: var(--bedien);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.r-chip--an {
  border-color: var(--cyan);
  background: rgba(34, 232, 240, 0.14);
  color: var(--text);
}

/* --- Raster -------------------------------------------------------- */

.r-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 560px)  { .r-raster { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 820px)  { .r-raster { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1040px) { .r-raster { grid-template-columns: repeat(6, 1fr); } }

.r-kachel {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--flaeche-rand);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 243, 233, 0.07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.2s ease;
}

.r-kachel:hover  { border-color: var(--cyan); }
.r-kachel:active { transform: scale(0.98); }

.r-kachel__bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Videos tragen ein Abspielsymbol - sonst sieht man einem Standbild
   nicht an, dass sich darin etwas bewegt. */
.r-kachel__spielen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(18, 0, 36, 0.9);
  pointer-events: none;
}

.r-kachel__dauer {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(18, 0, 36, 0.82);
  color: var(--gelb);
  font-family: var(--technik);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

/* Gruesse haben kein Bild - die Kachel ist der Text. */
.r-kachel--gruss {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-color: rgba(61, 245, 165, 0.45);
  background: linear-gradient(150deg,
    rgba(122, 47, 242, 0.45) 0%, rgba(255, 46, 136, 0.26) 100%);
}

.r-kachel__karte {
  margin: 0;
  font-family: var(--bedien);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.32;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.r-leer {
  margin: 30px 0;
  text-align: center;
  color: var(--gedaempft);
}

/* --- Nachladen ------------------------------------------------------ */

.r-mehr {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.r-mehr__text {
  margin: 0;
  font-family: var(--technik);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* --- Grosse Ansicht -------------------------------------------------- */

.r-gross {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: rgba(9, 0, 20, 0.97);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.r-gross__buehne {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 14px 10px;
}

.r-gross__medium {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

/* Ein Gruss in gross: dieselbe Karte wie im Raster, nur gross genug,
   um sie vorzulesen. */
.r-gross__karte {
  max-width: 22ch;
  margin: 0;
  padding: 28px 24px;
  border-radius: var(--rund);
  border: 1px solid rgba(61, 245, 165, 0.45);
  background: linear-gradient(150deg,
    rgba(122, 47, 242, 0.5) 0%, rgba(255, 46, 136, 0.3) 100%);
  font-size: clamp(1.15rem, 5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: break-word;
}

.r-gross__zu {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 243, 233, 0.12);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.r-gross__zu:hover { background: var(--magenta); }

.r-gross__pfeil {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 46px;
  height: 74px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 243, 233, 0.09);
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.r-gross__pfeil:hover:not(:disabled) { background: rgba(34, 232, 240, 0.22); }
.r-gross__pfeil:disabled { opacity: 0.2; cursor: default; }

.r-gross__pfeil--zurueck { left: 4px; }
.r-gross__pfeil--weiter  { right: 4px; }

.r-gross__fuss {
  flex: 0 0 auto;
  padding: 12px 18px 18px;
  text-align: center;
  border-top: 1px solid var(--flaeche-rand);
  background: rgba(18, 0, 36, 0.6);
}

.r-gross__gruss {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: break-word;
}

.r-gross__wer {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--gedaempft);
}

.r-gross__zeit {
  font-family: var(--technik);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-left: 10px;
}

/* Der wichtigste Knopf der Seite: das Original in voller Qualitaet. */
.r-gross__laden {
  display: inline-flex;
  min-width: 220px;
  text-decoration: none;
}

.r-gross__zaehler {
  margin: 10px 0 0;
  font-family: var(--technik);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255, 243, 233, 0.4);
}

/* Auf schmalen Handys wischt man ohnehin - die Pfeile wuerden dort nur
   ueber dem Bild kleben. */
@media (max-width: 480px) {
  .r-gross__pfeil { width: 38px; height: 60px; font-size: 26px; opacity: 0.65; }
}
