:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --clay: #c65b3c;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e2e6ea;
  --bg: #f6f8f7;
  --white: #fff;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

header.site {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  padding: 20px 24px;
}
header.site .wrap { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.site h1 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
header.site nav a { color: #d7f2d9; text-decoration: none; font-size: .9rem; margin-left: 16px; }
header.site nav a:hover { color: #fff; text-decoration: underline; }

main { max-width: 1080px; margin: 0 auto; padding: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 1.1rem; color: var(--green-dark); }
.card p.hint { color: var(--muted); font-size: .9rem; margin-top: -6px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
label .req { color: var(--clay); }
input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
textarea { resize: vertical; min-height: 60px; }
.field { margin-bottom: 16px; }
.field small { color: var(--muted); font-weight: 400; display: block; margin-top: 4px; }

button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--green-dark); }
button.secondary { background: #eef1f0; color: var(--ink); border: 1px solid var(--line); }
button.secondary:hover { background: #e2e6e4; }
button.danger { background: #fff; color: var(--clay); border: 1px solid var(--clay); }
button.danger:hover { background: #fdeee9; }
button.small { padding: 5px 10px; font-size: .82rem; }

/* Bestätigungs-Popup nach der Anmeldung */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto; z-index: 1000;
}
.modal {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 560px; width: 100%; padding: 24px; margin: auto;
}
.modal h2 { color: var(--green-dark); }
a.btnlink {
  display: inline-block; text-decoration: none; cursor: pointer;
  border-radius: 8px; padding: 10px 18px; font-weight: 600;
  background: var(--green); color: #fff; transition: background .15s;
}
a.btnlink:hover { background: var(--green-dark); }

/* Wochentags-Raster ------------------------------------------------------- */
.grid-wrap { overflow-x: auto; }
table.slotgrid { border-collapse: collapse; width: 100%; min-width: 560px; }
table.slotgrid th, table.slotgrid td { border: 1px solid var(--line); text-align: center; }
table.slotgrid th { background: var(--green-light); color: var(--green-dark); font-size: .82rem; padding: 8px 4px; }
table.slotgrid td.hourlabel { background: #fafbfb; color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; padding: 4px 8px; }
table.slotgrid td.slot { padding: 0; }
table.slotgrid td.slot button {
  width: 100%; height: 34px; border-radius: 0; background: #fff; color: transparent;
  border: none; font-size: .7rem;
}
table.slotgrid td.slot button:hover { background: #eef7ef; }
table.slotgrid td.slot button.on { background: var(--green); color: #fff; }
/* Kompaktes Wochenraster (Bestätigungs-Popup) */
table.slotgrid.mini { min-width: 0; }
table.slotgrid.mini td.slot { padding: 7px 0; text-align: center; font-weight: 700; color: var(--muted); }
table.slotgrid.mini td.slot.selon { background: var(--green); color: #fff; }

/* Plätze je Zeit (Admin) */
button.courtcell { background: #eef7ef; color: var(--green-dark); border: 1px solid var(--line); font-weight: 700; }
button.courtcell:hover { background: #e2efe2; filter: none; }
button.courtcell.c1 { background: #fbe9d2; color: #8a5a1e; border-color: #e7c99b; }
button.courtcell.c1:hover { background: #f6dcbb; }
button.courtcell.c0 { background: #fbe0da; color: #9a3a1e; border-color: #e7b3a3; text-decoration: line-through; }
button.courtcell.c0:hover { background: #f6cfc4; }
.gridtools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.gridtools .count { margin-left: auto; color: var(--muted); font-size: .85rem; }

/* Samstags-Zeiten als antippbare Kacheln (umbrechend, ohne Scrollen – v. a. mobil) */
.timechips { display: flex; flex-wrap: wrap; gap: 10px; }
.timechips button {
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 12px 18px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .12s, border-color .12s, color .12s; line-height: 1;
}
.timechips button:hover { background: var(--green-light); border-color: var(--green); }
.timechips button.on { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 560px) {
  .timechips { gap: 8px; }
  .timechips button { flex: 1 1 44%; text-align: center; padding: 14px 10px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { background: var(--green-light); color: var(--green-dark); border-radius: 999px; padding: 4px 10px 4px 12px; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.chip button { background: none; color: var(--green-dark); padding: 0; font-size: 1rem; line-height: 1; }
.chip button:hover { background: none; color: var(--clay); }

.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.msg.ok { background: var(--green-light); color: var(--green-dark); }
.msg.err { background: #fdecea; color: #b3261e; }

/* Tabellen (Admin) -------------------------------------------------------- */
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.data tr:hover td { background: #fafbfb; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge.green { background: var(--green-light); color: var(--green-dark); }
.badge.red { background: #fdecea; color: #b3261e; }
.badge.gray { background: #eef1f0; color: var(--muted); }
.badge.amber { background: #fff3e0; color: #b45309; }
.badge.blue { background: #e7f0fb; color: #1d5fbf; }
.change-banner { background: #fff8ec; border: 1px solid #f3d19e; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
button.linklike { background: none; border: none; color: var(--green-dark); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.linklike:hover { background: none; color: var(--clay); }

/* Partner-Logo-Carousel */
.sponsor-carousel { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: nowrap; margin-top: 10px; }
.sponsor-logo { flex: 1 1 0; min-width: 0; max-width: 340px; display: flex; align-items: center; justify-content: center; padding: 6px; animation: sponsorIn .5s ease; }
.sponsor-logo img { max-width: 100%; max-height: 150px; object-fit: contain; }
@keyframes sponsorIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .sponsor-carousel { gap: 12px; }
  .sponsor-logo { padding: 4px; }
  .sponsor-logo img { max-height: 170px; }
}

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: none; color: var(--muted); border-radius: 8px 8px 0 0; padding: 10px 16px; font-weight: 600; }
.tabs button.active { color: var(--green-dark); border-bottom: 2px solid var(--green); margin-bottom: -2px; }
.tabs button:hover { background: #f0f4f1; }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.stat { background: var(--green-light); border-radius: 10px; padding: 12px 18px; min-width: 120px; }
.stat .num { font-size: 1.6rem; font-weight: 700; color: var(--green-dark); }
.stat .lbl { font-size: .8rem; color: var(--muted); }

.group-card { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.group-card.primary { border-left-color: var(--green); }
.group-card.overflow { border-left-color: #e0a800; background: #fff9e6; }
.group-card.crossclass { border-left-color: #b8860b; border-left-style: dashed; }
.group-card .altbadge { display: inline-block; background: #e0a800; color: #fff; font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.legenddot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 2px 0 6px; vertical-align: middle; }
.legenddot.green { background: var(--green); }
.legenddot.orange { background: #e0a800; }
/* Ziehbare Spieler-Chips in der Vorschau (Wochenansicht der Vorschläge) */
.group-card .pchip {
  display: inline-block; margin: 2px 3px 0 0; padding: 2px 7px; font-size: .82rem;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; cursor: grab; user-select: none;
}
.group-card.overflow .pchip { background: #fffdf5; }
.group-card .pchip:active { cursor: grabbing; }
.group-card .pchip.dragging { opacity: .4; }
.group-card .pchip.mustchip { border-color: var(--clay); background: #fdeeee; }
.suggestpool .pchip {
  display: inline-block; margin: 0; padding: 2px 7px; font-size: .82rem;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; cursor: grab; user-select: none;
}
.suggestpool .pchip:active { cursor: grabbing; }
.suggestpool .pchip.dragging { opacity: .4; }
.suggestpool .pchip.mustchip { border-color: var(--clay); background: #fdeeee; }
.group-card ul.grouplist { position: relative; }
.group-card ul.grouplist svg.wisharrows { z-index: 1; }
/* Dubletten-Zusammenführung: je Feld A/B anklickbar */
td.dupcell { cursor: pointer; }
td.dupcell:hover { background: #f0f6ff; }
td.dupcell.chosen { background: #eef7ef; box-shadow: inset 0 0 0 2px var(--green); font-weight: 600; }
.dupboth { color: var(--muted); }
.dupboth.chosen { background: #eef7ef; border-color: var(--green) !important; color: var(--green-dark, #2e7d32); font-weight: 600; }
/* Namens-Autovervollständigung (Wunschgruppe) */
.namesuggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 240px; overflow: auto; margin-top: 2px;
}
.namesuggest .nsug-item { padding: 7px 10px; cursor: pointer; font-size: .9rem; }
.namesuggest .nsug-item:hover, .namesuggest .nsug-item.active { background: var(--green-light); }
/* Vorgeschlagene gemeinsame Zeiten (feste Gruppen) */
button.fgtime.fgtime-full { border-color: var(--green); color: var(--green-dark); }
button.fgtime.chosen { background: var(--green); color: #fff; border-color: var(--green); }
.group-card h4 { margin: 0 0 8px; font-size: .98rem; color: var(--green-dark); }
.group-card .meta { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.group-card ul { margin: 0; padding-left: 18px; }
.group-card li { font-size: .9rem; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px; }

/* --- Wochenplan (Drag & Drop) -------------------------------------------- */
.pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.pcard {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 8px; padding: 6px 9px; font-size: .85rem; cursor: grab; user-select: none;
}
.pcard:active { cursor: grabbing; }
.pcard.dragging { opacity: .4; }
.pcard .ptype { font-size: .7rem; color: var(--muted); }
.pcard .pwarn { color: #fff; background: var(--clay, #c05a2a); font-weight: 700; font-size: .68rem; cursor: pointer; border-radius: 6px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
.pcard .premove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; }
.pcard .ppin { background: none; border: none; cursor: pointer; font-size: .85rem; line-height: 1; padding: 0; filter: grayscale(1); opacity: .5; }
.pcard .ppin.on { filter: none; opacity: 1; }
.pcard.pinned { box-shadow: inset 0 0 0 2px #1e88e5; }
.pcard .premove:hover { color: var(--clay); }
.pcard .pmkgroup { background: none; border: none; cursor: pointer; font-size: .82rem; line-height: 1; padding: 0; filter: grayscale(1); opacity: .5; }
.pcard .pmkgroup:hover { filter: none; opacity: 1; }
.pcard.lvl1 { border-left-color: #7cb342; }
.pcard.lvl2 { border-left-color: var(--green); }
.pcard.lvl3 { border-left-color: var(--green-dark); }
.pcard.adult { background: #eef4fd; } /* Erwachsene im Wochenplan hervorheben */
.pcard.selected { box-shadow: inset 0 0 0 2px var(--green-dark); background: #cdeccf; } /* ganze Karte grün markiert */
.pcard.musthighlight { box-shadow: inset 0 0 0 2px #e53935; background: #fdecea; } /* Muss-Partner rot markiert */
.pcard.fixedmember { background: #e7f6e9; border-left-color: var(--green-dark); box-shadow: inset 0 0 0 1px #bfe3c4; } /* bereits einer festen Gruppe zugeordnet */
.pcard.fixedelsewhere { background: #fff6e9; border-left-color: #e0820a; box-shadow: inset 0 0 0 1px #f3d19a; } /* im Plan, obwohl fester Gruppe mit Uhrzeit zugeordnet */
.pcard.fixedelsewhere > span:first-child { color: #c26a00; font-weight: 600; }

table.planboard { border-collapse: collapse; width: 100%; min-width: 640px; }
table.planboard th, table.planboard td { border: 1px solid var(--line); vertical-align: top; }
table.planboard th { background: var(--green-light); color: var(--green-dark); font-size: .82rem; padding: 8px 4px; text-align: center; }
table.planboard td.hourlabel { background: #fafbfb; color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; padding: 6px 8px; text-align: center; }
table.planboard td.plancell { padding: 5px; min-width: 120px; height: 46px; transition: background .1s, box-shadow .1s; }
table.planboard td.plancell .cellcards { display: flex; flex-direction: column; gap: 5px; }
table.planboard td.plancell.avail { background: #eef7ef; box-shadow: inset 0 0 0 2px var(--green); }
table.planboard td.plancell.over { background: #dcecdd; box-shadow: inset 0 0 0 2px var(--green-dark); }
.pool.over { outline: 2px dashed var(--clay); outline-offset: 4px; border-radius: 8px; }

/* Feste Gruppe mit zugewiesener Uhrzeit: belegt den Platz (Reservierung). */
.fixedblock {
  background: #eef4fd; border: 1px solid #b9d0f2; border-left: 3px solid #4a7fd0;
  border-radius: 8px; padding: 5px 8px; font-size: .82rem;
}
.fixedblock .fixedblock-title { font-weight: 700; color: #2f5aa0; display: flex; align-items: center; gap: 6px; }
.fixedblock .mailbadge { position: relative; display: inline-flex; align-items: center; font-size: .95rem; line-height: 1; }
.fixedblock .mailbadge .chk { position: absolute; right: -5px; bottom: -4px; font-size: .62rem; font-weight: 900; -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill; }
.fixedblock .mailbadge.green .chk { color: #1a9e3e; }
.fixedblock .mailbadge.orange .chk { color: #e8810c; }
.fixedblock .mailbadge.none .chk { color: #d62828; }
.fixedblock .mailbadge.clickable { cursor: pointer; }
.fixedblock .mailbadge.clickable:hover { filter: brightness(1.05); transform: scale(1.08); }
/* Rahmen um die ganze Gruppe je Mail-Status (Plan gesendet / seit Versand geändert) */
.fixedblock.mail-green { border: 2px solid #1a9e3e !important; box-shadow: 0 0 0 1px rgba(26,158,62,.18); }
.fixedblock.mail-orange { border: 2px solid #e8810c !important; box-shadow: 0 0 0 1px rgba(232,129,12,.18); }
/* Hervorhebung der Gruppen-Chips beim Klick auf eine Uhrzeit im Versand */
button.grp-hl { background: #e7f6ec !important; border: 1.5px solid #1a9e3e !important; color: #176b31 !important; font-weight: 700; box-shadow: 0 0 0 2px rgba(26,158,62,.15); }
/* Platz-Abos (Selbstspieler ohne Training) im Wochenplan und in der Plätze-Tabelle */
.cellsubs { display: flex; flex-direction: column; gap: 1px; margin-bottom: 2px; }
.cellsub { font-size: .62rem; line-height: 1.2; color: #8a5a1a; background: rgba(240,192,96,.18); border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.courtsub-wrap { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; align-items: stretch; }
.courtsub { font-size: .66rem; color: #8a5a1a; background: rgba(240,192,96,.2); border-radius: 4px; padding: 1px 4px; display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; }
.courtsub-del { border: 0; background: none; color: #c62828; cursor: pointer; font-weight: 700; padding: 0 2px; line-height: 1; }
.courtsub-add { border: 1px dashed #c9a24a; background: none; color: #8a5a1a; border-radius: 4px; font-size: .62rem; cursor: pointer; padding: 1px 4px; }
.courtsub-add:hover { background: rgba(240,192,96,.18); }
.fixedblock .fixedblock-edit { margin-left: auto; border: 0; background: rgba(0,0,0,.08); color: inherit; border-radius: 6px; cursor: pointer; font-size: .8rem; line-height: 1; padding: 2px 6px; }
.fixedblock .fixedblock-edit:hover { background: rgba(0,0,0,.18); }
.fixedblock .fixedblock-del,
.fixedblock .fixedblock-ghost,
.fixedblock .fixedblock-note-btn,
.fixedblock .fixedblock-trainer-btn { border: 0; background: rgba(0,0,0,.08); color: inherit; border-radius: 6px; cursor: pointer; font-size: .8rem; line-height: 1; padding: 2px 6px; }
.fixedblock .fixedblock-del:hover { background: #f8d7d7; color: #a12020; }
.fixedblock .fixedblock-ghost:hover,
.fixedblock .fixedblock-note-btn:hover,
.fixedblock .fixedblock-trainer-btn:hover { background: rgba(0,0,0,.18); }
.fixedblock .fixedblock-ghost.on { background: rgba(240,192,96,.4); } /* Verteilungs-Test aktiv */
.fixedblock .fixedblock-trainer-btn.on { background: rgba(47,90,160,.22); } /* Trainer zugeordnet */
.fixedblock .fixedblock-members { color: var(--muted); font-size: .78rem; margin-top: 1px; }
.fixedblock.droptarget, .group-card.droptarget { outline: 2px dashed var(--green, #2e7d32); outline-offset: 1px; background: #eafaef; }
.fixedblock.multi:not(.colored) { border-left-color: #7e57c2; background: #f3e5f5; } /* mehrere feste Zeiten */
.fixedblock.colored .fixedblock-title, .fixedblock.colored .fixedblock-members { color: #1c1c1c; }

/* --- Nachfrage-Vorschläge ------------------------------------------------ */
.ask-item {
  border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; background: #fff;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.ask-item .asktext { flex: 1; min-width: 240px; font-size: .9rem; }
.ask-item .asktext strong { color: var(--green-dark); }
.ask-item .asktime { color: var(--clay); font-weight: 600; }

/* --- Empfohlene Zeitfenster (Kalender-Vorschläge) ------------------------ */
table.slotgrid td.slot button.reco { box-shadow: inset 0 0 0 2px var(--clay); }
table.slotgrid td.slot button.reco::after { content: "★"; color: var(--clay); font-size: .7rem; }
table.slotgrid td.slot button.reco.on::after { color: #fff; }
.reco-banner { background: #fbe9e2; color: #9a3a1e; border: 1px solid #e7b7a3; border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; font-size: .9rem; }
.reco-banner strong { color: #9a3a1e; }

/* Buchbare Zusatzangebote (Anmeldeseite + Spielerseite) */
.checkline { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #e2e2e2); border-radius: 10px; margin: 8px 0; cursor: pointer; background: #fff; }
.checkline input[type="checkbox"] { width: auto; margin-top: 3px; flex: 0 0 auto; }
.checkline span { line-height: 1.35; }

/* Zusatzangebote – Karten mit Bild, Titel, Beschreibung, Verfügbarkeits-Badge */
.offer-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border: 1px solid var(--line, #e2e6ea); border-radius: 12px; margin: 10px 0; cursor: pointer; background: #fff; transition: box-shadow .15s, border-color .15s; }
.offer-item:hover { border-color: var(--green, #2e7d32); box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.06)); }
.offer-item input[type="checkbox"] { width: auto; flex: 0 0 auto; margin-top: 4px; transform: scale(1.15); accent-color: var(--green, #2e7d32); }
.offer-item.soldout { opacity: .6; cursor: not-allowed; background: #fafafa; }
.offer-thumb { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #f2f4f3; border: 1px solid var(--line, #e2e6ea); }
.offer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-body { flex: 1 1 auto; min-width: 0; }
.offer-title { font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-desc { color: var(--muted, #6b7280); font-size: .9rem; margin-top: 4px; line-height: 1.4; }
.offer-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.offer-badge.low { background: #fff3e0; color: #b45309; border: 1px solid #f3d19e; }
.offer-badge.out { background: #fbe4e4; color: #b3261e; border: 1px solid #f0b4b4; }
/* Aufzählungspunkte in Angebots-Beschreibungen */
.offer-desc-list { margin: 4px 0; padding-left: 20px; }
.offer-desc-list li { margin: 2px 0; }
.offer-desc > div { margin: 2px 0; }

/* Partner-Empfehlungsfeld auf der Anmeldeseite */
.partner-reco-images { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.partner-reco-img { display: inline-block; position: relative; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; width: auto; }
.partner-reco-img img { max-width: 100%; max-height: 190px; width: auto; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); display: block; }
.partner-reco-zoom { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.2; padding: 3px 8px; border-radius: 999px; pointer-events: none; }

/* Bild-Vollansicht (Lightbox) */
.img-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.img-lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.img-lightbox-close { position: absolute; top: 14px; right: 18px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.img-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Buchungs-Zusammenfassung im Angebote-Tab */
.offer-summary { background: #f4fbf6; border: 1px solid #cfe9d8; border-radius: 12px; padding: 10px 16px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.offer-summary-list { color: #4b6b57; font-size: .9rem; }

/* Anmeldungs-Statistik über den Tabs */
.stats-bar { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.stats-bar .stat { flex: 1 1 160px; min-width: 140px; background: #f4fbf6; border: 1px solid #cfe9d8; border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column; }
.stats-bar .stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1.1; color: #1e7d34; }
.stats-bar .stat-label { font-size: .8rem; font-weight: 600; color: #4b6b57; margin-top: 2px; }

.offer-badge.booked { background: #e6f4ea; color: #1e7d34; border: 1px solid #b7e0c3; }
.offer-item.booked { border-color: #b7e0c3; background: #f4fbf6; }
.offer-item.booked input[type="checkbox"] { cursor: not-allowed; }

/* Platz-Kapazität je Zelle im Wochenplan-Board */
.plancell { position: relative; }
.cellcap { font-size: .68rem; font-weight: 600; margin: 0 0 4px; padding: 1px 6px; border-radius: 999px; display: inline-block; }
.cellcap.cap2 { background: #e6f4ea; color: #1e7d34; }
.cellcap.cap1 { background: #eee; color: #555; }
.cellcap.cap0 { background: #fbe4e4; color: #b3261e; }
.plancell.cap-over { box-shadow: inset 0 0 0 2px #e0a800; background: #fff9e6; }
.plancell.cap-locked { box-shadow: inset 0 0 0 2px #e57373; background: #fff2f2; }
.plancell.cap-fit { background: #f0f9f1; } /* Gruppe passt in die Plätze → bester Plan (grün) */

/* Logo oben auf der Anmeldeseite */
.logo-banner { text-align: center; margin: 18px 0 6px; }
.logo-banner img { max-width: 360px; width: 70%; height: auto; }
@media (max-width: 560px) { .logo-banner img { width: 82%; } }

/* ---- Stundendokumentation ---- */
#tab-hours .htabs { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
#tab-hours .htab { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e2e2); color: var(--muted, #666); font-size: .85rem; cursor: pointer; }
#tab-hours .htab.on { background: var(--green, #2e7d32); border-color: var(--green, #2e7d32); color: #fff; font-weight: 600; }
#tab-hours .hcal-wrap { overflow-x: auto; padding-bottom: 8px; }
#tab-hours .hcal { display: grid; grid-template-columns: 52px repeat(7, minmax(120px, 1fr)); gap: 1px; background: var(--line, #e2e2e2); border: 1px solid var(--line, #e2e2e2); border-radius: 10px; overflow: hidden; min-width: 760px; }
#tab-hours .hcal .hc { background: #fff; padding: 4px; }
#tab-hours .hcal .hc-head { background: #f4f7f4; font-weight: 700; font-size: 12px; text-align: center; padding: 6px 4px; }
#tab-hours .hcal .hc-head.today { color: var(--green, #2e7d32); }
#tab-hours .hcal .hc-time { background: #f4f7f4; font-size: 11px; color: var(--muted, #666); text-align: right; padding: 4px 6px; }
#tab-hours .hcal .hc-slot { min-height: 42px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
#tab-hours .hcal .hc-slot:hover { background: #f4f7f4; }
#tab-hours .lchip { background: #eef4fd; border: 1px solid #90b4e8; border-radius: 6px; padding: 2px 5px; font-size: 11px; line-height: 1.25; cursor: pointer; color: #1c1c1c; overflow: hidden; text-overflow: ellipsis; }
#tab-hours .lchip.allpaid { background: #e7f6e9; border-color: #2e7d32; }
#tab-hours .lchip.unpaid { background: #fff3e0; border-color: #e0820a; }
#tab-hours .prow { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line, #e2e2e2); border-radius: 10px; background: #fff; margin-bottom: 6px; }
#tab-hours .paychip { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line, #e2e2e2); white-space: nowrap; }
#tab-hours .paychip.open { background: #fff3e0; border-color: #e0820a; color: #b45309; }
.hd-part-row { display: grid; grid-template-columns: 1fr 1fr 72px 1fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.hd-part-row input, .hd-part-row select { min-height: 38px; }
@media (max-width: 560px) { .hd-part-row { grid-template-columns: 1fr 1fr; } }

/* ---- Vorgemerkte Trainingsinhalte (Stundendoku ↔ Individualcoaching) ---- */
.planchip { display: inline-block; font-size: .82rem; background: #fff; border: 1px solid var(--line, #e2e2e2); border-radius: 999px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.planchip a { color: #b45309; text-decoration: none; font-weight: 700; margin-left: 2px; }

/* ---- Rechte / Nur-Ansicht ---- */
.ro-banner { background: #fff3e0; border: 1px solid #e0820a; color: #b45309; padding: 8px 12px; border-radius: 8px; margin: 0 0 12px; font-size: .9rem; }
#tab-hours .paychip.ok { background: #e7f6e9; border-color: #2e7d32; color: #2e7d32; }

/* ---- Warteliste (nutzt die Htab-/Prow-Optik der Stundendoku) ---- */
#tab-waitlist .htabs { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
#tab-waitlist .htab { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e2e2); color: var(--muted, #666); font-size: .85rem; cursor: pointer; }
#tab-waitlist .htab.on { background: var(--green, #2e7d32); border-color: var(--green, #2e7d32); color: #fff; font-weight: 600; }
#tab-waitlist .prow { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line, #e2e2e2); border-radius: 10px; background: #fff; margin-bottom: 6px; }

/* ---- Leihschläger ---- */
#tab-rentals .htabs { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
#tab-rentals .htab { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e2e2); color: var(--muted, #666); font-size: .85rem; cursor: pointer; }
#tab-rentals .htab.on { background: var(--green, #2e7d32); border-color: var(--green, #2e7d32); color: #fff; font-weight: 600; }

/* ---- Schnupper-Spieler kennzeichnen ---- */
.pcard.trialcard { border-left-width: 4px; border-left-style: dashed; }

/* ---- Besaitung ---- */
#tab-stringing .prow { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line, #e2e2e2); border-radius: 10px; background: #fff; margin-bottom: 6px; }
