/* tournament.html — page-specific rules. Nav + basic :root aus _nav.css. */
:root {
    --accent2:#ff6b35;
    --green:#3fb950;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { line-height: 1.7; }
.container { max-width: 800px; margin: 0 auto; padding: 0 2rem 2rem; }
h1 { color: #fff; font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
h2 { color: #fff; font-size: 1.4rem; margin: 3rem 0 1rem; }
h3 { color: var(--accent2); font-size: 1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
.subtitle { opacity: 0.6; margin-bottom: 2.5rem; font-size: 1.05rem; }
.h2-slash { color: var(--accent2); opacity: 0.35; transition: opacity 0.2s ease-out; }
h2:hover .h2-slash { opacity: 0.85; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; }
.card p { font-size: 0.85rem; opacity: 0.8; margin: 0; }
pre { background: #0d1117; border: 1px solid var(--border); border-radius: 6px; padding: 1.2rem; margin: 1.5rem 0; font-size: 0.82rem; overflow-x: auto; }
.note { background: rgba(0,200,255,0.06); border-left: 3px solid var(--accent); padding: 0.8rem 1.2rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0; font-size: 0.85rem; }
.muted { opacity: 0.5; font-size: 0.85rem; }
.cta-box { text-align: center; padding: 2.5rem 0; margin-top: 2rem; border-top: 1px solid var(--border); }
.btn { display: inline-block; padding: 0.75rem 2rem; border-radius: 4px; font-weight: bold; font-size: 0.9rem; text-decoration: none; transition: opacity 0.2s; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { border: 1px solid var(--accent); color: var(--accent); margin-left: 1rem; }
.btn-secondary:hover { background: rgba(0,200,255,0.1); }

/* Standings (JS-gefüllt) */
#standings-table h3 { margin-top: 1.5rem; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
table.standings { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.5rem; }
table.standings th { color: var(--accent); border-bottom: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; font-weight: normal; font-size: 0.72rem; text-transform: uppercase; }
table.standings td { padding: 0.35rem 0.6rem; border-bottom: 1px solid rgba(0,200,255,0.06); }
table.standings .npc-row td { opacity: 0.45; }

/* Footer — Standard aller Landing-Pages (free.css/about.css) */
footer { text-align: center; padding: 2rem 0; font-size: 0.75rem; color: #6b7fa0; border-top: 1px solid var(--border); margin-top: 3rem; }
footer a { color: var(--accent); }

@media (max-width: 600px) {
    footer { line-height: 2.2; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* S271 — je offenem Turnier eine Karte (vorher: genau eine Rangliste, weil die
   Seite nur `/tournaments/current` kannte und das per limit(1) eines lieferte). */
.tournament-card { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem; margin-top: 1.2rem; background: var(--card-bg); }
.tournament-card h3 { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--accent); }
/* S279: Der Weg in die Iso-Linse. Steht direkt unter der Kopfzeile der
   Karte, weil er nur bei `running` erscheint und dann das Naechstliegende
   ist, was ein Zuschauer tun will. */
.iso-link { display: inline-block; margin: 0 0 0.6rem; font-size: 0.78rem;
  color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.iso-link:hover { border-bottom-style: solid; }
.standings-cat h4 { margin: 0.9rem 0 0; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; opacity: 0.75; }
.more-cats { margin-top: 0.6rem; }
.more-cats summary { cursor: pointer; font-size: 0.72rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.05em; }
.more-cats summary:hover { opacity: 0.9; }
