/* JKL Aushang-Spiegel – Bordeaux und Gold, mobil zuerst */
:root { --bordeaux:#7a1f1f; --gold:#d4a017; --gold-hell:#fbf6e6; --tinte:#1b2333; --grau:#4a5468; --rand:#d5dae5; --flaeche:#f2f4f8; --gruen:#1d7a4f; --rot:#b52a2a; }
* { box-sizing:border-box; }
body { margin:0; font-family:'Segoe UI',Arial,sans-serif; color:var(--tinte); background:var(--flaeche); line-height:1.5; }
a { color:#1f3a6b; }
.kopf { background:var(--bordeaux); color:#fff; border-bottom:3px solid var(--gold); }
.kopf-in { max-width:880px; margin:0 auto; padding:14px 16px; display:flex; gap:14px; align-items:center; }
.marke { background:#111; color:var(--gold); font-weight:800; letter-spacing:.08em; padding:8px 12px; border-radius:6px; }
.kopf h1 { margin:0; font-size:20px; line-height:1.25; }
.unter { font-size:13px; opacity:.85; }
.inhalt { max-width:880px; margin:0 auto; padding:16px; }
.werkzeuge { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.werkzeuge input { flex:1 1 220px; padding:12px 14px; font-size:16px; border:1px solid var(--rand); border-radius:8px; background:#fff; }
.knopf { display:inline-block; padding:12px 18px; border-radius:8px; border:1px solid var(--rand); background:#fff; color:var(--tinte); font-size:15px; font-weight:600; text-decoration:none; cursor:pointer; font-family:inherit; }
.knopf:hover { border-color:var(--bordeaux); }
.knopf-gold { background:var(--gold); border-color:var(--gold); color:#1b2333; }
.knopf-gold:hover { background:#e0b030; }
.knopf-rot { color:var(--rot); border-color:#f0c6c6; }
.knopf-klein { padding:6px 12px; font-size:13px; }
.karte { background:#fff; border:1px solid var(--rand); border-radius:10px; padding:16px; margin-bottom:12px; }
.listen { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; }
.listen .liste { margin:0; display:flex; flex-direction:column; gap:4px; text-decoration:none; color:var(--tinte); min-height:78px; justify-content:center; }
.listen .liste:hover, .listen .liste:focus { border-color:var(--gold); box-shadow:0 2px 10px rgba(122,31,31,.12); }
.liste-titel { font-weight:700; font-size:16px; }
.liste-pdf { font-size:13px; color:var(--grau); }
.leer { text-align:center; color:var(--grau); }
.leer h2 { color:var(--bordeaux); margin:4px 0 8px; font-size:18px; }
.keine { color:var(--grau); grid-column:1/-1; text-align:center; }
.stand { font-size:12px; color:var(--grau); text-align:center; margin-top:18px; }
.fuss { text-align:center; font-size:12px; color:var(--grau); padding:20px 16px 28px; }
[hidden] { display:none !important; }

/* Verwaltung */
.verw .inhalt { max-width:980px; }
.verw h2 { color:var(--bordeaux); font-size:18px; margin:6px 0 12px; border-bottom:1px solid #e3d3a8; padding-bottom:4px; }
.verw table { width:100%; border-collapse:collapse; font-size:14px; }
.verw th { text-align:left; background:#e8edf6; padding:8px 10px; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--grau); }
.verw td { padding:9px 10px; border-bottom:1px solid var(--rand); vertical-align:top; }
.verw input[type=text], .verw input[type=password], .verw input[type=file] { padding:9px 11px; border:1px solid var(--rand); border-radius:6px; font-size:14px; width:100%; max-width:380px; font-family:inherit; }
.verw label { display:block; font-weight:600; font-size:13px; margin:10px 0 4px; }
.meldung { padding:10px 14px; border-radius:8px; margin-bottom:12px; font-size:14px; }
.meldung.ok { background:#e8f5ef; color:var(--gruen); border:1px solid #bfe3d0; }
.meldung.fehler { background:#fdeaea; color:var(--rot); border:1px solid #f0c6c6; }
.meldung.info { background:var(--gold-hell); border:1px solid #e8c97a; }
.nav { display:flex; gap:6px; margin:0 0 14px; flex-wrap:wrap; }
.nav a { padding:8px 14px; border-radius:8px; text-decoration:none; color:var(--grau); background:#fff; border:1px solid var(--rand); font-size:14px; font-weight:600; }
.nav a.aktiv { background:var(--gold-hell); border-color:var(--gold); color:var(--tinte); }
code, .mono { font-family:Consolas,monospace; background:#eef1f6; padding:1px 5px; border-radius:4px; font-size:13px; word-break:break-all; }
.schluessel { font-size:15px; padding:10px 12px; display:block; margin:6px 0; }
.klein { font-size:12px; color:var(--grau); }
.zeile { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.plakette { display:inline-block; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:600; }
.plakette.gruen { background:#e8f5ef; color:var(--gruen); }
.plakette.grau { background:#eef1f6; color:var(--grau); }
@media (max-width:640px) { .verw table, .verw thead, .verw tbody, .verw tr, .verw td, .verw th { display:block; } .verw thead { display:none; } .verw tr { border-bottom:2px solid var(--rand); padding:6px 0; } .verw td { border:0; padding:3px 6px; } }

/* ── Anzeige mit Filtern ───────────────────────────────────────────────────────────────────────────────────
   Handy (Standard): Filter oben. Tablet (ab 600 px) und PC (ab 1024 px): Filter als Spalte links. */
.layout { display: block; }
.filterleiste { background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.filtergruppe { margin-bottom: 10px; }
.filtergruppe:last-child { margin-bottom: 0; }
.filtertitel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bordeaux); margin: 0 0 6px 2px; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
#chipsGeschlecht { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 2px solid var(--rand); border-radius: 10px; background: #fff;
        color: var(--tinte); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.1; cursor: pointer; box-shadow: 0 1px 2px rgba(27,35,51,.06); }
.chip:hover { border-color: var(--bordeaux); background: var(--gold-hell); }
.chip.aktiv { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; box-shadow: 0 2px 6px rgba(122,31,31,.3); }
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.werkzeuge { margin-bottom: 8px; }
.anzeige .werkzeuge input[type=search] { min-height: 46px; font-size: 16px; padding: 8px 14px; border-radius: 10px; }
.anzeige .werkzeuge .knopf { min-height: 46px; font-size: 15px; padding: 8px 18px; border-radius: 10px; }
.gruppe { margin: 0 0 14px; }
.gruppe h2 { margin: 12px 0 8px; font-size: 18px; color: var(--bordeaux); border-bottom: 1px solid #e3d3a8; padding-bottom: 4px; }
/* Handy: zwei Kacheln nebeneinander */
.listen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.listen .liste { min-height: 68px; padding: 12px; align-items: flex-start; }
.listen .liste-titel { font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.anzeige .kopf h1 { font-size: 18px; }

/* Tablet und PC: Filter links, Listen rechts */
@media (min-width: 600px) {
  .inhalt { max-width: 1240px; padding: 20px; }
  .anzeige .kopf h1 { font-size: 22px; }
  .layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
  .filterleiste { position: sticky; top: 14px; margin: 0; padding: 14px; }
  .chips, #chipsGeschlecht { display: flex; flex-direction: column; gap: 7px; }
  .chip { width: 100%; min-height: 44px; font-size: 16px; justify-content: flex-start; padding: 8px 14px; }
  .listen { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .listen .liste { min-height: 78px; padding: 13px; }
  .listen .liste-titel { font-size: 22px; }
  .gruppe h2 { font-size: 19px; }
}
@media (min-width: 1024px) {
  .inhalt { padding: 26px 32px; }
  .anzeige .kopf h1 { font-size: 26px; }
  .anzeige .kopf-in { max-width: 1240px; padding: 16px 32px; }
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; }
  .chip { min-height: 42px; font-size: 16px; }
  .listen { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .listen .liste { min-height: 90px; padding: 15px; }
  .listen .liste-titel { font-size: 24px; }
  .gruppe h2 { font-size: 21px; margin-top: 18px; }
  .werkzeuge input[type=search] { max-width: 420px; }
}
/* Querformat auf kleinen Geräten: Filter nicht festkleben */
@media (max-height: 480px) and (orientation: landscape) { .filterleiste { position: static; } }
/* Touch-Geräte: Tippflächen nicht kleiner als 44 px */
@media (pointer: coarse) { .chip { min-height: 44px; } }

/* Rückweg zur Turnierübersicht */
.zurueck { margin-left: auto; flex: 0 0 auto; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px;
           padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.zurueck:hover, .zurueck:focus { background: rgba(255,255,255,.14); }
@media (min-width: 600px) { .zurueck { font-size: 15px; } }

/* Turnierauswahl: große Kacheln, lange Namen werden umgebrochen */
.wahl-titel { font-size: 20px; color: var(--bordeaux); margin: 4px 0 14px; }
.turnierwahl { display: grid; grid-template-columns: 1fr; gap: 12px; }
.turnier { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 96px; padding: 18px 52px 18px 20px; background: #fff;
           border: 2px solid var(--rand); border-left: 6px solid var(--gold); border-radius: 12px; color: var(--tinte); text-decoration: none;
           box-shadow: 0 1px 3px rgba(27,35,51,.08); }
.turnier:hover, .turnier:focus-visible { border-color: var(--bordeaux); background: var(--gold-hell); outline: none; }
.turnier-name { font-size: 21px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.turnier-datum { font-size: 15px; color: var(--grau); }
.turnier-weiter { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 34px; color: var(--bordeaux); line-height: 1; }
.liste-titel { overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .wahl-titel { font-size: 24px; margin-bottom: 18px; }
  .turnierwahl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .turnier { min-height: 120px; padding: 22px 60px 22px 24px; }
  .turnier-name { font-size: 24px; }
  .turnier-datum { font-size: 17px; }
}
@media (min-width: 1024px) { .turnier-name { font-size: 26px; } .turnier { min-height: 132px; } }

/* Namenssuche: Treffer über den Gruppen */
.namentreffer { background: var(--gold-hell); border: 2px solid var(--gold); border-radius: 12px; padding: 4px 14px 14px; margin: 0 0 18px; }
.namentreffer h2 { font-size: 18px; color: var(--bordeaux); margin: 12px 0 10px; }
.namentreffer .keine { margin: 4px 0 0; text-align: left; color: var(--tinte); font-size: 16px; }
