/* =====================================================================
   Kings of Football — Wiki (wiki.kof.gg)
   Eigenständiges Stylesheet im Look von kings-of-x.com.
   Keine externen Ressourcen (keine Web-Fonts, kein Tracking).
   ===================================================================== */

:root {
  --bg:        #0a0b0d;
  --bg-soft:   #101218;
  --card:      #161922;
  --card-2:    #1c2030;
  --text:      #eef1f5;
  --muted:     #9aa3b2;
  --green:     #b6ff2b;
  --green-2:   #8fe000;
  --border:    rgba(255,255,255,.09);
  --radius:    16px;
  --maxw:      1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font);
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-2); font-weight: 700; margin-bottom: 14px;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  background: rgba(10,11,13,.72); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  display: grid; place-items: center; color: #0a0b0d; font-weight: 900; font-size: 1rem;
  box-shadow: 0 0 22px rgba(182,255,43,.35);
}
.brand small { color: var(--muted); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--green); color: #0a0b0d !important; padding: 9px 16px; border-radius: 10px; font-weight: 800; font-size: .9rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-left: 4px; }
.lang-switch a { padding: 6px 10px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.lang-switch a.active { background: var(--green); color: #0a0b0d; }
.lang-switch a:not(.active):hover { color: var(--text); }
@media (max-width: 760px){ .nav-links > a:not(.nav-cta){ display:none; } }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; padding: 66px 0 34px; overflow: hidden; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -30% 20% auto 20%; height: 520px;
  background: radial-gradient(closest-side, rgba(182,255,43,.16), transparent 70%); pointer-events: none;
}
.hero .eyebrow { display: block; }
.hero p.lead { font-size: 1.15rem; max-width: 56ch; margin: 0 auto; }
.search { max-width: 520px; margin: 26px auto 0; position: relative; }
.search input {
  width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 13px 16px; font: inherit; outline: none;
}
.search input:focus { border-color: rgba(182,255,43,.5); }

/* ---------- Themen-Kacheln ---------- */
section { padding: 40px 0; }
.cat { margin-top: 30px; }
.cat > h2 { font-size: 1.15rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 16px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px){ .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  display: block; background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
  transition: transform .16s, border-color .16s;
}
.topic-card:hover { transform: translateY(-4px); border-color: rgba(182,255,43,.45); }
.topic-card .ico { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  background: rgba(182,255,43,.12); display: grid; place-items: center; color: var(--green); font-size: 1.3rem; }
.topic-card h3 { font-size: 1.12rem; margin: 0 0 6px; }
.topic-card p { margin: 0; font-size: .94rem; }

/* ---------- Artikel ---------- */
.article { padding: 40px 0 72px; }
.article .wrap { max-width: 820px; }
.back-top { display: inline-block; margin-bottom: 22px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.back-top:hover { color: var(--text); }
.article h1 { margin-bottom: 10px; }
.article .intro { font-size: 1.12rem; color: #c7cdd8; margin: 0 0 14px; }
.article h2 { margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.article h2:first-of-type { border-top: 0; }
.article h3 { margin: 26px 0 8px; color: var(--text); }
.article p, .article li { color: #c7cdd8; }
.article ul, .article ol { padding-left: 22px; margin: 10px 0; }
.article li { margin: 6px 0; }
.article strong { color: var(--text); }
.article a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.article code { background: rgba(182,255,43,.08); color: var(--green); padding: 1px 7px; border-radius: 6px; font-size: .92em; }

/* Tabellen */
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.article thead th { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.article tbody tr:hover { background: rgba(255,255,255,.02); }

/* Callout / Tipp-Box */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--green); background: var(--card);
  border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.callout.warn { border-left-color: #ffb020; }
.callout.note { border-left-color: #4aa8ff; }
.callout p { margin: 0; color: #c7cdd8; }
.callout .tag { display: block; font-weight: 800; color: var(--text); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }

/* "Verlinkt von" / Themen-Querverweise */
.crossref { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.crossref a { background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  font-size: .85rem; font-weight: 600; color: var(--muted); }
.crossref a:hover { color: var(--text); border-color: rgba(182,255,43,.4); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-soft); }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 600; font-size: .9rem; }
.foot-links a:hover { color: var(--green-2); }
.foot-copy { color: var(--muted); font-size: .86rem; }
