:root{
  --bg: #0b0d12;
  --panel: #121621;
  --text: #f6f7f9;
  --muted: #c9cdd3;
  --brand: #dc2626;
  --brand-ghost: rgba(220,38,38,.13);
  --card: #10141f;
  --border: #212735;
  --accent: #ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans","Helvetica Neue",Arial}
a{color:var(--accent);text-decoration:underline dotted 1px}
a:hover{text-decoration:underline}
.container{width:min(1100px,92%);margin-inline:auto}
.site-header{position:sticky;top:0;z-index:10;background:linear-gradient(to bottom, rgba(11,13,18,.9), rgba(11,13,18,.6));backdrop-filter:saturate(1.1) blur(6px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0}
.brand{display:flex;gap:.6rem;align-items:center;font-weight:700;color:var(--text);text-decoration:none}
.site-nav{display:flex;gap:1rem}
.site-nav a{padding:.4rem .6rem;border-radius:.5rem}
.site-nav a:hover{background:var(--card)}
.nav-toggle{display:none;background:none;border:1px solid var(--border);color:var(--text);padding:.35rem .5rem;border-radius:.5rem}
@media (max-width:780px){
  .nav-toggle{display:block}
  .site-nav{position:absolute;inset:3.2rem .5rem auto .5rem;display:none;flex-direction:column;background:var(--panel);border:1px solid var(--border);padding:.5rem;border-radius:.8rem}
  .site-nav.open{display:flex}
}
.hero{background: radial-gradient(1200px 400px at 20% -20%, rgba(220,38,38,.25), transparent), radial-gradient(800px 300px at 100% 0%, rgba(255,255,255,.12), transparent);border-bottom:1px solid var(--border)}
.hero-inner{padding:4.2rem 0 3rem}
.hero h1{font-size:clamp(1.8rem,3.8vw,3rem);line-height:1.15;margin:0 0 .6rem}
.hero p{max-width:60ch;margin:0 0 1.2rem;color:var(--muted)}
.btn{display:inline-block;background:var(--brand);color:#fff;padding:.65rem 1rem;border-radius:.6rem;font-weight:700;letter-spacing:.2px}
.btn:hover{text-decoration:none;opacity:.96}
.btn.ghost{background:var(--brand-ghost);color:var(--brand)}
.section{padding:3rem 0;border-bottom:1px solid var(--border)}
.section.alt{background:linear-gradient(to bottom, rgba(255,255,255,.02), rgba(255,255,255,0))}
.section h2{font-size:1.6rem;margin:0 0 .8rem}
.checklist{list-style:none;padding:0;margin:.6rem 0 0}
.checklist li{padding-left:1.6rem;position:relative;margin:.25rem 0}
.checklist li::before{content:"✓";position:absolute;left:0;color:#fff;background:var(--brand);width:1.1rem;height:1.1rem;display:inline-grid;place-items:center;border-radius:.3rem;font-size:.8rem;line-height:1}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:var(--card);border:1px solid var(--border);border-radius:.8rem;padding:1rem}
.card h3{margin:.3rem 0 .5rem}
.muted{color:var(--muted);font-size:.95rem}
@media (max-width:980px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.cards{grid-template-columns:1fr}}
.grid.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.gallery-item{display:block;border:1px solid var(--border);border-radius:.6rem;overflow:hidden}
.gallery img{display:block;width:100%;height:180px;object-fit:cover}
@media (max-width:780px){.grid.gallery{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.grid.gallery{grid-template-columns:1fr}}
.site-footer{padding:1.5rem 0}
.footer-inner{display:flex;gap:1rem;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:1rem}
.legal{display:flex;gap:.8rem}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;padding:1rem}
.lightbox.open{display:flex}
.lightbox-img{max-width:92vw;max-height:90vh;border-radius:.6rem;border:2px solid var(--brand)}
.lightbox-close{position:absolute;top:1rem;right:1rem;font-size:2rem;background:transparent;color:#fff;border:none;cursor:pointer}
#year{opacity:.85}


/* 20251014 Training-Karten: 2 Spalten breit (Desktop) */
#training .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem; /* optional: etwas mehr Luft */
}

/* Mobil bleibt 1 Spalte – nichts ändern */
@media (max-width: 640px){
  #training .cards { grid-template-columns: 1fr; }
}

/* Header-Navigation vorübergehend ausblenden */
/* .site-nav { display: none !important; } */
/* .nav-toggle { display: none !important; } */


/* Callout-Kasten: dezente Hervorhebung für Hinweise */
.callout{
  margin-top:1rem;
  padding:1rem;
  border:1px solid var(--border);
  border-radius:.8rem;
  background:linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.callout h3{ margin:.2rem 0 .4rem } /* falls du mal h3 im Callout nutzt */



/* Light Theme Variables (aktiv, wenn [data-theme="light"] gesetzt ist) */
:root[data-theme="light"]{
  --bg: #ffffff;
  --panel: #f7f8fb;
  --text: #0b0d12;
  --muted: #4b5563;
  --brand: #dc2626;               /* Rot bleibt gleich */
  --brand-ghost: rgba(220,38,38,.12);
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #0b0d12;
}

/* Header-Hintergrund im Light-Mode etwas heller */
:root[data-theme="light"] .site-header{
  background: linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,.65));
  border-bottom-color: var(--border);
}

/* Theme-Toggle Button */
.theme-toggle{
  margin-left: auto; /* schiebt den Button nach rechts */
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover{ filter: brightness(0.98); }
.theme-toggle:focus{ outline: 2px solid var(--brand-ghost); outline-offset: 2px; }
.theme-icon{ font-size: 1.1rem; line-height: 1; }

/* Kleiner Abstand, falls daneben noch Elemente (z. B. .site-nav) erscheinen */
.site-nav{ margin-left: .6rem; }



/* Galerie: neutraler Rand + eckige Ecken */
.grid.gallery .gallery-item{
  border-color: var(--border); /* neutral statt rot */
  border-radius: 0;            /* eckige Ecken */
}
.grid.gallery .gallery-item img{
  border-radius: 0;            /* sicherheitshalber auch fürs Bild */
}

/* Lightbox: neutraler Rand + eckige Ecken */
.lightbox-img{
  border: 2px solid var(--border); /* vorher: var(--brand) (rot) */
  border-radius: 0;
}


/* Mobile-Navigation sichtbar, wenn .open gesetzt */
@media (max-width: 780px){
  .site-nav { display: none; }
  .site-nav.open { display: flex; } /* oder block; je nach Layout */
}

.richtext h2 { margin-top: 1.2rem; }
.richtext p  { margin: .5rem 0; line-height: 1.6; }


/* --- Glossar: Layout & Typografie --- */

/* A–Z-Schnellnavigation */
.az-nav{
  display:flex; flex-wrap:wrap; gap:.4rem; margin:.8rem 0 1.2rem;
}
.az-nav a{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:2.1rem; height:2.1rem;
  border:1px solid var(--border); border-radius:.5rem;
  text-decoration:none; font-weight:700;
  color: var(--accent); background: var(--card);
}
.az-nav a:hover{ filter:brightness(.98) }

/* Buchstaben-Kopf (A, B, C ...) klar abgesetzt */
.glossary-letter{
  margin:1.6rem 0 .8rem;
  padding:.35rem .7rem;
  border-left:.35rem solid var(--brand);
  background: var(--brand-ghost);
  color: var(--accent);
  border-radius:.3rem;
  font-weight:800;
  letter-spacing:.02em;
}

/* Liste ohne Einrückung, mit sauberem Zeilenbild */
.glossary-list{
  display:grid;
  grid-template-columns: 1fr;
  row-gap:.9rem;              /* Abstand zwischen Begriffen */
  margin:0 0 1.4rem 0;
}

/* Begriff (dt): größer & fett, ohne Zusatzabstände */
.glossary-list dt{
  margin:0;
  font-weight:800;
  font-size:1.15rem;
  line-height:1.35;
  color:var(--accent);
  /* dezenter Trenner oberhalb jedes Begriffs */
  padding-top:.9rem;
  border-top:1px solid var(--border);
}

/* oberster Begriff in einem Block ohne Linie oben */
.glossary-list dt:first-of-type{
  border-top:none; padding-top:0;
}

/* Erklärung (dd): ohne Einrückung, dichter am dt */
.glossary-list dd{
  margin: .25rem 0 0 0;      /* kein linkes Einrücken */
  color: var(--muted);
  line-height:1.65;
}

/* Optional: leichte Verdichtung auf schmalen Screens */
@media (max-width: 780px){
  .glossary-list{ row-gap:.8rem }
  .glossary-list dt{ font-size:1.12rem }
}


/* Ansprechpartner (dezent) */
.contact-person{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap:.8rem 1rem;
  align-items:center;
  padding: .9rem 1rem;
  border:1px solid var(--border);
  border-radius:.8rem;
  background: var(--card);
  margin-top: .8rem;
}
.contact-person .avatar{
  width: 40px; height: 40px;
  border-radius: 50%; 
  display:grid; place-items:center;
  font-weight:800;
  background: var(--brand-ghost);
  color: var(--accent);
}
.contact-person .who{ line-height:1.35 }
.contact-person .how a{ white-space:nowrap }
@media (max-width: 640px){
  .contact-person{ grid-template-columns: auto 1fr; }
  .contact-person .how{ grid-column: 1 / -1; }
}