/*
 * Anpfiff - Spiel-Stylesheet
 * Eigenstaendig ausgeliefert, keine Theme-Styles. Textfokussiert, ruhig,
 * dunkles Grundthema, gute Lesbarkeit langer Textbloecke, monospace-
 * taugliche Tabellen. Desktop-first, aber responsive.
 */

:root {
	--anp-bg: #14161a;
	--anp-bg-panel: #1c1f25;
	--anp-bg-panel-alt: #20242b;
	--anp-border: #2c313a;
	--anp-text: #e4e6ea;
	--anp-text-muted: #9aa1ab;
	--anp-accent: #5fb3a1;
	--anp-accent-hover: #79c7b6;
	--anp-error: #e08585;
	--anp-max-width: 960px;
	--anp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--anp-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body.anp-body {
	background: var(--anp-bg);
	color: var(--anp-text);
	font-family: var(--anp-font-body);
	line-height: 1.55;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--anp-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--anp-accent-hover);
	text-decoration: underline;
}

.anp-header {
	background: var(--anp-bg-panel);
	border-bottom: 1px solid var(--anp-border);
}

.anp-header-inner {
	max-width: var(--anp-max-width);
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.anp-brand {
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	color: var(--anp-text);
}

.anp-brand:hover {
	color: var(--anp-accent);
	text-decoration: none;
}

.anp-nav {
	display: flex;
	gap: 1.1rem;
	flex-wrap: wrap;
}

.anp-nav a {
	color: var(--anp-text-muted);
	font-size: 0.95rem;
}

.anp-nav a:hover {
	color: var(--anp-accent);
}

.anp-main {
	flex: 1;
	width: 100%;
	max-width: var(--anp-max-width);
	margin: 0 auto;
	padding: 1.75rem 1.25rem 3rem;
}

.anp-panel {
	background: var(--anp-bg-panel);
	border: 1px solid var(--anp-border);
	border-radius: 6px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.25rem;
}

.anp-panel-narrow {
	max-width: 420px;
}

.anp-panel-placeholder {
	color: var(--anp-text-muted);
}

.anp-panel h1 {
	margin-top: 0;
	font-size: 1.5rem;
}

.anp-panel h2 {
	margin-top: 0;
	font-size: 1.15rem;
}

.anp-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
}

.anp-dashboard-grid .anp-panel {
	margin-bottom: 0;
}

.anp-form p {
	margin: 0 0 0.9rem;
}

.anp-form label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--anp-text-muted);
	font-size: 0.9rem;
}

.anp-form input[type="text"],
.anp-form input[type="password"],
.anp-form input[type="email"] {
	width: 100%;
	padding: 0.55rem 0.7rem;
	background: var(--anp-bg-panel-alt);
	border: 1px solid var(--anp-border);
	border-radius: 4px;
	color: var(--anp-text);
	font-size: 1rem;
}

.anp-form input:focus {
	outline: none;
	border-color: var(--anp-accent);
}

.anp-button {
	display: inline-block;
	background: var(--anp-accent);
	color: #0e1013;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	padding: 0.6rem 1.1rem;
	cursor: pointer;
	font-size: 0.95rem;
}

.anp-button:hover,
.anp-button:focus {
	background: var(--anp-accent-hover);
	color: #0e1013;
	text-decoration: none;
}

.anp-error {
	color: var(--anp-error);
	background: rgba(224, 133, 133, 0.1);
	border: 1px solid rgba(224, 133, 133, 0.35);
	border-radius: 4px;
	padding: 0.6rem 0.85rem;
}

.anp-footer {
	text-align: center;
	color: var(--anp-text-muted);
	font-size: 0.8rem;
	padding: 1.25rem;
	border-top: 1px solid var(--anp-border);
}

/* Tabellen: monospace-tauglich fuer Spielplaene, Tabellenstaende etc. */
table.anp-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--anp-font-mono);
	font-size: 0.9rem;
}

table.anp-table th,
table.anp-table td {
	text-align: left;
	padding: 0.45rem 0.6rem;
	border-bottom: 1px solid var(--anp-border);
}

table.anp-table th {
	color: var(--anp-text-muted);
	font-weight: 600;
}

/* Root-Landingpage: Hero + grobe Umsetzungsstatus-Liste. */
.anp-hero .anp-tagline {
	color: var(--anp-text-muted);
	max-width: 40rem;
}

.anp-status-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.anp-status-item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--anp-border);
}

.anp-status-item:last-child {
	border-bottom: none;
}

.anp-status-badge {
	display: inline-block;
	min-width: 6.5rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.25rem 0.6rem;
	border-radius: 3px;
}

.anp-status-fertig .anp-status-badge {
	background: rgba(95, 179, 161, 0.18);
	color: var(--anp-accent);
}

.anp-status-in_arbeit .anp-status-badge {
	background: rgba(224, 177, 92, 0.18);
	color: #e0b15c;
}

.anp-status-geplant .anp-status-badge {
	background: rgba(154, 161, 171, 0.15);
	color: var(--anp-text-muted);
}

.anp-status-label {
	color: var(--anp-text);
}

@media (max-width: 640px) {
	.anp-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.anp-status-item {
		flex-wrap: wrap;
	}

	.anp-panel {
		padding: 1.15rem 1.25rem;
	}
}
