@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 !important; 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; }

/* Countdown */
.countdown { margin-top: .5rem; font-size: .95rem; color: var(--gedimmt); }
.cd-titel { display: block; font-size: .85rem; }
.cd-zahlen { display: inline-flex; gap: .35rem; margin-top: .25rem; }
.cd-feld { background: var(--grund); border-radius: 8px; padding: .2rem .5rem; font-size: .8rem; color: var(--gedimmt); text-align: center; min-width: 3.2rem; }
.cd-feld b { display: block; font-size: 1.15rem; color: var(--text); line-height: 1.1; }
.countdown-band { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1rem 1.5rem; margin-bottom: 1.1rem; border-left: 5px solid var(--gold); }
.countdown-band.nach { border-left-color: var(--warn); }
.countdown-band .countdown { margin: 0; }
.countdown-band p { margin: .5rem 0 0; color: var(--warn); font-weight: 600; }
.countdown.gross .cd-feld { min-width: 4rem; }

/* Formular */
.nenn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.abschnitt h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.schritt {
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--rot); color: #fff; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem 1rem; }
.felder .breit { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
label b, legend b { color: var(--gold); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; width: 100%;
  border: 1px solid #d6cfcb; border-radius: 9px; padding: .6rem .75rem; min-height: 2.75rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(23, 69, 50, .18); }
input::placeholder { color: #aaa29e; }
textarea { resize: vertical; }
fieldset.wahl { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
fieldset.wahl legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .3rem; width: 100%; }
fieldset.wahl label, label.schalter, label.haken { flex-direction: row; align-items: center; font-weight: 400; gap: .5rem; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--rot); margin: 0; flex: none; }
label.haken { align-items: flex-start; margin: .9rem 0; font-size: 1rem; line-height: 1.4; }
label.haken input { margin-top: .15rem; }

/* Pferde */
.pferd { border: 1px solid var(--linie); border-radius: 12px; padding: 1rem; background: #fdfcfb; }
.pferd + .pferd { margin-top: .8rem; }
.pferd-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.pferd-kopf h3 { font-size: 1.1rem; margin-right: auto; }
.ist-hoppy .pferd-felder { display: none; }
.ist-hoppy .pferd-kopf { margin-bottom: 0; }

/* Prüfungen */
.pruefungen { display: grid; gap: .5rem; }
.pruefung {
  display: grid; grid-template-columns: 2.6rem 1fr 8.5rem; gap: .8rem; align-items: center;
  border: 1px solid var(--linie); border-radius: 12px; padding: .6rem .8rem; transition: border-color .15s, background .15s;
}
.pruefung.gewaehlt { border-color: var(--rot); background: var(--rot-hell); }
.pruefung.ausgebucht { opacity: .6; }
.prnr {
  width: 2.4rem; height: 2.4rem; border-radius: 9px; background: var(--grund); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.gewaehlt .prnr { background: var(--rot); color: #fff; }
.pruefung-text b { display: block; font-weight: 600; }
.pruefung-text .gedimmt { font-size: .9rem; }

.info { margin-top: 1.1rem; background: var(--grund); border-radius: 10px; padding: .9rem 1rem; font-size: .95rem; }
.info p { margin: .3rem 0 0; }

.fehlerbox { background: #fbeeee; border: 1px solid #ecc9ca; border-left: 5px solid var(--warn); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.1rem; }
.fehlerbox ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Preis */
.preis { position: sticky; top: 1rem; }
.preis-karte h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.preis-zeilen div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.preis-zeilen div span:last-child { white-space: nowrap; }
.preis-summe { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem 0 .4rem; font-weight: 600; }
.preis-summe b { font-size: 1.6rem; color: var(--rot); }

/* Bestätigung */
.bestaetigung { max-width: 680px; margin: 0 auto; text-align: center; padding: 2rem 1.5rem; }
.haken-gross { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--gruen); color: #fff; font-size: 2.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.nennungsnummer { font-size: 1.8rem; font-weight: 800; letter-spacing: .03em; margin: 0 0 1rem; }
.zusammenfassung { text-align: left; display: grid; grid-template-columns: 9rem 1fr; gap: .6rem 1rem; border-top: 1px solid var(--linie); padding-top: 1.2rem; margin: 1.5rem 0; }
.zusammenfassung dt { color: var(--gedimmt); }
.zusammenfassung dd { margin: 0; }

/* Handy */
@media (max-width: 880px) {
  .nenn-layout { grid-template-columns: 1fr; }
  .preis { position: sticky; bottom: 0; top: auto; order: 2; margin: 0 -16px; }
  .preis-karte { border-radius: var(--radius) var(--radius) 0 0; padding: .8rem 16px; box-shadow: 0 -6px 20px rgba(40, 20, 20, .12); }
  .preis-karte h2, .preis-zeilen, .preis-karte p { display: none; }
  .preis-summe { margin: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo img { height: 64px !important; }
  .kopf-innen { flex-wrap: wrap; justify-content: center; gap: .3rem; padding-bottom: .6rem; }
  .kopf nav { width: 100%; justify-content: center; gap: 1.1rem; font-size: .95rem; white-space: nowrap; }
  .karte { padding: 1.1rem; }
  .felder { grid-template-columns: 1fr 1fr; }
  .felder > label, .felder > fieldset { grid-column: span 2; }
  .felder > .schmal { grid-column: span 1; }
  .pferd-felder > label:not(.breit) { grid-column: span 1; }
  .turnier-karte { grid-template-columns: auto 1fr; }
  .turnier-karte .knopf { grid-column: 1 / -1; text-align: center; }
  .pruefung { grid-template-columns: 2.4rem 1fr; }
  .pruefung select { grid-column: 2; }
  .zusammenfassung { grid-template-columns: 1fr; gap: .1rem; }
  .zusammenfassung dd { margin-bottom: .6rem; }
  .cd-feld { min-width: 2.9rem; }
}

/* Erfasste Nennungen / Meine Nennung */
.turnier-wahl label { max-width: 560px; }
.liste-kopf { margin: 1.6rem 0 .8rem; }
.liste-kopf h2 { font-size: 1.5rem; }
.liste-kopf p { margin: .2rem 0 0; }
.liste-pruefung h3 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: 1.15rem; margin-bottom: .6rem; }
.liste-pruefung h3 .prnr { background: var(--rot); color: #fff; }
.liste-pruefung h3 .gedimmt { margin-left: auto; font-weight: 400; }
table.starter { width: 100%; border-collapse: collapse; }
table.starter th { text-align: left; font-size: .85rem; color: var(--gedimmt); font-weight: 600; padding: .3rem .5rem; border-bottom: 1px solid var(--linie); }
table.starter td { padding: .5rem; border-bottom: 1px solid var(--linie); }
table.starter tr:last-child td { border-bottom: 0; }
table.starter .zahl { text-align: right; width: 4rem; }
.anmelde-karte { max-width: 560px; margin: 0 auto; }
.anmelde-karte .felder .breit { grid-column: 1 / -1; }
.anmelde-karte .felder { grid-template-columns: 1fr; }
.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; }
.pr-chip { display: inline-block; background: var(--grund); border-radius: 8px; padding: .15rem .55rem; margin: .1rem .25rem .1rem 0; font-size: .92rem; }
.pr-chip b { color: var(--gold); }

/* Navigation wie auf Startseite/Veranstaltungen, auf dem Handy als Menü */
.kopf nav a { padding: .4rem 0; }
.kopf nav a.aktiv { color: var(--rot); box-shadow: inset 0 -3px 0 var(--gold); }
.menue-knopf { display: none; }
@media (max-width: 900px) {
  .js .kopf-innen { flex-wrap: wrap; justify-content: space-between; }
  .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) {
  .js .kopf-innen { flex-wrap: wrap; justify-content: space-between; padding-bottom: .5rem; }
  .kopf nav { flex-wrap: wrap; }
}

/* Pferd löschen: gut sichtbarer Knopf */
.pferd-entfernen {
  background: #fff; color: var(--warn); border: 1px solid #e3b1ad; border-radius: 999px;
  padding: .35rem .9rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.pferd-entfernen:hover { background: #fbeeee; border-color: var(--warn); }
.pferd-entfernen[hidden] { display: none; }
.feld-hinweis { font-weight: 400; font-size: .8rem; color: var(--gedimmt); }

/* Nennung stornieren */
.knopf.knopf-storno { background: var(--warn); }
.knopf.knopf-storno:hover { background: #8c1d17; }
.storno-hinweis { background: #fbeceb; border: 1px solid #e8b4b0; color: var(--warn); border-radius: 10px; padding: .8rem 1rem; font-weight: 600; }
