:root {
  --gold: #d4a017; --gold2: #f2c94c; --gold3: #fff1b8; --gold-dark: #8a6510; --gold-soft: rgba(212,160,23,.12);
  --bg: #08080a; --panel: #121216; --panel2: #1a1a20; --line: #26262e; --text: #f3f1ea; --muted: #9b978b;
  --red: #ef4444; --green: #22c55e; --radius: 12px;
  --gold-grad: linear-gradient(135deg, #a87908 0%, #f2c94c 45%, #fff1b8 55%, #d4a017 75%, #a87908 100%);
  font-family: "Titillium Web", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 15px; line-height: 1.55; overflow-x: clip; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #111; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 0 28px; height: 66px; background: rgba(8,8,10,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { font-weight: 900; font-style: italic; font-size: 26px; letter-spacing: -1px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; filter: drop-shadow(0 0 10px rgba(242,201,76,.25)); }
/* Logo: Originalbild 2000×1493 mit durchsichtigem Rand – hier per Ausschnitt zugeschnitten */
.logo-erc, .logo-full { display: block; overflow: hidden; flex: none; }
.logo-erc img, .logo-full img { display: block; }
.logo-erc { height: 36px; aspect-ratio: 1355 / 425; filter: drop-shadow(0 0 8px rgba(242,201,76,.25)); }
.logo-erc img { width: 147.6%; margin: -31.73% 0 0 -25.09%; }
.logo-full { width: 100%; max-width: 720px; aspect-ratio: 1355 / 602; filter: drop-shadow(0 10px 30px rgba(212,160,23,.28)); }
.logo-full img { width: 147.6%; margin: -31.73% 0 0 -25.09%; }
.brand-text { border-left: 1px solid var(--line); padding-left: 12px; }
.brand small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; line-height: 1.2; }
nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
nav a { text-decoration: none; padding: 8px 13px; border-radius: 6px; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .8px; position: relative; }
nav a:hover { color: var(--text); }
nav a.on { color: var(--gold2); }
nav a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -14px; height: 3px; background: var(--gold-grad); border-radius: 2px; }
nav a.cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer; }
.stripe { height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 40px, transparent 40px 48px); opacity: .8; }

main { max-width: 1180px; margin: 0 auto; padding: 36px 28px 80px; }
h1 { font-size: 36px; margin: 0 0 6px; text-transform: uppercase; font-weight: 900; font-style: italic; letter-spacing: -.5px; line-height: 1.1; }
h2 { font-size: 18px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .8px; }
h3 { margin: 0 0 6px; font-size: 17px; }
.goldtext { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { color: var(--gold2); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; }
.pre { white-space: pre-line; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 16px; }
.section-head h2 { margin: 0; font-size: 22px; font-style: italic; font-weight: 900; }
.section-head a { color: var(--muted); text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.section-head a:hover { color: var(--gold2); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; padding: 11px 20px; border-radius: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; font-size: 13px; background: var(--gold-grad); background-size: 200% 100%; color: #1a1204; transition: background-position .35s, transform .1s; }
.btn:hover { background-position: 100% 0; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold2); }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.danger { background: transparent; color: #ff7a7a; border: 1px solid #4a2222; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Startseite */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 0 10px; }
.hero .row { justify-content: center; }
.hero h1 { font-size: 62px; line-height: .98; margin: 14px 0 18px; }
.hero h1 span { display: block; }
.hero h1.hero-logo { margin: 18px 0 22px; width: 100%; display: flex; justify-content: center; }
.hero p.lead { color: #cfcabb; font-size: 19px; max-width: 600px; margin: 0 0 26px; }
.glow { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(ellipse, rgba(212,160,23,.16), transparent 65%); pointer-events: none; z-index: -1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-grad); }
.stat b { display: block; font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }

/* Karten */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.game { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.game:hover { border-color: #4a3a12; transform: translateY(-2px); }
.game .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold2); border: 1px solid #3a2e10; }
.game .ico svg { width: 26px; height: 26px; }
.game.other .ico { background: rgba(255,255,255,.04); color: #cfcabb; border-color: var(--line); }
.game .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--gold2); border: 1px solid #3a2e10; padding: 2px 8px; border-radius: 99px; }
.game.other .tag { color: var(--muted); border-color: var(--line); }
.game p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.game a.more { color: var(--gold2); font-weight: 700; font-size: 13px; text-decoration: none; text-transform: uppercase; letter-spacing: .6px; }
.game a.more:hover { text-decoration: underline; }

/* Termine */
.events { display: flex; flex-direction: column; gap: 10px; }
.event { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.event .date { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.event .date b { display: block; font-size: 28px; font-weight: 900; font-style: italic; line-height: 1; }
.event .date span { font-size: 12px; text-transform: uppercase; color: var(--gold2); font-weight: 700; letter-spacing: 1px; }
.event h3 { margin: 0; }
.event .meta { color: var(--muted); font-size: 13px; }
.event .when { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.event.past { opacity: .5; }
.chip { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold2); margin-right: 6px; vertical-align: 2px; }
.chip.grey { background: rgba(255,255,255,.06); color: var(--muted); }
.daygroup { margin: 26px 0 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* News */
.news { display: flex; flex-direction: column; gap: 14px; }
.news article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.news article.pinned { border-color: #4a3a12; background: linear-gradient(135deg, #17130a, var(--panel) 50%); }
.news .meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.news h3 { font-size: 20px; }
.news .text { white-space: pre-line; color: #d8d4c8; margin-top: 6px; }
.news .text.clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Team */
.roleblock { margin-bottom: 30px; }
.roleblock h2 { display: flex; align-items: center; gap: 10px; }
.roleblock h2 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; flex: none; color: #111; }
.person b { display: block; line-height: 1.2; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; border: 1px solid; line-height: 1.5; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.filter button { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.filter button.on { border-color: var(--gold); color: var(--gold2); background: var(--gold-soft); }

/* Beitreten */
.join { position: relative; overflow: hidden; background: linear-gradient(120deg, #1a1406 0%, #121216 60%); border: 1px solid #3a2e10; border-radius: 18px; padding: 34px 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 48px; }
.join::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 280px; background: repeating-linear-gradient(115deg, rgba(212,160,23,.1) 0 14px, transparent 14px 30px); pointer-events: none; }
.join h2 { font-size: 28px; font-style: italic; font-weight: 900; margin: 0 0 6px; }
.join p { margin: 0; color: #cfcabb; }
.join .btn { position: relative; z-index: 1; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: #1a1204; font-weight: 900; display: grid; place-items: center; }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.rules li::marker { color: var(--gold2); font-weight: 900; }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Verwaltung */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { text-decoration: none; padding: 10px 14px; color: var(--muted); font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--gold2); border-color: var(--gold); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table td.act { text-align: right; white-space: nowrap; }
.iconbtn { background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--muted); }
.iconbtn:hover { color: var(--text); border-color: var(--line); }
.iconbtn.del:hover { color: #ff7a7a; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=url], select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
input[type=color] { width: 54px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 3px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { flex-direction: row; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 8px; cursor: pointer; color: var(--text); font-weight: 600; }
.pick label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: #ff7a7a; font-size: 14px; min-height: 1em; }
.login { max-width: 400px; margin: 40px auto; }
.hint { background: var(--gold-soft); border: 1px solid #3a2e10; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: min(560px, 94vw); max-height: 90vh; }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--gold); padding: 10px 18px; border-radius: 10px; z-index: 50; font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--gold2); }


/* Bilder */
.game.has-img { padding-top: 0; }
.game .banner { margin: 0 -20px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #000; }
.game .banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.game:hover .banner img { transform: scale(1.04); }
.game.has-img .tag { background: rgba(8,8,10,.8); backdrop-filter: blur(4px); }
.news img.cover { display: block; width: calc(100% + 44px); margin: -20px -22px 16px; max-height: 380px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.news img.cover.small { max-height: 170px; }
img.avatar { object-fit: cover; background: var(--panel2); }

/* Streams */
.slink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--text); }
.slink::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.slink.tw { color: #b794ff; border-color: #3b2a5e; } .slink.yt { color: #ff6b6b; border-color: #5a2525; } .slink.tt { color: #5ee6e6; border-color: #1f4d4d; }
.slink:hover { background: var(--panel2); }
.embed { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.streamer .embed { margin-top: 12px; }
.streamer .watch { margin-top: 12px; width: 100%; justify-content: center; }
.streamer b { display: block; }

/* Partner */
.partner { display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: border-color .2s, transform .2s; }
a.partner:hover { border-color: #4a3a12; transform: translateY(-2px); }
.plogo { height: 110px; display: grid; place-items: center; background: radial-gradient(circle, #1c1c22, #121216); border-radius: 8px; padding: 14px; }
.plogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.plogo b { font-size: 22px; font-style: italic; }
.pstrip { display: flex; flex-wrap: wrap; gap: 14px; }
.pstrip a { flex: 1 1 160px; max-width: 240px; height: 90px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; filter: grayscale(.6); opacity: .85; transition: filter .2s, opacity .2s, border-color .2s; }
.pstrip a:hover { filter: none; opacity: 1; border-color: #4a3a12; }
.pstrip img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Bild-Feld in der Verwaltung */
.imgfield { display: flex; flex-direction: column; gap: 6px; }
.imgfield .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.imgprev { width: 120px; height: 72px; border-radius: 8px; border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.imgprev.sq { width: 72px; border-radius: 50%; }
.imgprev img { width: 100%; height: 100%; object-fit: cover; }
.form label.btn { flex-direction: row; color: var(--text); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0b0b0e; border-bottom: 1px solid var(--line); padding: 10px; }
  nav.open { display: flex; }
  nav a { padding: 12px; }
  nav a.on::after { display: none; }
  nav a.cta { margin: 6px 0 0; justify-content: center; }
}
@media (max-width: 920px) {
  .hero h1 { font-size: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g2, .f2 { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main { padding: 24px 16px 60px; }
  .top { padding: 0 16px; }
  .g3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .event { grid-template-columns: 56px 1fr; }
  .event .when { grid-column: 2; text-align: left; }
  .table .hide-s { display: none; }
}
