/* ==================================================================
   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;
  --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;
}

/* --- 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%);
}

/* --- 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;
}

/* --- 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; }
}

/* Medien: zwei Ebenen fuer die Ueberblendung */
.medium {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: #000;
}

.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 --------------------- */

.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;
}

.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;
}

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

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

  .medium { 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;
}

/* --- 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 4; }

.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; }

/* --- 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); }

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

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

/* --- 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;
}

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

@media (min-width: 620px) {
  .notaus { grid-template-columns: repeat(3, 1fr); }
  .stand  { grid-template-columns: repeat(5, 1fr); }
  .stand__wert--weit { grid-column: auto; }
  .a-raster { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ==================================================================
   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; }
}
