/* Skatklub Südkreis-Füchse Hollen – Grundgestaltung
   Farben: Spieltisch-Grün, Fuchs-Orange, Papier-Hintergrund */
:root {
  --gruen: #1d5a3c;
  --gruen-dunkel: #123c28;
  --gruen-hell: #e7f1ea;
  --fuchs: #d9661f;
  --fuchs-hell: #fbeadd;
  --rot: #b3261e;
  --papier: #faf7f1;
  --weiss: #ffffff;
  --text: #1f2521;
  --grau: #5d665f;
  --linie: #dcd6ca;
  --radius: 10px;
  --breite: 1400px;
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--papier);
}
img { max-width: 100%; height: auto; }
a { color: var(--gruen); text-underline-offset: 2px; }
a:hover { color: var(--fuchs); }
:focus-visible { outline: 3px solid var(--fuchs); outline-offset: 2px; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--weiss); padding: .5rem 1rem; }

/* ---------- Kopf und Menü ---------- */
.kopf {
  background: var(--gruen-dunkel);
  background-image: linear-gradient(180deg, var(--gruen) 0%, var(--gruen-dunkel) 100%);
  color: var(--weiss);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: .5rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.marke { display: flex; align-items: center; gap: .7rem; color: var(--weiss); text-decoration: none; margin-right: auto; }
.marke img { background: var(--weiss); border-radius: 8px; padding: 3px; }
.marke strong { display: block; font-size: 1.2rem; line-height: 1.1; letter-spacing: .01em; }
.marke small { display: block; font-size: .8rem; opacity: .85; }
.marke:hover { color: var(--weiss); }

.menue > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.menue a, .menue summary {
  display: block; padding: .55rem .8rem; border-radius: 6px;
  color: var(--weiss); text-decoration: none; font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
}
.menue summary { list-style: none; }
.menue summary::-webkit-details-marker { display: none; }
.menue summary::after { content: " ▾"; font-size: .75em; opacity: .8; }
.menue a:hover, .menue summary:hover { background: rgba(255,255,255,.14); color: var(--weiss); }
.menue .aktiv > a, .menue .aktiv > details > summary { background: var(--fuchs); }
.menue details { position: relative; }
.menue details ul {
  list-style: none; margin: .3rem 0 0; padding: .4rem;
  position: absolute; right: 0; min-width: 240px;
  background: var(--weiss); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.menue details ul a { color: var(--text); font-weight: 500; }
.menue details ul a:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.menue details ul .aktiv > a { background: var(--fuchs-hell); color: var(--text); }

.menue-knopf {
  display: none; background: none; border: 2px solid rgba(255,255,255,.5); border-radius: 8px;
  color: var(--weiss); padding: .45rem .6rem; cursor: pointer;
}
.menue-knopf span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; }
.menue-knopf b { position: absolute; left: -9999px; }

@media (max-width: 920px) {
  .menue-knopf { display: block; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%;
           background: var(--gruen-dunkel); padding: .5rem 1rem 1rem; max-height: calc(100vh - 70px); overflow-y: auto; }
  .menue.offen { display: block; }
  .menue > ul { flex-direction: column; }
  .menue details ul { position: static; box-shadow: none; background: rgba(255,255,255,.06); margin: 0 0 .4rem; }
  .menue details ul a { color: var(--weiss); }
  .menue details ul a:hover, .menue details ul .aktiv > a { background: rgba(255,255,255,.14); color: var(--weiss); }
}

/* ---------- Hauptbereich ---------- */
.haupt { max-width: var(--breite); margin: 0 auto; padding: 1.5rem .75rem 3rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: .3rem 0 1.2rem; color: var(--gruen-dunkel); }
h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: .5rem; background: var(--fuchs); border-radius: 2px; }
h2 { font-size: 1.25rem; color: var(--gruen-dunkel); margin: 2rem 0 .6rem; line-height: 1.3; }
.text > :first-child { margin-top: 0; }
.text p { margin: 0 0 1rem; max-width: 75ch; }

.pfad { font-size: .9rem; color: var(--grau); margin-bottom: .2rem; }
.pfad a { color: var(--grau); }
.pfad span { margin: 0 .35rem; }

figure.bilder { margin: 1rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
figure.bilder img { border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: var(--weiss); cursor: zoom-in; }

/* ---------- Tabellen ---------- */
.tabelle { overflow-x: auto; margin: 0 0 1.6rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); -webkit-overflow-scrolling: touch; }
.tabelle table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tabelle th, .tabelle td { padding: .4rem .55rem; border-bottom: 1px solid #eee8dd; text-align: center; vertical-align: middle; }
.tabelle th { background: var(--gruen); color: var(--weiss); font-weight: 600; line-height: 1.25; }
.tabelle th:empty { background: var(--gruen-hell); }
.tabelle tr:nth-child(even) td { background: #f7f4ee; }
.tabelle tr:hover td { background: var(--fuchs-hell); }
.tabelle td.num, .tabelle th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle td.links, .tabelle th.links { text-align: left; }
.tabelle img { max-height: 320px; width: auto; }
.tabelle-hinweis { display: none; font-size: .85rem; color: var(--grau); margin: -.3rem 0 .4rem; }
/* bis 1100 px Breite (z. B. 1024×768): Tabellen enger setzen, damit alle Spalten sichtbar sind */
@media (max-width: 1100px) {
  .tabelle table { font-size: .82rem; }
  .tabelle th, .tabelle td { padding: .32rem .35rem; }
}
@media (max-width: 700px) {
  .tabelle table { font-size: .82rem; }
  .tabelle th, .tabelle td { padding: .35rem .45rem; }
  .tabelle-hinweis { display: block; }
}

/* ---------- Unterseiten-Kacheln ---------- */
.unterseiten { margin: 0 0 2rem; }
.unterseiten h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.knoepfe a {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px;
  background: var(--weiss); border: 1px solid var(--linie); text-decoration: none; color: var(--gruen-dunkel); font-weight: 600;
}
.knoepfe a:hover { border-color: var(--fuchs); background: var(--fuchs-hell); color: var(--text); }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.karten a {
  display: block; height: 100%; text-decoration: none; color: var(--text);
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.karten a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1); color: var(--text); }
.karten img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--gruen-hell); }
.karten span { display: block; padding: .6rem .8rem; font-weight: 600; }

/* ---------- Fotogalerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin: 1rem 0 2rem; }
.galerie a { display: block; position: relative; border-radius: 8px; overflow: hidden; background: var(--weiss); box-shadow: 0 1px 6px rgba(0,0,0,.1); text-decoration: none; color: var(--text); }
.galerie img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie span { display: block; padding: .35rem .5rem; font-size: .85rem; line-height: 1.3; }

.lupe-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lupe-dialog::backdrop { background: rgba(10,20,15,.92); }
.lupe-dialog figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 3.5rem; }
.lupe-dialog img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 4px; }
.lupe-dialog figcaption { color: var(--weiss); margin-top: .7rem; text-align: center; }
.lupe-dialog button { position: fixed; background: rgba(255,255,255,.12); color: var(--weiss); border: 0; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lupe-dialog button:hover { background: var(--fuchs); }
.lupe-zu { top: 1rem; right: 1rem; }
.lupe-zurueck { left: .7rem; top: 50%; }
.lupe-vor { right: .7rem; top: 50%; }

/* ---------- Startseite ---------- */
.held {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
  background: var(--weiss); border-radius: 16px; padding: 2rem; margin-bottom: 2rem;
  border: 1px solid var(--linie); box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.held h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .6rem; }
.held .unterzeile { font-size: 1.15rem; color: var(--grau); margin: 0 0 1.2rem; }
.held img { justify-self: center; }
.abzeichen { display: inline-block; background: var(--fuchs); color: var(--weiss); font-weight: 700; padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; margin-bottom: .8rem; }
.knopf { display: inline-block; background: var(--gruen); color: var(--weiss); padding: .65rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 600; margin: 0 .4rem .4rem 0; }
.knopf:hover { background: var(--fuchs); color: var(--weiss); }
.knopf.hell { background: var(--weiss); color: var(--gruen); border: 2px solid var(--gruen); }
.knopf.hell:hover { border-color: var(--fuchs); color: var(--fuchs); background: var(--weiss); }

.info-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.info { background: var(--weiss); border: 1px solid var(--linie); border-left: 5px solid var(--gruen); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.info h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--gruen-dunkel); }
.info p { margin: 0; }
.info .gross { font-size: 1.6rem; font-weight: 700; color: var(--fuchs); line-height: 1.2; }
.info:nth-child(2) { border-left-color: var(--fuchs); }
.info:nth-child(3) { border-left-color: var(--rot); }

.farben { letter-spacing: .2em; font-size: 1.3rem; }
.farben .r { color: var(--rot); }

@media (max-width: 760px) {
  .held { grid-template-columns: 1fr; padding: 1.3rem; }
  .held img { max-width: 80%; }
}

/* ---------- Anfahrt ---------- */
.anfahrt {
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr; margin-bottom: 2rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.anfahrt-info { padding: 1.6rem 1.6rem 1.3rem; position: relative; }
.anfahrt-info h3 { margin: 0 0 .3rem; font-size: 1.3rem; color: var(--gruen-dunkel); }
.anfahrt .adresse { font-size: 1.15rem; margin: 0 0 1rem; }
.pin-symbol {
  display: block; width: 34px; height: 34px; margin-bottom: .8rem;
  background: var(--fuchs); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: inset 0 0 0 10px var(--fuchs), inset 0 0 0 17px var(--weiss);
}
.anfahrt-liste { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.anfahrt-liste li { padding: .35rem 0; border-top: 1px solid #eee8dd; }
.karte { position: relative; min-height: 340px; background: var(--gruen-hell); }
.karte-skizze { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-pin {
  position: absolute; left: 53%; top: 51%; width: 40px; height: 40px; margin: -40px 0 0 -20px;
  background: var(--fuchs); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.25), inset 0 0 0 12px var(--fuchs), inset 0 0 0 20px var(--weiss);
}
.karte-hinweis {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); width: min(90%, 380px);
  background: rgba(255,255,255,.95); border-radius: var(--radius); padding: .9rem 1rem; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.karte-hinweis .knopf { margin: 0 0 .4rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.karte-hinweis p { margin: 0; font-size: .82rem; color: var(--grau); }
.karte-quelle { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: .75rem; padding: .1rem .4rem; }
@media (max-width: 760px) { .anfahrt { grid-template-columns: 1fr; } .karte { min-height: 300px; } }

/* ---------- Downloads ---------- */
.downloads { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.downloads a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem .7rem .7rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-weight: 600; transition: border-color .15s, background .15s;
}
.downloads a:hover { border-color: var(--fuchs); background: var(--fuchs-hell); color: var(--text); }
.downloads b { background: var(--rot); color: var(--weiss); font-size: .75rem; padding: .55rem .5rem; border-radius: 6px; letter-spacing: .05em; }
.downloads small { display: block; font-weight: 400; color: var(--grau); font-size: .82rem; }

/* ---------- Jahresrückblicke ---------- */
.jahresleiste {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: .7rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  position: sticky; top: 76px; z-index: 5;
}
.jahresleiste a {
  padding: .3rem .75rem; border-radius: 999px; background: var(--gruen-hell);
  color: var(--gruen-dunkel); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums;
}
.jahresleiste a:hover { background: var(--fuchs); color: var(--weiss); }
.jahr {
  display: grid; grid-template-columns: 120px 1fr; margin: 0 0 1.2rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; scroll-margin-top: 150px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.jahr-zahl {
  background: linear-gradient(180deg, var(--gruen) 0%, var(--gruen-dunkel) 100%); color: var(--weiss);
  font-size: 1.9rem; font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 1rem;
}
.jahr-text { padding: 1rem 1.3rem; }
.ereignisse { margin: 0 0 .8rem; padding: 0; list-style: none; }
.ereignisse li { position: relative; padding: .2rem 0 .2rem 1.5rem; }
.ereignisse li::before { content: "♣"; position: absolute; left: 0; color: var(--gruen); }
.ereignisse li.meister { font-weight: 700; }
.ereignisse li.meister::before { content: "🏆"; }
.jahr .hinweis { background: var(--fuchs-hell); border-radius: 6px; padding: .6rem .8rem; font-size: .95rem; }
.bestwerte { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; margin: .3rem 0 .6rem; }
.bestwerte div { background: #f7f4ee; border-left: 4px solid var(--fuchs); border-radius: 6px; padding: .5rem .8rem; font-size: .95rem; }
.bestwerte span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grau); font-weight: 700; }
.jahr .gedenken { margin: .4rem 0 0; padding: .5rem .8rem; border-left: 4px solid #444; background: #f1f1f1; border-radius: 6px; font-style: italic; }
@media (max-width: 700px) {
  .jahr { grid-template-columns: 1fr; }
  .jahr-zahl { padding: .4rem 1rem; justify-content: flex-start; font-size: 1.5rem; }
  .jahresleiste { position: static; }
}

/* ---------- Fuß ---------- */
.fuss { background: var(--gruen-dunkel); color: #d8e4dc; font-size: .92rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 1.8rem 1rem; display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 1.5rem; }
.fuss a { color: var(--weiss); }
.fuss p { margin: 0; }
.fuss .stand { text-align: right; opacity: .8; }
.fuss .zaehler { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.fuss .zaehler img { border-radius: 4px; }
@media (max-width: 760px) { .fuss-innen { grid-template-columns: 1fr; } .fuss .stand { text-align: left; } }

@media print {
  .kopf, .fuss, .unterseiten { display: none; }
  body { background: #fff; font-size: 11pt; }
  .tabelle { overflow: visible; border: 0; }
  .tabelle th { background: #ddd; color: #000; }
}
