@import url('/seite/schrift/schrift.css');

:root {
  /* Farben aus dem Logo: Dunkelgrün und Gold (Variablen heißen aus Gewohnheit noch "rot") */
  --rot: #174532;
  --rot-dunkel: #0b2e20;
  --rot-hell: #edf3ee;
  --rot-rand: #c7d8cc;
  --gold: #a98c56;
  --gold-hell: #f5efe3;
  --warn: #b3261e;
  --text: #22201f;
  --gedimmt: #6b6461;
  --linie: #e6e1de;
  --flaeche: #ffffff;
  --grund: #f7f4ee;
  --gruen: #1f7a4a;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(40, 20, 20, .05), 0 6px 20px rgba(40, 20, 20, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.5 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--rot); }
h1, h2, h3 { line-height: 1.2; margin: 0; }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf nav a.aktiv { color: var(--rot); }
.kopf-innen { max-width: 1160px; margin: auto; padding: .5rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo img { height: 84px; width: auto; max-width: 100%; display: block; }
.kopf nav { display: flex; gap: 1.2rem; }
.kopf nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.kopf nav a:hover { color: var(--rot); }

.band { background: linear-gradient(120deg, var(--rot-dunkel), var(--rot) 60%, #24614a); color: #fff; border-bottom: 3px solid var(--gold); }
.band-innen { max-width: 1160px; margin: auto; padding: 2.2rem 16px 2.6rem; }
.band h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.band p { margin: .4rem 0 0; opacity: .9; font-size: 1.1rem; }

main { max-width: 1160px; margin: -1.4rem auto 0; padding: 0 16px 3rem; position: relative; }

.fuss { text-align: center; padding: 1.5rem 16px 2.5rem; color: var(--gedimmt); display: flex; gap: 1.5rem; justify-content: center; }
.fuss a { color: var(--gedimmt); }

/* Karten */
.karte { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.5rem; }
.karte + .karte, .abschnitt + .abschnitt { margin-top: 1.1rem; }
.karte.leer { text-align: center; padding: 3rem 1.5rem; }
.karte.leer p { color: var(--gedimmt); }
.gedimmt { color: var(--gedimmt); }
.klein { font-size: .9rem; }
.rot { color: var(--warn); font-weight: 600; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Knöpfe */
.knopf {
  display: inline-block; background: var(--rot); color: #fff; border: 0; border-radius: 999px;
  padding: .7rem 1.4rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.knopf:hover { background: var(--rot-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .6; cursor: wait; }
.knopf.gross { width: 100%; padding: 1rem; font-size: 1.15rem; margin-top: .5rem; }
.knopf-zweit {
  background: var(--rot-hell); color: var(--rot); border: 1px dashed var(--rot-rand); border-radius: 10px;
  padding: .75rem 1rem; width: 100%; font: inherit; font-weight: 700; cursor: pointer; margin-top: .8rem;
}
.knopf-zweit:hover { background: #e0ebe3; }
.knopf-text { background: none; border: 0; color: var(--gedimmt); font: inherit; cursor: pointer; padding: .2rem .4rem; text-decoration: underline; }
.knopf-text:hover { color: var(--rot); }

/* Turnierübersicht */
.turnier-raster { display: grid; gap: 1.1rem; }
.turnier-karte { display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: center; margin: 0 !important; }
.datum-kachel {
  width: 76px; height: 82px; border-radius: 12px; background: var(--gold-hell); color: var(--rot);
  display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e3d6b9;
}
.datum-kachel .tag { font-size: 2rem; font-weight: 800; line-height: 1; }
.datum-kachel .monat { text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .06em; }
.turnier-text h2 { font-size: 1.3rem; }
.turnier-text p { margin: .2rem 0 0; }
.hinweis-nach { color: var(--warn); font-weight: 600; }

.umschalter { display: inline-flex; background: #ece6e3; border-radius: 999px; padding: 4px; margin-bottom: 1rem; }
.umschalter a { padding: .45rem 1.1rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; }
.umschalter a.aktiv { background: var(--rot); color: #fff; }

/* ===== Hauptseite und Veranstaltungen ===== */
.kopf nav a.aktiv { color: var(--rot); box-shadow: inset 0 -3px 0 var(--gold); }
.kopf nav a { padding: .4rem 0; }
.menue-knopf { display: none; }
.knopf.klein-knopf { padding: .45rem 1rem; font-size: .95rem; }
.link-knopf {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--rot-rand);
  background: var(--rot-hell); color: var(--rot); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.link-knopf:hover { background: #e0ebe3; border-color: var(--rot); }

/* Marken (Art, Abgesagt, Nennung offen) */
.va-marken { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .3rem; }
.marke { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: .12rem .55rem; border-radius: 6px; background: var(--gold-hell); color: #6e5a33; }
.marke.abgesagt { background: #fbeeee; color: var(--warn); }
.marke.offen { background: var(--rot); color: #fff; }
.marke.nach { background: #fbeeee; color: var(--warn); }

/* Turnierliste */
.va-liste { display: grid; gap: .8rem; }
.karte.va { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; margin: 0; padding: 1.1rem 1.3rem; }
.va h3 { font-size: 1.2rem; }
.va p { margin: .15rem 0 0; }
.va-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.va.abgesagt h3 { text-decoration: line-through; text-decoration-color: rgba(179, 38, 30, .6); }
.va.abgesagt .datum-kachel { background: #f3efee; color: var(--gedimmt); border-color: var(--linie); }
.gruppe-titel { font-size: 1.3rem; margin: 1.8rem 0 .8rem; }
.gruppe-titel .gedimmt { font-weight: 400; font-size: 1rem; }

/* Werkzeugleiste: Jahre, Sortierung, Suche */
.werkzeug { padding: 1rem 1.3rem; }
.jahre { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .8rem; }
.jahre a { text-decoration: none; font-weight: 700; color: var(--text); padding: .35rem .8rem; border-radius: 9px; border: 1px solid var(--linie); }
.jahre a:hover { border-color: var(--rot); color: var(--rot); }
.jahre a.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; }
.jahr-wahl select { width: auto; min-height: 2.3rem; padding: .3rem .6rem; }
.werkzeug-zeile { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.werkzeug .umschalter { margin: 0; }
.suche { flex: 1 1 220px; max-width: 340px; }

/* Startseite */
.offen-karte { border-top: 4px solid var(--gold); }
.offen-karte h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.offen-liste { display: grid; gap: .6rem; }
.offen-eintrag {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; text-decoration: none; color: var(--text);
  border: 1px solid var(--linie); border-radius: 12px; padding: .6rem .9rem; transition: border-color .15s, background .15s;
}
.offen-eintrag:hover { border-color: var(--rot); background: var(--rot-hell); }
.offen-eintrag .datum-kachel { width: 60px; height: 64px; }
.offen-eintrag .datum-kachel .tag { font-size: 1.5rem; }
.offen-eintrag b { font-size: 1.1rem; }
.pfeil { font-size: 1.5rem; color: var(--rot); font-weight: 700; }
.abschnitt { margin-top: 2rem; }
main > .abschnitt:first-child { margin-top: 0; padding-top: 2.8rem; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.abschnitt-kopf h2 { font-size: 1.4rem; }
.abschnitt-kopf a { font-weight: 600; }
.wegweiser { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
main > .wegweiser:first-child { margin-top: 0; }
.karte.weg { display: flex; flex-direction: column; text-decoration: none; color: var(--text); margin: 0; border-bottom: 3px solid transparent; transition: border-color .15s, transform .15s; }
.karte.weg:hover { border-bottom-color: var(--gold); transform: translateY(-2px); }
.weg h3 { font-size: 1.2rem; color: var(--rot); }
.weg p { margin: .4rem 0 1rem; color: var(--gedimmt); flex: 1; }
.weg .mehr { font-weight: 700; color: var(--rot); }

/* Handy */
@media (max-width: 900px) {
  .js .kopf-innen { flex-wrap: wrap; }
  .js .menue-knopf {
    display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--linie); border-radius: 10px;
    padding: .5rem .8rem; font: inherit; font-weight: 700; color: var(--rot); cursor: pointer;
  }
  .striche, .striche::before, .striche::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .striche::before, .striche::after { content: ''; position: absolute; left: 0; }
  .striche::before { top: -6px; }
  .striche::after { top: 6px; }
  .js .kopf nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: .3rem 0 .6rem; }
  .js .kopf.offen nav { display: flex; }
  .js .kopf nav a { padding: .75rem .2rem; border-top: 1px solid var(--linie); }
  .js .kopf nav a.aktiv { box-shadow: inset 4px 0 0 var(--gold); padding-left: .8rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo img { height: 64px; }
  .kopf nav { flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; }
  .karte { padding: 1.1rem; }
  .karte.va { grid-template-columns: 1fr; gap: .6rem; padding: 1rem; }
  .karte.va .datum-kachel { display: none; }
  .werkzeug .umschalter { width: 100%; justify-content: space-between; }
  .werkzeug .umschalter a { padding: .45rem .7rem; }
  .suche { max-width: none; }
  .offen-eintrag { grid-template-columns: auto 1fr; }
  .offen-eintrag .pfeil { display: none; }
  .fuss { flex-wrap: wrap; gap: .6rem 1.2rem; }
}

/* Eingabefelder (Suche, Jahr) */
input, select {
  font: inherit; color: var(--text); background: #fff; width: 100%;
  border: 1px solid #d6cfcb; border-radius: 9px; padding: .5rem .75rem; min-height: 2.5rem;
}
input:focus, select:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(23, 69, 50, .18); }
input::placeholder { color: #aaa29e; }

/* Knopf "Online nennen" (NeOn) in Gold, damit er sich von "WBO Nennung" unterscheidet */
.knopf.knopf-neon { background: var(--gold); color: #fff; }
.knopf.knopf-neon:hover { background: #8a6f3f; }

/* Nennschluss hinter dem Turniernamen (Startseite) */
.offen-eintrag .schluss { color: var(--gedimmt); white-space: nowrap; }
.offen-eintrag .schluss.nach { color: var(--warn); font-weight: 600; }
.va h3 .schluss { font-size: 1rem; font-weight: 400; color: var(--gedimmt); white-space: nowrap; }
.va h3 .schluss.nach { color: var(--warn); font-weight: 600; }

/* Testseite: großes Logo über dem Kopf */
.logo-oben { background: var(--flaeche); text-align: center; padding: 1.2rem 16px .6rem; }
.logo-oben img { height: 170px; width: auto; max-width: 100%; display: inline-block; }
.kopf.ohne-logo .kopf-innen { justify-content: center; }
.kopf.ohne-logo .logo { display: none; }
@media (max-width: 600px) {
  .logo-oben img { height: 110px; }
  .kopf.ohne-logo .kopf-innen { justify-content: flex-end; }
}
/* Textseiten (Impressum, Datenschutz) */
.textseite { max-width: 820px; padding: 1.8rem 2rem; }
.textseite h2 { font-size: 1.25rem; color: var(--rot); margin: 1.6rem 0 .4rem; }
.textseite h2:first-child { margin-top: 0; }
.textseite h3 { font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
.textseite p { margin: .3rem 0 .7rem; }
@media (max-width: 600px) { .textseite { padding: 1.2rem 1.1rem; } }
