/* Seiten mit PHP (Admin, Team, Flyer). Farben und Schriften wie im Entwurf. */
body{color:#F4F1E8;font-family:Barlow,system-ui,sans-serif;font-size:18px;line-height:1.5}
.rahmen{min-height:100vh;display:flex;flex-direction:column}
.kopf{width:100%;max-width:1160px;margin:0 auto;padding:16px 20px;box-sizing:border-box;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between}
.logo{text-decoration:none;display:inline-flex;align-items:baseline;gap:8px}
.logo-q{font-family:Anton,sans-serif;font-size:26px;color:#F4F1E8;letter-spacing:1px}
.logo-m{font-family:'Permanent Marker',cursive;font-size:20px;color:#FFD21F}
.logo-admin{font-weight:700;font-size:14px;background:#45C4FF;color:#0E0E10;border-radius:6px;padding:2px 8px;margin-left:6px}
.nav{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center}
.nav a,.link-knopf{color:#F4F1E8;text-decoration:none;font-weight:600;padding:10px 0;background:none;border:0;font:inherit;font-weight:600;cursor:pointer}
.nav a:hover,.link-knopf:hover{color:#FFD21F}
.inline{display:inline}
.inhalt{flex:1;width:100%;max-width:1160px;margin:0 auto;padding:8px 20px 64px;box-sizing:border-box}
h1{font-family:Anton,sans-serif;font-weight:400;font-size:clamp(40px,7vw,72px);line-height:1;letter-spacing:1px;margin:12px 0 24px}
h2{font-family:Anton,sans-serif;font-weight:400;font-size:30px;letter-spacing:1px;margin:36px 0 14px;color:#FFD21F}
h3{font-size:20px;margin:0 0 8px}
p{margin:0 0 14px}
.gedaempft{color:#B9B6AD}
.klein{font-size:15px}
.karte{background:#18181C;border:1px solid #2A2A30;border-radius:10px;padding:20px;margin:0 0 16px}
.karten{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.gelb-kasten{background:#FFD21F;color:#0E0E10;border-radius:10px;padding:22px;transform:rotate(-1deg)}
.gelb-kasten a{color:#0E0E10}
.marker{font-family:'Permanent Marker',cursive}
.zahl{font-family:Anton,sans-serif}
/* Formulare */
.formular{display:grid;gap:14px;max-width:560px}
.formular label{display:grid;gap:6px;font-weight:600}
.formular .hinweis{font-weight:400;color:#B9B6AD;font-size:15px}
input[type=text],input[type=email],input[type=password],input[type=tel],input[type=date],input[type=time],input[type=number],select,textarea{font:inherit;color:#F4F1E8;background:#0E0E10;border:2px solid #5A5A63;border-radius:8px;padding:11px 12px;min-height:48px;box-sizing:border-box;width:100%}
textarea{min-height:110px}
input:focus,select:focus,textarea:focus{border-color:#45C4FF;outline:none}
input[type=file]{font:inherit;color:#D8D5CC}
.haken{display:flex !important;grid-template-columns:none;gap:10px;align-items:flex-start;font-weight:400 !important}
.haken input{width:22px;height:22px;margin-top:3px;flex:0 0 auto}
.honig{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* Knöpfe: auf farbigen Flächen immer dunkler Text */
.knopf{display:inline-block;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;border:0;border-radius:8px;padding:12px 20px;min-height:48px;box-sizing:border-box;background:#FFD21F;color:#0E0E10;text-align:center}
.knopf:hover{filter:brightness(1.08);color:#0E0E10}
.knopf-pink{background:#FF4F93}
.knopf-cyan{background:#45C4FF}
.knopf-gruen{background:#5BD66B}
.knopf-rand{background:transparent;color:#F4F1E8;border:2px solid #5A5A63}
.knopf-rand:hover{color:#FFD21F;border-color:#FFD21F}
.knopf-klein{padding:8px 14px;min-height:40px;font-size:16px}
.knopf-gefahr{background:transparent;color:#FF8A3D;border:2px solid #FF8A3D}
.knopf-gefahr:hover{color:#0E0E10;background:#FF8A3D}
.knopfreihe{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
/* Meldungen */
.meldung{border-radius:8px;padding:12px 16px;margin:0 0 16px;font-weight:600;color:#0E0E10}
.meldung ul{margin:0;padding-left:20px}
.meldung-ok{background:#5BD66B}
.meldung-fehler{background:#FF8A3D}
.meldung-info{background:#45C4FF}
/* Tabellen */
.tabelle-wrap{overflow-x:auto}
table.tabelle{width:100%;border-collapse:collapse;font-size:17px}
.tabelle th{text-align:left;color:#B9B6AD;font-weight:600;font-size:15px;border-bottom:2px solid #2A2A30;padding:8px 10px}
.tabelle td{border-bottom:1px solid #2A2A30;padding:10px;vertical-align:middle}
.tabelle .rechts{text-align:right}
.etikett{display:inline-block;font-size:14px;font-weight:700;border-radius:6px;padding:2px 8px;color:#0E0E10;background:#B9B6AD;white-space:nowrap}
.etikett-angemeldet,.etikett-frei{background:#5BD66B}
.etikett-warteliste,.etikett-offen{background:#FFD21F}
.etikett-abgemeldet,.etikett-gesperrt{background:#5A5A63;color:#F4F1E8}
/* Flyer */
.flyer-bild{display:block;width:100%;max-width:520px;height:auto;border-radius:10px;border:1px solid #2A2A30}
.termin{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.termin-text{flex:1 1 300px;min-width:0}
.termin-datum{font-family:Anton,sans-serif;font-size:40px;line-height:1.05;color:#FFD21F}
/* Fuß */
.fuss{background:#18181C;border-top:1px solid #2A2A30}
.fuss-innen{max-width:1160px;margin:0 auto;padding:22px 20px;color:#B9B6AD;font-size:16px;display:flex;flex-wrap:wrap;gap:8px 24px;box-sizing:border-box}
/* Drucken (Anmeldeliste) */
@media print{
  body,.rahmen{background:#fff !important;color:#000}
  .kopf,.fuss,.nicht-drucken,.meldung{display:none !important}
  .tabelle th,.tabelle td{color:#000;border-color:#999}
  h1,h2{color:#000}
}
/* Historie */
.gelb{color:#FFD21F}
.zahl.gross{font-size:34px;line-height:1}
.jahre{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.kachel{background:#18181C;border:1px solid #2A2A30;border-radius:10px;padding:16px 18px}
.kachel-wert{font-family:Anton,sans-serif;font-size:48px;line-height:1;color:#F4F1E8}
.kachel-name{color:#D8D5CC;font-weight:600;margin-top:6px}
.podest{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.podest-platz{border-radius:10px;padding:18px 20px;color:#0E0E10;transform:rotate(-1deg)}
.podest-platz:nth-child(2){transform:rotate(.6deg)}
.p1{background:#FFD21F}.p2{background:#45C4FF}.p3{background:#FF4F93}
.podest-rang{font-family:Anton,sans-serif;font-size:44px;line-height:1}
.podest-team{font-family:Anton,sans-serif;font-size:28px;line-height:1.1;margin:6px 0}
.podest-info{font-weight:600}
.aufklapp{margin-top:12px}
.aufklapp summary{cursor:pointer;font-weight:700;color:#45C4FF;padding:8px 0}
.aufklapp summary:hover{color:#FFD21F}
.abend-kopf{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:8px 16px;margin-bottom:8px}
.klein-datum{font-size:30px}
.themen{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.thema{display:inline-block;background:#2A2A30;color:#F4F1E8;border-radius:6px;padding:2px 10px;font-size:15px;font-weight:600}
.abend-podest{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.abend-podest li{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px;border-radius:8px;padding:8px 14px;color:#0E0E10;font-weight:700}
.ap-platz{font-family:Anton,sans-serif;font-size:22px}
.ap-punkte{font-family:Anton,sans-serif;font-size:22px}
table.zahlen td.rechts,table.zahlen th.rechts{font-variant-numeric:tabular-nums}
/* Live-Eingabe */
.paare{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
table.eingabe td{padding:6px 8px}
.eingabe-team{font-weight:700}
input.punkt{width:64px;min-height:44px;text-align:right;padding:8px;font-size:18px}
.status{font-size:13px;white-space:nowrap}
.status-ok{color:#5BD66B}.status-wartet{color:#FFD21F}.status-fehler{color:#FF8A3D}
@media (max-width:560px){
  table.eingabe td,table.eingabe th{padding:5px 4px}
  input.punkt{width:54px;font-size:17px;padding:6px}
  .status{font-size:11px;max-width:52px;white-space:normal;line-height:1.1}
  .eingabe-team{font-size:16px}
}
/* Sonderthemen und News */
.themen-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0 0 12px}
.thema-wahl{display:flex;gap:10px;align-items:center;background:#18181C;border:2px solid #2A2A30;border-radius:8px;padding:10px 12px;cursor:pointer;font-weight:600}
.thema-wahl input{width:22px;height:22px;flex:0 0 auto}
.thema-wahl:has(input:checked){border-color:#FF4F93}
.thema-wahl:has(input:disabled){opacity:.5;cursor:not-allowed}
.zaehler{font-weight:700}
.beliebt{list-style:none;padding:0;margin:0;display:grid;gap:6px;max-width:760px;counter-reset:b}
.beliebt li{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 40px;gap:10px;align-items:center;counter-increment:b}
.beliebt-titel::before{content:counter(b) ". ";color:#B9B6AD}
.beliebt-balken{display:block;height:10px;background:#2A2A30;border-radius:4px;overflow:hidden}
.beliebt-balken span{display:block;height:100%;background:#45C4FF;border-radius:0 4px 4px 0}
.beliebt-zahl{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
.news-titel{color:#F4F1E8;margin:4px 0 8px}
.news p{max-width:760px}
.knopf:disabled{opacity:.45;cursor:not-allowed;filter:none}
/* Detaillierte Ergebnisliste */
.ergebnis-wrap{overflow-x:auto;margin:12px 0;border:1px solid #2A2A30;border-radius:10px}
.ergebnis-wrap:focus-visible{outline:3px solid #45C4FF}
table.ergebnis{border-collapse:separate;border-spacing:0;min-width:100%}
table.ergebnis th,table.ergebnis td{padding:8px 10px;white-space:nowrap;background:#0E0E10}
table.ergebnis thead th{vertical-align:bottom;background:#18181C}
table.ergebnis tfoot td{background:#18181C;border-top:2px solid #2A2A30}
.fest{position:sticky;z-index:1}
.fest-1{left:0;min-width:48px}
.fest-2{left:48px;min-width:150px;max-width:220px;overflow:hidden;text-overflow:ellipsis;box-shadow:2px 0 0 #2A2A30}
.runde-kopf{min-width:46px}
.runde-nr{display:block;font-family:Anton,sans-serif;font-size:18px;color:#F4F1E8}
.runde-name{display:block;max-width:86px;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600;color:#B9B6AD;margin-left:auto}
table.ergebnis tr.p1 td{background:#FFD21F;color:#0E0E10}
table.ergebnis tr.p2 td{background:#45C4FF;color:#0E0E10}
table.ergebnis tr.p3 td{background:#FF4F93;color:#0E0E10}
.rundenbest{font-weight:800;text-decoration:underline;text-decoration-thickness:3px;text-decoration-color:#FFD21F;text-underline-offset:4px}
tr.p1 .rundenbest,tr.p2 .rundenbest,tr.p3 .rundenbest{text-decoration-color:#0E0E10}
.rundenbest-muster{font-weight:800;text-decoration:underline;text-decoration-thickness:3px;text-decoration-color:#FFD21F;text-underline-offset:4px;color:#F4F1E8}
.legende p{margin:0 0 6px}
@media (max-width:560px){.fest-1{min-width:38px}.fest-2{left:38px;min-width:110px;max-width:130px}table.ergebnis th,table.ergebnis td{padding:7px 7px}}
/* Startseite: Navigation wie im Entwurf */
.start-nav{display:flex;flex-wrap:wrap;gap:4px 20px;align-items:center}
.start-nav a{color:#F4F1E8;text-decoration:none;font-weight:600;padding:12px 0}
.start-nav a:hover{color:#FFD21F}
.start-nav a.start-login{color:#0E0E10;background:#FFD21F;font-weight:700;padding:11px 18px;border-radius:8px}
.start-nav a.start-login:hover{color:#0E0E10;filter:brightness(1.08)}
/* Pokal: Turnierbaum je Runde */
.baum{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;align-items:flex-start}
.baum:focus-visible{outline:3px solid #45C4FF}
.baum-spalte{flex:0 0 240px;display:flex;flex-direction:column;gap:10px}
.baum-kopf{font-family:Anton,sans-serif;font-size:18px;color:#45C4FF;letter-spacing:.5px}
.duell{background:#18181C;border:1px solid #2A2A30;border-radius:10px;overflow:hidden}
.duell-offen{border-color:#FFD21F}
.duell-team{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid #2A2A30}
.duell-team:first-of-type{border-top:0}
.duell-sieg{font-weight:700;box-shadow:inset 4px 0 0 #5BD66B}
.duell-niederlage{color:#8A8A92;text-decoration:line-through;text-decoration-color:#5A5A63}
.duell-punkte{font-variant-numeric:tabular-nums;font-family:Anton,sans-serif}
.duell-hinweis{font-size:13px;font-weight:700;color:#FFD21F;padding:6px 12px 0}
