/* ============================================================
   SSRL Unterseiten – Archiv & Regeln
   Helles Design, passend zur Startseite (heller Grund)
   ============================================================ */

.site-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.site-header img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: inline-block;
}

/* --- Navigationsleiste unter dem Banner --------------------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1.2rem auto 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #14110f;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  background: #241d19;
  border-color: rgba(242, 199, 107, 0.4);
}

.site-nav a i { font-size: 17px; color: #f2c76b; }

/* Aktive Seite hervorheben */
.site-nav a[aria-current="page"] {
  background: #d21f24;
  border-color: #d21f24;
}

.site-nav a[aria-current="page"] i { color: #ffffff; }

@media (max-width: 640px) {
  .site-nav a { padding: 9px 14px; font-size: 13px; }
}

.subpage {
  max-width: 900px;
  margin: 0 auto;
}

.subpage-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.subpage-header img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: inline-block;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.2rem;
  color: #b30000;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.subpage-back:hover { text-decoration: underline; }
.subpage-back i { font-size: 16px; }

.subpage-title {
  font-size: 24px;
  font-weight: 600;
  color: #14110f;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subpage-title i { color: #d21f24; font-size: 24px; }

/* --- Themen-/Kategorie-Block --------------------------------- */
.acc-group {
  margin-bottom: 2rem;
}

.acc-group-title {
  font-size: 18px;
  font-weight: 600;
  color: #14110f;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-group-title i { color: #d21f24; font-size: 20px; }

/* --- Akkordeon (details/summary) ----------------------------- */
.acc {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8em 1em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #3a0d0f, #2a2a2a);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.acc > summary::-webkit-details-marker { display: none; }

.acc > summary::before {
  content: "\ea61"; /* Tabler chevron-right */
  font-family: "tabler-icons";
  font-size: 15px;
  color: #f2c76b;
  transition: transform 0.2s;
}

.acc[open] > summary::before { transform: rotate(90deg); }

/* Verschachtelte Akkordeons (Jahr → Meisterschaft) eine Stufe heller */
.acc .acc > summary {
  background: linear-gradient(90deg, #5a2a1a, #3a3a3a);
  font-size: 0.9rem;
  font-weight: 500;
}

.acc .acc .acc > summary {
  background: linear-gradient(90deg, #6a4a2a, #4a4a4a);
}

.acc-body {
  padding: 0.9em 1em;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333333;
  background: #fafafa;
}

.acc-body > *:last-child { margin-bottom: 0; }
.acc-body p { margin: 0 0 0.7em; }
.acc-body ul { margin: 0.5em 0 0.9em 1.2em; padding: 0; }
.acc-body li { margin-bottom: 0.45em; }
.acc-body strong { color: #14110f; }

.acc-body a {
  color: #b30000;
  text-decoration: none;
  font-weight: 500;
}

.acc-body a:hover { text-decoration: underline; }

/* --- Podium im Archiv ---------------------------------------- */
.acc-podium {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.8em;
}

.acc-rank {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  background: rgba(0, 0, 0, 0.03);
}

.acc-rank strong { color: #14110f; }
.acc-rank .zusatz { color: #888; font-weight: 400; }

.acc-rank[data-rang="1"] { border-left-color: #d4a800; background: rgba(212, 168, 0, 0.09); }
.acc-rank[data-rang="2"] { border-left-color: #9a9a9a; background: rgba(154, 154, 154, 0.09); }
.acc-rank[data-rang="3"] { border-left-color: #a85f2a; background: rgba(168, 95, 42, 0.09); }

.acc-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.35em;
}

.acc-links a i { font-size: 14px; }

/* --- Hinweis- und Warnboxen (Regeln) ------------------------- */
.note-box {
  margin: 0.8em 0;
  padding: 0.75em 0.9em;
  border-left: 4px solid #ffcc00;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 204, 0, 0.08);
}

.warn-box {
  margin: 0.8em 0;
  padding: 0.75em 0.9em;
  border-left: 4px solid #b30000;
  border-radius: 0 8px 8px 0;
  background: rgba(179, 0, 0, 0.06);
}

.note-box p:last-child,
.warn-box p:last-child { margin-bottom: 0; }

/* --- QR-Code ------------------------------------------------- */
.acc-qr {
  text-align: center;
  margin-top: 0.8em;
}

.acc-qr img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* --- Mobile --------------------------------------------------- */
@media (max-width: 640px) {
  .subpage-title { font-size: 20px; }
  .acc > summary { font-size: 0.9rem; }
}

/* ============================================================
   Lightbox (Bild vergrössern)
   ============================================================ */

.js-zoom { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
