/* Arvandor – Homepage */

:root {
	--bg: #040914;
	--panel: rgba(9, 20, 42, 0.62);
	--panel-strong: rgba(7, 16, 34, 0.9);
	--line: rgba(124, 172, 255, 0.16);
	--line-strong: rgba(124, 172, 255, 0.3);
	--text: #eaf2fd;
	--muted: #a7bbd4;
	--faint: #6f84a1;
	--gold: #f3c766;
	--gold-2: #b98637;
	--ice: #7cc4ff;
	--gold-line: rgba(222, 178, 96, 0.55);
	--gold-soft: rgba(222, 178, 96, 0.22);
	--ice-glow: rgba(80, 160, 255, 0.55);
	--ok: #4ade80;
	--bad: #f87171;
	--shinsoo: #e25d5d;
	--chunjo: #e6c14a;
	--jinno: #4c8fe8;
	--radius: 18px;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	--head: 'Cinzel', Georgia, serif;
	--body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(20, 60, 120, 0.25), transparent 60%),
		linear-gradient(180deg, rgba(4, 9, 20, 0.45) 0%, rgba(4, 9, 20, 0.78) 55%, var(--bg) 100%),
		url('/assets/background1.jpg') center top / cover no-repeat fixed,
		var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: #a9d8ff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ Kopfzeile */
.site-header {
	position: sticky; top: 0; z-index: 10;
	background: linear-gradient(180deg, rgba(4, 9, 20, 0.85), rgba(4, 9, 20, 0.55));
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--gold-soft);
}
.site-header::after, .site-footer::before { content: ''; position: absolute; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: radial-gradient(circle, #dff1ff, var(--ice) 45%, #1f5fb0); border: 1px solid var(--gold); box-shadow: 0 0 14px var(--ice-glow); }
.site-header::after { bottom: -6px; }
.site-footer::before { top: -6px; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--head); font-weight: 800; letter-spacing: 0.14em; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(124, 196, 255, 0.45)); }
.brand:hover { color: var(--gold); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
	position: relative; color: var(--muted); font-weight: 700; font-size: 0.94rem;
	padding: 9px 16px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(124, 172, 255, 0.08); }
.nav a.active { color: var(--gold); background: linear-gradient(180deg, rgba(240, 198, 107, 0.12), rgba(240, 198, 107, 0.03)); box-shadow: inset 0 -2px 0 var(--gold); }
.nav a.prime { color: var(--gold); }
.nav a.prime:hover { background: rgba(240, 198, 107, 0.1); }

/* ------------------------------------------------------------------ Seitenkopf */
main { flex: 1; }
.page-head { text-align: center; padding: 54px 0 30px; }
.page-head .logo { width: min(500px, 88%); margin: 0 auto 6px; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 30px rgba(80, 150, 255, 0.25)); animation: float 7s ease-in-out infinite; }
.page-head h1 { font-family: var(--head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: 0.14em; margin: 0 0 8px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7); }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 800; font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .page-head .logo { animation: none; } }

/* ------------------------------------------------------------------ Karten */
.card {
	position: relative; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--radius);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	padding: 30px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card::before {
	content: ''; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg); pointer-events: none;
	background: radial-gradient(circle, #e8f6ff, var(--ice) 45%, #1d5aa8); border: 1px solid var(--gold); box-shadow: 0 0 12px var(--ice-glow);
}
.card h2, .card h3 { font-family: var(--head); letter-spacing: 0.08em; margin: 0 0 6px; }
.card h2 { font-size: 1.3rem; }
.card h3 { font-size: 1.1rem; }
.card .sub { color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }
.center-col { max-width: 460px; margin: 0 auto 60px; }
.wide-col { max-width: 760px; margin: 0 auto 60px; }

/* Status-Pille */
.status-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
	font-size: 0.88rem; font-weight: 700; background: rgba(6, 14, 30, 0.72); border: 1px solid var(--line); color: var(--muted);
}
.chip strong { color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 10px rgba(74, 222, 128, 0.9); animation: pulse 2.4s ease-in-out infinite; }
.dot.off { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 2px rgba(74, 222, 128, 0.4); } }

/* ------------------------------------------------------------------ Tabs */
.tabs { display: flex; padding: 4px; border-radius: 12px; background: rgba(3, 9, 22, 0.7); border: 1px solid var(--line); margin-bottom: 24px; }
.tab { flex: 1; padding: 10px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); background: linear-gradient(180deg, rgba(240, 198, 107, 0.16), rgba(240, 198, 107, 0.05)); box-shadow: inset 0 0 0 1px var(--gold-line); }
.tabs.inline { display: inline-flex; margin-bottom: 0; }
.tabs.inline .tab { flex: none; }

/* ------------------------------------------------------------------ Formular */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .select, .search {
	width: 100%; padding: 12px 14px; border-radius: 11px;
	background: rgba(2, 7, 18, 0.72); border: 1px solid var(--line-strong); color: var(--text);
	font: inherit; font-size: 0.98rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .select:focus, .search:focus { outline: none; border-color: var(--ice); background: rgba(4, 12, 28, 0.9); box-shadow: 0 0 0 3px rgba(124, 196, 255, 0.16); }
.field .hint { font-size: 0.8rem; color: var(--faint); margin-top: 5px; }
.field .error { display: none; font-size: 0.82rem; color: var(--bad); margin-top: 5px; }
.field.has-error input { border-color: var(--bad); }
.field.has-error .error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: 0.92rem; }
.form-msg.ok { display: block; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.4); color: #c3f6d6; }
.form-msg.err { display: block; background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #ffd3d3; }

/* ------------------------------------------------------------------ Knoepfe */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	position: relative; padding: 13px 28px; border: 0; cursor: pointer;
	clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
	font-family: var(--head); font-weight: 800; font-size: 0.98rem; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
	transition: transform .12s, filter .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { color: #2b1a05; background: linear-gradient(180deg, #ffe7a8, var(--gold) 48%, var(--gold-2)); }
.btn-gold:hover { color: #2b1a05; filter: brightness(1.08) drop-shadow(0 0 12px rgba(243, 199, 102, 0.5)); }
/* Rahmenknopf: goldene Kontur in Kristallform */
.btn-ghost { color: var(--text); background: linear-gradient(180deg, #f6d68e, #9b6d2a); isolation: isolate; }
.btn-ghost::before { content: ''; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: linear-gradient(180deg, #0d1c3c, #060d20); transition: background .15s; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::before { background: linear-gradient(180deg, #13284f, #08132b); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%); }
.btn-block { width: 100%; margin-top: 6px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; pointer-events: none; }

/* ------------------------------------------------------------------ Konto */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.account-head .who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 1.2rem; color: #2b1a05; background: linear-gradient(180deg, #ffe7a8, var(--gold-2)); box-shadow: 0 0 20px rgba(243, 199, 102, 0.35); }
.account-head .name { font-family: var(--head); font-size: 1.25rem; letter-spacing: 0.06em; }
.account-head .since { color: var(--faint); font-size: 0.85rem; }
details.box { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 9, 22, 0.45); }
details.box summary { cursor: pointer; padding: 14px 18px; font-weight: 800; color: var(--muted); list-style: none; }
details.box summary::-webkit-details-marker { display: none; }
details.box summary::after { content: '▾'; float: right; transition: transform .15s; }
details.box[open] summary::after { transform: rotate(180deg); }
details.box .inner { padding: 4px 18px 18px; }

/* ------------------------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; border-radius: 13px; border: 1px solid var(--line); background: rgba(2, 7, 18, 0.5); }
table.rank { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.rank th { text-align: left; font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); background: var(--panel-strong); padding: 12px 14px; border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
table.rank td { padding: 11px 14px; border-bottom: 1px solid rgba(124, 172, 255, 0.07); white-space: nowrap; }
table.rank tr:last-child td { border-bottom: none; }
table.rank tbody tr { transition: background .12s; }
table.rank tbody tr:hover td { background: rgba(124, 172, 255, 0.07); }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; }
table.rank .name { font-weight: 800; }
.pos { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(124, 172, 255, 0.1); color: var(--muted); }
.pos.p1 { background: linear-gradient(180deg, #ffe7a3, #d9a53c); color: #3a2405; box-shadow: 0 0 14px rgba(243, 199, 102, 0.5); }
.pos.p2 { background: linear-gradient(180deg, #f1f4f8, #a9b4c2); color: #1f2733; }
.pos.p3 { background: linear-gradient(180deg, #f2c29b, #b5723f); color: #3a1d06; }
.empire { display: inline-flex; align-items: center; gap: 8px; }
.empire .dot { width: 10px; height: 10px; }
.e1 .dot { background: var(--shinsoo); } .e2 .dot { background: var(--chunjo); } .e3 .dot { background: var(--jinno); }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar .select { width: auto; min-width: 150px; padding: 10px 12px; }
.toolbar .search { width: auto; flex: 1; min-width: 180px; padding: 10px 12px; }
.meta { color: var(--faint); font-size: 0.85rem; margin-top: 12px; }

/* ------------------------------------------------------------------ Download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.dl-card { display: flex; flex-direction: column; }
.dl-card .badge { position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #2b1a05; background: linear-gradient(180deg, #ffe7a8, var(--gold-2)); }
.dl-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(124, 196, 255, 0.12); border: 1px solid var(--line-strong); color: var(--ice); }
.dl-icon svg { width: 28px; height: 28px; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; border-radius: 10px; background: rgba(2, 7, 18, 0.5); border: 1px solid var(--line); font-size: 0.92rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 800; text-align: right; }
.dl-card .btn { margin-top: auto; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 900; color: #2b1a05; background: linear-gradient(180deg, #ffe7a8, var(--gold-2)); }
.steps strong { color: var(--text); }
.note { color: var(--faint); font-size: 0.86rem; margin: 14px 0 0; }

/* ------------------------------------------------------------------ Fusszeile */
.site-footer { border-top: 1px solid var(--gold-soft); padding: 26px 0; color: var(--faint); font-size: 0.88rem; background: rgba(3, 7, 16, 0.6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

/* ------------------------------------------------------------------ Mobil */
@media (max-width: 760px) {
	.dl-grid { grid-template-columns: 1fr; }
	body { background-attachment: scroll, scroll, scroll, scroll; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.site-header .wrap { gap: 10px; }
	.brand span { display: none; }
	.nav a { padding: 7px 11px; font-size: 0.88rem; }
	.card { padding: 24px 18px; }
	.page-head { padding: 34px 0 20px; }
	.form-row { grid-template-columns: 1fr; }
	.hide-sm { display: none; }
	.toolbar .select, .toolbar .search, .tabs.inline { flex: 1 1 100%; }
	table.rank th, table.rank td { padding: 10px 8px; }
	table.rank { font-size: 0.9rem; }
	.pos { min-width: 26px; height: 26px; }
}
