/* Kartenservice FCB-Fanclub Floss – passend zur Website (Roboto, Blau #0274be, graue Schrift) */
:root {
  --bg: #ffffff;
  --fg: #6b6f75;
  --strong: #3c4043;
  --blue: #0274be;
  --blue-dk: #015a95;
  --onblue: #ffffff;
  --line: #d5dbe1;
  --soft: #f2f6fa;
  --sel: #dcebf7;
  --red: #b3261e;
  --ok: #1e7d3a;
  --warn-bg: #fff7e0;
  --warn-fg: #6b5300;
  --font: "Roboto", Arial, Helvetica, sans-serif;
  --admin-schrift: 15px; /* Schriftgröße in Listen, Filtern und Knöpfen der Administration */
  /* ---- Spielübersicht: hier lässt sich die Größe einstellen ---- */
  --uebersicht-breite: 900px; /* maximale Breite der Übersicht */
  --wappen: 48px; /* Vereinswappen */
  --zeilenhoehe: 85px; /* Mindesthöhe einer Spielzeile */
  --wettbewerb-logo: 36px; /* Logos Bundesliga/Champions League */
  --schrift-team: 16px; /* Vereinsnamen */
  --schrift-klein: 13px; /* Termin, Spieltag, „Kartenanzahl“ */
  --schrift-anzahl: 20px; /* Zahl der Karten */
  --keine-karten: 24px; /* rotes X bei ausgebuchten/erledigten Spielen */
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 var(--font);
}
a {
  color: var(--blue);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  color: var(--strong);
  line-height: 1.3;
}
h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 40px
    max(16px, env(safe-area-inset-left, 0px));
}

/* Wappen */
.wappen {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  display: block;
}
.wappen.leer {
  border-radius: 50%;
  background: var(--soft);
}
.wappen.gross {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

/* Spielübersicht */
.spiele {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.spiel {
  display: grid;
  grid-template-columns: 40px 10px 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}
a.spiel:hover {
  background: var(--soft);
  border-color: var(--line);
}
.spiel .vs {
  text-align: center;
  font-size: 12px;
}
.spiel .txt {
  min-width: 0;
}
.spiel .titel {
  color: var(--blue);
  font-weight: 500;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spiel .wann {
  font-size: 13px;
}
.spiel .wann .vorl {
  color: var(--red);
}
.spiel .frei {
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.spiel.zu {
  opacity: 0.6;
}
.spiel.zu .titel {
  color: var(--fg);
  text-decoration: none;
}
.marke {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .spiel {
    grid-template-columns: 32px 32px 1fr;
    gap: 8px;
  }
  .spiel .vs {
    display: none;
  }
  .spiel .wappen {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .spiel .frei,
  .spiel .marke {
    grid-column: 3;
    justify-self: start;
  }
}

/* Spielübersicht nach Vorlage */
.uebersicht {
  border-bottom: 1px solid var(--line);
  max-width: var(--uebersicht-breite);
  margin: 0 auto;
}
.uebersicht-kopf {
  background: #dcebfa;
  color: var(--strong);
  font-size: 15px;
  padding: 12px 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.uebersicht-titel {
  font-size: 17px;
  font-weight: 700;
  color: #17375e;
}
.filter-schalter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-schalter a {
  font-size: 15px;
  text-decoration: none;
  padding: 4px 20px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-dk);
  white-space: nowrap;
  transition: background .15s;
}
/* Gewählter Knopf: helle Pastellfarbe mit passendem Rand und dunkler Schrift in derselben Farbe */
.filter-schalter a.f-alle:hover       { background: #f1f8fe; }
.filter-schalter a.f-frei:hover       { background: #f2faf3; }
.filter-schalter a.f-ausgebucht:hover { background: #fffaea; }
.filter-schalter a.f-erledigt:hover   { background: #fdf3f3; }
.filter-schalter a.f-alle.aktiv       { background: #e1f1fd; border-color: #4a9fdb; color: #0b4f80; }
.filter-schalter a.f-frei.aktiv       { background: #dff3e3; border-color: #6cbf7e; color: #1d6b31; }
.filter-schalter a.f-ausgebucht.aktiv { background: #fff4cc; border-color: #e3c04a; color: #7a5c00; }
.filter-schalter a.f-erledigt.aktiv   { background: #fde2e2; border-color: #e8898b; color: #9b1c1c; }
.spiel-anzeige { display: inline-block; justify-self: start; width: fit-content; padding: 6px 14px; border: 1px solid; border-radius: 999px; font-size: 14px; }
.spiel-anzeige.an-frei { background: #dff3e3; border-color: #6cbf7e; color: #1d6b31; }
.spiel-anzeige.an-ausgebucht { background: #fff4cc; border-color: #e3c04a; color: #7a5c00; }
.spiel-anzeige.an-erledigt { background: #fde2e2; border-color: #e8898b; color: #9b1c1c; }
.spielort { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.spielort .chk { margin: 0; }
.filter .filter-schalter {
  align-self: flex-end;
  margin: 0 auto;
  height: 38px;   /* auf Höhe der Felder */
}
.uebersicht .leer {
  padding: 14px 12px;
  margin: 0;
}
.partie {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.3fr) 20px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 0 12px;
  padding: 6px 12px;
  min-height: var(--zeilenhoehe);
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}
.partie:nth-child(odd) {
  background: #ececec;
}
a.partie:hover {
  background: var(--sel);
}
a.partie:hover .team-name {
  text-decoration: underline;
}
.wettbewerb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  align-self: stretch;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-right: 12px;
  color: var(--strong);
}
.spieltag {
  color: var(--fg);
  font-size: var(--schrift-klein);
  font-weight: 500;
  white-space: nowrap;
}
.wettbewerb img {
  width: var(--wettbewerb-logo);
  height: var(--wettbewerb-logo);
  object-fit: contain;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team .wappen {
  width: var(--wappen);
  height: var(--wappen);
  flex-basis: var(--wappen);
}
.team-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.team-name {
  color: var(--blue);
  font-size: var(--schrift-team);
  line-height: 1.25;
}
.termin {
  color: var(--strong);
  font-size: var(--schrift-klein);
  line-height: 1.35;
}
.termin.fest {
  color: var(--red);
}
.strich {
  font-size: 20px;
  font-weight: 700;
  color: var(--strong);
  text-align: center;
}
.anzahl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--strong);
  font-size: var(--schrift-klein);
}
.anzahl b {
  color: var(--red);
  font-size: var(--schrift-anzahl);
  font-variant-numeric: tabular-nums;
}
.anzahl img.keine-karten {
  width: var(--keine-karten);
  height: var(--keine-karten);
}
/* Stempel „ausgebucht“ (Ocker wie der Filterknopf) */
.anzahl .stempel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 8px 2px;
  border: 2px solid #c9a227;
  border-radius: 5px;
  background: #fff8dc;
  color: #7a5c00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px #fff8dc, inset 0 0 0 2px #e3c04a;
  opacity: .92;
}
.anzahl .schloss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  border: 2px solid #a9aeb5;
  border-radius: 7px;
  background: linear-gradient(#f7f7f8, #e6e7e9);
  color: #8d9198;
  box-shadow: inset 0 1px 0 #fff;
}
.anzahl .schloss svg {
  width: 22px;
  height: 22px;
}
.anzahl .stempel svg {
  width: 28px;
  height: 18px;
  flex: none;
}
.anzahl b.ende {
  font-size: var(--schrift-klein);
}
.partie.zu .team-name {
  color: var(--fg);
}
@media (max-width: 760px) {
  .partie {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas: "w h a" "w g a";
    gap: 8px 12px;
  }
  .wettbewerb {
    grid-area: w;
    padding-right: 10px;
  }
  .wettbewerb img {
    width: 32px;
    height: 32px;
  }
  .heim {
    grid-area: h;
  }
  .gast {
    grid-area: g;
  }
  .anzahl {
    grid-area: a;
    font-size: 13px;
  }
  .strich {
    display: none;
  }
  .team .wappen {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .team-name {
    font-size: 15px;
  }
}
@media (max-width: 440px) {
  .partie {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "w w" "h a" "g a";
  }
  .wettbewerb {
    flex-direction: row;
    border-right: 0;
    justify-content: flex-start;
    padding: 0;
  }
  .wettbewerb img {
    width: 28px;
    height: 28px;
  }
}

/* Bestellformular */
.zurueck {
  display: inline-block;
  margin-bottom: 14px;
}
form.bestellung,
.einleitung,
.danke {
  max-width: 900px;
}
.kopf {
  background: var(--blue);
  color: var(--onblue);
  border-radius: 6px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px 40px;
  flex-wrap: wrap;
}
.kopf .kopf-txt {
  flex: 0 1 380px;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.kopf .name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}
.kopf .datum {
  font-size: 16px;
}
.kopf .fakten {
  margin: 0 0 0 auto;
  border-collapse: collapse;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.kopf .fakten th,
.kopf .fakten td {
  padding: 1px 0 1px 40px;
  text-align: center;
  font-weight: 400;
}
.kopf .fakten th:first-child,
.kopf .fakten td:first-child {
  padding-left: 0;
  text-align: right;
}
.kopf .fakten th {
  padding-bottom: 8px;
}
@media (max-width: 640px) {
  .kopf {
    gap: 12px;
  }
  .kopf .wappen.gross {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .kopf .kopf-txt {
    flex: 1 1 200px;
  }
  .kopf .fakten {
    margin: 0;
  }
  .kopf .fakten th,
  .kopf .fakten td {
    padding-left: 24px;
  }
  .kopf .fakten th:first-child,
  .kopf .fakten td:first-child {
    text-align: left;
  }
  .kopf .fakten th {
    padding-bottom: 6px;
  }
}
.einleitung {
  margin: 32px 0 18px;
  font-size: 16px;
}
.req {
  color: var(--red);
}
form.bestellung {
  display: grid;
  gap: 20px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 12px 16px 16px;
  min-width: 0;
}
legend {
  font-weight: 700;
  color: var(--strong);
  padding: 0 6px;
}
.zeile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.zeile label {
  color: var(--strong);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  font: inherit;
  color: var(--strong);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  width: 100%;
  max-width: 380px;
}
input.zahl {
  max-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
input.fehler,
select.fehler {
  border-color: var(--red);
  background: #fff5f4;
}
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.karten label {
  display: block;
  font-size: 13px;
  color: var(--strong);
  margin-bottom: 4px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stepper button {
  width: 34px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--strong);
  font-size: 18px;
  cursor: pointer;
}
.summe {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--soft);
  font-variant-numeric: tabular-nums;
}
.summe.zuviel {
  color: var(--red);
}
.summe.gut {
  color: var(--ok);
}
.meldung {
  color: var(--red);
  font-weight: 500;
}
.meldung:empty {
  display: none;
}
.knoepfe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  font: inherit;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid var(--blue);
  background: var(--bg);
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
}
.btn:hover {
  background: var(--soft);
}
.btn.primaer {
  background: var(--blue);
  color: var(--onblue);
}
.btn.primaer:hover {
  background: var(--blue-dk);
}
.btn.rot {
  border-color: var(--red);
  color: var(--red);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn.klein {
  padding: 5px 12px;
  font-size: 14px;
}
/* Felder im Bestellformular (Vorlage) */
form.bestellung {
  gap: 30px;
}
form.bestellung fieldset {
  padding: 6px 16px 16px;
}
form.bestellung legend {
  font-size: 15px;
}
form.bestellung .zeile {
  grid-template-columns: 210px 1fr;
  margin-top: 10px;
}
form.bestellung .zeile label {
  font-size: 14px;
}
form.bestellung input[type="text"],
form.bestellung input[type="email"],
form.bestellung input[type="tel"] {
  font-size: 17px;
  padding: 6px 10px;
}
form.bestellung .karten {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);   /* 4 oder 5 Kartenarten nebeneinander */
  gap: 12px;
  margin-top: 6px;
}
/* Bus-Zustieg auf der Bestellseite */
form.bestellung .zustieg-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
  margin-top: 8px;
}
form.bestellung .zustieg-wahl label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--strong);
  cursor: pointer;
}
form.bestellung .zustieg-wahl input { width: 20px; height: 20px; cursor: pointer; }
form.bestellung legend .klein { font-weight: 400; font-size: 13px; color: var(--fg); }
/* Übersicht: Sitz und Steh untereinander */
.anzahl .sitz-steh {
  display: grid;
  grid-template-columns: auto 2.2em;
  column-gap: 10px;
  align-items: baseline;
  line-height: 1.15;
  margin-top: 2px;
}
.anzahl .sitz-steh span { font-size: var(--schrift-klein); color: var(--strong); }
.anzahl .sitz-steh b { text-align: right; font-size: calc(var(--schrift-anzahl) - 2px); color: #333333; }
.anzahl .sitz-steh b.null { color: var(--red); }
form.bestellung .karte {
  display: flex;
  flex-direction: column;
  align-items: center;
}
form.bestellung .karten label {
  font-size: 14px;
  margin-bottom: 8px;
  text-align: center;
  white-space: nowrap;
}
form.bestellung .karten label {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
form.bestellung .stepper {
  gap: 6px;
}
form.bestellung .stepper input.zahl {
  width: 80px;
  font-size: 16px;
}
form.bestellung .summe {
  margin-top: 34px;
  font-size: 14px;
}
form.bestellung .meldung {
  font-size: 17px;
  font-weight: 400;
  margin-top: 6px;
}
@media (max-width: 700px) {
  form.bestellung .karten {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
  form.bestellung .karten label {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  form.bestellung .zeile {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 560px) {
  .zeile {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Dankeseite */
.danke p {
  margin: 0 0 12px;
}
.danke table td {
  padding: 2px 24px 2px 0;
}

/* Dialog statt Browser-Meldung */
.dlg-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}
.dlg {
  background: var(--bg);
  color: var(--fg);
  border-radius: 8px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.dlg h3 {
  margin: 0;
  font-size: 16px;
}

/* ===== Administration ===== */
.admin .wrap {
  max-width: 1200px;
}
/* Seite springt beim Umschalten nicht seitlich: erscheint die Bildlaufleiste, wird ihre Breite links ausgeglichen
   (die Seite bleibt in der Fenstermitte, wird aber nicht breiter) */
@media screen and (min-width: 900px) {
  body.admin { margin-left: calc(100vw - 100%); }
}
.leiste-oben {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.leiste-oben .marke-titel {
  font-weight: 700;
  color: var(--blue);
  font-size: 17px;
  margin-right: auto;
}
.leiste-oben nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.leiste-oben nav a {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--strong);
}
.leiste-oben nav a.aktiv {
  background: var(--blue);
  color: var(--onblue);
}
.leiste-oben nav a:hover:not(.aktiv) {
  background: var(--soft);
}
.hinweis {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-radius: 6px;
  padding: 9px 14px;
  margin-bottom: 14px;
}
.erfolg {
  background: #e6f4ea;
  color: var(--ok);
  border-radius: 6px;
  padding: 9px 14px;
  margin-bottom: 14px;
}
.filter {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.filter label {
  display: grid;
  gap: 2px;
  font-size: 13px;
}
.filter select,
.filter input {
  width: auto;
  min-width: 140px;
  font-size: var(--admin-schrift);
  /* alle Felder gleich hoch → Beschriftungen stehen auf jeder Seite auf gleicher Höhe */
  height: 38px;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
}
/* Zurücksetzen / Excel-Export genauso hoch wie die Felder, unten bündig */
.filter > .btn {
  height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.admin .btn {
  font-size: var(--admin-schrift);
}
.admin .btn.klein {
  font-size: 14px;
}
.filter .rechts {
  margin-left: auto;
}
.aktionen {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.aktionen .rechts {
  margin-left: auto;
}
.pl-teile { margin-left: 12px; }
table.liste td.ges { white-space: nowrap; text-overflow: clip; padding-left: 4px; padding-right: 4px; }
/* Ges.: Zahl rechtsbündig in fester Breite, daneben fester Platz fürs Bus-/Auto-Symbol → Zahlen stehen genau untereinander */
td.ges .ges-zahl { display: inline-block; min-width: 22px; text-align: right; }
td.ges .ges-ikon { display: inline-block; width: 22px; text-align: center; vertical-align: middle; }
table.liste th.versand-kopf { padding-left: 2px; padding-right: 2px; }
.spiel-knoepfe .rechts { display: flex; gap: 8px; flex-wrap: wrap; }
.tabelle-box {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table.liste {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: var(--admin-schrift);
  color: var(--strong);
}
table.liste th {
  text-align: left;
  background: var(--soft);
  color: var(--strong);
  font-weight: 400;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.liste td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.liste.einzeilig td {
  white-space: nowrap;
}
table.liste.einzeilig {
  min-width: 1120px;
}
table.liste.einzeilig-schmal td {
  white-space: nowrap;
}
table.liste td.mitte,
table.liste th.mitte {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
table.liste tbody tr {
  cursor: pointer;
  height: 45px; /* gleiche Zeilenhöhe in allen Listen */
}
table.liste tbody tr:hover {
  background: var(--soft);
}
table.liste tbody tr.gewaehlt {
  background: var(--sel);
}
table.liste td.zahl,
table.liste th.zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.liste tfoot td {
  font-weight: 500;
  background: var(--soft);
  font-variant-numeric: tabular-nums;
}
table.liste svg.ikon { vertical-align: -5px; margin: 0 1px; }
table.liste .klein {
  font-size: 12px;
  color: var(--fg);
}
table.liste img.wappen {
  width: 28px;
  height: 28px;
}
.status {
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}
/* Farben wie die Filterknöpfe: grün = bestellbar, gelb = ausverkauft (kann wieder frei werden),
   rot = abgelaufen (endgültig), grau = gesperrt, magenta-lila = online beendet */
.status { border: 1px solid transparent; }
.status.offen     { background: #dff3e3; border-color: #6cbf7e; color: #1d6b31; }
.status.zu        { background: #fff4cc; border-color: #e3c04a; color: #7a5c00; }
.status.alt       { background: #fde2e2; border-color: #e8898b; color: #9b1c1c; }
.status.gesperrt  { background: #f1f2f4; border-color: #8a8f97; color: #3d434b; }
.status.beendet   { background: #f6e3f6; border-color: #c77dc7; color: #7a2a7a; }
.seiten {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}
.seiten a,
.seiten span {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.seiten span.aktiv {
  background: var(--blue);
  color: var(--onblue);
  border-color: var(--blue);
}
.seiten .info {
  border: 0;
  margin-left: 8px;
}
.formular {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.formular .zeile {
  margin: 0;
}
.formular .chk {
  display: flex;
  gap: 8px;
  align-items: center;
}
.formular .hilfe {
  font-size: 12px;
}
input.gesperrt {
  background: var(--soft);
  color: var(--fg);
  cursor: not-allowed;
}
textarea {
  max-width: none;
  min-height: 300px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
}
.platzhalter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.platzhalter button {
  font: inherit;
  font-size: 13px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--blue);
  cursor: pointer;
}
.reiter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.reiter a:not(.btn) {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
}
.reiter a.aktiv {
  background: var(--blue);
  color: var(--onblue);
  border-color: var(--blue);
}
.vorschau {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  color: #222;
  font-family: Calibri, Tahoma, Verdana, Arial, sans-serif;
}
.login {
  max-width: 360px;
  margin: 60px auto;
  display: grid;
  gap: 12px;
}

/* ===== Spieltag-Ansicht (wie die Excel-Tabelle je Spiel) ===== */
.admin.breit .wrap {
  max-width: 1560px;
}
.st-kopf {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 14px;
}
.st-kopf img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.st-kopf .st-wettbewerb { width: 44px; height: 44px; margin-right: 6px; }
.st-kopf .st-gegner { margin-left: 10px; }
.st-kopf .st-frei {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 22px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.st-kopf .st-frei b {
  font-size: 22px;
  font-weight: 500;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.st-titel {
  font-size: 19px;
  font-weight: 500;
  color: var(--strong);
}
.st-info {
  font-size: 14px;
}
.st-kopf .st-geaendert {
  margin-left: auto;
  align-self: flex-start;
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap;
}
.st-status {
  align-self: center;
  font-size: 13px;
  color: var(--ok);
}
.st-status.fehler {
  color: var(--red);
  font-weight: 500;
}
.st-box {
  scroll-padding-top: 68px;     /* Kopfzeile + Preisvorgaben bleiben stehen */
  scroll-padding-bottom: 36px;  /* Gesamtsummen bleiben stehen */
  max-height: calc(100vh - 290px);
  min-height: 260px;
  overflow: auto;
}
table.spieltag {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 1460px;   /* Name mindestens ca. 200 px */
  font-size: 14px;
  color: var(--strong);
}
table.spieltag col.c-nr { width: 52px; }
table.spieltag col.c-name { width: auto; }   /* bekommt den ganzen restlichen Platz */
table.spieltag col.c-zustieg { width: 190px; }   /* Platz für ca. 25 Zeichen */
table.spieltag col.c-zeit { width: 78px; }
input.zelle.zeit { text-align: center; font-variant-numeric: tabular-nums; }
input.zelle.geld:disabled, input.zelle.zahler:disabled { background: #f1f3f5; cursor: not-allowed; }
input.zelle.zeit:disabled { background: repeating-linear-gradient(135deg, #f3f3f3 0 6px, #fafafa 6px 12px); cursor: not-allowed; }
table.spieltag col.c-anz { width: 50px; }
table.spieltag col.c-karten { width: 58px; }
table.spieltag col.c-geld { width: 82px; }
table.spieltag col.c-geld.breit { width: 96px; }   /* Betrag, Überw., Offen: Platz für 1.315,00 */
table.spieltag col.c-geld.schmal { width: 68px; }  /* Bar, GS/Rab., Spende */
table.spieltag th,
table.spieltag td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.spieltag th {
  background: #dcebfa;
  color: #17375e;
  font-weight: 500;
  padding: 0 6px;
  text-align: left;
}
table.spieltag thead tr:first-child th { position: sticky; top: 0; z-index: 3; }
table.spieltag tr.st-preise td { position: sticky; top: 32px; z-index: 2; background: #fff7e0; color: var(--warn-fg); font-size: 13px; padding: 0 6px; }
table.spieltag tr.st-summen td { position: sticky; bottom: 0; z-index: 2; background: #eef2f6; border-top: 2px solid #9fb3c8; font-weight: 700; padding: 0 6px; font-variant-numeric: tabular-nums; }
table.spieltag tr.st-preise td.z-zahl { padding: 0; }
table.spieltag .mitte { text-align: center; }
table.spieltag .rechts { text-align: right; }
table.spieltag td.st-karten,
table.spieltag td.st-betrag,
table.spieltag td.st-offen {
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
  background: #f7f9fb;
}
table.spieltag td.st-offen.rot { color: var(--red); font-weight: 700; }
table.spieltag td.st-offen.gruen { color: var(--ok); }
table.spieltag td.st-offen.zuviel { color: #000; font-weight: 700; }   /* Überzahlung: mit Minus, schwarz */
table.spieltag td.nr {
  text-align: right;
  padding: 0 6px 0 4px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  background: #f7f9fb;
}
table.spieltag td.nr .web {
  float: left;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--onblue);
  background: var(--blue);
  border-radius: 3px;
  padding: 0 3px;
  line-height: 14px;
  vertical-align: 1px;
}
table.spieltag tbody tr:nth-child(even) td { background-color: #fafbfc; }
table.spieltag tbody tr:nth-child(even) td.nr,
table.spieltag tbody tr:nth-child(even) td.st-karten,
table.spieltag tbody tr:nth-child(even) td.st-betrag,
table.spieltag tbody tr:nth-child(even) td.st-offen { background-color: #f1f4f7; }
table.spieltag tbody tr.gewaehlt td { background-color: var(--sel) !important; }
input.zelle {
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
  height: 31px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 6px;
  outline: none;
  max-width: none;
}
input.zelle:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: #fff;
}
input.zelle.zahl,
input.zelle.preis { text-align: center; font-variant-numeric: tabular-nums; }
input.zelle.geld { text-align: right; font-variant-numeric: tabular-nums; }
input.zelle.name { color: var(--blue); }
/* Besteller mit Bemerkung: rotes Eck wie ein Excel-Kommentar */
table.spieltag td:has(> input.zelle.name[data-bemerkung]) { position: relative; }
table.spieltag td:has(> input.zelle.name[data-bemerkung])::after {
  content: ''; position: absolute; top: 0; right: 0; pointer-events: none;
  border-style: solid; border-width: 0 7px 7px 0; border-color: transparent #d32f2f transparent transparent;
}
input.zelle.gespeichert { animation: st-ok 1.2s ease-out; }
input.zelle.falsch { box-shadow: inset 0 0 0 2px var(--red); background: #fff5f4; }
@keyframes st-ok { from { background: #d7f0dd; } to { background: transparent; } }
table.spieltag tbody tr.neu td { background: #fff; }
table.spieltag tr.neu td.nr { color: var(--blue); font-size: 12px; text-align: center; }
table.spieltag tr.neu input.name { box-shadow: inset 0 0 0 1px var(--line); }
table.spieltag td.hinweis-neu { color: var(--fg); font-size: 13px; padding: 0 10px; }
.dlg .formular label { display: grid; gap: 2px; font-size: 13px; color: var(--strong); }
.dlg .formular input { max-width: none; }

@media print {
  @page { size: A4 landscape; margin: 8mm 8mm 10mm; }
  html, body { background: #fff; }
  .leiste-oben, .filter, .aktionen, .hinweis, .hilfe, .erfolg, tr.neu { display: none !important; }
  .admin.breit .wrap { max-width: none; padding: 0; }
  .st-kopf { margin: 0 0 8px; }
  .st-kopf .st-geaendert { display: none; }
  .st-box { max-height: none !important; overflow: visible; border: 0; border-radius: 0; }
  /* Tabelle passt ohne Verkleinern auf A4 quer – Schrift so groß wie die Preisvorgaben */
  table.spieltag { min-width: 0; width: 100%; font-size: 13px; color: #000; }
  table.spieltag col.c-nr { width: 44px; }
  input.zelle.preis { display: none; }
  .druck-wert { display: block !important; text-align: center; }
  table.spieltag col.c-name { width: auto; }
  table.spieltag col.c-zustieg { width: 130px; }
  table.spieltag col.c-zeit { width: 46px; }
  table.spieltag col.c-anz { width: 36px; }
  table.spieltag col.c-karten { width: 46px; }
  table.spieltag col.c-geld { width: 60px; }
  table.spieltag col.c-geld.breit { width: 68px; }
  table.spieltag col.c-geld.schmal { width: 52px; }
  table.spieltag th, table.spieltag td { height: 21px; border-color: #999; position: static !important; }
  table.spieltag th { padding: 0 3px; font-size: 12px; background: #dcebfa; }
  table.spieltag tr.st-preise td { font-size: 12px; background: #fff7e0; }
  table.spieltag tr.st-summen td { background: #eef2f6; border-top: 2px solid #000; }
  table.spieltag tfoot { display: table-row-group; }       /* Summen nur einmal am Ende */
  table.spieltag tbody tr { break-inside: avoid; }
  table.spieltag tbody td, table.spieltag tbody tr:nth-child(even) td { background: #fff !important; }
  table.spieltag td.st-karten, table.spieltag td.st-betrag, table.spieltag td.st-offen,
  table.spieltag tr.st-preise td, table.spieltag tr.st-summen td { padding: 0 4px; }
  input.zelle { height: 20px; padding: 0 3px; color: #000; box-shadow: none !important; }
  input.zelle.name { color: #000; }
  table.spieltag td:has(> input.zelle.name[data-bemerkung])::after { display: none; }
  input.zelle.zustieg.selbst { color: #cc6600; }
  input::-webkit-calendar-picker-indicator { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.druck-wert { display: none; }
.preis-raster {
  display: grid;
  grid-template-columns: repeat(7, 74px);
  gap: 8px;
}
.preis-raster label {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--strong);
  text-align: center;
}
.preis-raster input {
  text-align: center;
  padding: 6px 4px;
}

/* Saisonabschluss */
.nur-druck { display: none; }
table.liste td.offen-rot { color: var(--red); font-weight: 700; }
table.liste.bericht tfoot td { font-weight: 700; }
@media print {
  .nur-druck { display: block; }
  .tabelle-box { overflow: visible; border: 0; }
  table.liste.einzeilig.bericht { min-width: 0; font-size: 11px; }
  table.liste.bericht tbody tr { height: 24px; }
}

/* Zahlungsinfo-Dialog */
.dlg.breit { max-width: 820px; }
.dlg .zinfo { gap: 10px; }
.dlg .zinfo-zeile { display: grid; grid-template-columns: 1fr 220px; gap: 12px; }
.dlg .zinfo textarea { min-height: 0; height: 58px; font-family: inherit; font-size: 14px; }
.dlg .zinfo-vorschau { border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px; max-height: 52vh; overflow: auto;
  font-family: Calibri, Tahoma, Verdana, Arial, sans-serif; font-size: 15px; color: #222; background: #fff; }
.dlg .zinfo-vorschau img { max-width: 100%; height: auto; }
.dlg .knoepfe .rechts { margin-left: auto; }
.btn.gruen { border-color: #1e7d3a; color: #1e7d3a; }
.btn.gruen:hover { background: #e6f4ea; }
@media (max-width: 600px) { .dlg .zinfo-zeile { grid-template-columns: 1fr; } }
.dlg .zinfo-titel { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--strong); }
.dlg .zinfo-vorschau[contenteditable]:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
input.zelle.zustieg.selbst { color: #cc6600; font-weight: 500; }
/* Nichtmitglieder (keine Mitglieds-Nr.) in Rot */
input.zelle.name.nichtmitglied { color: var(--red); }
table.liste tr.nichtmitglied td, table.liste td.nichtmitglied { color: var(--red); }

/* Spiel bearbeiten: Sitz- und Stehplätze nebeneinander */
.formular .kontingent {
  display: grid;
  grid-template-columns: 200px 125px 125px;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.formular .kontingent label { color: var(--strong); }
.formular .kontingent input { max-width: 110px; }
.formular .kontingent .k-kopf { font-size: 16px; color: var(--strong); text-align: center; }
.formular .kontingent .k-klein { font-size: 13px; color: var(--fg); }
.formular .kontingent .k-zahl { text-align: left; padding-left: 11px; font-size: 16px; color: var(--strong); }

.st-kopf .st-frei .st-steh { font-size: 12px; text-align: center; line-height: 1.2; }
.st-kopf .st-frei .st-steh b { font-size: 18px; }

/* Bestellseite: Sitzplätze links, Stehplätze rechts */
form.bestellung .summe { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
form.bestellung .summe span.zuviel { color: var(--red); }

/* Spieleliste: „FCB - Gegner“ mit Gegner-Logo am rechten Rand der Spalte */
table.liste .paarung { display: flex; align-items: center; gap: 10px; min-width: 0; }
table.liste .paarung span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Spieleliste: Wettbewerbs-Logo und Spieltag in einer Spalte (wie auf der Bestellseite) */
table.liste .wb-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 6px; }
table.liste .wb-tag img.wb-logo { width: 36px; height: 36px; object-fit: contain; }
table.liste .wb-tag span { font-variant-numeric: tabular-nums; }
table.liste .paarung img.wappen { flex: 0 0 28px; }

/* Kompakte Listen (Besteller, Vereine): etwas niedrigere Zeilen */
table.liste.kompakt tbody tr { height: 36px; }
table.liste.kompakt td { padding-top: 4px; padding-bottom: 4px; }
table.liste.kompakt img.wappen { width: 26px; height: 26px; }

/* Bestellseite: Angaben auf diesem Gerät merken */
.bestellung .zeile.merken label.chk { font-size: 15px; }
.bestellung .merken-info { margin-top: 4px; font-size: 14px; color: var(--ok); }
.bestellung .merken-info a { margin-left: 6px; }
.bestellung .merken-hilfe { margin-top: 2px; font-size: 13px; color: var(--fg); }

/* Bestellbestätigung / Zahlungsinfo: oberer Teil etwas größer (Beschriftungen ≈ Roboto 11 pt) */
.dlg.breit h3 { font-size: 19px; }
.dlg .zinfo label, .dlg .zinfo-titel { font-size: 15px; }
.dlg .zinfo input { font-size: 16px; }

/* Spiele-Liste: freie Plätze grün, keine (0 oder überbucht) rot */
table.liste td.frei-ja { color: #2e7d32; font-weight: 500; }
table.liste td.frei-nein { color: var(--red); font-weight: 500; }

/* Knopf „zurück“ mit Pfeil */
.btn.btn-zurueck { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; }
.btn.btn-zurueck svg { flex: none; }
.aktionen .btn.btn-zurueck { margin-right: 8px; }
/* Mailtexte: erster Reiter steht genau über dem Eingabefeld „Betreff“ */
.reiter .reiter-zurueck { flex: 0 0 136px; }
form.texte-form > .zeile { grid-template-columns: 130px 1fr; }
@media print { .btn.btn-zurueck, .reiter-zurueck { display: none !important; } }
.reiter { align-items: center; }

/* Spieltag: Dialog „Besteller“ (Doppelklick auf den Namen) wie Bestellbestätigung/Zahlungsinfo */
.dlg:has(.besteller-dlg) h3 { font-size: 19px; }
.dlg .besteller-dlg label { font-size: 15px; }
.dlg .besteller-dlg input { font-size: 16px; }

/* ---------- Sitzplätze (admin/plaetze.php) ---------- */
form.inline { display: contents; }
.pl-titel { font-size: 18px; color: var(--strong); margin: 4px 0 10px; font-weight: 500; }
.pl-leer { border: 1px dashed var(--line); border-radius: 8px; padding: 18px 22px; max-width: 760px; color: var(--strong); }
.pl-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.pl-gruppen { border: 1px solid var(--line); border-radius: 8px; padding: 8px; position: sticky; top: 8px; max-height: calc(100vh - 24px); overflow: auto; background: #fff; }
.pl-kopf { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; color: var(--strong); padding: 2px 4px 8px; font-size: 14px; }
.pl-kopf #pl-summe { font-weight: 400; color: var(--fg); font-size: 13px; text-align: right; }
.pl-g { border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 6px; padding: 5px 8px; margin-bottom: 6px; cursor: grab; background: #fff; }
.pl-g.ok { border-left-color: var(--ok); }
.pl-g.getrennt { border-left-color: #cc6600; }
.pl-g.zuviel { border-left-color: #7b3fa0; }
.pl-g.gewaehlt { background: var(--sel); border-color: var(--blue); }
.pl-g-zeile { display: flex; justify-content: space-between; gap: 6px; }
.pl-g-name { font-weight: 500; color: var(--strong); font-size: 14px; }
.pl-g-zahl { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--strong); }
.pl-g.fehlt .pl-g-zahl { color: var(--red); font-weight: 500; }
.pl-g-info, .pl-g-plaetze { font-size: 12px; color: var(--fg); }
.pl-g-plaetze a { margin-left: 4px; }
.pl-plan { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-block { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.pl-block-titel { font-weight: 500; color: var(--strong); margin-bottom: 6px; }
.pl-block-zahl { font-weight: 400; color: var(--fg); }
.pl-reihe { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.pl-rnr { flex: 0 0 64px; font-size: 13px; color: var(--fg); padding-top: 18px; }
.pl-sitze { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-luecke { align-self: center; color: var(--fg); padding: 0 4px; }
.pl-s { width: 118px; min-height: 58px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px 4px; display: flex; flex-direction: column; font-size: 13px; cursor: pointer; background: #fff; position: relative; }
.pl-s .pl-s-kopf { display: flex; justify-content: space-between; gap: 4px; line-height: 1.2; }
.pl-s .pl-s-nr { font-size: 12px; color: var(--fg); }
.pl-s .pl-s-art { font-size: 12px; color: var(--blue-dk); }
.pl-s .pl-s-name { font-weight: 500; color: var(--strong); line-height: 1.2; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.pl-s.frei { background: #f4fbf5; border-style: dashed; border-color: #8bc79a; }
.pl-s.belegt { background: var(--soft); cursor: grab; }
.pl-s.um { box-shadow: inset 0 -3px 0 #cc6600; }
.pl-s.sel { background: var(--sel); border-color: var(--blue); }
.pl-s.ueber { outline: 2px solid var(--blue); outline-offset: 1px; }
.pl-legende { margin-left: 12px; white-space: nowrap; }
.pl-legende i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; border: 1px solid var(--line); }
.pl-legende .pl-l-frei { background: #f4fbf5; border: 1px dashed #8bc79a; }
.pl-legende .pl-l-um { background: #fff; box-shadow: inset 0 -3px 0 #cc6600; }
.pl-d-info { color: var(--fg); margin-top: 0; }
.pl-d-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0; }
.pl-d-felder[hidden] { display: none; }
.pl-d-felder label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--strong); }
.pl-d-felder label.breit { grid-column: 1 / -1; }
.pl-d-felder input, .pl-d-felder select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.pl-liste { margin-bottom: 18px; }
.pl-frei-text { color: var(--fg); font-style: italic; }
@media print {
  .kein-druck { display: none !important; }
  /* Platzliste kompakt: Zeilenhöhe ca. 5 mm */
  .pl-titel { font-size: 13pt; margin: 0 0 3mm; }
  .pl-liste-kopf { font-size: 11pt; margin: 3mm 0 1.5mm; }
  table.pl-liste { font-size: 9.5pt; margin-bottom: 4mm; border-collapse: collapse; table-layout: auto; width: 100%; }
  table.pl-liste th, table.pl-liste td { padding: 0 2mm !important; height: 5mm; line-height: 1.15; border-bottom: 0.2mm solid #ccc; }
  table.pl-liste thead { display: table-header-group; }
  table.pl-liste tbody tr, table.pl-liste thead tr { height: 5mm; break-inside: avoid; }
  table.pl-liste td { white-space: nowrap; overflow: visible; text-overflow: clip; }
}
.giro-zweck { margin-top: 14px; max-width: 760px; }
.giro-zweck label { display: block; color: var(--strong); margin-bottom: 4px; }
.giro-zweck input { width: 100%; max-width: none; }
.pl-s.jk { background: #fff4d6; border-color: #e2b84a; }
.pl-s.jk .pl-s-name { color: #8a6d1a; }
.pl-legende .pl-l-jk { background: #fff4d6; border-color: #e2b84a; }
.pl-d-check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; }
.pl-d-check input { margin-top: 3px; }
.st-kopf .st-link { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; border-radius: 8px; padding: 2px 8px 2px 2px; margin: -2px -8px -2px -2px; }
.st-kopf .st-link:hover { background: var(--soft); }
.st-kopf .st-link:hover .st-titel { color: var(--blue); text-decoration: underline; }

/* ---------- Mailtexte (Übersicht und Bearbeiten, wie die Brieftexte der Mitgliederverwaltung) ---------- */
.texte-liste { max-width: 1100px; }
.texte-liste tbody tr:hover td { background: var(--sel); }
.text-karte { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 26px 22px; max-width: 1040px; }
.text-karte h2 { margin: 0 0 10px; }
.ph-zeile { display: flex; gap: 10px; align-items: flex-start; margin: 7px 0; }
.ph-zeile > b { flex: 0 0 112px; color: var(--strong); font-size: 15px; padding-top: 5px; }
.ph-zeile .platzhalter { flex: 1; }
.ph-zeile .platzhalter button { font-size: 13.5px; padding: 4px 10px; border-radius: 6px; }
.formatmarken button { font-family: inherit; }
.feld-titel { display: block; color: var(--strong); font-size: 14px; font-weight: 500; margin: 16px 0 5px; }
.text-feld { width: 100%; min-height: 380px; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.55; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; resize: vertical; box-sizing: border-box; }
.text-karte input.text-zeile { width: 100%; max-width: none; box-sizing: border-box; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.text-karte code { background: var(--soft); padding: 0 4px; border-radius: 3px; }
.vorschau-titel { margin: 26px 0 8px; font-size: 17px; }
.vorschau-titel .hilfe { font-weight: 400; font-size: 13px; }
#vorschau { max-width: 1040px; background: #fff; }
.wa-vorschau { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 12px; }
.wa-vorschau .wa-titel { font-size: 13px; color: var(--fg); margin-bottom: 6px; }
.wa-vorschau pre { white-space: pre-wrap; background: #e7f8e9; border-radius: 8px; padding: 10px 14px; font-family: inherit; font-size: 14px; line-height: 1.45; margin: 0; max-width: 600px; }

/* ---------- Senden-Dialog: E-Mail / WhatsApp umschalten ---------- */
.dlg .zinfo [hidden] { display: none !important; }
.dlg .zinfo-titel { flex-wrap: wrap; }
.dlg .zinfo-wahl { display: flex; gap: 10px; }
.dlg .zinfo-wahl button { min-width: 150px; padding: 9px 18px; font-size: 15px; font-weight: 500; border-radius: 6px; cursor: pointer; background: #fff; }
.dlg .zinfo-wahl button[data-weg=mail] { border: 1px solid var(--blue); color: var(--blue); }
.dlg .zinfo-wahl button[data-weg=wa] { border: 1px solid #1f8f3a; color: #1f8f3a; }
.dlg .zinfo-wahl button[data-weg=mail].aktiv { background: var(--blue); color: #fff; }
.dlg .zinfo-wahl button[data-weg=wa].aktiv { background: #1f8f3a; color: #fff; }
.dlg .zinfo-hinweis { flex: 1; text-align: center; font-weight: 400; color: var(--fg); font-size: 13px; }
.dlg .zinfo-wa textarea { width: 100%; box-sizing: border-box; height: 46vh; min-height: 260px; font-family: inherit; font-size: 15px; line-height: 1.45;
  border: 1px solid #1f8f3a; border-radius: 6px; padding: 10px 14px; background: #f3fbf4; resize: vertical; }
.dlg .zinfo-wa-bild { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--fg); }
.dlg .zinfo-wa-bild img { width: 110px; height: 110px; border: 1px solid var(--line); border-radius: 4px; }
.dlg .knoepfe .btn.primaer.wa { background: #1f8f3a; border-color: #1f8f3a; }
/* Spielauswahl: vergangene Spiele grau */
select option.vorbei { color: #9aa0a6; }

/* ---------- Ausdruck „Übersicht Bestellungen“ (A4 hochkant) ---------- */
.best-druck { background: #fff; color: #000; max-width: 820px; }
.best-druck .bd-kopf { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 4px 0 14px; }
.best-druck .bd-titel { display: flex; align-items: center; gap: 10px; }
.best-druck .bd-titel img { height: 46px; }
.best-druck .bd-titel b { display: block; font-size: 17px; }
.best-druck .bd-titel span { font-size: 11.5px; color: #444; }
.best-druck .bd-spiel { border: 1px solid #999; border-radius: 6px; padding: 6px 16px; font-size: 13px; line-height: 1.4; text-align: center; }
.best-druck .bd-paarung { font-weight: 700; font-size: 14.5px; }
.best-druck .bd-datum { text-align: right; font-size: 11.5px; color: #333; }
.best-druck .bd-tabelle { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 11.5px; }
.best-druck .bd-tabelle th, .best-druck .bd-tabelle td { border: 1px solid #b5b5b5; padding: 2px 5px; height: 20px; white-space: nowrap; }
.best-druck .bd-tabelle th { background: #dcebfa; text-align: left; font-weight: 600; }
.best-druck .bd-tabelle .m { text-align: center; }
.best-druck .bd-tabelle .r { text-align: right; }
.best-druck .bd-tabelle td.bd-mail { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.best-druck .bd-tabelle td.bd-ikon { padding: 0 3px; }
.best-druck .bd-tabelle td.bd-ikon .ikon { width: 13px; height: 13px; vertical-align: -2px; margin: 0 1px; }
.best-druck .bd-tabelle tbody tr:nth-child(even) td { background: #f6f8fa; }
.best-druck .bd-tabelle tfoot td { font-weight: 700; background: #eef2f6; border-top: 2px solid #000; }
@media print {
  .best-druck { max-width: none; }
  .best-druck .bd-tabelle { font-size: 10.5px; }
  .best-druck .bd-tabelle thead { display: table-header-group; }
  .best-druck .bd-tabelle tbody tr { break-inside: avoid; }
}

/* Spalte „Zahler“: Nr. der Person, die mitbezahlt; beim Zahler selbst grau „+Anzahl“ */
table.spieltag col.c-zahler { width: 38px; }   /* Platz für „+99“ */
input.zelle.zahler { text-align: right; padding-left: 2px; padding-right: 5px; font-variant-numeric: tabular-nums; color: #8e44ad; font-weight: 700; }
input.zelle.zahler.haupt::placeholder { color: #8e44ad; opacity: .75; font-weight: 700; }
@media print {
  table.spieltag col.c-zahler { width: 30px; }
  table.spieltag td.nr .web { margin-top: 3px; }
  input.zelle.zahler { color: #000; }
  input.zelle.zahler.haupt::placeholder { color: #000; opacity: 1; }
}
table.spieltag td.st-offen.ueber { color: #8e44ad; font-size: 12px; font-weight: 400; }   /* zahlt über eine andere Nr. */
