/* gameladder.de – Layout (Neubau 2026) */
:root {
  --rasen-1: #2f7d32;
  --rasen-2: #27692a;
  --dunkel: #12301a;
  --dunkel-2: #1c4426;
  --gelb: #f7d417;
  --gelb-hell: #fff59d;
  --text: #1d1d1b;
  --link: #145da0;
  --rand: #d9e2d5;
  --breite: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Ubuntu", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  /* gemähter Rasen */
  background-color: var(--rasen-1);
  background-image: repeating-linear-gradient(90deg,
      var(--rasen-1) 0 80px, var(--rasen-2) 80px 160px);
}

a { color: var(--link); }
a:hover { color: #0b3d6e; }

/* ---------- Kopf ---------- */
.kopf {
  background: linear-gradient(180deg, rgba(10, 30, 14, .92), rgba(18, 48, 26, .92));
  border-bottom: 4px solid var(--gelb);
}
.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kopf a.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--gelb);
}
.kopf .ball { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.kopf .name {
  font-family: "Happy Monkey", "Ubuntu", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 46px);
  letter-spacing: .5px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.kopf .logo > span { display: flex; flex-direction: column; line-height: 1.1; }
.kopf .claim { color: #e8f5e9; font-size: 15px; margin-top: 2px; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.menu-knopf {
  display: none;
  margin-left: auto;
  background: var(--gelb);
  color: var(--dunkel);
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: 700 16px "Ubuntu", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

/* ---------- Seitenrahmen ---------- */
.rahmen {
  max-width: var(--breite);
  margin: 22px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ---------- Menü ---------- */
.menu {
  background: var(--dunkel);
  border-radius: 10px;
  padding: 10px 0 14px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a, .menu summary {
  display: block;
  padding: 7px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-left: 4px solid transparent;
}
.menu a:hover, .menu summary:hover { background: var(--dunkel-2); border-left-color: var(--gelb); color: var(--gelb-hell); }
.menu a[aria-current="page"] { background: var(--gelb); color: var(--dunkel); border-left-color: var(--gelb); }
.menu .rubrik {
  margin: 14px 16px 4px;
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--gelb);
  text-transform: uppercase;
  font-weight: 700;
}
.menu .unterrubrik {
  margin: 8px 16px 2px 28px;
  font-size: 12px;
  color: #b8d8bd;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.menu .trenner { border-top: 1px solid rgba(247, 212, 23, .35); margin: 10px 16px; }
.menu summary { cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "▸"; position: absolute; right: 14px; top: 7px; color: var(--gelb); transition: transform .15s; }
.menu details[open] > summary::after { transform: rotate(90deg); }
.menu details ul a { font-weight: 400; font-size: 14.5px; padding-left: 30px; }

/* ---------- Inhalt ---------- */
.inhalt {
  background: #fff;
  border-radius: 10px;
  padding: 22px 28px 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  min-width: 0;
  overflow-wrap: break-word;
}
.inhalt > h1.seitentitel {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gelb);
  color: #1f6b12;
  font-size: 26px;
  font-weight: 700;
}
.inhalt img { max-width: 100%; height: auto; }
.inhalt iframe { max-width: 100%; border: 0; }
.inhalt .tabelle-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inhalt .tabelle-scroll > table { margin-left: auto; margin-right: auto; }
.inhalt hr { border: 0; border-top: 2px solid var(--rand); margin: 22px 0; }
.inhalt .hinweis {
  background: #fffbe0;
  border-left: 5px solid var(--gelb);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0 20px;
}
.inhalt .galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.inhalt .galerie a { display: block; border: 1px solid var(--rand); border-radius: 6px; overflow: hidden; background: #f5f7f4; }
.inhalt .galerie img { display: block; width: 100%; height: 150px; object-fit: cover; }
.inhalt .seitenliste { columns: 2 280px; }
.inhalt .seitenliste li { break-inside: avoid; margin-bottom: 3px; }

/* Altlasten aus dem Baukasten (Inhalte unverändert übernommen) */
.inhalt .hpage_content_canvas, .inhalt .hpage_content_layout, .inhalt .hpage_content_block { width: 100%; }
.inhalt center { display: block; }


/* ---------- Ligatabellen und Wettbewerbe (assets/liga.js) ----------
   Farben angelehnt an die bisherigen abc-webtools-Tabellen:
   dunkle Kopfzeilen (#222), blaue Zeilen (#6687FF), gelb = Aufstieg/Meister, grau = Abstieg */
:root {
  --abc-kopf: #222222;
  --abc-zeile: #6687ff;
  --abc-zeile-2: #7a97ff;
  --abc-rand: #000000;
  --abc-hinter: #91beff;
  --zone-gelb: #ffff00;
  --zone-rel: #ffb74d;
  --zone-grau: #aaaaaa;
}
.liga-block { margin: 10px auto 30px; max-width: 680px; text-align: center; }
.liga-saison { margin: 0 0 8px; color: #5b6b57; font-size: 14px; text-align: center; }
.liga-laedt { color: #5b6b57; font-style: italic; }
.liga-h { font-size: 15px; font-weight: 700; color: #fff; background: var(--abc-kopf); margin: 22px auto 0; padding: 7px 10px; text-align: center; border-radius: 6px 6px 0 0; }
.liga-h .datum { font-weight: 400; font-size: 13px; color: #d7dde6; }
.spieltag .datum { font-weight: 400; font-size: 13px; }
.liga-stand { font-size: 13px; color: #5b6b57; text-align: center; margin-top: 6px; }
.wappen { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: 8px; flex: none; }
.wappen.leer { display: inline-block; }
.zusatz { color: #1b2a4a; font-size: 12.5px; opacity: .8; }
/* Paarungen */
table.spiele { width: 100%; max-width: 680px; margin: 0 auto; border-collapse: collapse; background: var(--abc-zeile); }
table.spiele td { padding: 7px 6px; border-top: 1px solid var(--abc-rand); color: #000; }
table.spiele tr:nth-child(even) td { background: var(--abc-zeile-2); }
table.spiele td.heim { text-align: right; width: 41%; }
table.spiele td.heim .wappen { margin: 0 0 0 8px; float: right; }
table.spiele td.gast { text-align: left; width: 41%; }
table.spiele td.ergebnis { text-align: center; font-weight: 700; font-size: 18px; white-space: nowrap; background: rgba(255,255,255,.55) !important; min-width: 74px; }
table.spiele td.ergebnis.offen { color: #44506a; font-weight: 400; }
table.spiele .punkte { display: block; font-size: 11.5px; font-weight: 400; color: #2d3550; }
table.spiele .entscheid { display: block; font-size: 11px; font-weight: 700; color: #8a1c1c; }
table.spiele td.sieger .teamname { font-weight: 800; }
table.spiele td.sieger .teamname::after { content: " ✓"; color: #0b5d16; }
table.spiele tr.notiz td { font-size: 12px; text-align: center; padding: 3px 6px; background: rgba(255,255,255,.35); }
/* Tabelle */
table.ligatabelle { width: 100%; max-width: 680px; margin: 0 auto; border-collapse: collapse; font-size: 15px; background: var(--abc-zeile); }
table.ligatabelle th { background: var(--abc-kopf); color: #fff; font-size: 13px; padding: 7px 6px; text-align: center; }
table.ligatabelle th.verein { text-align: left; }
table.ligatabelle td { padding: 6px; text-align: center; border-top: 1px solid var(--abc-rand); white-space: nowrap; color: #000; }
table.ligatabelle td.verein { text-align: left; white-space: normal; }
table.ligatabelle td.verein .teamname { font-weight: 700; }
table.ligatabelle td.pkt { font-weight: 700; font-size: 16px; }
table.ligatabelle tbody tr:nth-child(even) { background: var(--abc-zeile-2); }
table.ligatabelle tr.zone-meister, table.ligatabelle tr.zone-aufstieg { background: var(--zone-gelb) !important; }
table.ligatabelle tr.zone-rel-auf, table.ligatabelle tr.zone-rel-ab { background: var(--zone-rel) !important; }
table.ligatabelle tr.zone-abstieg { background: var(--zone-grau) !important; }
table.ligatabelle tr.zone-weiter { background: var(--zone-gelb) !important; }
table.ligatabelle td.rang { font-weight: 700; }
.trend .hoch { color: #0b6b16; } .trend .runter { color: #a01010; } .trend .gleich { color: #2d3550; font-size: 10px; }
.legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 8px auto 0; padding: 0; list-style: none; font-size: 13px; color: #33402f; }
.legende li { display: flex; align-items: center; gap: 6px; }
.legende i { display: inline-block; width: 14px; height: 14px; border: 1px solid #000; border-radius: 3px; }
.legende .zone-meister i, .legende .zone-aufstieg i, .legende .zone-weiter i { background: var(--zone-gelb); }
.legende .zone-rel-auf i, .legende .zone-rel-ab i { background: var(--zone-rel); }
.legende .zone-abstieg i { background: var(--zone-grau); }
.sr { position: absolute; left: -9999px; }
.liga-block .klein { font-size: 12.5px; font-weight: 400; }
/* Gesamtspielplan */
.spielplan { max-width: 680px; margin: 0 auto; text-align: left; }
.spielplan details.spieltag { border: 1px solid var(--abc-rand); border-radius: 6px; margin-bottom: 8px; background: var(--abc-zeile); overflow: hidden; }
.spielplan summary { cursor: pointer; padding: 8px 12px; background: var(--abc-kopf); color: #fff; }
.spielplan summary .datum { color: #d7dde6; }
.spielplan .status { background: var(--zone-gelb); color: #000; font-size: 12px; padding: 1px 7px; border-radius: 10px; margin-left: 6px; }
.spielplan table.spiele { margin: 0; }
/* Wettbewerbe (Pokal, Trophy, League, Relegation) */
.wb-champion { margin: 6px auto 14px; text-align: center; }
.wb-champion .k { font-size: 18px; font-weight: 700; text-decoration: underline; }
.wb-champion .n { display: block; font-size: 30px; font-weight: 800; color: #880e4f; line-height: 1.2; }
.wb-champion .m { display: block; font-size: 22px; color: #ad1457; font-weight: 700; }
.wb-hinweis { max-width: 680px; margin: 8px auto; text-align: center; font-size: 14.5px; }
.wb-runde { margin: 0 auto 18px; max-width: 680px; }
.wb-paarung { margin: 0 0 8px; }
.wb-paarung table.spiele { border-radius: 0; }
.wb-paarung .gesamt { background: var(--abc-kopf); color: #fff; font-size: 13px; padding: 4px 10px; text-align: center; }
.wb-paarung .gesamt strong { color: var(--zone-gelb); }
.wb-gruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.wb-gruppen table.ligatabelle .eng, .wb-gruppen .zusatz { display: none; }
.wb-gruppen table.ligatabelle td.verein .teamname { font-weight: 700; }
.wb-gruppen .wappen { width: 20px; height: 20px; margin-right: 5px; }
.liga-h.wb-archiv-kopf { max-width: 680px; margin: 30px auto 0; border-radius: 6px; }
.wb-gruppen .liga-h { margin-top: 0; }
.wb-gruppen table.ligatabelle { font-size: 14px; }
.wb-gruppen details { margin-top: 4px; text-align: left; }
.wb-gruppen details summary { cursor: pointer; font-size: 13.5px; padding: 4px 2px; color: #1f6b12; }
.wb-sieger { margin: 16px auto; max-width: 680px; text-align: center; font-size: 22px; font-weight: 800; background: var(--zone-gelb); border: 2px solid #000; border-radius: 8px; padding: 10px; }
.wb-leer { color: #5b6b57; font-style: italic; text-align: center; }
@media (max-width: 600px) {
  table.ligatabelle { font-size: 13.5px; }
  table.ligatabelle .eng { display: none; }
  table.ligatabelle td, table.ligatabelle th { padding: 5px 3px; }
  .wappen { width: 20px; height: 20px; margin-right: 5px; }
  table.spiele td { padding: 6px 3px; font-size: 14px; }
  table.spiele td.ergebnis { font-size: 16px; min-width: 58px; }
  .zusatz { display: none; }
  .wb-champion .n { font-size: 24px; }
}


/* ---------- Archiv und Rekordsieger (assets/archiv.js) ---------- */
.ar-wahl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 6px auto 4px; }
.ar-wahl label { font-weight: 700; color: #1f4d14; display: flex; align-items: center; gap: 8px; }
.ar-wahl select { font: inherit; font-weight: 400; padding: 6px 8px; border: 2px solid var(--abc-kopf); border-radius: 6px; background: #fff; max-width: 70vw; }
.ar-sieger { text-align: center; margin: 8px auto 0; font-size: 15px; }
.ti-gesamt td, .ti-gesamt th { padding: 5px 4px; }
.ti-gesamt tr.ti-top1 { background: #ffd700 !important; }
.ti-gesamt tr.ti-top2 { background: #e3e3e3 !important; }
.ti-gesamt tr.ti-top3 { background: #e8b27a !important; }
.ti-null { opacity: .45; }
.ti-gesamt tr.ti-gruppe th { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 4px 4px 0; opacity: .85; }
.ti-gesamt tr.ti-gruppe th[colspan="4"], .ti-gesamt tr.ti-gruppe th[colspan="5"], .ti-gesamt tr.ti-gruppe th[colspan="2"]:not(:first-child) { border-bottom: 1px solid rgba(255,255,255,.35); }
.ti-gesamt td.ti-sz { font-size: 12.5px; opacity: .85; }
@media (max-width: 600px) { .ti-gesamt tr.ti-gruppe { display: none; } }
.ti-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; max-width: 980px; margin: 22px auto 10px; text-align: left; }
.ti-karte { background: #fff; border: 2px solid var(--abc-kopf); border-radius: 8px; overflow: hidden; }
.ti-karte h3 { margin: 0; padding: 8px 12px; background: var(--abc-kopf); color: #fff; font-size: 16px; text-align: center; }
.ti-liste { list-style: none; margin: 0; padding: 6px 10px; }
.ti-liste li { display: grid; grid-template-columns: 28px 1fr auto; column-gap: 6px; padding: 5px 0; border-bottom: 1px solid #e3e8e0; font-size: 14.5px; }
.ti-liste li:last-child { border-bottom: 0; }
.ti-liste li:first-child .ti-team { font-weight: 800; }
.ti-pl { color: #5b6b57; }
.ti-anz { font-weight: 800; color: #1f4d14; }
.ti-s { grid-column: 2 / 4; font-size: 12px; color: #5b6b57; }
.ti-karte details { padding: 0 10px 8px; }
.ti-karte summary { cursor: pointer; font-size: 13.5px; color: #1f6b12; padding: 4px 0; }
.ti-chronik { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ti-chronik td { padding: 3px 4px; border-top: 1px solid #eef1ec; }
.ti-chronik td:first-child { width: 64px; color: #5b6b57; white-space: nowrap; }

/* Rechtstexte */
.rechtstext h2 { font-size: 20px; color: #1f6b12; margin: 26px 0 8px; }
.rechtstext h3 { font-size: 17px; margin: 18px 0 6px; }

/* ---------- Fuß ---------- */
.fuss {
  max-width: var(--breite);
  margin: 0 auto 30px;
  padding: 0 20px;
  color: #e8f5e9;
  font-size: 14px;
  text-align: center;
}
.fuss a { color: var(--gelb); margin: 0 8px; }

/* ---------- Handy / Tablet ---------- */
@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; margin-top: 0; padding: 0; gap: 0; }
  .js .menu-knopf { display: inline-block; }
  .menu { border-radius: 0; position: static; max-height: none; box-shadow: none; }
  .js .menu { display: none; }
  .js .menu.offen { display: block; }
  .inhalt { border-radius: 0; padding: 16px 14px 24px; }
  .kopf .ball { width: 46px; height: 46px; }
  .kopf .claim { display: none; }
  .fuss { margin-top: 16px; }
}

@media print {
  body { background: #fff; }
  .menu, .menu-knopf, .fuss { display: none; }
  .rahmen { display: block; }
  .inhalt { box-shadow: none; }
}
