/* Kalkulator 3000 – calc.php */

:root {
	--bg: #0c2a1b;
	--bg-2: #103724;
	--card: #ffffff;
	--card-2: #f6f8f7;
	--line: #e3e8e5;
	--text: #17201b;
	--muted: #6b7a72;

	--green: #1f9d55;
	--green-soft: #e3f5ea;
	--red: #d93a3f;
	--red-soft: #fde8e8;
	--amber: #d99a06;
	--amber-soft: #fff4d6;
	--blue: #2f7fd1;
	--blue-soft: #e5f0fb;

	--radius: 14px;
	--radius-s: 8px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .12);
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-head: 'Montserrat', var(--font);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
	font-family: var(--font);
	font-size: 13px;
	color: var(--text);
	background: radial-gradient(1200px 600px at 20% -10%, #1b5236 0%, transparent 60%), var(--bg);
	background-attachment: fixed;
	min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); margin: 0; }

small { font-size: .82em; font-weight: 500; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.pad { padding: 14px 16px; margin: 0; }
.error { color: var(--red); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.center { text-align: center; }

/* ------------------------------------------------------------------ */
/* Kopfzeile + KPI-Leiste                                              */
/* ------------------------------------------------------------------ */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(12, 42, 27, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	padding: 10px 20px 12px;
}

.topbar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand h1 { font-size: 18px; letter-spacing: .3px; }
.brand-sub { margin: 2px 0 0; font-size: 12px; color: #9fc4ae; }
.brand-mark {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, #2bd17a, #138a48);
	font-family: var(--font-head);
	font-weight: 700;
	color: #fff;
	box-shadow: 0 4px 14px rgba(43, 209, 122, .35);
}

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpis {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.kpi {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 10px;
	padding: 7px 12px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: #fff;
}
.kpi-label { font-size: 11px; color: #9fc4ae; text-transform: uppercase; letter-spacing: .5px; }
.kpi-value { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: 11px; color: #b9d3c4; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-pos .kpi-value { color: #6ee7a3; }
.kpi-neg .kpi-value { color: #ffb4b4; }
.kpi-main { background: rgba(255, 255, 255, .12); }
.kpi-main .kpi-value { font-size: 18px; }
.kpi-alert { background: rgba(217, 58, 63, .25); border-color: rgba(217, 58, 63, .6); }
.kpi-status.ok { background: rgba(31, 157, 85, .35); border-color: rgba(110, 231, 163, .6); }
.kpi-status.bad { background: rgba(217, 58, 63, .4); border-color: rgba(255, 140, 140, .7); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
	font: inherit;
	font-weight: 600;
	font-size: 12.5px;
	border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	padding: 7px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
	white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.btn-active { background: #fff; color: var(--bg); }
.btn-ghost { background: transparent; }

.card .btn {
	background: var(--card);
	color: var(--text);
	border-color: var(--line);
}
.card .btn:hover { background: var(--card-2); border-color: #cfd8d3; }
.card .btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.card .btn-primary:hover { background: #188546; }
.card .btn-danger { color: var(--red); border-color: #f2c4c5; }
.card .btn-danger:hover { background: var(--red-soft); }

.btn-small { padding: 4px 10px; font-size: 12px; }

.btn-toggle { min-width: 80px; }
.card .btn-toggle.on-sell { background: var(--red); border-color: var(--red); color: #fff; }
.card .btn-toggle.on-buy { background: var(--blue); border-color: var(--blue); color: #fff; }
.card .btn-toggle.warn { color: var(--amber); border-color: #f0d68e; }

.link {
	font: inherit;
	border: 0;
	background: none;
	color: var(--blue);
	cursor: pointer;
	padding: 0;
}

/* Segment 11 | E */
.seg {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.seg button {
	font: inherit;
	font-weight: 700;
	font-size: 12px;
	min-width: 30px;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover:not(:disabled) { background: var(--card-2); color: var(--text); }
.seg button.on-xi { background: var(--green); color: #fff; }
.seg button.on-sub { background: var(--amber); color: #fff; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.layout {
	padding: 16px 20px 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1900px;
	margin: 0 auto;
}

.overview {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 16px;
}

.workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 16px;
	align-items: start;
}

.sidebar > .card { flex: none; }

.tables { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.sidebar {
	position: sticky;
	top: 150px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: calc(100vh - 166px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	min-width: 0;
}

.card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 14px; color: var(--text); }
.card-head .btn:last-child, .card-head .switch:last-child, .card-head .legend:last-child { margin-left: auto; }
.count { color: var(--muted); font-size: 12px; }

.legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.dot-xi { background: var(--green); }
.dot-sub { background: var(--amber); }
.dot-sell { background: var(--red); }

.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { accent-color: var(--green); width: 15px; height: 15px; }

/* ------------------------------------------------------------------ */
/* Tabellen                                                            */
/* ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }
.table-scroll { max-height: 78vh; overflow-y: auto; }

.grid {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-variant-numeric: tabular-nums;
}
.grid th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--card-2);
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .4px;
	padding: 8px 8px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.grid th small { text-transform: none; }
.grid th.sortable { cursor: pointer; user-select: none; }
.grid th.sortable:hover { color: var(--text); }
.grid th.sorted { color: var(--green); }
.grid td {
	padding: 6px 8px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	white-space: nowrap;
}
.grid tbody tr { transition: background .12s; }
.grid tbody tr:hover { background: #f3f8f5; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid .num { text-align: right; }
.grid th.num { text-align: right; }
.grid .center { text-align: center; }

.grid .sub {
	display: block;
	font-size: 11px;
	color: var(--muted);
}
.grid .sub.pos { color: var(--green); }
.grid .sub.neg { color: var(--red); }

.urgent { color: var(--red); font-weight: 700; }

/* Zeilenzustaende: farbiger Balken links + leichte Toenung */
.grid tr > td:first-child { box-shadow: inset 3px 0 0 transparent; }
.grid tr.is-xi > td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.grid tr.is-xi { background: #f2faf5; }
.grid tr.is-sub > td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.grid tr.is-sub { background: #fffaeb; }
.grid tr.is-sold > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.grid tr.is-sold { background: #fff3f3; }
.grid tr.is-sold .player a { color: var(--red); }
.grid tr.is-bought > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.grid tr.is-bought { background: #f2f7fd; }

.compact-grid td { padding: 5px 10px; }

.table-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px;
	background: var(--card-2);
	border-top: 1px solid var(--line);
	font-size: 12.5px;
}

/* Spieler-Zelle */
.player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-line { display: flex; align-items: center; gap: 8px; }
.avatar { position: relative; flex: none; width: 34px; height: 34px; }
.avatar img:first-child {
	width: 34px; height: 34px;
	border-radius: 50%;
	object-fit: cover;
	background: #e9eeeb;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.avatar .club {
	position: absolute;
	right: -4px; bottom: -3px;
	width: 16px; height: 16px;
	object-fit: contain;
	background: #fff;
	border-radius: 50%;
	padding: 1px;
	box-shadow: 0 0 0 1px var(--line);
}
.player-text { display: flex; align-items: center; gap: 6px; min-width: 0; }
.player-text a { font-weight: 600; }
.status-icon { font-size: 12px; }
.player.st-bad .player-text a { color: var(--red); }
.player.st-warn .player-text a { color: #9a6b00; }
.player.st-info .player-text a { color: var(--blue); }
.player.st-bad .avatar img:first-child { box-shadow: 0 0 0 2px var(--red); }
.player.st-warn .avatar img:first-child { box-shadow: 0 0 0 2px var(--amber); }
.player.st-info .avatar img:first-child { box-shadow: 0 0 0 2px var(--blue); }

.badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--card-2);
	color: var(--muted);
	border: 1px solid var(--line);
}
.badge-warn { background: var(--amber-soft); color: #8a6200; border-color: #f0d68e; }

.ptag {
	display: inline-block;
	min-width: 28px;
	text-align: center;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 6px;
	color: #fff;
}
.ptag-keeper { background: #8e5bd1; }
.ptag-defender { background: #2f7fd1; }
.ptag-midfielder { background: #1f9d55; }
.ptag-striker { background: #d9673a; }

.profit {
	font: inherit;
	font-variant-numeric: tabular-nums;
	border: 1px dashed transparent;
	background: none;
	padding: 2px 6px;
	border-radius: 6px;
	cursor: pointer;
}
.profit:hover { border-color: var(--line); }
.profit.selected { background: #fff2a8; border-color: #e6cf4d; }

.offer { font-weight: 700; }

.price-input {
	font: inherit;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	width: 108px;
	text-align: right;
	padding: 5px 8px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: #fff;
	color: var(--text);
}
.price-input::placeholder { color: #a5b1aa; font-weight: 500; }
.price-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.links { display: inline-flex; gap: 4px; }
.links a {
	font-size: 10.5px;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 5px;
	background: var(--card-2);
	border: 1px solid var(--line);
	color: var(--muted);
}
.links a:hover { background: var(--text); color: #fff; text-decoration: none; }

.opp { position: relative; display: inline-block; margin-right: 6px; }
.opp img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.opp b {
	position: absolute;
	right: -5px; bottom: -3px;
	font-size: 8.5px;
	line-height: 11px;
	width: 11px;
	text-align: center;
	border-radius: 50%;
	background: #e5e9e7;
	color: var(--muted);
}
.opp.home b { background: var(--text); color: #fff; }

/* Kompaktmodus */
body.compact .opt { display: none; }

/* ------------------------------------------------------------------ */
/* Spieltage                                                           */
/* ------------------------------------------------------------------ */

.gamedays { display: grid; grid-template-columns: 1fr 1fr; }
.gameday { padding: 12px 16px; }
.gameday + .gameday { border-left: 1px solid var(--line); }
.gameday h3 { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.deadlines { margin: 8px 0; display: grid; gap: 3px; }
.deadlines div { display: flex; gap: 8px; font-size: 12px; }
.deadlines dt { font-weight: 700; min-width: 54px; }
.deadlines dd { margin: 0; color: var(--muted); }

.matches { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.matches li {
	display: grid;
	grid-template-columns: 100px 20px 40px 20px;
	align-items: center;
	gap: 6px;
	padding: 2px 0;
	font-variant-numeric: tabular-nums;
}
.matches img { width: 18px; height: 18px; object-fit: contain; }
.mtime { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mres { text-align: center; color: var(--muted); }
.mres.done { font-weight: 700; color: var(--text); }

.pill {
	display: inline-block;
	font-family: var(--font);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-bad { background: var(--red-soft); color: var(--red); }
.card-head .pill:last-child { margin-left: auto; }

/* ------------------------------------------------------------------ */
/* Notizen                                                             */
/* ------------------------------------------------------------------ */

.notes-card { display: flex; flex-direction: column; }
.notes-card .card-head .btn { margin-left: 0; }
.notes-state { margin-left: auto; font-size: 11.5px; color: var(--amber); font-weight: 600; }
#notes {
	flex: 1;
	min-height: 220px;
	width: 100%;
	border: 0;
	resize: vertical;
	padding: 12px 16px;
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	color: var(--text);
	background: #fcfdfc;
}
#notes:focus { outline: none; background: #fff; }

/* ------------------------------------------------------------------ */
/* Aufstellung (Spielfeld)                                             */
/* ------------------------------------------------------------------ */

.formation-badge {
	white-space: nowrap;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--card-2);
	color: var(--muted);
}
.formation-badge.ok { background: var(--green-soft); color: var(--green); }
.formation-badge.bad { background: var(--red-soft); color: var(--red); }
.card-head .formation-badge + .btn { margin-left: auto; }

.pitch {
	position: relative;
	margin: 12px;
	padding: 14px 6px;
	min-height: 330px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6px;
	background:
		linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)) center 50% / 100% 2px no-repeat,
		radial-gradient(circle at 50% 50%, transparent 38px, rgba(255, 255, 255, .55) 39px, rgba(255, 255, 255, .55) 41px, transparent 42px),
		repeating-linear-gradient(0deg, #2e9a57 0 32px, #2a8f50 32px 64px);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
/* Strafraeume */
.pitch::before, .pitch::after {
	content: '';
	position: absolute;
	left: 28%; right: 28%;
	height: 36px;
	border: 2px solid rgba(255, 255, 255, .55);
}
.pitch::before { top: -2px; border-top: 0; }
.pitch::after { bottom: -2px; border-bottom: 0; }

.pitch-line {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-evenly;
	align-items: flex-start;
	min-height: 60px;
}
.pitch-empty {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(12, 42, 27, .55);
	text-align: center;
	color: #fff;
	font-weight: 600;
	margin: 0;
	z-index: 2;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 62px;
	gap: 3px;
}
.chip img {
	width: 40px; height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: #e9eeeb;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.chip-name {
	max-width: 62px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 10.5px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .95);
	color: var(--text);
}
.chip-name small { color: var(--muted); font-weight: 600; }
.chip-new img { border-color: #7cc0ff; box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(0, 0, 0, .3); }
.chip-new-tag {
	position: absolute;
	top: -4px; left: 2px;
	font-size: 8.5px;
	font-weight: 800;
	padding: 0 4px;
	border-radius: 4px;
	background: var(--blue);
	color: #fff;
}
.chip-status { position: absolute; top: -4px; right: 6px; font-size: 13px; }
.chip.st-bad img { border-color: #ffb0b0; }
.chip.st-warn img { border-color: #ffe08a; }

.bench {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 4px;
	margin: 0 12px 12px;
	padding: 10px;
	border-radius: 10px;
	background: var(--amber-soft);
	border: 1px dashed #f0d68e;
}
.bench-label {
	width: 100%;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #8a6200;
}
.bench .chip img { width: 34px; height: 34px; }
.bench .chip-name { background: #fff; }

/* ------------------------------------------------------------------ */
/* Transfers + Kalkulation                                             */
/* ------------------------------------------------------------------ */

#transfers { padding: 4px 16px 14px; min-width: 0; overflow-wrap: anywhere; }
#transfers h3 {
	font-family: var(--font);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--muted);
	margin: 12px 0 6px;
}
#transfers h3 span {
	display: inline-block;
	min-width: 18px;
	text-align: center;
	margin-left: 4px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--card-2);
	color: var(--text);
}

.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto 22px;
	align-items: center;
	gap: 4px 8px;
	padding: 5px 0;
	border-bottom: 1px solid var(--line);
}
.tlist li:last-child { border-bottom: 0; }
.tname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--card-2);
	color: var(--muted);
}
.tprice { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.trange {
	grid-column: 1 / 4;
	margin-top: -4px;
	text-align: right;
	font-size: 10.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.x {
	width: 22px; height: 22px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.x:hover { background: var(--red-soft); color: var(--red); }

.calc-list { margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.calc-list div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding: 5px 0;
	border-top: 1px solid var(--line);
}
.calc-list dt { color: var(--muted); white-space: nowrap; }
.calc-list dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.calc-range { flex-basis: 100%; margin-top: -3px; text-align: right; font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.calc-list .total { border-top: 2px solid var(--text); }
.calc-list .total dt { color: var(--text); font-weight: 700; }
.calc-list .total dd { font-size: 14px; font-weight: 700; }
.calc-list .total dd.neg { color: var(--red); }

/* ------------------------------------------------------------------ */
/* Pruefung                                                            */
/* ------------------------------------------------------------------ */

.checks { list-style: none; margin: 0; padding: 8px 16px 12px; }
.checks li {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	align-items: center;
	gap: 4px 8px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 0; }
.check-icon {
	display: grid;
	place-items: center;
	width: 20px; height: 20px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
}
.checks li.ok .check-icon { background: var(--green-soft); color: var(--green); }
.checks li.bad .check-icon { background: var(--red-soft); color: var(--red); }
.check-label { font-weight: 600; }
.check-value { font-variant-numeric: tabular-nums; text-align: right; }
.check-error { grid-column: 2 / 4; font-size: 11.5px; color: var(--red); }

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	background: #17201b;
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
	box-shadow: var(--shadow);
	font-weight: 600;
	transition: opacity .2s, transform .2s;
	z-index: 50;
	max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ok { background: #13693a; }
.toast-error { background: #a82b2f; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1500px) {
	.kpi { padding: 6px 10px; }
	.kpi-value { font-size: 14px; }
	.kpi-main .kpi-value { font-size: 15px; }
	.workspace { grid-template-columns: minmax(0, 1fr) 320px; }
	.sidebar { top: 140px; max-height: calc(100vh - 156px); }
}

@media (max-width: 1100px) {
	.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1250px) {
	.overview { grid-template-columns: 1fr 1fr; }
	.overview .notes-card { grid-column: 1 / -1; }
	.workspace { grid-template-columns: 1fr; }
	.sidebar { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media (max-width: 760px) {
	.topbar { position: static; padding: 10px 12px; }
	.layout { padding: 12px; }
	.overview { grid-template-columns: 1fr; }
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gamedays { grid-template-columns: 1fr; }
	.gameday + .gameday { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ */
/* Anmeldung                                                           */
/* ------------------------------------------------------------------ */

.login-page { display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 360px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login-brand { color: var(--text); }
.login-brand h1 { font-size: 18px; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.login-card input {
	font: inherit;
	font-size: 14px;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
}
.login-card input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.login-card .btn { padding: 10px; font-size: 14px; }
.login-error { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-weight: 600; }
