/* Gemeinsames Aussehen der Homepage und des Wikis (dunkel, Gold wie im Spiel). */
:root {
	--bg: #0f0d0a;
	--bg2: #17130e;
	--panel: #1f1a13;
	--panel2: #2a2218;
	--line: #4d3b22;
	--text: #f2e6cc;
	--muted: #b5a585;
	--accent: #e0a63a;
	--accent2: #f4c76a;
	--red: #d0533a;
	--yellow: #e2b93b;
	--blue: #4f8fd8;
	--radius: 12px;
	--max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; }
a { color: var(--accent2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .4em; color: var(--accent2); }
h3 { font-size: 1.15rem; margin: 0 0 .3em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 13, 10, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: Georgia, serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; color: var(--accent); text-decoration: none; margin-inline-end: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--panel2); color: var(--accent2); }
.lang { display: flex; gap: 4px; }
.lang select { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; min-height: 44px; cursor: pointer; font: inherit; max-width: 46vw; }
@media (max-width: 760px) { .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; } .nav a { white-space: nowrap; } }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(#f0b94c, #c98a22); color: #1b1408; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 10px; min-height: 48px; border: 0; cursor: pointer; font: inherit; font-weight: 700; box-shadow: 0 4px 18px rgba(224, 166, 58, .25); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--accent); box-shadow: none; }

/* Startbereich */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; background: #0b0a0e url("img/hero.jpg") center / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 12, .25), rgba(15, 13, 10, .95)); }
.hero .wrap { position: relative; text-align: center; padding-top: 40px; padding-bottom: 56px; }
.hero img.logo { width: min(640px, 92%); max-height: 42vh; object-fit: contain; margin: 0 auto 12px; mix-blend-mode: screen; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 680px; margin: 0 auto 26px; color: var(--text); text-shadow: 0 2px 8px #000; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.status { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.status b { color: var(--accent2); }

/* Abschnitte */
section.block { padding: 64px 0; border-bottom: 1px solid #241d14; }
section.block:nth-of-type(even) { background: var(--bg2); }
.intro { max-width: 760px; color: var(--muted); margin: 0 0 28px; }
.why .wrap > p { max-width: 760px; font-size: 1.05rem; line-height: 1.7; margin: 0 0 16px; }
.promise { max-width: 760px; margin: 24px 0; padding-block: 4px; padding-inline: 18px 0; border-inline-start: 4px solid var(--accent); }
.promise h3 { margin: 0 0 6px; color: var(--accent); font-size: 1.35rem; }
.promise p { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 6px; }

/* Reiche */
.kingdoms { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.kingdoms img { border-radius: var(--radius); border: 1px solid var(--line); }
.realm { border-inline-start: 4px solid var(--line); padding-block: 8px; padding-inline: 14px 0; margin-bottom: 14px; }
.realm.red { border-color: var(--red); }
.realm.yellow { border-color: var(--yellow); }
.realm.blue { border-color: var(--blue); }
.realm p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .kingdoms { grid-template-columns: 1fr; } }

/* Klassen */
.class { text-align: center; display: flex; flex-direction: column; align-items: center; }
.class img { height: 220px; width: auto; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }

/* Bilder */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.shots figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shots figcaption { padding: 8px 12px; font-size: .9rem; color: var(--muted); background: var(--panel); }

/* Download */
.dl ol { color: var(--muted); padding-inline-start: 20px; margin: 12px 0 0; }
.dl .btn { margin-top: 10px; }
.dl .alt { margin: 10px 0 0; font-size: 0.9em; }
.dl .alt a { color: var(--muted); text-decoration: underline; }
.note { background: var(--panel2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); margin-top: 16px; }

/* Neuigkeiten */
.news { display: grid; gap: 12px; }
.news article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.news time { color: var(--accent); font-size: .85rem; font-weight: 700; }
.news h3 { margin: 4px 0 6px; }
.news ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 48px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Fußzeile */
footer.site { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; margin-inline-start: auto; }
footer.site a { color: var(--muted); }

/* Textseiten (Impressum, Datenschutz) */
.page { padding: 48px 0 64px; }
.page .wrap { max-width: 820px; }
.page h1 { color: var(--accent2); }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.todo { background: #4a3410; color: #ffdf9a; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Galerie */
#gallery h3, h3.subhead { margin: 28px 0 12px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 48px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 4px solid var(--line); }
.tab.red { border-bottom-color: var(--red); }
.tab.yellow { border-bottom-color: var(--yellow); }
.tab.blue { border-bottom-color: var(--blue); }
.tab.on { background: var(--panel2); color: var(--accent2); }
#gallery video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius); border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.thumbs figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.thumbs button { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.thumbs img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumbs figcaption { padding: 8px 12px; font-size: .9rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); padding: 56px 12px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox p { color: var(--muted); margin: 10px 0 0; text-align: center; }
.lightbox button { position: absolute; min-width: 56px; min-height: 56px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 8px; inset-inline-end: 8px; }
.lb-prev { top: 50%; inset-inline-start: 8px; }
.lb-next { top: 50%; inset-inline-end: 8px; }
[dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { transform: scaleX(-1); }

/* Neuigkeiten oben */
section.newsband { padding: 36px 0; background: var(--bg2); }
.news article.latest { position: relative; border-color: var(--accent); background: linear-gradient(135deg, var(--panel2), var(--panel)); padding: 22px 24px; }
.news article.latest h3 { font-size: 1.5rem; }
.news article.latest ul { font-size: 1.05rem; color: var(--text); }
.news .badge { display: inline-block; margin-inline-end: 10px; padding: 2px 10px; border-radius: 99px; background: var(--accent); color: #1a1208; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.news details.older { margin-top: 4px; }
.news details.older article { margin: 0 12px 12px; }

/* Konto-Bereich (konto.html) */
.konto-box { max-width: 560px; }
.konto-box label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: .95rem; }
.konto-box input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; }
.konto-box .btn { margin-top: 16px; }
.konto-msg { min-height: 1.4em; margin: 12px 0 0; color: var(--accent2); }
.konto-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.konto-who { font-weight: 700; font-size: 1.1rem; }
.konto-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.konto-tabs button { min-height: 48px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.konto-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--accent2); }
.konto-row { margin: 8px 0; }
.konto-note { color: var(--muted); font-size: .92rem; margin: 14px 0; }
.konto-table { width: 100%; border-collapse: collapse; }
.konto-table th, .konto-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.konto-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.konto-price { color: var(--accent2); font-weight: 700; margin-top: 8px; }
.konto-warn { border: 1px solid #b33; background: rgba(180, 40, 40, .12); border-radius: 10px; padding: 12px 14px; }
.konto-warn p { margin: 8px 0 0; }
.btn.danger { background: linear-gradient(#d65a5a, #a52a2a); color: #fff; box-shadow: none; }
.konto-box { max-width: none; }
.konto-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; color: var(--text); }
.konto-check input { width: 24px; min-height: 24px; flex: none; }
.konto-secret { font-family: ui-monospace, Consolas, monospace; font-size: 2rem; letter-spacing: .15em; font-weight: 700; word-break: break-all; user-select: all; }
.konto-sec { margin-bottom: 28px; }
