/* ═══════════════════════════════════════════════
   MAFIA INC. — Game Style (Web-Design-Sprache)
   Farben: Gold / Blood / Ink
═══════════════════════════════════════════════ */

/* --- Teststadt-Banner --- */
.teststadt-banner {
	background: repeating-linear-gradient(
		-45deg,
		var(--blood-dark),
		var(--blood-dark) 10px,
		var(--blood) 10px,
		var(--blood) 20px
	);
	color: var(--gold-light);
	text-align: center;
	padding: 10px 15px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--gold-dim);

	z-index: 10;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.teststadt-banner strong {
	font-size: 17px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* --- Ankündigungs-Banner --- */
.ankuendigung-banner {
	background: repeating-linear-gradient(
		-45deg,
		#8a5a00,
		#8a5a00 10px,
		#b87800 10px,
		#b87800 20px
	);
	color: #fff;
	text-align: center;
	padding: 10px 15px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--gold-dim);
	z-index: 10;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.ankuendigung-banner a {
	color: #fff;
	text-decoration: underline;
}
.ankuendigung-banner a:hover {
	color: var(--gold-light);
}

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--gold: #c9a84c;
	--gold-light: #e8c96a;
	--gold-dim: #a08338;
	--blood: #8b1a1a;
	--blood-dark: #3d0a0a;
	--ink: #0a0805;
	--text: #e0d4b4;
	--text-dim: #d4c89c;
	--panel-bg: rgba(20, 15, 8, 0.7);
	--border: rgba(201, 168, 76, 0.2);
	--border-light: rgba(201, 168, 76, 0.35);
}

html, body {
	height: 100%;
	background: var(--ink);
	color: var(--text);
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 14px;
	overflow-x: hidden;
}

body {
	text-align: center;
	background-color: var(--ink);
	background-attachment: fixed;
}

body.nighttime {
	background-image:
		url("../images/bg/bg_nacht.png");
	background-size: auto, auto, auto, auto, cover;
	background-position: center, center, center, center, center bottom;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
	background-attachment: fixed, fixed, fixed, fixed, fixed;
}

body.daytime {
	background-image:
		url("../images/bg/bg_tag.png");
	background-size: auto, auto, auto, auto, cover;
	background-position: center, center, center, center, center bottom;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
	background-attachment: fixed, fixed, fixed, fixed, fixed;
}


body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 9999;
	opacity: 0.35;
}

/* ══════════════════════════════
   PREMIUM / MISC
══════════════════════════════ */
#paccfeat img {
	width: 290px;
	margin: 5px;
}

.userAvatar {
	display: inline-block;
	border-radius: 6px;
	border: 3px solid var(--border-light);
	overflow: hidden;
}
.userAvatar img {
	width: 200px;
	display: block;
}

.smallinfo {
	font-size: 0.75rem;
	margin: 2px;
	color: var(--text-dim);
}

fieldset {
	border: 1px solid var(--border);
	padding: 8px;
	background: var(--panel-bg);
}

fieldset legend {
	margin: 5px;
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold-dim);
	padding: 0 8px;
}

/* Offset anchor targets so the fixed header doesn't cover them */
:target {
	scroll-margin-top: 60px;
}

/* ── Header Avatar ── */
.header-avatar {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--gold-dim);
	transition: border-color 0.2s;
	flex-shrink: 0;
}

.header-avatar:hover {
	border-color: var(--gold-light);
}

.header-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.header-avatar-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #8b1a1a;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 8px;
	padding: 0 4px;
	pointer-events: none;
	z-index: 2;
}

.header-avatar--empty {
	background: rgba(201, 168, 76, 0.1);
	color: var(--gold-dim);
	font-size: 1rem;
	text-decoration: none;
}

.header-avatar--empty:hover {
	color: var(--gold-light);
}

/* ── User Dropdown ── */
.user-dropdown-wrap {
	position: relative;
	margin-left: auto;
}

.user-dropdown-wrap .header-avatar {
	margin-left: 0;
	cursor: pointer;
	background: none;
	padding: 0;
}

.user-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	background: rgba(18, 15, 10, 0.98);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 6px 0;
	z-index: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.user-dropdown.open {
	display: block;
}

.user-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	color: var(--text-dim);
	text-decoration: none;
	transition: all 0.2s ease;
}

.user-dropdown a:hover {
	color: var(--gold);
	background: rgba(201, 168, 76, 0.08);
}

.user-dropdown a i {
	font-size: 1rem;
	width: 18px;
	text-align: center;
}

.user-dropdown-logout {
	border-top: 1px solid var(--border);
	margin-top: 4px;
	padding-top: 10px !important;
}

/* ══════════════════════════════
   MAIN CONTAINER
══════════════════════════════ */
div#bgpage {
	margin: auto;
	max-width: 1400px;
	width: 100%;
	margin-top: 80px;
	position: relative;
	z-index: 10;
	padding: 0 10px;
}

div#page {
	background: rgb(20 15 8);
	border: 1px solid var(--border);
	flex: 1 1 0;
	min-width: 0;
	text-align: left;
	margin-right: 5px;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
}

div#mainhead {
	background: var(--panel-bg);
	border: 1px solid var(--border);
	width: 100%;
	flex: 0 0 100%;
	text-align: left;
	margin-bottom: 5px;
	border-top: 2px solid var(--gold);
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

div#mainhead::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 20px;
	right: 20px;
	height: 2px;
	background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ══════════════════════════════
   HEADER LOGO
══════════════════════════════ */
h1#mafiaheader {
	margin: 0;
	width: 300px;
	text-align: left;
	z-index: 2;
	position: relative;
	border: 0;
	flex-shrink: 0;
}

h1#mafiaheader a {
	display: block;
	width: 300px;
	height: 135px;
	background-image: url('./header.png');
	background-repeat: no-repeat;
	background-position: left top;
}

h1#mafiaheader a span {
	display: none;
}

/* ══════════════════════════════
   HEADER MENU (Bauhof, Militär, Map)
══════════════════════════════ */
ul#headermenu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

ul#headermenu li {
	list-style-type: none;
}

ul#headermenu li a {
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid transparent;
	transition: all 0.25s ease;
}

ul#headermenu li a:hover {
	border-color: var(--border);
	background: rgba(201, 168, 76, 0.05);
	text-decoration: none;
}

ul#headermenu li a span {
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	line-height: normal;
	vertical-align: middle;
}

ul#headermenu li a:hover span {
	color: var(--gold);
}

ul#headermenu li img {
	width: 36px;
	opacity: 0.8;
	filter: sepia(0.3) brightness(0.9);
}

/* ══════════════════════════════
   SIDEBAR MENU
══════════════════════════════ */
div#menu {
	flex: 0 0 150px;
	width: 150px;
	padding: 8px 4px;
}

div#menu #menuliste {
	padding: 0;
	width: 100%;
	margin: 0;
}

div#menu #menuliste h2,
div#menu #menuliste h2 span {
	font-family: 'Special Elite', monospace;
	font-size: 0.6rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold-dim);
	margin-bottom: 6px;
	margin-top: 16px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 6px;
}

div#menu #menuliste h2::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}

div#menu #menuliste h2:first-child {
	margin-top: 4px;
}

div#menu li {
	margin-left: 0;
	padding-left: 0;
	list-style-type: none;
	background: none;
	margin-bottom: 1px;
}

div#menu li a {
	display: block;
	padding: 5px 10px;
	color: var(--text-dim);
	text-decoration: none;
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 1.1rem;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

div#menu li a:hover {
	color: var(--gold);
	background: rgba(201, 168, 76, 0.05);
	border-color: rgba(201, 168, 76, 0.15);
	text-decoration: none;
}

div#menu li.newmsg {
	background: rgba(139, 26, 26, 0.3);
	border: 1px solid rgba(139, 26, 26, 0.5);
	border-radius: 3px;
	padding: 2px;
}

div#menu li.newmsg a {
	color: var(--gold-light);
}

div#menu #extra {
	margin: 12px 5px;
	color: var(--blood);
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.menu-coins {
	margin: 8px 5px;
	padding: 8px 10px;
	background: rgba(201, 168, 76, 0.08);
	border: 1px solid var(--gold-dim);
	border-radius: 4px;
	text-align: center;
}
.menu-coins a {
	color: var(--gold-light);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.menu-coins a:hover {
	color: var(--gold);
}
.menu-coins span {
	font-size: 1.1em;
}

div#menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ══════════════════════════════
   CONTENT AREA
══════════════════════════════ */
div#page div#content {
	flex: 1 1 0;
	min-width: 0;
	margin-left: 5px;
	padding: 8px;
	overflow-wrap: break-word;
}

/* ══════════════════════════════
   RESOURCE DISPLAY
══════════════════════════════ */
div#rohstoffanzeige {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 700;
	padding: 6px 16px;
	background: linear-gradient(to bottom, rgba(10, 8, 5, 0.96) 0%, rgba(10, 8, 5, 0.90) 100%);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(10px);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

div#rohstoffanzeige #rohstoff {
	flex: 1 1 300px;
	max-width: 420px;
	display: flex;
	gap: 2px;
}

div#rohstoffanzeige .rohstoff-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 4px 6px;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s;
	cursor: pointer;
}

div#rohstoffanzeige .rohstoff-item:hover {
	background: rgba(201, 168, 76, 0.1);
}

div#rohstoffanzeige .rohstoff-icon {
	font-size: 1.1rem;
	line-height: 1;
}

div#rohstoffanzeige .rohstoff-label {
	font-family: 'Special Elite', monospace;
	font-size: 0.55rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-dim);
}

div#rohstoffanzeige .rohstoff-wert {
	font-family: 'Playfair Display', serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--gold-light);
}

div#rohstoffanzeige .rohstoff-wert.minus {
	color: #ff5722;
}

.rohstoff-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

div#rohstoffanzeige .uhr {
	flex: 0 0 80px;
}

div#rohstoffanzeige .uhr th {
	background: transparent;
	border: none;
	font-family: 'Special Elite', monospace;
	font-size: 0.55rem;
	letter-spacing: 0.1em;
	color: var(--gold-dim);
	text-transform: uppercase;
}

div#rohstoffanzeige .uhr td {
	background: transparent;
	border: none;
	border-top: 1px solid var(--border);
	color: var(--text);
	font-family: 'Playfair Display', serif;
	font-size: 0.9rem;
	text-align: center;
}

div#rohstoffanzeige .uhr span {
	color: var(--text-dim);
}

div#rohstoffanzeige .uhr img {
	opacity: 0.6;
	filter: sepia(1) hue-rotate(10deg);
	width: 14px;
	vertical-align: middle;
}

/* ── Weather Widget ── */
#weatherWidget {
	flex: 0 0 90px;
	text-align: center;
	cursor: pointer;
	position: relative;
	padding: 2px 6px;
	border-radius: 4px;
	transition: background 0.2s;
}

#weatherWidget:hover {
	background: rgba(201, 168, 76, 0.1);
}

.weather-current {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.weather-icon {
	font-size: 1.2rem;
	line-height: 1;
}

.weather-temp {
	font-family: 'Playfair Display', serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--gold-light);
}

.weather-label {
	font-family: 'Special Elite', monospace;
	font-size: 0.55rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-top: 1px;
}

/* Forecast Popup */
.weather-forecast {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 100;
	background: var(--ink);
	border: 1px solid var(--gold-dim);
	border-radius: 6px;
	padding: 10px 12px;
	min-width: 200px;
	text-align: left;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.wf-header {
	font-family: 'Special Elite', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	border-bottom: 1px solid var(--border);
	padding-bottom: 6px;
	margin-bottom: 6px;
}

.weather-forecast-day {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.85rem;
}

.weather-forecast-day:last-child {
	border-bottom: none;
}

.wf-day {
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	color: var(--text-dim);
	min-width: 50px;
}

.wf-icon {
	font-size: 1rem;
}

.wf-temp {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	color: var(--gold-light);
	min-width: 65px;
}

.wf-text {
	font-size: 0.75rem;
	color: var(--text-dim);
}

div#rohstoffanzeige #apChange {
	flex: 0 0 auto;
}

div#rohstoffanzeige #apChange td,
div#rohstoffanzeige #apChange td * {
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
}

/* ══════════════════════════════
   MAIN CONTENT SECTIONS (Ebenen)
══════════════════════════════ */
div#hauptfenster {

}

div#hauptfenster div.ebene1 {
	clear: both;
	text-align: center;
}

div#hauptfenster div.ebene1 #newmsg {
	border: 1px solid rgba(139, 26, 26, 0.5);
	padding: 8px;
	background: rgba(139, 26, 26, 0.2);
	border-radius: 3px;
	max-width: 400px;
	width: 100%;
	margin: auto;
	margin-top: 5px;
	margin-bottom: 5px;
	color: var(--gold-light);
}

div#hauptfenster div.ebene2 {
	clear: both;
}

div#hauptfenster div.ebene2 h2,
div#hauptfenster div.ebene2 h2 * {
	font-size: 0.85rem;
}

div#hauptfenster div.ebene2 {
	display: flex;
	flex-wrap: wrap;
}

div#hauptfenster div.ebene2 div.userinfo {
	flex: 1 1 200px;
	min-width: 180px;
	margin: 2px;
	min-height: 260px;
	border-right: 1px solid var(--border);
}

div#hauptfenster div.ebene2 div.info {
	flex: 1 1 180px;
	min-width: 160px;
	margin: 2px;
	min-height: 260px;
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Info-Cards (Ranglisten / Mein Account) */
.info-card {
	background: linear-gradient(135deg, rgba(30, 22, 10, 0.8), rgba(15, 11, 5, 0.9));
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 10px 12px;
}

.info-card h2 {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}

.info-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: baseline;
}

.info-list dt {
	color: var(--text-dim);
	font-size: 0.85rem;
	white-space: nowrap;
}

.info-list dd {
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 600;
}
.tooltip-tap {
	position: relative;
	cursor: help;
	color: var(--gold);
	font-size: 0.75rem;
	opacity: 0.6;
	transition: opacity 0.2s;
}
.tooltip-tap:hover,
.tooltip-tap.active {
	opacity: 1;
}
.tooltip-tap__msg {
	display: none;
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg-dark, #1a1510);
	border: 1px solid var(--gold);
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 400;
	padding: 8px 10px;
	border-radius: 6px;
	width: max-content;
	max-width: 260px;
	white-space: normal;
	line-height: 1.4;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tooltip-tap__msg::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--gold);
}
.tooltip-tap:hover .tooltip-tap__msg,
.tooltip-tap.active .tooltip-tap__msg {
	display: block;
}

div#hauptfenster div.ebene2 .Status {
	flex: 1 1 180px;
	min-width: 160px;
	margin: 2px;
	min-height: 260px;
}

/* Status-Cards */
.status-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.status-card {
	background: linear-gradient(135deg, rgba(30, 22, 10, 0.8), rgba(15, 11, 5, 0.9));
	border: 1px solid var(--border);
	border-left: 3px solid var(--gold-dim);
	border-radius: 4px;
	padding: 10px 12px;
	transition: border-color 0.2s, background 0.2s;
}

.status-card:hover {
	border-color: var(--border-light);
	background: linear-gradient(135deg, rgba(40, 30, 14, 0.85), rgba(20, 15, 8, 0.95));
}

.status-card h4 {
	display: inline;
	font-size: 0.9rem;
	color: var(--gold-light);
	letter-spacing: 0.3px;
}

.status-card__icon {
	display: inline;
	margin-right: 6px;
	font-size: 1rem;
}

.status-card__body {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	line-height: 1.5;
}

.status-card__body:empty {
	display: none;
}

.status-card__body em {
	color: var(--gold);
}

.status-card--geb { border-left-color: #b08d3a; }
.status-card--for { border-left-color: #4a8bb5; }
.status-card--mil { border-left-color: #8b1a1a; }

.status-idle {
	color: var(--text-dim);
	font-style: italic;
	font-size: 0.8rem;
	opacity: 0.7;
}

div#hauptfenster div.ebene3 {
	clear: both;
}

div#hauptfenster div.ebene3 {
	display: flex;
	flex-wrap: wrap;
}

div#hauptfenster div.ebene3 div.postfach {
	flex: 1 1 200px;
	margin: 2px;
}

div#hauptfenster div.ebene3 .AP_liste {
	display: none;
	width: 200px;
	max-width: 100%;
	margin: 2px;
	height: 200px;
	border-right: 1px solid var(--border);
}

div#hauptfenster div.ebene3 div.news {
	flex: 1 1 200px;
	margin: 2px;
}

div#hauptfenster div.ebene3 div.kaempfe {
	flex: 1 1 200px;
	margin: 2px;
}

div#hauptfenster div.ebene4 {
	margin-top: 5px;
}

div#hauptfenster div.ebene4 {
	display: flex;
	flex-wrap: wrap;
}

div#hauptfenster div.ebene4 .legende,
div#hauptfenster div.ebene4 .vote {
	flex: 1 1 200px;
	min-width: 180px;
	margin: 5px;
}

div#hauptfenster div.ebene4 .legende label {
	width: 45px;
}

/* ══════════════════════════════
   TYPOGRAPHY
══════════════════════════════ */
p {
	margin-top: 5px;
	margin-bottom: 5px;
	line-height: 1.6;
}

.header {
	margin: 5px;
	margin-top: 10px;
	background: rgba(20, 15, 8, 0.6);
	border: 1px solid var(--border);
	padding: 6px 10px;
}

h1 {
	font-family: 'Playfair Display', serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--gold-light);
	border-bottom: 1px solid var(--border);
	margin-right: 15px;
	margin-top: 20px;
	padding-bottom: 6px;
}

h1, h1 * {
	font-size: 1.15rem;
}

h2, h2 * {
	font-family: 'Playfair Display', serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--gold);
}

h3, h3 * {
	font-family: 'Playfair Display', serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--gold-dim);
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	margin-top: 10px;
	margin-bottom: 10px;
}

.umersicht h1 span {
	max-width: 620px;
	width: 100%;
}

.umersicht h1 span div {
	width: 100%;
	text-align: right;
	clear: both;
}

/* ══════════════════════════════
   FORM ELEMENTS
══════════════════════════════ */
input, select, textarea, option {
	background: rgba(10, 8, 5, 0.8);
	border: 1px solid var(--border);
	border-bottom-color: rgba(201, 168, 76, 0.4);
	color: var(--text);
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 0.9rem;
	padding: 6px 10px;
	outline: none;
	transition: all 0.3s ease;
	border-radius: 0;
}

input:focus, select:focus, textarea:focus {
	border-color: rgba(201, 168, 76, 0.6);
	box-shadow: 0 0 16px rgba(201, 168, 76, 0.06);
}

input::placeholder {
	color: rgba(168, 152, 110, 0.5);
	font-style: italic;
}

option {
	border: 0;
	background-color: var(--ink);
	color: var(--text);
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 0.9rem;
	padding: 2px;
}

input[type="submit"], input[type="button"], button {
	background: linear-gradient(135deg, #8b1a1a 0%, #5a0f0f 50%, #3d0a0a 100%);
	border: 1px solid rgba(201, 168, 76, 0.3);
	color: var(--gold);
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 8px 18px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover {
	background: linear-gradient(135deg, #a02020 0%, #701414 50%, #4d0d0d 100%);
	border-color: rgba(201, 168, 76, 0.6);
	box-shadow: 0 0 20px rgba(139, 26, 26, 0.3);
	color: var(--gold-light);
}

input[type="checkbox"], input[type="radio"] {
	background: transparent;
	accent-color: var(--gold);
	width: 15px;
	height: 15px;
	cursor: pointer;
	padding: 0;
	border: 1px solid var(--border);
}

select {
	margin: 2px;
	cursor: pointer;
}

label {
	float: left;
	width: 170px;
	text-align: right;
	margin-right: 5px;
	clear: both;
	font-family: 'Special Elite', monospace;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	color: var(--text-dim);
	padding-top: 4px;
}

form.new_regeln_akzetieren label {
	float: none;
	width: 200px;
}

/* ══════════════════════════════
   TABLES
══════════════════════════════ */
table {
	border-collapse: collapse;
	margin: 3px;
}

th {
	background: rgba(20, 15, 8, 0.8);
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-dim);
}

td {
	background: rgba(30, 24, 16, 0.5);
}

td, th {
	border: 1px solid rgba(201, 168, 76, 0.1);
	padding: 5px 8px;
	vertical-align: top;
	text-align: left;
}

li {
	margin-left: 25px;
}

img {
	border: 0px;
	clear: both;
	max-width: 100%;
	height: auto;
}

/* ══════════════════════════════
   LINKS
══════════════════════════════ */
a:link, a:visited, a:active {
	color: var(--gold-dim);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--gold);
	text-decoration: underline;
}

a:link span, a:visited span, a:active span {
	color: var(--gold-dim);
	text-decoration: none;
}

a:hover span {
	color: var(--gold);
	text-decoration: underline;
}

/* ══════════════════════════════
   HIGHLIGHTING
══════════════════════════════ */
td.highlight a {
	color: var(--ink);
}

td.highlight, .ich {
	color: var(--ink);
	padding: 1px;
	background: linear-gradient(135deg, rgba(201, 168, 76, 0.5), rgba(201, 168, 76, 0.3));
	border: 1px solid var(--gold-dim);
}

td.snich a {
	color: var(--ink);
}

td.snich, .snich {
	padding: 1px;
	color: var(--ink);
	background: rgba(201, 168, 76, 0.25);
	border: 1px solid var(--gold-dim);
}

.none {
	background-color: rgba(100, 90, 70, 0.3);
}

.aktiv {
}

/* ══════════════════════════════
   STATUS COLORS
══════════════════════════════ */
.resd, a.nbauen, .minus, .nbauen {
	color: #cc5555;
}

.grenn, .plus {
	color: #6aaa7a;
}

.blue, .gleich {
	color: #7aaad4;
}

.grey {
	color: var(--text-dim);
}

/* ══════════════════════════════
   STAMMBAUM (Tech Tree Graph)
══════════════════════════════ */
.stammbaum-section {
	margin-top: 20px;
}

.stammbaum-tabs {
	display: flex;
	gap: 6px;
	padding: 10px 15px;
	flex-wrap: wrap;
}

.stammbaum-tab {
	background: var(--panel-bg);
	color: var(--text-dim);
	border: 1px solid var(--border);
	padding: 6px 16px;
	cursor: pointer;
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 13px;
	border-radius: 4px;
	transition: all 0.2s;
}

.stammbaum-tab:hover {
	border-color: var(--gold-dim);
	color: var(--text);
}

.stammbaum-tab.active {
	background: rgba(201, 168, 76, 0.15);
	border-color: var(--gold);
	color: var(--gold-light);
}

#stammbaum-container {
	padding: 15px;
	overflow-x: auto;
	min-height: 200px;
}

/* ══════════════════════════════
   TRUPPEN HISTORY
══════════════════════════════ */
.history-filter {
	display: flex;
	gap: 6px;
	padding: 10px 0;
	flex-wrap: wrap;
}

.history-filter-btn {
	background: var(--panel-bg);
	color: var(--text-dim);
	border: 1px solid var(--border);
	padding: 5px 14px;
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 13px;
	border-radius: 4px;
	transition: all 0.2s;
	text-decoration: none;
}

.history-filter-btn:hover {
	border-color: var(--gold-dim);
	color: var(--text);
	text-decoration: none;
}

.history-filter-btn.active {
	background: rgba(201, 168, 76, 0.15);
	border-color: var(--gold);
	color: var(--gold-light);
}

.history-sub {
	font-size: 0.8em;
	color: var(--text-dim);
}

.history-pagination {
	padding: 12px 0;
	text-align: center;
	display: flex;
	gap: 4px;
	justify-content: center;
}

.history-pagination a,
.history-pagination span {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid var(--border);
	color: var(--text-dim);
	text-decoration: none;
	font-size: 13px;
	border-radius: 3px;
	transition: all 0.2s;
}

.history-pagination a:hover {
	border-color: var(--gold-dim);
	color: var(--gold);
	text-decoration: none;
}

.history-pagination span.active {
	background: rgba(201, 168, 76, 0.15);
	border-color: var(--gold);
	color: var(--gold-light);
}

/* ══════════════════════════════
   STATUS BOXES / MESSAGES
══════════════════════════════ */

/* Toast Container — fixed top-right */
.meldung-container {
	position: fixed;
	top: 50px;
	right: 16px;
	z-index: 700;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 380px;
	width: 100%;
	pointer-events: none;
}

.meldung-container .meldung {
	pointer-events: auto;
}

/* Modern Toast Notifications */
.meldung {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	border-radius: 8px;
	border-left: 4px solid;
	background: rgba(20, 15, 8, 0.92);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
	animation: meldungSlideIn 0.35s ease-out;
}

@keyframes meldungSlideIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.meldung-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	margin-top: 1px;
}

.meldung-content {
	flex: 1;
	min-width: 0;
}

.meldung-title {
	font-family: 'Playfair Display', serif;
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 2px;
}

.meldung-title img {
	display: none;
}

.meldung-body {
	font-size: 0.8rem;
	color: var(--text-dim);
	line-height: 1.4;
}

.meldung-close {
	flex-shrink: 0;
	background: none;
	border: none;
	color: var(--text-dim);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0 2px;
	line-height: 1;
	transition: color 0.2s;
	width: auto;
}

.meldung-close:hover {
	color: var(--gold-light);
}

/* Success */
.meldung--ok {
	border-left-color: #4caf50;
}

.meldung--ok .meldung-icon {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
}

.meldung--ok .meldung-icon::after {
	content: '✓';
}

.meldung--ok .meldung-title {
	color: #a5d6a7;
}

/* Error */
.meldung--error {
	border-left-color: #ef5350;
}

.meldung--error .meldung-icon {
	background: rgba(239, 83, 80, 0.2);
	color: #ef5350;
}

.meldung--error .meldung-icon::after {
	content: '!';
	font-weight: 700;
}

.meldung--error .meldung-title {
	color: #ef9a9a;
}

/* Info */
.meldung--info {
	border-left-color: var(--gold-dim);
}

.meldung--info .meldung-icon {
	background: rgba(201, 168, 76, 0.15);
	color: var(--gold);
}

.meldung--info .meldung-icon::after {
	content: 'i';
	font-style: italic;
	font-weight: 700;
}

.meldung--info .meldung-title {
	color: var(--gold-light);
}

/* Truppen-Legende */
.truppen-legende {
	display: flex;
	gap: 18px;
	padding: 8px 12px;
	font-size: 0.8rem;
	color: var(--text-dim);
}

.truppen-legende span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Legacy classes kept for inline usage (e.g. header_meldung) */
.header_meldung {
	margin: auto;
	text-align: center;
	border-radius: 3px;
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 12px 16px;
	max-width: 500px;
	width: 100%;
	border: 1px solid;
}

.bgorange {
	background: rgba(139, 26, 26, 0.25);
	color: var(--gold-light);
	border-color: rgba(139, 26, 26, 0.5);
}

.bgorange img {
	opacity: 0.7;
	filter: sepia(1) hue-rotate(10deg) saturate(2);
}

.bgred:not(.meldung), .bgred:not(.meldung) h1 span, .bgred:not(.meldung) p {
	background: rgba(139, 26, 26, 0.2);
	border-color: rgba(139, 26, 26, 0.4);
	color: #e8a0a0;
}

.bggreen:not(.meldung), .bggreen:not(.meldung) h1 span, .bggreen:not(.meldung) p, .bggreen:not(.meldung) label {
	background: rgba(106, 170, 122, 0.35);
	border-color: rgba(106, 170, 122, 0.6);
	color: #c4e8cc;
}

/* ══════════════════════════════
   BUILD BUTTONS
══════════════════════════════ */
a.kbauen {
	display: inline-block;
	padding: 10px 16px;
	margin: 3px;
	background: linear-gradient(135deg, #2a5a2a 0%, #1a3a1a 100%);
	color: var(--gold-light);
	border: 1px solid rgba(106, 170, 122, 0.4);
	width: 97%;
	text-align: center;
	white-space: nowrap;
	text-decoration: none;
	font-family: 'Special Elite', monospace;
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

a.kbauen:hover {
	background: linear-gradient(135deg, #3a7a3a 0%, #2a5a2a 100%);
	border-color: rgba(106, 170, 122, 0.7);
	box-shadow: 0 0 16px rgba(106, 170, 122, 0.2);
	color: #fff;
	text-decoration: none;
}

a.kabbrechen {
	display: inline-block;
	padding: 10px 16px;
	margin: 3px;
	background: linear-gradient(135deg, #5a2a2a 0%, #3a1a1a 100%);
	color: var(--gold-light);
	border: 1px solid rgba(170, 106, 106, 0.4);
	width: 97%;
	text-align: center;
	white-space: nowrap;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

a.kabbrechen:hover {
	background: linear-gradient(135deg, #7a3a3a 0%, #5a2a2a 100%);
	border-color: rgba(170, 106, 106, 0.7);
	box-shadow: 0 0 16px rgba(170, 106, 106, 0.2);
	color: #fff;
	text-decoration: none;
}

.strom-hinweis-wrap {
	position: relative;
	display: inline-block;
}
.strom-hinweis {
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	background: #ff5722;
	color: #fff;
	font-weight: bold;
	font-size: 1.1em;
	padding: 4px 10px;
	border-radius: 4px;
	animation: strom-pulse 0.8s ease-in-out infinite;
	text-shadow: 0 1px 2px rgba(0,0,0,0.4);
	box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}
@keyframes strom-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 87, 34, 0.5); }
	50% { opacity: 0.7; box-shadow: 0 0 20px rgba(255, 87, 34, 0.8); }
}
@media (max-width: 640px) {
	.strom-hinweis-wrap {
		display: block;
	}
	.strom-hinweis {
		position: static;
		transform: none;
		display: block;
		margin-top: 6px;
		text-align: center;
	}
}

/* ══════════════════════════════
   INFO & POPUP BOXES
══════════════════════════════ */
.infobox {
	margin: 5px;
	border: 1px solid var(--border);
	background: rgba(106, 170, 122, 0.1);
	padding: 8px;
}

.sichtbar {
	position: absolute;
	left: 30%;
	background: rgba(10, 8, 5, 0.95);
	border: 1px solid var(--border-light);
	padding: 12px;
	width: 450px;
	max-width: calc(100vw - 24px);
	border-radius: 3px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.sichtbar table {
	width: 100%;
	max-width: 450px;
}

.sichtbar table table {
	width: 100%;
}

.sichtbar th {
	text-align: left;
}

.sichtbar td {
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.unsichtbar {
	display: none;
}
a.syndilogo img {
    max-width: 300px;
}
#inforfenster {
	position: fixed;
	border: 1px solid var(--border-light);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	max-width: calc(100vw - 24px);
	max-height: 80vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	padding: 12px;
	z-index: 10;
	background: rgba(10, 8, 5, 0.95);
	border-radius: 3px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ══════════════════════════════
   LOADING OVERLAY
══════════════════════════════ */
#load {
	position: fixed;
	left: 0;
	z-index: 9;
	top: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
	background: rgba(10, 8, 5, 0.85);
	backdrop-filter: blur(4px);
	touch-action: none;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#footer {
	width: 100%;
	clear: both;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 16px;
	margin-top: 16px;
	background: var(--panel-bg);
	border-top: 1px solid var(--border);
	border-radius: 8px 8px 0 0;
	color: var(--text-dim);
	font-size: 0.7rem;
}

#footer .footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
}

#footer .footer-links a {
	color: var(--gold-dim);
	text-decoration: none;
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 0;
	transition: color 0.2s;
}

#footer .footer-links a:hover {
	color: var(--gold);
}

#footer .footer-links a .ti {
	font-size: 0.75rem;
	vertical-align: -1px;
}

#footer .footer-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 12px;
	padding: 8px 12px;
	border-radius: 6px;
	background: rgba(201, 168, 76, 0.04);
	border: 1px solid rgba(201, 168, 76, 0.08);
	font-size: 0.6rem;
	letter-spacing: 0.03em;
	color: var(--text-dim);
}

#footer .footer-copy {
	font-size: 0.6rem;
	letter-spacing: 0.03em;
	opacity: 0.6;
}

#footer .footer-copy a {
	color: var(--gold-dim);
	text-decoration: none;
	transition: color 0.2s;
}

#footer .footer-copy a:hover {
	color: var(--gold);
}

span#footer2 {
	clear: both;
}

/* ══════════════════════════════
   MESSAGES / MAILBOX
══════════════════════════════ */
.msglesen table, .msglesen .typ1 {
	float: left;
}

.msglesen div#nachricht {
	clear: both;
	float: none;
	margin: 3px;
	border: 1px solid var(--border);
	background: var(--panel-bg);
	padding: 10px;
}

/* ══════════════════════════════
   WAREHOUSE
══════════════════════════════ */
.lager #block_erg {
	float: right;
	clear: both;
	max-width: 260px;
}

#block_erg {
	position: relative;
	width: 100%;
	max-width: 200px;
	height: 33px;
	margin: 5px 0;
	border: 1px solid var(--gold-dim);
	border-radius: 2px;
	overflow: hidden;
}

#block_proz {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	color: #fff;
	font-family: 'Special Elite', monospace;
	font-size: 1.2rem;
	font-weight: 700;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	pointer-events: none;
}

#block_balk {
	position: absolute;
	inset: 0;
}

#block_fill {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, rgba(106, 170, 122, 0.6), rgba(106, 170, 122, 0.3));
	border-radius: 2px;
	transition: width 1s linear;
}

/* ══════════════════════════════
   RAID STATISTICS
══════════════════════════════ */
a#raidstatistik span {
	display: none;
}

a#raidstatistik {
	background-image: url('./raidstatistik.png');
	max-width: 620px;
	width: 100%;
	height: 35px;
	background-repeat: no-repeat;
	background-position: left top;
	background-size: contain;
	display: block;
}

/* ══════════════════════════════
   UNITS
══════════════════════════════ */
#units_aktion {
	margin-right: 5px;
	width: 250px;
	float: left;
}

#weitereinfos {
	max-width: 400px;
	width: 100%;
	float: left;
}

#units_rohstoffe fieldset label {
	width: 100px;
}

#units_rohstoffe fieldset {
	max-width: 350px;
	width: 100%;
}

#units_rohstoffe {
	float: left;
}

.bottom {
	clear: both;
}

.g-title {
	float: right;
	font-family: 'Special Elite', monospace;
	color: var(--gold-dim);
	font-size: 0.7rem;
}

.inf_k {
	float: left;
	margin: 5px;
	width: 240px;
}

.info-maxbaubar {
	margin: 8px 0;
	padding: 6px 10px;
	background: rgba(255, 165, 0, 0.1);
	border-left: 3px solid orange;
	border-radius: 4px;
	font-size: 0.9em;
	clear: both;
}

/* ══════════════════════════════
   SUB-PAGE MENU
══════════════════════════════ */
div.menu {
	clear: both;
	min-height: 20px;
}

div.menu ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

div.menu li {
	width: 130px;
	border: 1px solid var(--border);
	float: none;
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-align: center;
	background: var(--panel-bg);
	transition: all 0.2s ease;
}

div.menu li a {
	display: block;
	padding: 6px 10px;
	color: var(--text-dim);
	text-decoration: none;
	font-family: 'Special Elite', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

div.menu li:hover {
	border-color: var(--border-light);
	background: rgba(201, 168, 76, 0.05);
}

div.menu li a:hover {
	color: var(--gold);
	text-decoration: none;
	background: transparent;
}

/* ══════════════════════════════
   UNIT CONFIG
══════════════════════════════ */
#unit_config {
	list-style-type: none;
	margin: 5px;
	padding: 5px;
}

/* ══════════════════════════════
   SYNDICATE FEATURES
══════════════════════════════ */
.syn-inactive {
	opacity: 0.5;
}
.ap-geplant {
	color: var(--gold);
}
.ap-aktiv {
	color: #2ecc71;
	font-weight: bold;
}
.ap-done {
	color: #888;
}
.ap-cancel {
	color: #e74c3c;
	text-decoration: line-through;
}

/* ══════════════════════════════
   NEWS / SYNDICATE
══════════════════════════════ */
.syn-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

div.news, .syn_home {
	max-width: 400px;
	width: 100%;
	flex: 1 1 300px;
}

div.news .sichtbar {
	border-radius: 0;
	position: relative;
	left: 0;
	border: 0;
	background-color: transparent;
	padding: 0;
}

.online td {
	background: rgba(106, 170, 122, 0.15);
}

/* ══════════════════════════════
   FORUM POSTS
══════════════════════════════ */
.posting {
	margin: 5px;
	border: 1px solid var(--border);
	max-width: 600px;
	width: 100%;
	background: var(--panel-bg);
	clear: both;
}

.posting * {
	color: var(--text);
}

.posting input {
	margin: 5px;
	float: right;
}

.posting_aktion {
	float: left;
}

.forum_seiten {
	float: right;
	margin-right: 30px;
}

.posting span {
	margin: 5px;
	float: left;
}

.posting .user {
	clear: both;
	float: left;
	padding: 8px;
	width: 140px;
	border-top: 1px solid var(--border);
}

.posting .inner {
	width: calc(100% - 152px);
	min-width: 200px;
	padding: 8px;
	float: left;
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
	background: rgba(30, 24, 16, 0.5);
}

.posting .inner blockquote {
	border: 1px solid var(--border);
	background: rgba(201, 168, 76, 0.05);
	padding: 6px 10px;
	margin: 5px;
	border-left: 3px solid var(--gold-dim);
	font-style: italic;
}

.posting .inner .head {
	border-bottom: 1px solid var(--border);
}

.posting .inner .zusatzinfos {
	float: right;
}

/* ══════════════════════════════
   BOOKMARKS
══════════════════════════════ */
#div_lesezeichen ul.sichtbar {
	position: static;
	z-index: 5;
	background: var(--ink);
	border: 0;
	padding: 5px;
	width: 95%;
}

#div_lesezeichen ul li ul li {
	background-image: none;
}

#div_lesezeichen ul li {
	margin-left: 5px;
	padding-left: 15px;
	background-repeat: no-repeat;
}

#div_lesezeichen ul {
	list-style-type: none;
}

#div_lesezeichen {
	z-index: 99;
	text-align: left;
	width: 250px;
	clear: both;
}

/* ══════════════════════════════
   SIDEBAR LISTS
══════════════════════════════ */
.ext_liste {
	width: 200px;
	max-width: 100%;
	margin: 2px;
	float: left;
	background: var(--panel-bg);
	border: 1px solid var(--border);
}

.ext_liste h2 {
	margin: 0;
	padding: 6px 8px;
	background: rgba(20, 15, 8, 0.8);
	border-bottom: 1px solid var(--border);
}

.ext_liste ul {
	width: 100%;
	list-style-type: none;
}

.ext_liste ul li {
	margin: 2px;
}

.ext_liste ul li a {
	padding: 4px 10px;
	display: block;
	color: var(--text-dim);
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.ext_liste ul li a:hover {
	background: rgba(201, 168, 76, 0.05);
	border-color: var(--border);
	color: var(--gold);
}

.hidden {
	display: none;
}

.l2, .l1 {
	float: left;
}

/* ══════════════════════════════
   PREMIUM
══════════════════════════════ */
.premium_bestellung a {
	margin: 5px;
}

.premium_bestellung ul, .premium_frm2 ul {
	list-style-type: none;
}

.premium_bestellung li {
	clear: both;
	padding: 5px;
}

.premium_bestellung label {
	float: left;
	width: 250px;
	text-align: left;
	margin-right: 5px;
	clear: both;
}

.premium_bestellung #zw_1 span,
.premium_bestellung #zw_2 span,
.premium_bestellung #zw_3 span {
	display: none;
}

.premium_bestellung #zw_1,
.premium_bestellung #zw_2,
.premium_bestellung #zw_3 {
	width: 96px;
	float: left;
	height: 96px;
	display: block;
}

.premium_bestellung #zw_1 {
	background-image: url('../images/uberwe.jpg');
}

.premium_bestellung #zw_2 {
	background-image: url('../images/hp.jpg');
}

.premium_bestellung #zw_3 {
	background-image: url('../images/c2p.jpg');
}

div#hauptfenster div.ebene2 div.premium_frm2 ul li ul li a span {
	text-align: center;
	margin-top: 43px;
	display: block;
	font-size: 15px;
	font-weight: bold;
}

div#hauptfenster div.ebene2 div.premium_frm2 ul li ul li {
	padding: 0;
	margin: 0;
	float: left;
}

div#hauptfenster div.ebene2 div.premium_frm2 ul li ul li a {
	display: block;
	border: 1px solid var(--border);
	margin: 3px;
	background-image: url('../images/pacc.jpg');
	background-repeat: no-repeat;
	width: 271px;
	height: 70px;
}

#paccfeat {
	margin: 5px;
}

.premium_frm2 a span, .premium_bestellung a {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid var(--border-light);
	width: 200px;
	margin: 5px;
	text-align: center;
	background: linear-gradient(135deg, #2a5a2a 0%, #1a3a1a 100%);
	color: var(--gold-light);
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
}

.premium_frm2 a span:hover, .premium_bestellung a:hover {
	background: linear-gradient(135deg, #3a7a3a 0%, #2a5a2a 100%);
	border-color: rgba(106, 170, 122, 0.7);
	color: #fff;
}

/* ══════════════════════════════
   TODO / Versions-Chronik
══════════════════════════════ */


/* --- Table of Contents --- */
.todo-toc {
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 20px 24px;
	margin-bottom: 30px;
}

.todo-toc-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--gold-light);
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.todo-toc-title i {
	margin-right: 8px;
	opacity: 0.7;
}

.todo-toc-milestone {
	margin-bottom: 12px;
}

.todo-toc-milestone > a {
	display: block;
	font-weight: 600;
	color: var(--gold);
	text-decoration: none;
	padding: 4px 0;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.todo-toc-milestone > a:hover {
	color: var(--gold-light);
}

.todo-toc ul {
	list-style: none;
	padding: 0;
	margin: 4px 0 0 0;
}

.todo-toc li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	text-decoration: none;
	color: var(--text-dim);
	font-size: 0.8rem;
	border-left: 2px solid transparent;
	transition: all 0.15s ease;
}

.todo-toc li a:hover {
	color: var(--gold-light);
	border-left-color: var(--gold-dim);
	background: rgba(201, 168, 76, 0.05);
}

.todo-toc-ver {
	font-family: monospace;
	font-weight: 600;
	color: var(--gold-dim);
	min-width: 48px;
}

.todo-toc-name {
	color: var(--gold-light);
	font-weight: 500;
}

.todo-toc-meta {
	margin-left: auto;
	font-size: 0.75rem;
	opacity: 0.6;
	display: flex;
	align-items: center;
	gap: 6px;
}

.todo-toc-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 168, 76, 0.15);
	color: var(--gold);
	font-size: 0.7rem;
	font-weight: 700;
	min-width: 20px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
}

/* --- Release Cards --- */
.todo-release {
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	margin-bottom: 20px;
	overflow: hidden;
}

.todo-release-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 16px 20px 12px;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.todo-release-version {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--gold-light);
}

.todo-release-name {
	font-size: 0.9rem;
	color: var(--gold);
	font-weight: 500;
}

.todo-release-date {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--text-dim);
	opacity: 0.6;
}

.todo-release-stats {
	display: flex;
	gap: 12px;
	padding: 8px 20px;
	border-bottom: 1px solid var(--border);
}

.todo-stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 3px;
}

.todo-stat i {
	font-size: 0.8rem;
}

.todo-stat-feature {
	color: #7ecba1;
	background: rgba(126, 203, 161, 0.1);
}

.todo-stat-change {
	color: #7eb8e0;
	background: rgba(126, 184, 224, 0.1);
}

.todo-stat-bug {
	color: #e07e7e;
	background: rgba(224, 126, 126, 0.1);
}

/* --- Section inside card --- */
.todo-section {
	padding: 12px 20px 16px;
}

.todo-section + .todo-section {
	border-top: 1px solid var(--border);
}

.todo-section-title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.todo-section-feature .todo-section-title {
	color: #7ecba1;
}

.todo-section-change .todo-section-title {
	color: #7eb8e0;
}

.todo-section-bug .todo-section-title {
	color: #e07e7e;
}

.todo-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.todo-section li {
	position: relative;
	padding: 4px 0 4px 16px;
	font-size: 0.8rem;
	color: var(--text-dim);
	line-height: 1.5;
}

.todo-section li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	opacity: 0.5;
}

.todo-section-feature li::before {
	background: #7ecba1;
}

.todo-section-change li::before {
	background: #7eb8e0;
}

.todo-section-bug li::before {
	background: #e07e7e;
}

.todo-issue {
	font-family: monospace;
	font-size: 0.75rem;
	color: var(--gold-dim);
	text-decoration: none;
	border: 1px solid var(--border);
	padding: 0 4px;
	border-radius: 3px;
	transition: all 0.15s;
}

.todo-issue:hover {
	color: var(--gold-light);
	border-color: var(--gold-dim);
	background: rgba(201, 168, 76, 0.1);
}

/* ══════════════════════════════
   ADVERTISING (legacy)
══════════════════════════════ */
.werbung_left {
	float: right;
	width: 160px;
	right: 0;
	position: absolute;
}

.werbung_top span {
	clear: both;
}

.werbung_top {
	text-align: right;
	max-width: 970px;
	width: 100%;
	position: absolute;
	float: right;
	top: 5px;
	z-index: 9;
}

/* ══════════════════════════════
   BUBBLE DOCK (fixed bottom-right)
══════════════════════════════ */
#bubble-dock {
	position: fixed;
	bottom: 56px;
	right: 16px;
	z-index: 10100;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 10px;
	pointer-events: none;
	overflow: visible;
}

#bubble-dock > * {
	pointer-events: auto;
}

/* shared bubble base */
#bubble-dock .bubble {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	text-decoration: none;
	border: 2px solid;
	font-size: 22px;
	padding: 0;
	overflow: visible;
}

#bubble-dock .bubble:hover {
	transform: scale(1.1);
	text-decoration: none;
}

/* Override fixed positioning for elements moved into dock (e.g. chat toggle) */
#bubble-dock .chat-widget-toggle {
	position: static;
	z-index: auto;
	overflow: visible;
}

/* Map */
#bubble-dock .map-bubble {
	width: 104px;
	height: 104px;
	font-size: 44px;
	background: linear-gradient(135deg, rgba(20, 15, 8, 0.95), rgba(10, 8, 5, 0.98));
	border-color: var(--gold-dim);
	color: var(--gold);
}

.map-bubble:hover {
	border-color: var(--gold);
	color: var(--gold-light);
	box-shadow: 0 4px 28px rgba(201, 168, 76, 0.25);
}

/* Menu Toggle — fixed top-left, hidden on desktop */
.menu-toggle {
	display: none;
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 900;
	width: 40px;
	height: 34px;
	border-radius: 4px;
	border: 1px solid var(--gold-dim);
	background: linear-gradient(135deg, #8b1a1a 0%, #3d0a0a 100%);
	color: var(--gold);
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	margin-right: auto;
	transition: transform 0.2s, box-shadow 0.2s;
}

.menu-toggle:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 28px rgba(139, 26, 26, 0.5);
	border-color: var(--gold);
}

.menu-toggle span {
	display: block;
	width: 22px;
	height: 2.5px;
	background: var(--gold);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Godmode */
#godmode-bubble {
	background: #1a1a2e;
	border-color: #e74c3c;
	color: #e74c3c;
}

#godmode-bubble:hover {
	background: #222244;
	box-shadow: 0 4px 24px rgba(231, 76, 60, 0.3);
}

/* Bugreport */
#bugreport-bubble {
	background: var(--panel-bg, rgba(20, 15, 8, 0.9));
	border-color: var(--border-light, rgba(201, 168, 76, 0.35));
	color: var(--gold, #c9a84c);
	width: 42px;
	height: 42px;
	font-size: 18px;
}

#bugreport-bubble:hover {
	background: rgba(30, 22, 10, 0.95);
	box-shadow: 0 2px 12px rgba(201, 168, 76, 0.2);
}

@media (max-width: 640px) {
	#bubble-dock {
		bottom: 12px;
		right: 12px;
		gap: 8px;
	}

	#bubble-dock .bubble {
		width: 46px;
		height: 46px;
		font-size: 20px;
	}

	#bubble-dock .map-bubble {
		width: 92px;
		height: 92px;
		font-size: 40px;
	}

	#bugreport-bubble {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
}

/* Mobile menu overlay backdrop */
.menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10, 8, 5, 0.7);
	backdrop-filter: blur(3px);
	z-index: 799;
}

.menu-overlay.open {
	display: block;
}

/* ══════════════════════════════
   RESPONSIVE — Tablet (< 1024px)
══════════════════════════════ */
@media (max-width: 1024px) {
	div#bgpage {
		width: 100%;
		max-width: 100%;
		margin-top: 80px;
		padding: 0 8px;
	}

	div#page, div#mainhead {
		width: 100%;
		flex: 0 0 100%;
		margin-right: 0;
	}

	/* Sidebar als Overlay */
	div#menu {
		position: fixed;
		top: 0;
		left: -260px;
		width: 250px;
		height: 100vh;
		z-index: 800;
		background: rgba(10, 8, 5, 0.98);
		border-right: 1px solid var(--border);
		overflow-y: auto;
		transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
		padding: 60px 12px 20px;
		float: none;
		box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
	}

	div#menu.open {
		left: 0;
	}

	div#menu #menuliste {
		width: 100%;
	}

	.menu-toggle {
		display: flex;
	}

	.user-dropdown-wrap {
		position: fixed;
		right: 8px;
		top: 7px;
		z-index: 801;
	}

	div#rohstoffanzeige {
		padding-left: 56px;
	}

	/* Content volle Breite */
	div#page div#content {
		flex: 0 0 100%;
		margin-left: 0;
		padding: 8px;
	}

	/* Header anpassen */
	h1#mafiaheader {
		width: 200px;
	}

	h1#mafiaheader a {
		width: 200px;
		height: 90px;
		background-size: contain;
	}

	ul#headermenu li img {
		width: 28px;
	}

	ul#headermenu li a span {
		font-size: 0.6rem;
	}

	/* Ressource-Anzeige */
	div#rohstoffanzeige table#rohstoff {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.rohstoff-meta {
		flex: 1 1 100%;
		justify-content: flex-start;
	}

	div#rohstoffanzeige .uhr {
		flex: 0 0 auto;
	}

	#weatherWidget {
		flex: 0 0 auto;
	}

	.weather-forecast {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}

	div#rohstoffanzeige #apChange {
		flex: 0 0 auto;
	}

	/* Ebenen stacking */
	div#hauptfenster div.ebene2,
	div#hauptfenster div.ebene3,
	div#hauptfenster div.ebene4 {
		flex-direction: column;
	}

	div#hauptfenster div.ebene2 div.userinfo,
	div#hauptfenster div.ebene2 div.info,
	div#hauptfenster div.ebene2 .Status {
		width: 100%;
		min-height: auto;
		border-right: none;
		border-bottom: 1px solid var(--border);
		margin-bottom: 8px;
		padding-bottom: 8px;
	}

	div#hauptfenster div.ebene3 div.news,
	div#hauptfenster div.ebene3 div.kaempfe,
	div#hauptfenster div.ebene3 div.postfach {
		width: 100%;
	}

	div#hauptfenster div.ebene4 .legende,
	div#hauptfenster div.ebene4 .vote {
		width: 100%;
	}

	/* Tabellen scrollbar */
	table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
	}

	table thead, table tbody, table tr, table td, table th {
		display: revert;
	}

	/* Header-Meldungen */
	.header_meldung {
		max-width: 100%;
	}

	/* Postings */
	.posting {
		max-width: 100%;
	}

	.posting .user {
		width: 100%;
		float: none;
	}

	.posting .inner {
		width: 100%;
		float: none;
		border-left: none;
	}

	/* Sichtbar-Popup */
	.sichtbar {
		width: 90vw;
		left: 5vw;
	}

	.sichtbar table {
		width: 100%;
	}

	#inforfenster {
		width: 90vw;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	/* News / Syndicate */
	div.news, .syn_home {
		max-width: 100%;
	}

	/* Units */
	#units_aktion, #weitereinfos, #units_rohstoffe {
		max-width: 100%;
		float: none;
	}

	#units_rohstoffe fieldset {
		width: 100%;
	}

	/* Ext-Listen */
	.ext_liste {
		max-width: 100%;
		float: none;
	}

	/* Sub-Menu */
	div.menu li {
		width: auto;
		flex: 1 1 100px;
	}

	/* Footer */
	#footer .footer-stats {
		gap: 2px 8px;
		padding: 6px 8px;
	}

	/* Raid-Statistik */
	a#raidstatistik {
		max-width: 100%;
	}

	/* Lager */
	.lager #block_erg {
		max-width: 100%;
		float: none;
	}

	/* Forms */
	label {
		float: none;
		width: 100%;
		text-align: left;
		margin-bottom: 4px;
	}

	.premium_bestellung label {
		width: 100%;
	}
}

/* ══════════════════════════════
   RESPONSIVE — Mobile (< 640px)
══════════════════════════════ */
@media (max-width: 640px) {
	div#bgpage {
		margin-top: 80px;
		padding: 0 4px;
	}

	/* Toasts mobil */
	.meldung-container {
		top: 46px;
		right: 8px;
		left: 8px;
		max-width: none;
	}


	/* Header verkleinern */
	div#mainhead {
		padding: 8px;
	}

	h1#mafiaheader {
		width: 150px;
		flex: 1 1 100%;
		margin: 0 auto 8px;
	}

	div#mainhead {
		justify-content: center;
	}

	h1#mafiaheader a {
		width: 150px;
		height: 68px;
	}

	ul#headermenu {
		justify-content: center;
		flex: 1 1 100%;
	}

	ul#headermenu li a {
		padding: 6px 8px;
	}

	ul#headermenu li img {
		width: 22px;
	}

	ul#headermenu li a span {
		font-size: 0.55rem;
		letter-spacing: 0.08em;
	}

	/* Rohstoffe - nur Icons auf Mobile */
	div#rohstoffanzeige .rohstoff-label {
		display: none;
	}

	div#rohstoffanzeige .rohstoff-wert {
		font-size: 0.7rem;
	}

	div#rohstoffanzeige .rohstoff-item {
		padding: 3px 4px;
	}

	div#rohstoffanzeige #rohstoff {
		max-width: 280px;
	}

	/* Content Padding */
	div#page div#content {
		padding: 4px;
	}

	/* Überschriften */
	h1, h1 * { font-size: 1rem; }
	h2, h2 * { font-size: 0.9rem; }
	h3, h3 * { font-size: 0.85rem; }

	/* Forms */
	input, select, textarea {
		width: 100%;
		max-width: 100%;
	}

	input[type="submit"], input[type="button"], button {
		width: 100%;
	}

	input[type="checkbox"], input[type="radio"] {
		width: auto;
	}

	/* Inf-Karten */
	.inf_k {
		width: 100%;
		float: none;
	}

	/* Lesezeichen */
	#div_lesezeichen {
		width: 100%;
	}

}

/* ══════════════════════════════
   RESPONSIVE — Small Mobile (< 400px)
══════════════════════════════ */
@media (max-width: 400px) {

	h1#mafiaheader {
		width: 120px;
	}

	h1#mafiaheader a {
		width: 120px;
		height: 54px;
	}

	ul#headermenu li a span {
		display: none;
	}

	div#rohstoffanzeige table#rohstoff th {
		font-size: 0.5rem;
	}

	div#rohstoffanzeige table#rohstoff td {
		font-size: 0.75rem;
	}
}

/* ══════════════════════════════
   TROOP PROGRESS BAR
══════════════════════════════ */
.progress-bar {
	width: 100%;
	height: 4px;
	background: rgba(201, 168, 76, 0.1);
	border-radius: 2px;
	margin-top: 4px;
	overflow: hidden;
}

.progress-bar-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
	border-radius: 2px;
	transition: width 1s linear;
}

/* ══════════════════════════════
   TRIX EDITOR (Dark Theme)
══════════════════════════════ */
trix-editor {
	background: rgba(20, 15, 8, 0.9);
	color: var(--text);
	border: 1px solid var(--border-light);
	border-radius: 3px;
	min-height: 12em;
	padding: 10px;
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 14px;
}

trix-editor:focus {
	border-color: var(--gold-dim);
	outline: none;
	box-shadow: 0 0 8px rgba(201, 168, 76, 0.15);
}

trix-editor a {
	color: var(--gold);
}

trix-toolbar .trix-button-row {
	background: rgba(20, 15, 8, 0.8);
	border: 1px solid var(--border);
	border-bottom: none;
	border-radius: 3px 3px 0 0;
	padding: 4px;
}

trix-toolbar .trix-button-group {
	border: 1px solid var(--border);
	border-radius: 3px;
	margin-bottom: 0;
}

trix-toolbar .trix-button {
	background: #4a0d0e !important;
	color: var(--text);
	border: none;
	border-bottom: 1px solid var(--border);
	filter: brightness(1.8);
}

trix-toolbar .trix-button:hover {
	background: rgba(201, 168, 76, 0.1);
	color: var(--gold);
}

trix-toolbar .trix-button.trix-active {
	background: rgba(201, 168, 76, 0.2);
	color: var(--gold-light);
}

trix-toolbar .trix-button:not(:first-child) {
	border-left: 1px solid var(--border);
}

trix-toolbar .trix-dialogs {
	background: rgba(10, 8, 5, 0.95);
	border: 1px solid var(--border-light);
	border-radius: 3px;
	padding: 8px;
}

trix-toolbar .trix-dialog {
	background: rgba(10, 8, 5, 0.95);
	color: var(--text);
}

trix-toolbar .trix-dialog input[type="text"],
trix-toolbar .trix-dialog input[type="url"] {
	background: rgba(20, 15, 8, 0.9);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 4px 8px;
}

trix-toolbar .trix-dialog .trix-button-group {
	border: none;
}

trix-toolbar .trix-dialog .trix-button-group .trix-button {
	background: rgba(201, 168, 76, 0.15);
	color: var(--gold);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 4px 10px;
}

/* ══════════════════════════════
   BAR — Mini-Game Auswahl
══════════════════════════════ */
.bar-intro {
	color: var(--text-dim);
	margin-bottom: 12px;
	line-height: 1.5;
}

.bar-buy-form {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.bar-buy-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.bar-buy-inline label {
	color: var(--text);
	font-weight: bold;
	font-size: 0.9rem;
}

.bar-buy-input {
	width: 60px;
	padding: 5px 8px;
	text-align: center;
	background: linear-gradient(145deg, #1a1510, #2a2218);
	border: 1px solid var(--gold-dim);
	border-radius: 4px;
	color: var(--gold-light);
	font-size: 0.95rem;
	-moz-appearance: textfield;
}

.bar-buy-input::-webkit-outer-spin-button,
.bar-buy-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bar-buy-btn {
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: var(--ink);
	border: none;
	padding: 5px 14px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.85rem;
	cursor: pointer;
	transition: filter 0.2s;
}

.bar-buy-btn:hover {
	filter: brightness(1.15);
}

.bar-buy-price {
	color: var(--text-dim);
	font-size: 0.8rem;
}

.bar-buy-ok {
	color: #4aba4a;
	font-weight: bold;
	margin-bottom: 8px;
	padding: 6px 10px;
	background: rgba(42, 122, 42, 0.1);
	border: 1px solid rgba(42, 122, 42, 0.3);
	border-radius: 4px;
}

.bar-buy-err {
	color: #ff5555;
	font-weight: bold;
	margin-bottom: 8px;
	padding: 6px 10px;
	background: rgba(139, 26, 26, 0.1);
	border: 1px solid rgba(139, 26, 26, 0.3);
	border-radius: 4px;
}

/* Bar — Coin History */
.bar-history {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.bar-history__title {
	font-family: 'Playfair Display', serif;
	color: var(--gold);
	font-size: 1.1em;
	margin-bottom: 10px;
	text-align: left;
}
.bar-history__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
	text-align: left;
}
.bar-history__table th {
	color: var(--gold-dim);
	font-weight: 600;
	padding: 5px 8px;
	border-bottom: 1px solid var(--border-light);
	white-space: nowrap;
}
.bar-history__table td {
	padding: 4px 8px;
	border-bottom: 1px solid var(--border);
	color: var(--text-dim);
}
.bar-history__badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 600;
}
.bar-history__badge--earn { background: rgba(76, 175, 80, 0.15); color: #6fc473; }
.bar-history__badge--spend { background: rgba(244, 67, 54, 0.15); color: #e57373; }
.bar-history__badge--buy { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.bar-history__badge--daily { background: rgba(100, 181, 246, 0.15); color: #90caf9; }
.bar-history__amount {
	font-weight: bold;
	white-space: nowrap;
}
.bar-history__row--earn .bar-history__amount { color: #6fc473; }
.bar-history__row--spend .bar-history__amount { color: #e57373; }
.bar-history__row--buy .bar-history__amount { color: var(--gold); }
.bar-history__row--daily .bar-history__amount { color: #90caf9; }

/* ═══════════════════════════════════════════════
   BAR — Daily Coins Countdown
═══════════════════════════════════════════════ */
.bar-daily {
	background: rgba(100, 181, 246, 0.06);
	border: 1px solid rgba(100, 181, 246, 0.2);
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 14px;
}
.bar-daily--ready {
	background: rgba(76, 175, 80, 0.08);
	border-color: rgba(76, 175, 80, 0.3);
}
.bar-daily__header {
	color: #90caf9;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bar-daily--ready .bar-daily__header {
	color: #6fc473;
}
.bar-daily__bar-wrap {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 6px;
}
.bar-daily__bar {
	height: 100%;
	background: linear-gradient(90deg, #42a5f5, #90caf9);
	border-radius: 4px;
	transition: width 0.5s ease;
}
.bar-daily__text {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: var(--text-dim);
}
.bar-daily__pct {
	color: #90caf9;
	font-weight: 600;
}

/* ═══════════════════════════════════════════════
   BAR — Hall of Fame
═══════════════════════════════════════════════ */
.bar-hof {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.bar-hof__title {
	font-family: 'Playfair Display', serif;
	color: var(--gold);
	font-size: 1.2em;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bar-hof__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}
.bar-hof__game {
	background: rgba(201, 168, 76, 0.04);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 12px;
}
.bar-hof__game-name {
	font-family: 'Playfair Display', serif;
	color: var(--gold-light);
	font-size: 1rem;
	margin: 0 0 8px;
}
.bar-hof__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8em;
}
.bar-hof__table th {
	color: var(--gold-dim);
	font-weight: 600;
	padding: 3px 6px;
	border-bottom: 1px solid var(--border-light);
	text-align: left;
	white-space: nowrap;
}
.bar-hof__table td {
	padding: 3px 6px;
	border-bottom: 1px solid var(--border);
	color: var(--text-dim);
}
.bar-hof__rank {
	font-weight: 600;
	color: var(--text-dim);
	text-align: center;
	width: 24px;
}
.bar-hof__rank--1 { color: #ffd700; }
.bar-hof__rank--2 { color: #c0c0c0; }
.bar-hof__rank--3 { color: #cd7f32; }
.bar-hof__score {
	font-weight: bold;
	color: var(--gold-light);
}

/* ═══════════════════════════════════════════════
   BAR — Achievements / Abzeichen
═══════════════════════════════════════════════ */
.bar-achieve-notify {
	background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
	border: 1px solid var(--gold);
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 10px;
	color: var(--gold-light);
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
	animation: achieveSlideIn 0.4s ease-out;
}
.bar-achieve-notify i {
	font-size: 1.3rem;
	color: var(--gold);
}
.bar-achieve-notify__coins {
	margin-left: auto;
	background: rgba(76, 175, 80, 0.15);
	color: #6fc473;
	padding: 2px 8px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 0.8rem;
}
@keyframes achieveSlideIn {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.bar-achieve {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.bar-achieve__title {
	font-family: 'Playfair Display', serif;
	color: var(--gold);
	font-size: 1.2em;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bar-achieve__count {
	font-family: inherit;
	font-size: 0.7em;
	color: var(--text-dim);
	font-weight: 400;
}
.bar-achieve__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
}
.bar-achieve__cat {
	background: rgba(201, 168, 76, 0.03);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 10px 12px;
}
.bar-achieve__cat-name {
	font-family: 'Playfair Display', serif;
	color: var(--gold-light);
	font-size: 0.95rem;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}
.bar-achieve__badges {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bar-achieve__badge {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 4px;
	transition: background 0.2s;
}
.bar-achieve__badge--unlocked {
	background: rgba(201, 168, 76, 0.06);
}
.bar-achieve__badge--locked {
	opacity: 0.4;
	filter: grayscale(0.8);
}
.bar-achieve__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.bar-achieve__badge--unlocked .bar-achieve__icon {
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: var(--ink);
}
.bar-achieve__badge--locked .bar-achieve__icon {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-dim);
	border: 1px solid var(--border);
}
.bar-achieve__info {
	flex: 1;
	min-width: 0;
}
.bar-achieve__name {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--gold-light);
}
.bar-achieve__badge--locked .bar-achieve__name {
	color: var(--text-dim);
}
.bar-achieve__desc {
	font-size: 0.75rem;
	color: var(--text-dim);
	line-height: 1.3;
}
.bar-achieve__reward {
	font-size: 0.7rem;
	color: #6fc473;
	margin-top: 2px;
}
.bar-achieve__badge--locked .bar-achieve__reward {
	color: var(--text-dim);
}
.bar-achieve__date {
	color: var(--text-dim);
	margin-left: 6px;
}

/* ═══════════════════════════════════════════════
   BAR — Persönliche Statistiken
═══════════════════════════════════════════════ */
.bar-stats {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.bar-stats__title {
	font-family: 'Playfair Display', serif;
	color: var(--gold);
	font-size: 1.2em;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bar-stats__overview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}
.bar-stats__card {
	background: rgba(201, 168, 76, 0.04);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 10px;
	text-align: center;
}
.bar-stats__card-label {
	font-size: 0.7rem;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}
.bar-stats__card-val {
	font-family: 'Playfair Display', serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--gold-light);
}
.bar-stats__val--pos { color: #6fc473; }
.bar-stats__val--neg { color: #e57373; }
.bar-stats__val--fav {
	font-size: 0.85rem;
	color: var(--gold);
}
.bar-stats__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
}
.bar-stats__table th {
	color: var(--gold-dim);
	font-weight: 600;
	padding: 5px 8px;
	border-bottom: 1px solid var(--border-light);
	text-align: left;
	white-space: nowrap;
}
.bar-stats__table td {
	padding: 5px 8px;
	border-bottom: 1px solid var(--border);
	color: var(--text-dim);
}
.bar-stats__game-name {
	color: var(--gold-light);
	font-weight: 600;
}

.bar-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 4px 0;
}

.bar-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 calc(33.333% - 8px);
	min-width: 150px;
	background: rgba(30, 24, 16, 0.6);
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	transition: all 0.2s ease;
	overflow: hidden;
}

.bar-card:hover {
	background: rgba(201, 168, 76, 0.08);
	border-color: var(--border-light);
}

.bar-card:active {
	background: rgba(201, 168, 76, 0.12);
}

.bar-card__img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	display: block;
	border-bottom: 1px solid var(--border);
	opacity: 0.8;
	filter: sepia(0.3) hue-rotate(10deg);
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.bar-card:hover .bar-card__img {
	opacity: 1;
	filter: sepia(0) hue-rotate(0deg);
}

.bar-card__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 14px;
	flex: 1;
}

.bar-card__name {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--gold-light);
}

.bar-card__desc {
	font-size: 0.8rem;
	color: var(--text-dim);
	line-height: 1.4;
}

.bar-card__arrow {
	font-size: 1.4rem;
	color: var(--gold-dim);
	padding: 0 14px 10px;
	align-self: flex-end;
	transition: transform 0.2s ease;
}

.bar-card:hover .bar-card__arrow {
	transform: translateX(3px);
	color: var(--gold-light);
}

/* ═══════════════════════════════════════════════
   MEMORY MINI-GAME
═══════════════════════════════════════════════ */

.memory-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 10px;
}

.memory-container h3 {
	color: var(--gold);
	margin-bottom: 10px;
}

.memory-container h4 {
	color: var(--gold-dim);
	margin: 15px 0 8px;
}

.memory-info {
	background: rgba(201, 168, 76, 0.08);
	border: 1px solid var(--gold-dim);
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 14px;
}

.memory-info p {
	margin: 4px 0;
	color: var(--text);
}

.coins-display {
	color: var(--gold-light);
	font-weight: bold;
	font-size: 1.1em;
}

.memory-btn {
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: var(--ink);
	border: none;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: bold;
	font-size: 0.95rem;
	cursor: pointer;
	transition: filter 0.2s;
}

.memory-btn:hover {
	filter: brightness(1.15);
}

.memory-status {
	display: flex;
	gap: 20px;
	margin-bottom: 12px;
	color: var(--text);
	font-size: 0.9rem;
}

.memory-board {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 14px 0;
	perspective: 800px;
}

.memory-card {
	aspect-ratio: 1;
	cursor: pointer;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.4s ease;
}

.memory-card.flipped,
.memory-card.matched {
	transform: rotateY(180deg);
}

.memory-card.matched {
	cursor: default;
}

.memory-card-inner {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
}

.memory-card-front,
.memory-card-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.memory-card-front {
	background: linear-gradient(145deg, #1a1510, #2a2218);
	border: 2px solid var(--gold-dim);
	color: var(--gold);
	font-size: 2rem;
	font-weight: bold;
}

.memory-card-back {
	background: linear-gradient(145deg, #1e1a12, #2e2820);
	border: 2px solid var(--gold);
	transform: rotateY(180deg);
	padding: 8px;
}

.memory-card-back img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

.memory-word {
	color: var(--gold-light);
	font-weight: bold;
	font-size: 1rem;
	text-align: center;
}

.memory-card.matched .memory-card-front {
	border-color: #2a7a2a;
}

.memory-card.matched .memory-card-back {
	border-color: #3a9a3a;
	background: linear-gradient(145deg, #0e1a0e, #1a2e1a);
}

.memory-result {
	background: rgba(42, 122, 42, 0.15);
	border: 2px solid #3a9a3a;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	margin-top: 14px;
}

.memory-result h4 {
	color: #4aba4a;
	font-size: 1.3rem;
}

.memory-result p {
	color: var(--text);
	margin: 6px 0;
}

/* ══════════════════════════════
   STRANDRAUB — Sommer Mini-Game
══════════════════════════════ */
.strand-container {
	max-width: 520px;
	margin: 0 auto;
	padding: 10px;
}

.strand-container h3 {
	color: var(--gold);
	margin-bottom: 10px;
}

.strand-container h4 {
	color: var(--gold-dim);
	margin: 15px 0 8px;
}

.strand-rules {
	background: rgba(201, 168, 76, 0.06);
	border: 1px solid var(--border);
	padding: 10px 14px;
	margin-bottom: 14px;
}

.strand-rules ul {
	list-style: none;
	padding: 0;
	margin: 6px 0 0;
}

.strand-rules li {
	color: var(--text-dim);
	padding: 3px 0;
	font-size: 0.9rem;
}

.strand-rules li::before {
	content: '\25B8 ';
	color: var(--gold-dim);
}

.strand-status {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	color: var(--text);
	font-size: 0.9rem;
}

.strand-board {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 14px 0;
	perspective: 800px;
}

.strand-field {
	aspect-ratio: 1;
	cursor: pointer;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.5s ease;
}

.strand-field.revealed {
	transform: rotateY(180deg);
	cursor: default;
}

.strand-field.revealed-end {
	opacity: 0.5;
}

.strand-field.busted {
	opacity: 1;
}

.strand-field-inner {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
}

.strand-field-front,
.strand-field-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.strand-field-front {
	background: linear-gradient(145deg, #1a3040, #0e2030);
	border: 2px solid #3a7090;
	font-size: 2.2rem;
	transition: border-color 0.2s, background 0.2s;
}

.strand-field:not(.revealed):hover .strand-field-front {
	border-color: #5ab0d0;
	background: linear-gradient(145deg, #1e3850, #122840);
}

.strand-field-back {
	transform: rotateY(180deg);
	padding: 6px;
}

.strand-field-label {
	font-size: 0.8rem;
	font-weight: bold;
	text-align: center;
	line-height: 1.2;
}

/* Loot-Typen */
.strand-loot {
	background: linear-gradient(145deg, #1a2e1a, #0e1e0e);
	border: 2px solid #3a9a3a;
}

.strand-loot .strand-field-label {
	color: #6ada6a;
}

.strand-loot::before {
	content: '\1F4B0';
	font-size: 1.6rem;
	margin-bottom: 2px;
}

.strand-coins-loot {
	background: linear-gradient(145deg, #2e2a1a, #1e1a0e);
	border: 2px solid var(--gold);
}

.strand-coins-loot .strand-field-label {
	color: var(--gold-light);
}

.strand-coins-loot::before {
	content: '\1FA99';
	font-size: 1.6rem;
	margin-bottom: 2px;
}

.strand-trap {
	background: linear-gradient(145deg, #2e0e0e, #1e0808);
	border: 2px solid #cc3333;
}

.strand-trap .strand-field-label {
	color: #ff5555;
}

.strand-trap::before {
	content: '\1F6A8';
	font-size: 1.6rem;
	margin-bottom: 2px;
}

/* Aktionen */
.strand-actions {
	text-align: center;
	margin: 14px 0;
}

.strand-cashout-btn {
	background: linear-gradient(135deg, #2a7a2a, #3a9a3a);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: filter 0.2s, opacity 0.2s;
}

.strand-cashout-btn:hover:not(:disabled) {
	filter: brightness(1.15);
}

.strand-cashout-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.strand-hint {
	color: var(--gold-light);
	margin-top: 10px;
	font-size: 1rem;
	font-weight: bold;
	min-height: 1.4em;
}

/* Ergebnis-Boxen */
.strand-result {
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	margin-top: 14px;
}

.strand-result h4 {
	font-size: 1.3rem;
}

.strand-result p {
	color: var(--text);
	margin: 6px 0;
}

.strand-busted {
	background: rgba(139, 26, 26, 0.2);
	border: 2px solid #cc3333;
}

.strand-busted h4 {
	color: #ff5555;
}

.strand-cashed {
	background: rgba(42, 122, 42, 0.15);
	border: 2px solid #3a9a3a;
}

.strand-cashed h4 {
	color: #4aba4a;
}

/* ═══════════════════════════════════════════════
   SAFEKNACKER MINI-GAME
═══════════════════════════════════════════════ */

.safe-container {
	max-width: 500px;
	margin: 0 auto;
	padding: 10px;
}

.safe-container h3 {
	color: var(--gold);
	margin-bottom: 10px;
}

.safe-container h4 {
	color: var(--gold-dim);
	margin: 15px 0 8px;
}

.safe-legend {
	list-style: none;
	padding: 0;
	margin: 8px 0 14px;
}

.safe-legend li {
	color: var(--text-dim);
	padding: 3px 0;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.safe-board {
	margin: 14px 0;
}

.safe-guess-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	margin-bottom: 4px;
	background: rgba(201, 168, 76, 0.04);
	border: 1px solid rgba(201, 168, 76, 0.15);
	border-radius: 6px;
}

.safe-nr {
	color: var(--text-dim);
	font-size: 0.85rem;
	min-width: 24px;
}

.safe-digits {
	display: flex;
	gap: 6px;
}

.safe-digit {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #1a1510, #2a2218);
	border: 2px solid var(--gold-dim);
	border-radius: 6px;
	color: var(--gold-light);
	font-weight: bold;
	font-size: 1.1rem;
}

.safe-hints {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.safe-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: inline-block;
}

.safe-dot--correct {
	background: #4aba4a;
	box-shadow: 0 0 4px rgba(74, 186, 74, 0.5);
}

.safe-dot--present {
	background: var(--gold);
	box-shadow: 0 0 4px rgba(201, 168, 76, 0.5);
}

.safe-dot--wrong {
	background: #444;
	border: 1px solid #555;
}

.safe-input-form {
	margin: 14px 0;
}

.safe-input-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.safe-input {
	width: 50px;
	height: 50px;
	text-align: center;
	font-size: 1.4rem;
	font-weight: bold;
	background: linear-gradient(145deg, #1a1510, #2a2218);
	border: 2px solid var(--gold-dim);
	border-radius: 8px;
	color: var(--gold-light);
	outline: none;
	transition: border-color 0.2s;
	-moz-appearance: textfield;
}

.safe-input::-webkit-outer-spin-button,
.safe-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.safe-input:focus {
	border-color: var(--gold);
	box-shadow: 0 0 6px rgba(201, 168, 76, 0.3);
}

.safe-legend-mini {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 0.8rem;
	color: var(--text-dim);
}

.safe-legend-mini span {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* ═══════════════════════════════════════════════
   HÜTCHENSPIEL MINI-GAME
═══════════════════════════════════════════════ */

.huet-container {
	max-width: 520px;
	margin: 0 auto;
	padding: 10px;
}

.huet-container h3 {
	color: var(--gold);
	margin-bottom: 10px;
}

.huet-container h4 {
	color: var(--gold-dim);
	margin: 15px 0 8px;
}

.huet-payout-table {
	margin: 12px 0;
}

.huet-prompt {
	color: var(--gold-light);
	font-size: 1.1rem;
	font-weight: bold;
	text-align: center;
	margin: 14px 0 8px;
}

/* Hütchen-Grid */
.huet-cups {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 14px 0;
}

.huet-cup-form {
	display: inline-block;
}

.huet-cup {
	width: 80px;
	height: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: linear-gradient(145deg, #1a1510, #2a2218);
	border: 2px solid var(--gold-dim);
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.huet-cup:hover {
	transform: translateY(-6px);
	border-color: var(--gold);
	box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
}

.huet-cup:active {
	transform: translateY(-2px);
}

.huet-cup-icon {
	font-size: 2.4rem;
	line-height: 1;
}

.huet-cup-nr {
	font-size: 0.8rem;
	color: var(--text-dim);
	font-weight: bold;
}

/* Gewinn-Leiter */
.huet-ladder {
	display: flex;
	gap: 4px;
	margin: 12px 0;
}

.huet-ladder-step {
	flex: 1;
	text-align: center;
	padding: 6px 4px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.75rem;
	color: var(--text-dim);
	transition: all 0.3s;
}

.huet-ladder-step span {
	display: block;
}

.huet-ladder-round {
	font-weight: bold;
	font-size: 0.85rem;
}

.huet-ladder-reward {
	color: var(--gold-dim);
	font-weight: bold;
}

.huet-ladder--active {
	border-color: var(--gold);
	background: rgba(201, 168, 76, 0.1);
	color: var(--text);
	box-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
}

.huet-ladder--active .huet-ladder-reward {
	color: var(--gold-light);
}

.huet-ladder--done {
	border-color: #3a9a3a;
	background: rgba(42, 122, 42, 0.08);
}

.huet-ladder--done .huet-ladder-reward {
	color: #4aba4a;
}

/* Ergebnis */
.huet-result {
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	margin: 14px 0;
}

.huet-result h4 {
	font-size: 1.3rem;
	margin-bottom: 6px;
}

.huet-result p {
	color: var(--text);
}

.huet-result--won {
	background: rgba(42, 122, 42, 0.15);
	border: 2px solid #3a9a3a;
}

.huet-result--won h4 {
	color: #4aba4a;
}

/* Entscheidung: Weiter oder Aufhören */
.huet-decision {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 14px 0;
}

.huet-decision-form {
	display: inline-block;
}

.huet-btn-cashout {
	background: linear-gradient(135deg, #2a7a2a, #3a9a3a);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: bold;
	cursor: pointer;
	transition: filter 0.2s;
}

.huet-btn-cashout:hover {
	filter: brightness(1.15);
}

.huet-btn-continue {
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: var(--ink);
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: bold;
	cursor: pointer;
	transition: filter 0.2s;
}

.huet-btn-continue:hover {
	filter: brightness(1.15);
}

/* ═══════════════════════════════════════════════
   Pferderennen
═══════════════════════════════════════════════ */

.race-container {
	max-width: 700px;
	margin: 0 auto;
	text-align: left;
}

.race-container h3 {
	text-align: center;
	color: var(--gold);
	margin-bottom: 10px;
}

.race-container h4 {
	color: var(--gold-light);
	margin: 14px 0 8px;
}

.race-horses {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.race-horse-option {
	cursor: pointer;
}

.race-horse-option input[type="radio"] {
	display: none;
}

.race-horse-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	border: 2px solid var(--border);
	border-radius: 8px;
	padding: 10px 14px;
	background: var(--panel-bg);
	transition: border-color 0.2s, box-shadow 0.2s;
	min-width: 110px;
}

.race-horse-option input[type="radio"]:checked + .race-horse-card {
	border-color: var(--gold);
	box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
}

.race-horse-emoji {
	font-size: 1.6rem;
}

.race-horse-label {
	font-weight: bold;
	color: var(--text);
	font-size: 0.85rem;
}

.race-horse-odds {
	color: var(--gold);
	font-size: 0.9rem;
	font-weight: bold;
}

.race-horse-pct {
	color: var(--text-dim);
	font-size: 0.75rem;
}

.race-bet-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.race-bet-option {
	cursor: pointer;
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--panel-bg);
	color: var(--text);
	transition: border-color 0.2s;
}

.race-bet-option:has(input:checked) {
	border-color: var(--gold);
	color: var(--gold);
}

.race-bet-option input[type="radio"] {
	display: none;
}

.race-form {
	text-align: center;
}

.race-tracks {
	margin: 14px 0;
}

.race-track {
	margin-bottom: 6px;
	background: rgba(20, 15, 8, 0.5);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 4px 8px;
}

.race-track--winner {
	border-color: var(--gold);
	background: rgba(201, 168, 76, 0.08);
}

.race-track--bet {
	border-left: 3px solid var(--gold-light);
}

.race-horse-name {
	display: block;
	font-size: 0.78rem;
	color: var(--text-dim);
	margin-bottom: 2px;
}

.race-lane {
	position: relative;
	height: 30px;
	background: linear-gradient(90deg, rgba(201,168,76,0.05) 0%, rgba(201,168,76,0.12) 100%);
	border-radius: 4px;
	overflow: hidden;
}

.race-horse {
	position: absolute;
	left: 0;
	top: 2px;
	width: 28px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	border-radius: 4px;
	transition: none;
}

.race-result {
	text-align: center;
	padding: 14px;
	border-radius: 8px;
	margin-top: 14px;
}

.race-result h4 {
	margin-bottom: 6px;
}

.race-result--won {
	background: rgba(42, 122, 42, 0.2);
	border: 1px solid rgba(42, 122, 42, 0.5);
	color: #7fdf7f;
}

.race-result--lost {
	background: rgba(139, 26, 26, 0.2);
	border: 1px solid rgba(139, 26, 26, 0.5);
	color: #df7f7f;
}

/* ═══════════════════════════════════════════════
   Kartenzählen (Blackjack)
═══════════════════════════════════════════════ */

.bj-container {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.bj-container h3 {
	color: var(--gold);
	margin-bottom: 10px;
}

.bj-container h4 {
	color: var(--gold-light);
	margin: 10px 0 6px;
}

.bj-rules {
	text-align: left;
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px 18px;
	margin-bottom: 14px;
}

.bj-rules ul {
	list-style: none;
	padding: 0;
}

.bj-rules li {
	padding: 3px 0;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.bj-rules li::before {
	content: '\25B8 ';
	color: var(--gold-dim);
}

.bj-bet-form {
	text-align: center;
	margin-bottom: 20px;
}

/* Spieltisch */
.bj-table {
	background: linear-gradient(135deg, #0d2e0d, #1a4a1a, #0d2e0d);
	border: 3px solid #2a5a2a;
	border-radius: 16px;
	padding: 20px 14px;
	margin: 14px 0;
	box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.bj-hand {
	margin-bottom: 18px;
}

.bj-hand:last-child {
	margin-bottom: 0;
}

.bj-hand h4 {
	color: #ccc;
	margin-bottom: 8px;
}

.bj-hand-value {
	font-weight: normal;
	font-size: 0.85rem;
	color: #aaa;
}

.bj-cards {
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Karten */
.bj-card {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 70px;
	background: linear-gradient(135deg, #f5f0e0, #e8e0c8);
	border: 1px solid #bbb;
	border-radius: 6px;
	font-family: 'Georgia', serif;
	box-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.bj-card--hidden {
	background: linear-gradient(135deg, #8b1a1a, #a02020);
	color: #ddd;
	font-size: 1.4rem;
	font-weight: bold;
	border-color: #600;
}

.bj-card-value {
	font-size: 1.1rem;
	font-weight: bold;
	line-height: 1;
}

.bj-card-suit {
	font-size: 1.3rem;
	line-height: 1;
}

/* Aktions-Buttons */
.bj-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 14px;
}

.bj-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: filter 0.2s;
}

.bj-btn:hover {
	filter: brightness(1.15);
}

.bj-btn--hit {
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: var(--ink);
}

.bj-btn--stand {
	background: linear-gradient(135deg, #555, #777);
	color: #fff;
}

/* Ergebnis */
.bj-result {
	padding: 14px;
	border-radius: 8px;
	margin-top: 14px;
}

.bj-result h4 {
	margin-bottom: 4px;
	font-size: 1.1rem;
}

.bj-result--won {
	background: rgba(42, 122, 42, 0.2);
	border: 1px solid rgba(42, 122, 42, 0.5);
	color: #7fdf7f;
}

.bj-result--lost {
	background: rgba(139, 26, 26, 0.2);
	border: 1px solid rgba(139, 26, 26, 0.5);
	color: #df7f7f;
}

.bj-result--push {
	background: rgba(150, 150, 100, 0.15);
	border: 1px solid rgba(150, 150, 100, 0.4);
	color: var(--text-dim);
}

/* ══════════════════════════════
   REVIERKRIEG — Strategiespiel
══════════════════════════════ */
.rv-container {
	max-width: 560px;
	margin: 0 auto;
	padding: 10px;
}

.rv-container h3 {
	color: var(--gold);
	margin-bottom: 10px;
}

.rv-container h4 {
	color: var(--gold-dim);
	margin: 12px 0 6px;
}

.rv-rules {
	background: rgba(201, 168, 76, 0.06);
	border: 1px solid var(--border);
	padding: 10px 14px;
	margin-bottom: 14px;
}

.rv-rules ul {
	list-style: none;
	padding: 0;
	margin: 6px 0 0;
}

.rv-rules li {
	color: var(--text-dim);
	padding: 3px 0;
	font-size: 0.9rem;
}

.rv-rules li::before {
	content: '\25B8 ';
	color: var(--gold-dim);
}

.rv-status {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	color: var(--text);
	font-size: 0.9rem;
}

.rv-player-stat {
	color: #4aba4a;
	font-weight: bold;
}

.rv-ai-stat {
	color: #e05050;
	font-weight: bold;
}

.rv-phase-info {
	background: rgba(201, 168, 76, 0.08);
	border: 1px solid var(--border);
	padding: 8px 14px;
	margin-bottom: 10px;
	color: var(--gold-light);
	font-weight: bold;
	font-size: 0.9rem;
	min-height: 2em;
}

/* 3x3 Board */
.rv-board {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin: 10px 0;
}

.rv-cell {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
	border: 2px solid transparent;
	position: relative;
}

.rv-cell:hover {
	transform: scale(1.03);
}

.rv-cell-name {
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

.rv-cell-troops {
	font-size: 1.8rem;
	font-weight: bold;
	font-family: 'Playfair Display', serif;
}

/* Besitzer-Farben */
.rv-player {
	background: linear-gradient(145deg, #0e2e0e, #1a4a1a);
	border-color: #3a9a3a;
	color: #8fdf8f;
}

.rv-ai {
	background: linear-gradient(145deg, #2e0e0e, #4a1a1a);
	border-color: #cc3333;
	color: #ef8888;
}

.rv-neutral {
	background: linear-gradient(145deg, #1a1810, #2a2618);
	border-color: #666;
	color: #aaa;
}

/* Highlights */
.rv-selected {
	box-shadow: 0 0 16px rgba(201, 168, 76, 0.6);
	border-color: var(--gold) !important;
	transform: scale(1.05);
}

.rv-target {
	box-shadow: 0 0 12px rgba(232, 201, 106, 0.4);
	border-color: var(--gold-light) !important;
	animation: rv-pulse 0.8s infinite alternate;
}

@keyframes rv-pulse {
	from { box-shadow: 0 0 8px rgba(232, 201, 106, 0.2); }
	to   { box-shadow: 0 0 16px rgba(232, 201, 106, 0.5); }
}

.rv-reinforced {
	animation: rv-flash-green 0.6s;
}

.rv-conquered {
	animation: rv-flash-green 1s;
}

.rv-failed {
	animation: rv-flash-red 0.8s;
}

.rv-ai-reinforce {
	animation: rv-flash-red 0.6s;
}

.rv-ai-conquered {
	animation: rv-flash-red 1s;
}

.rv-ai-failed {
	animation: rv-flash-green 0.8s;
}

@keyframes rv-flash-green {
	0%   { box-shadow: 0 0 0 rgba(74, 186, 74, 0); }
	30%  { box-shadow: 0 0 20px rgba(74, 186, 74, 0.6); }
	100% { box-shadow: 0 0 0 rgba(74, 186, 74, 0); }
}

@keyframes rv-flash-red {
	0%   { box-shadow: 0 0 0 rgba(204, 51, 51, 0); }
	30%  { box-shadow: 0 0 20px rgba(204, 51, 51, 0.6); }
	100% { box-shadow: 0 0 0 rgba(204, 51, 51, 0); }
}

/* Aktionen */
.rv-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 10px 0;
}

.rv-btn {
	padding: 10px 22px;
	border: none;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: bold;
	cursor: pointer;
	transition: filter 0.2s;
}

.rv-btn:hover {
	filter: brightness(1.15);
}

.rv-btn-skip {
	background: linear-gradient(135deg, #555, #777);
	color: #fff;
}

.rv-btn-end {
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: var(--ink);
}

/* Kampflog */
.rv-log {
	background: rgba(10, 8, 5, 0.6);
	border: 1px solid var(--border);
	padding: 10px 14px;
	margin-top: 10px;
	max-height: 160px;
	overflow-y: auto;
}

.rv-log h4 {
	margin: 0 0 6px;
	font-size: 0.85rem;
}

.rv-log-entry {
	font-size: 0.8rem;
	color: var(--text-dim);
	padding: 2px 0;
	border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

/* Ergebnis */
.rv-result {
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	margin-top: 14px;
}

.rv-result h4 {
	font-size: 1.3rem;
	margin-bottom: 6px;
}

.rv-result p {
	color: var(--text);
	margin: 6px 0;
}

.rv-result-won {
	background: rgba(42, 122, 42, 0.15);
	border: 2px solid #3a9a3a;
}

.rv-result-lost {
	background: rgba(139, 26, 26, 0.2);
	border: 2px solid #cc3333;
}

.rv-result-draw {
	background: rgba(201, 168, 76, 0.1);
	border: 2px solid var(--gold-dim);
}

/* ═══════════════════════════════════════════════
   RANGLISTE / STATISTIK
═══════════════════════════════════════════════ */

.rl-page {
	max-width: 860px;
	margin: 10px auto;
}

/* Filter bar */
.rl-filter {
	background: var(--panel-bg);
	border: 1px solid var(--border);
	padding: 14px 18px;
	margin-bottom: 2px;
}

.rl-title {
	margin-top: 0;
	margin-bottom: 12px;
}

.rl-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.rl-filter-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rl-filter-group label {
	font-family: 'Special Elite', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.rl-filter-group select {
	min-width: 130px;
}

/* Legend bar */
.rl-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	padding: 8px 18px;
	background: rgba(20, 15, 8, 0.4);
	border: 1px solid var(--border);
	border-top: none;
	font-size: 0.8rem;
	color: var(--text-dim);
	margin-bottom: 12px;
}

.rl-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.rl-legend-item img {
	height: 14px;
	vertical-align: middle;
}

.rl-legend-self {
	padding: 1px 8px;
	background: linear-gradient(135deg, rgba(201, 168, 76, 0.45), rgba(201, 168, 76, 0.25));
	border: 1px solid var(--gold-dim);
	color: var(--ink);
	font-weight: 700;
}

.rl-legend-syn {
	padding: 1px 8px;
	background: rgba(201, 168, 76, 0.2);
	border: 1px solid var(--gold-dim);
	color: var(--ink);
}

/* Table wrapper */
.rl-table-wrap {
	background: var(--panel-bg);
	border: 1px solid var(--border);
	padding: 0;
}

.rl-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.rl-table thead th {
	background: rgba(10, 8, 4, 0.8);
	font-family: 'Special Elite', monospace;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-dim);
	padding: 10px 12px;
	border-bottom: 2px solid var(--border-light);
	text-align: left;
}

.rl-table tbody tr {
	transition: background 0.15s ease;
}

.rl-table tbody tr:hover {
	background: rgba(201, 168, 76, 0.04);
}

.rl-table td {
	padding: 7px 12px;
	border-bottom: 1px solid rgba(201, 168, 76, 0.07);
	vertical-align: middle;
	background: transparent;
}

.rl-table tbody tr:last-child td {
	border-bottom: none;
}

/* Column widths */
.rl-col-rank {
	width: 120px;
	white-space: nowrap;
}

.rl-col-actions {
	width: 36px;
	text-align: center;
}

.rl-col-pts {
	text-align: right;
	font-family: 'Special Elite', monospace;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--gold-light);
}

.rl-col-members {
	width: 90px;
	text-align: center;
}

.rl-col-name img {
	height: 14px;
	vertical-align: middle;
	margin-right: 3px;
}

/* Rank number */
.rl-rank {
	font-family: 'Special Elite', monospace;
	font-weight: 700;
	color: var(--gold);
}

/* Rank change indicators */
.rl-up {
	color: #6aaa7a;
	font-size: 0.75rem;
}

.rl-down {
	color: #cc5555;
	font-size: 0.75rem;
}

.rl-steady {
	color: var(--text-dim);
	font-size: 0.75rem;
}

/* Row highlights */
.rl-row.rl-self td {
	background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.08));
	border-bottom-color: rgba(201, 168, 76, 0.2);
}

.rl-row.rl-self td:first-child {
	box-shadow: inset 3px 0 0 var(--gold);
}

.rl-row.rl-syn td {
	background: rgba(201, 168, 76, 0.08);
	border-bottom-color: rgba(201, 168, 76, 0.12);
}

.rl-row.rl-syn td:first-child {
	box-shadow: inset 3px 0 0 var(--gold-dim);
}

/* Eigene Platzierung */
.rl-your-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	font-size: 1.1rem;
	color: var(--text);
	background: linear-gradient(135deg, rgba(240,192,64,0.1) 0%, rgba(255,255,255,0.03) 100%);
	border: 1px solid rgba(240,192,64,0.25);
	border-radius: 8px;
	margin: 0 0 12px 0;
	text-align: center;
}
.rl-your-rank strong {
	color: var(--accent, #f0c040);
	font-size: 1.4rem;
}

.rl-update-info {
	padding: 8px 12px;
	font-size: 0.75rem;
	color: var(--text-dim);
	border-top: 1px solid var(--border);
	margin: 0;
}

/* Mobile */
@media (max-width: 700px) {
	.rl-filter {
		padding: 10px 12px;
	}

	.rl-filter-row {
		flex-direction: column;
		gap: 10px;
	}

	.rl-filter-group {
		width: 100%;
	}

	.rl-filter-group select {
		width: 100%;
		min-width: 100%;
		padding: 8px 10px;
		font-size: 0.95rem;
	}

	.rl-filter-group input[type="submit"] {
		width: 100%;
		padding: 10px;
		font-size: 0.95rem;
		margin-top: 4px;
	}

	.rl-legend {
		gap: 8px;
		font-size: 0.72rem;
	}

	.rl-col-syn {
		display: none;
	}

	.rl-col-actions {
		display: none;
	}

	.rl-table td,
	.rl-table thead th {
		padding: 6px 8px;
	}
}

/* ═══════════════════════════════════════════════
   STATISTIK — Bar-Spiele Tab
═══════════════════════════════════════════════ */
.rl-bar-stats {
	max-width: 860px;
}
.rl-bar-personal {
	background: var(--panel-bg);
	border: 1px solid var(--border);
	padding: 16px 18px;
	margin-bottom: 14px;
}
.rl-bar-section-title {
	font-family: 'Playfair Display', serif;
	color: var(--gold);
	font-size: 1.1em;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.rl-bar-ranking {
	margin-top: 14px;
}
.rl-bar-ranking .rl-table td strong {
	color: var(--gold-light);
}

/* ══════════════════════════════
   EINKOMMEN PAGE
══════════════════════════════ */
.einkommen-page {
	margin: 0 auto;
	padding: 8px 0;
}

/* Rohstoff-Filter Header */
.einkommen-res-filter {
	margin-bottom: 16px;
	padding: 12px 16px;
	background: rgba(20, 15, 8, 0.6);
	border: 1px solid var(--border);
	border-radius: 6px;
}

.einkommen-res-back {
	display: inline-block;
	margin-bottom: 10px;
	font-family: 'Special Elite', monospace;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--gold-dim);
	text-decoration: none;
	transition: color 0.2s;
}

.einkommen-res-back:hover {
	color: var(--gold-light);
}

.einkommen-res-info {
	display: flex;
	align-items: center;
	gap: 14px;
}

.einkommen-res-icon {
	font-size: 2.2rem;
	line-height: 1;
}

.einkommen-res-details h2 {
	font-family: 'Playfair Display', serif;
	font-size: 1.2rem;
	color: var(--gold-light);
	margin: 0 0 4px;
}

.einkommen-res-stats {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-family: 'Special Elite', monospace;
	font-size: 0.75rem;
	color: var(--text-dim);
}

.einkommen-res-stats strong {
	color: var(--gold-light);
	font-family: 'Playfair Display', serif;
}

.einkommen-summary {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.einkommen-card {
	flex: 1;
	padding: 14px 16px;
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-top: 2px solid var(--gold-dim);
	text-align: center;
}

.einkommen-card__label {
	font-family: 'Special Elite', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold-dim);
	margin-bottom: 4px;
}

.einkommen-card__value {
	font-family: 'Playfair Display', serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--gold-light);
}

.einkommen-card--total {
	border-top-color: var(--gold);
}

.einkommen-card--daily {
	border-top-color: var(--gold-dim);
}

.einkommen-table-wrap {
	overflow-x: auto;
	margin: 0 -4px;
	padding: 0 4px;
}

.einkommen-table {
	width: 100%;
	border-collapse: collapse;
}

.einkommen-table thead th {
	font-family: 'Special Elite', monospace;
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-dim);
	background: transparent;
	padding: 6px 8px;
	border-bottom: 1px solid var(--border-light);
	text-align: center;
}

.einkommen-table__name {
	text-align: left !important;
	min-width: 140px;
}

.einkommen-table__row th {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--text);
	text-align: left;
	padding: 5px 8px;
	border-bottom: 1px solid var(--border);
}

.einkommen-table__row td {
	font-size: 0.8rem;
	color: var(--text);
	text-align: center;
	padding: 5px 8px;
	border-bottom: 1px solid var(--border);
}

.einkommen-table__row:hover th,
.einkommen-table__row:hover td {
	background: rgba(201, 168, 76, 0.06);
}

.einkommen-table__total th,
.einkommen-table__total td {
	font-family: 'Special Elite', monospace;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--gold-light);
	padding: 8px;
	text-align: center;
	border-top: 2px solid var(--border-light);
}

.einkommen-table__total th {
	text-align: left;
}

.einkommen-table__total--daily th,
.einkommen-table__total--daily td {
	color: var(--text-dim);
	border-top: 1px solid var(--border);
}

.einkommen-table .resd {
	color: #cc5555;
	font-size: 0.7rem;
}

/* Chart */
.einkommen-chart-wrap {
	padding: 12px 8px;
}

.einkommen-chart__bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	height: 180px;
	padding-bottom: 4px;
}

.einkommen-chart__group {
	flex: 1;
	max-width: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.einkommen-chart__bar-container {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 160px;
	width: 100%;
}

.einkommen-chart__bar {
	flex: 1;
	min-height: 2px;
	border-radius: 2px 2px 0 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	transition: height 0.3s ease;
}

.einkommen-chart__bar span {
	font-size: 0.55rem;
	color: var(--text-dim);
	padding-top: 2px;
	white-space: nowrap;
}

.einkommen-chart__bar--income {
	background: linear-gradient(to top, rgba(106, 170, 122, 0.6), rgba(106, 170, 122, 0.25));
	border: 1px solid rgba(106, 170, 122, 0.4);
	border-bottom: none;
}

.einkommen-chart__bar--expense {
	background: linear-gradient(to top, rgba(139, 26, 26, 0.6), rgba(139, 26, 26, 0.25));
	border: 1px solid rgba(139, 26, 26, 0.4);
	border-bottom: none;
}

.einkommen-chart__label {
	font-family: 'Special Elite', monospace;
	font-size: 0.5rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-top: 6px;
	text-align: center;
	word-break: break-word;
}

.einkommen-chart-legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 10px;
}

.einkommen-chart-legend__item {
	font-family: 'Special Elite', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-dim);
	display: flex;
	align-items: center;
	gap: 6px;
}

.einkommen-chart-legend__item::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

.einkommen-chart-legend__item--income::before {
	background: rgba(106, 170, 122, 0.6);
	border: 1px solid rgba(106, 170, 122, 0.4);
}

.einkommen-chart-legend__item--expense::before {
	background: rgba(139, 26, 26, 0.6);
	border: 1px solid rgba(139, 26, 26, 0.4);
}

@media (max-width: 600px) {
	.einkommen-summary {
		flex-direction: column;
		gap: 8px;
	}

	.einkommen-chart__bars {
		height: 140px;
	}

	.einkommen-chart__bar span {
		display: none;
	}
}

/* ══════════════════════════════
   WAR ADMIN PANEL
══════════════════════════════ */
#war_admin {
	margin: 16px auto;
	max-width: 520px;
	padding: 16px 20px;
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-top: 2px solid var(--blood);
	text-align: left;
}

#war_admin h1 {
	font-family: 'Special Elite', monospace;
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--blood);
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}

#war_admin h1 + p {
	margin: 0;
}

#war_admin table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 8px;
}

#war_admin table th {
	font-family: 'Special Elite', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-dim);
	background: transparent;
	border: none;
	padding: 5px 8px;
	text-align: left;
}

#war_admin table td {
	font-size: 0.85rem;
	color: var(--text);
	background: transparent;
	border: none;
	border-top: 1px solid var(--border);
	padding: 5px 8px;
}

#war_admin ul {
	list-style: none;
	padding: 0;
	margin: 6px 0 0;
}

#war_admin ul li {
	padding: 3px 0;
}

#war_admin ul li a {
	font-family: 'Special Elite', monospace;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--gold);
	text-decoration: none;
	transition: color 0.2s;
}

#war_admin ul li a:hover {
	color: var(--gold-light);
	text-decoration: underline;
}

/* ══════════════════════════════
   COIN-SHOP
══════════════════════════════ */
.shop-coins-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 16px;
}
.shop-coins-bal {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--gold-light);
}
.shop-coins-bal .ti-coin { color: var(--gold); }
.shop-back {
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}
.shop-back:hover { color: var(--gold); }

/* Messages */
.shop-msg {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
	font-weight: 600;
}
.shop-msg--ok {
	background: rgba(34, 120, 50, 0.25);
	border: 1px solid rgba(34, 180, 70, 0.4);
	color: #7ddf8a;
}
.shop-msg--err {
	background: rgba(139, 26, 26, 0.25);
	border: 1px solid rgba(180, 50, 50, 0.4);
	color: #e08080;
}

/* Preview */
.shop-preview {
	margin-bottom: 20px;
}
.shop-preview__card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px;
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
}
.shop-preview__avatar {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	border: 3px solid var(--border-light);
	flex-shrink: 0;
}
.shop-preview__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.shop-preview__name {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text);
}
.shop-preview__title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 2px 8px;
	background: rgba(201, 168, 76, 0.15);
	border: 1px solid var(--border);
	border-radius: 3px;
	color: var(--gold);
	margin-right: 6px;
	vertical-align: middle;
}

/* Section */
.shop-section {
	margin-bottom: 24px;
}
.shop-section__title {
	font-size: 1.1rem;
	color: var(--gold);
	border-bottom: 1px solid var(--border);
	padding-bottom: 6px;
	margin-bottom: 12px;
}
.shop-section__title .ti { margin-right: 6px; }
.shop-section__count {
	font-size: 0.8rem;
	color: var(--text-dim);
	font-weight: 400;
	margin-left: 8px;
}

/* Item Grid */
.shop-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}
.shop-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--panel-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.shop-item:hover {
	border-color: var(--border-light);
}
.shop-item--owned {
	background: rgba(201, 168, 76, 0.06);
}
.shop-item--equipped {
	border-color: var(--gold-dim);
	box-shadow: 0 0 8px rgba(201, 168, 76, 0.15);
}
.shop-item__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 1.4rem;
	flex-shrink: 0;
	background: rgba(201, 168, 76, 0.1);
	color: var(--gold);
}
.shop-item--common .shop-item__icon { background: rgba(180, 180, 180, 0.1); color: #b4b4b4; }
.shop-item--rare .shop-item__icon { background: rgba(66, 135, 245, 0.12); color: #6aadff; }
.shop-item--epic .shop-item__icon { background: rgba(163, 53, 238, 0.12); color: #c77dff; }
.shop-item--legendary .shop-item__icon { background: rgba(255, 170, 0, 0.12); color: #ffaa00; }

.shop-item__info {
	flex: 1;
	min-width: 0;
}
.shop-item__name {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--text);
}
.shop-item__desc {
	font-size: 0.8rem;
	color: var(--text-dim);
	line-height: 1.3;
	margin-top: 2px;
}
.shop-item__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}
.shop-item__price {
	font-size: 0.85rem;
	color: var(--gold);
	font-weight: 600;
}
.shop-item__rarity {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 1px 6px;
	border-radius: 3px;
	font-weight: 700;
}
.shop-rarity--common { background: rgba(180,180,180,0.15); color: #b4b4b4; }
.shop-rarity--rare { background: rgba(66,135,245,0.15); color: #6aadff; }
.shop-rarity--epic { background: rgba(163,53,238,0.15); color: #c77dff; }
.shop-rarity--legendary { background: rgba(255,170,0,0.15); color: #ffaa00; }

.shop-item__actions {
	flex-shrink: 0;
}

/* Buttons */
.shop-btn {
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 5px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.shop-btn--buy {
	background: rgba(201, 168, 76, 0.15);
	color: var(--gold-light);
	border-color: var(--gold-dim);
}
.shop-btn--buy:hover { background: rgba(201, 168, 76, 0.3); }
.shop-btn--buy:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.shop-btn--equip {
	background: rgba(34, 120, 50, 0.2);
	color: #7ddf8a;
	border-color: rgba(34, 180, 70, 0.3);
}
.shop-btn--equip:hover { background: rgba(34, 120, 50, 0.35); }
.shop-btn--unequip {
	background: rgba(139, 26, 26, 0.15);
	color: #e08080;
	border-color: rgba(180, 50, 50, 0.3);
}
.shop-btn--unequip:hover { background: rgba(139, 26, 26, 0.3); }

/* Inventar */
.shop-inv {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.shop-inv__item {
	padding: 6px 12px;
	border-radius: 5px;
	font-size: 0.85rem;
	border: 1px solid var(--border);
	background: var(--panel-bg);
}
.shop-inv__item--active {
	border-color: var(--gold-dim);
}
.shop-inv__eq {
	font-size: 0.7rem;
	background: rgba(201, 168, 76, 0.2);
	color: var(--gold);
	padding: 1px 5px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── Avatarrahmen (kosmetisch) ─── */
.avatar-frame--gold {
	border-color: var(--gold) !important;
	box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}
.avatar-frame--blood {
	border-color: #8b1a1a !important;
	box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}
.avatar-frame--neon {
	border-color: #00ff88 !important;
	box-shadow: 0 0 12px rgba(0, 255, 136, 0.4), 0 0 24px rgba(0, 255, 136, 0.15);
}
.avatar-frame--diamond {
	border-color: #b9f2ff !important;
	box-shadow: 0 0 14px rgba(185, 242, 255, 0.4), 0 0 28px rgba(185, 242, 255, 0.15);
	animation: diamond-shimmer 3s ease-in-out infinite;
}
@keyframes diamond-shimmer {
	0%, 100% { box-shadow: 0 0 14px rgba(185, 242, 255, 0.4), 0 0 28px rgba(185, 242, 255, 0.15); }
	50% { box-shadow: 0 0 20px rgba(185, 242, 255, 0.6), 0 0 40px rgba(185, 242, 255, 0.25); }
}
.avatar-frame--fire {
	border-color: #ff6600 !important;
	box-shadow: 0 0 12px rgba(255, 102, 0, 0.45), 0 0 24px rgba(255, 50, 0, 0.2);
	animation: fire-glow 2s ease-in-out infinite alternate;
}
@keyframes fire-glow {
	0% { box-shadow: 0 0 10px rgba(255, 102, 0, 0.4), 0 0 20px rgba(255, 50, 0, 0.15); }
	100% { box-shadow: 0 0 16px rgba(255, 80, 0, 0.55), 0 0 30px rgba(255, 30, 0, 0.25); }
}
.avatar-frame--shadow {
	border-color: #2a1a3a !important;
	box-shadow: 0 0 14px rgba(30, 0, 50, 0.6), 0 0 28px rgba(0, 0, 0, 0.4);
}

/* ── Profilfarben (kosmetisch) ─── */
.profile-color--crimson { color: #dc3545 !important; }
.profile-color--gold { color: var(--gold-light) !important; }
.profile-color--emerald { color: #2ecc71 !important; }
.profile-color--ice { color: #5bc0de !important; }
.profile-color--purple { color: #9b59b6 !important; }
.profile-color--rainbow {
	background: linear-gradient(90deg, #ff6b6b, #ffa500, #ffd700, #2ecc71, #5bc0de, #9b59b6, #ff6b6b);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: rainbow-shift 4s linear infinite;
}
@keyframes rainbow-shift {
	0% { background-position: 0% center; }
	100% { background-position: 200% center; }
}

/* ══════════════════════════════
   EMPTY STATE
══════════════════════════════ */
.empty-state {
	text-align: center;
	padding: 40px 20px;
	margin: 20px auto;
	max-width: 400px;
	background: linear-gradient(135deg, rgba(30, 22, 10, 0.8), rgba(15, 11, 5, 0.9));
	border: 1px solid var(--border);
	border-radius: 6px;
}

.empty-state__icon {
	font-size: 3rem;
	margin-bottom: 12px;
	opacity: 0.6;
}

.empty-state h2 {
	color: var(--gold-light);
	margin-bottom: 8px;
	font-size: 1.1rem;
}

.empty-state p {
	color: var(--text-dim);
	margin-bottom: 16px;
	font-size: 0.9rem;
}

/* ══════════════════════════════
   BUTTON
══════════════════════════════ */
.btn,
a.btn:link,
a.btn:visited,
a.btn:active {
	display: inline-block;
	padding: 8px 18px;
	background: linear-gradient(135deg, var(--gold-dim), var(--gold));
	color: #0a0805;
	font-weight: 700;
	font-size: 0.85rem;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.btn:hover,
a.btn:hover {
	background: linear-gradient(135deg, var(--gold), var(--gold-light));
	color: #0a0805;
	text-decoration: none;
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--secondary,
a.btn--secondary:link,
a.btn--secondary:visited,
a.btn--secondary:active {
	background: linear-gradient(135deg, rgba(60, 50, 30, 0.9), rgba(40, 33, 18, 0.95));
	color: var(--gold-light);
	border: 1px solid var(--border-light);
}

.btn--secondary:hover,
a.btn--secondary:hover {
	background: linear-gradient(135deg, rgba(80, 65, 35, 0.95), rgba(55, 45, 25, 1));
	color: var(--gold-light);
	text-decoration: none;
}

/* Userinfo / Syndikat Actions */
.userinfo-actions,
.syn-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 16px 0 8px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}

.userinfo-actions.hidden {
	display: none;
}

/* ══════════════════════════════
   ÜBERSICHT — Dashboard Cards
══════════════════════════════ */
.ov-dashboard {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
	clear: both;
}

.ov-card {
	background: rgba(16, 12, 6, 0.7);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s;
}

.ov-card:hover {
	border-color: var(--border-light);
}

.ov-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: rgba(20, 15, 8, 0.8);
	border-bottom: 1px solid var(--border);
}

.ov-card__header h2 {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ov-card__header h2 i {
	font-size: 1rem;
	color: var(--gold);
}

.ov-card__action {
	color: var(--text-dim);
	font-size: 1rem;
	text-decoration: none;
	transition: color 0.15s;
	display: flex;
	align-items: center;
}

.ov-card__action:hover {
	color: var(--gold-light);
}

.ov-card__body {
	flex: 1;
	padding: 8px 12px;
}

.ov-card__body:empty {
	display: none;
}

.ov-card__body ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ov-card__body ul li {
	padding: 0;
	margin: 0;
}

.ov-card__body ul li a {
	display: block;
	padding: 5px 0;
	color: var(--text-dim);
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 168, 76, 0.06);
	transition: color 0.15s;
	font-size: 0.85rem;
}

.ov-card__body ul li:last-child a {
	border-bottom: none;
}

.ov-card__body ul li a:hover {
	color: var(--gold-light);
}

.ov-card__body ul li.aktuell a {
	color: var(--gold);
	font-weight: 600;
}

.ov-card__footer {
	padding: 6px 12px;
	border-top: 1px solid var(--border);
	text-align: right;
}

.ov-card__footer a {
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.8rem;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.15s;
}

.ov-card__footer a:hover {
	color: var(--gold);
}

/* Postfach Card: ungelesene Nachrichten */
.ov-card--postfach #newmsg {
	margin-bottom: 8px;
}

.ov-card--postfach #newmsg a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: rgba(139, 26, 26, 0.2);
	border: 1px solid rgba(139, 26, 26, 0.3);
	color: #ef5350;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	transition: all 0.15s;
}

.ov-card--postfach #newmsg a:hover {
	background: rgba(139, 26, 26, 0.3);
	border-color: rgba(139, 26, 26, 0.5);
}

/* Kämpfe und Syndicate News — nur Header aus Template-Inhalt */
.ov-card--kaempfe,
.ov-card--syn-news {
	border: none;
	background: none;
}

.ov-card--kaempfe:has(.ov-card__body:empty),
.ov-card--syn-news:has(.ov-card__body:empty) {
	display: none;
}

.ov-card--kaempfe h2,
.ov-card--syn-news h2 {
	margin: 0;
	padding: 8px 12px;
	background: rgba(20, 15, 8, 0.8);
	border: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ov-card--kaempfe ul,
.ov-card--syn-news ul {
	background: rgba(16, 12, 6, 0.7);
	border: 1px solid var(--border);
	border-top: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ov-card--kaempfe ul li a,
.ov-card--syn-news ul li a {
	display: block;
	padding: 5px 12px;
	color: var(--text-dim);
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 168, 76, 0.06);
	transition: color 0.15s;
	font-size: 0.85rem;
}

.ov-card--kaempfe ul li:last-child a,
.ov-card--syn-news ul li:last-child a {
	border-bottom: none;
}

.ov-card--kaempfe ul li a:hover,
.ov-card--syn-news ul li a:hover {
	color: var(--gold-light);
}

@media (max-width: 600px) {
	.ov-dashboard {
		grid-template-columns: 1fr;
	}
}

/* ══════════════════════════════
   NOTIZ (Notizzettel)
══════════════════════════════ */
.notiz-page {
	padding: 12px 14px 14px;
}

.notiz-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.notiz-header-bar h1 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	flex: 1;
}

.notiz-count {
	font-size: 0.75rem;
	color: var(--text-dim);
	font-weight: 400;
	font-family: 'Crimson Text', Georgia, serif;
}

.notiz-new-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: linear-gradient(135deg, #8b1a1a 0%, #5a0f0f 50%, #3d0a0a 100%);
	border: 1px solid rgba(201, 168, 76, 0.3);
	color: var(--gold);
	font-family: 'Special Elite', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 7px 14px;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.notiz-new-btn:hover {
	border-color: var(--gold);
	color: var(--gold-light);
	box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
}

.notiz-back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.2s;
}

.notiz-back-link:hover {
	color: var(--gold);
}

/* Notiz-Liste */
.notiz-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.notiz-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: rgba(10, 8, 5, 0.4);
	border: 1px solid transparent;
	border-bottom-color: rgba(201, 168, 76, 0.08);
	cursor: pointer;
	transition: all 0.15s ease;
}

.notiz-item:hover {
	background: rgba(201, 168, 76, 0.05);
	border-color: var(--border);
}

.notiz-item-check {
	flex-shrink: 0;
}

.notiz-item-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--gold);
	cursor: pointer;
}

.notiz-item-body {
	flex: 1;
	min-width: 0;
}

.notiz-item-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.notiz-item-title span {
	color: var(--gold-light);
	font-weight: 600;
	font-size: 0.95rem;
}

.notiz-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	font-size: 0.75rem;
	color: var(--text-dim);
	background: rgba(201, 168, 76, 0.1);
	border: 1px solid var(--border);
	border-radius: 3px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.notiz-edit-btn:hover {
	color: var(--gold-light);
	border-color: var(--border-light);
	background: rgba(201, 168, 76, 0.2);
}

.notiz-item-preview {
	color: var(--text-dim);
	font-size: 0.8rem;
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.notiz-item-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.notiz-prio-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 0.7rem;
	font-weight: 700;
	font-family: 'Special Elite', monospace;
}

.notiz-prio-low {
	background: rgba(102, 187, 106, 0.15);
	color: #66bb6a;
	border: 1px solid rgba(102, 187, 106, 0.3);
}

.notiz-prio-mid {
	background: rgba(255, 183, 77, 0.15);
	color: #ffb74d;
	border: 1px solid rgba(255, 183, 77, 0.3);
}

.notiz-prio-high {
	background: rgba(239, 83, 80, 0.15);
	color: #ef5350;
	border: 1px solid rgba(239, 83, 80, 0.3);
}

.notiz-item-date {
	color: #665e4a;
	font-size: 0.7rem;
	white-space: nowrap;
}

/* Bulk-Aktionen */
.notiz-bulk-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.notiz-select-actions {
	font-size: 0.8rem;
}

.notiz-select-actions a {
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.15s;
}

.notiz-select-actions a:hover {
	color: var(--gold);
}

.notiz-sep {
	color: #665e4a;
	margin: 0 6px;
}

/* Leerer Zustand */
.notiz-empty {
	text-align: center;
	padding: 40px 20px;
}

.notiz-empty-icon {
	font-size: 3rem;
	color: #665e4a;
	margin-bottom: 12px;
}

.notiz-empty p {
	color: var(--text-dim);
	margin-bottom: 16px;
}

/* Formular */
.notiz-form-group {
	margin-top: 12px;
}

.notiz-form-group label {
	display: block;
	font-size: 0.75rem;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 5px;
}

.notiz-form-group input[type="text"] {
	width: 100%;
}

.notiz-form-group select {
	min-width: 200px;
}

.notiz-form-actions {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
	.notiz-item {
		flex-wrap: wrap;
	}
	.notiz-item-meta {
		flex-direction: row;
		width: 100%;
		padding-left: 26px;
		justify-content: flex-start;
		gap: 8px;
	}
	.notiz-header-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ══════════════════════════════
   ADRESSBUCH TABS
══════════════════════════════ */
.adressbuch-tabs {
	display: flex;
	gap: 4px;
	margin: 8px 0;
}
.adressbuch-tab {
	padding: 4px 12px;
	border: 1px solid #444;
	background: transparent;
	color: #ccc;
	cursor: pointer;
	font-size: 12px;
}
.adressbuch-tab:hover {
	background: rgba(255,255,255,0.08);
}
.adressbuch-tab.active {
	background: rgba(255,255,255,0.15);
	border-color: #888;
	font-weight: bold;
}

.btn--withdraw {
	background: #5a6268;
	color: #fff;
	font-size: 0.85em;
	border: 1px solid #6c757d;
	padding: 3px 10px;
	cursor: pointer;
}
.btn--withdraw:hover {
	background: #495057;
}

/* ══════════════════════════════
   SUPPORT & COMMUNITY
══════════════════════════════ */
.support-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
	margin: 12px 0;
}

.support-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: rgba(16, 12, 6, 0.7);
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	transition: border-color 0.2s, background 0.2s;
}

.support-card:hover {
	border-color: var(--border-light);
	background: rgba(30, 24, 14, 0.8);
}

.support-card__icon {
	font-size: 2rem;
	line-height: 1;
	flex-shrink: 0;
}

.support-card__body h3 {
	margin: 0 0 4px;
	font-size: 0.95rem;
	color: var(--gold-light);
}

.support-card__body p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--text-dim);
}

.support-card--discord .support-card__icon { color: #5865F2; }
.support-card--forum .support-card__icon { color: var(--gold); }
.support-card--bug .support-card__icon { color: #e74c3c; }
.support-card--feedback .support-card__icon { color: #f39c12; }
.support-card--rules .support-card__icon { color: #95a5a6; }
.support-card--tutorial .support-card__icon { color: #2ecc71; }
.support-card--rapidfire .support-card__icon { color: #e67e22; }
.support-card--struc .support-card__icon { color: #3498db; }

/* ══════════════════════════════
   FAQ ACCORDION
══════════════════════════════ */
.faq-section {
	margin-top: 20px;
}
.faq-section h2 {
	color: var(--gold-light);
	font-size: 1.1rem;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.faq-item {
	border: 1px solid var(--border-dark);
	border-radius: 6px;
	margin-bottom: 6px;
	background: rgba(20, 16, 10, 0.6);
	overflow: hidden;
}
.faq-item summary {
	padding: 10px 14px;
	cursor: pointer;
	color: var(--gold-light);
	font-size: 0.9rem;
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
	content: '\ea61';
	font-family: 'tabler-icons';
	font-size: 1rem;
	transition: transform 0.2s;
	color: var(--gold);
}
.faq-item[open] summary::before {
	transform: rotate(90deg);
}
.faq-item summary:hover {
	background: rgba(30, 24, 14, 0.8);
}
.faq-item .faq-body {
	padding: 6px 14px 14px 36px;
	font-size: 0.82rem;
	color: var(--text-dim);
	line-height: 1.6;
}
.faq-body p {
	margin: 0 0 8px;
}
.faq-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0;
	font-size: 0.8rem;
}
.faq-body table th,
.faq-body table td {
	padding: 5px 8px;
	border: 1px solid var(--border-dark);
	text-align: left;
}
.faq-body table th {
	background: rgba(30, 24, 14, 0.8);
	color: var(--gold-light);
	font-weight: 600;
}
.faq-body code {
	background: rgba(0,0,0,0.3);
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 0.78rem;
	color: var(--gold);
}
.faq-body ul {
	margin: 4px 0 8px 16px;
	padding: 0;
}
.faq-body li {
	margin-bottom: 3px;
}
.faq-body h4 {
	color: var(--gold-light);
	font-size: 0.85rem;
	margin: 10px 0 4px;
}

/* ══════════════════════════════
   SYNDIKAT ADMIN
══════════════════════════════ */
.syn-admin-wrap {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.syn-admin-nav {
	flex: 0 0 220px;
	background: rgba(20, 15, 8, 0.7);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0;
	overflow: hidden;
	position: sticky;
	top: 60px;
}

.syn-admin-nav__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 14px 10px;
	border-bottom: 1px solid var(--border);
	background: rgba(61, 10, 10, 0.25);
}

.syn-admin-nav__logo img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--border-light);
}

.syn-admin-nav__title {
	display: flex;
	flex-direction: column;
	gap: 1px;
	overflow: hidden;
}

.syn-admin-nav__tag {
	font-family: 'Special Elite', monospace;
	font-size: 0.85rem;
	color: var(--gold-light);
	letter-spacing: 0.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.syn-admin-nav__name {
	font-size: 0.7rem;
	color: var(--text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#synmenu {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}

#synmenu li {
	margin: 0;
	padding: 0;
}

#synmenu li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: var(--text-dim);
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 0.85rem;
	text-decoration: none;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

#synmenu li a:hover {
	color: var(--gold-light);
	background: rgba(201, 168, 76, 0.06);
	border-left-color: var(--gold-dim);
	text-decoration: none;
}

#synmenu li a i {
	font-size: 1rem;
	color: var(--gold-dim);
	width: 18px;
	text-align: center;
	flex-shrink: 0;
}

#synmenu li a:hover i {
	color: var(--gold-light);
}

.syn-admin-content {
	flex: 1;
	min-width: 0;
}

.syn-admin-content .header {
	margin-top: 0;
}

/* Syndikat admin form layout */
.syn-admin-content form label {
	width: 200px;
}

.syn-admin-content table {
	width: 100%;
}

/* online/offline row styling */
.syn-admin-content tr.online td {
	border-left: 2px solid #3fb950;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
	.syn-admin-wrap {
		flex-direction: column;
	}
	.syn-admin-nav {
		flex: none;
		width: 100%;
		position: static;
	}
	#synmenu {
		display: flex;
		flex-wrap: wrap;
		gap: 2px;
		padding: 8px;
	}
	#synmenu li a {
		padding: 6px 10px;
		font-size: 0.78rem;
		border-left: none;
		border-bottom: 2px solid transparent;
		border-radius: 4px;
		background: rgba(10, 8, 5, 0.4);
	}
	#synmenu li a:hover {
		border-left-color: transparent;
		border-bottom-color: var(--gold-dim);
	}
}
