/*
Theme Name: BVS OS schlank
Description: Sehr einfaches, responsives Theme für bvsos.de. Auf dem Handy mit Daumen-Navigation unten.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: bvsos-schlank
*/

:root {
	--blau: #0b3a66;
	--orange: #e35205;
	--text: #1b1f24;
	--grau: #5f6670;
	--linie: #e3e6ea;
	--hg: #f4f5f7;
	--karte: #fff;
	--radius: 14px;
	--unten: calc(64px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--hg);
	color: var(--text);
	font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding-bottom: var(--unten);
}
a { color: var(--blau); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }

/* ---------- Kopf ---------- */
.kopf { background: var(--karte); border-bottom: 1px solid var(--linie); }
.kopf-innen {
	max-width: 1080px; margin: 0 auto; padding: 8px 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); line-height: 1.15; min-width: 0; }
.marke .logo { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.marke .name { display: flex; flex-direction: column; min-width: 0; }
.marke b { font-size: 1.05rem; }
.marke small { font-size: .75rem; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-oben { display: none; }

/* ---------- Inhalt ---------- */
.haupt { max-width: 760px; margin: 0 auto; padding: 12px 16px; }
.einleitung { color: var(--grau); margin: 4px 0 20px; }
.seite > h1 { margin-top: 8px; }
.text { max-width: 68ch; }
.text p, .text li { color: var(--text); }
.leer { color: var(--grau); }
.zurueck { display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 600; }
.termin-datum { color: var(--orange); font-weight: 700; margin: 4px 0; }

.block { margin-bottom: 20px; }
.block-kopf h2 { margin: 0 0 8px; font-size: 1.1rem; }
.block-kopf { display: flex; align-items: baseline; justify-content: space-between; }
.block-kopf a { font-weight: 600; text-decoration: none; padding: 8px 0 8px 16px; }

/* Termine */
.termine, .news { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.termin, .news a {
	display: flex; gap: 12px; align-items: center;
	background: var(--karte); border-radius: var(--radius);
	padding: 10px 14px; min-height: 56px;
	text-decoration: none; color: var(--text);
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.termin:active, .news a:active { background: #eef1f5; }
.datum {
	flex: 0 0 40px; text-align: center; color: var(--orange);
	font-size: .8rem; font-weight: 600; text-transform: uppercase; line-height: 1.1;
}
.datum b { display: block; font-size: 1.35rem; color: var(--text); }
.info, .news a { display: flex; flex-direction: column; min-width: 0; }
.news a { align-items: flex-start; gap: 2px; }
.titel { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: .85rem; color: var(--grau); }

/* Lage, Schnellzugriff, Schloss */
.lage {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin-bottom: 10px;
	background: var(--karte); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.lage .punkt { width: 10px; height: 10px; border-radius: 50%; background: #9aa1a9; flex: 0 0 auto; }
.lage.ok .punkt { background: #2f9e44; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
	flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border-radius: 999px; background: var(--karte); border: 1px solid var(--linie);
	color: var(--blau); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.schloss {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
	color: var(--grau); font-size: .9rem; font-weight: 600; text-decoration: none;
	border: 1px dashed #c9ced4; border-radius: var(--radius); margin-bottom: 8px;
}
.schloss svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Lage-Ampeln */
.lage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.ampel {
	display: flex; flex-direction: column; gap: 1px; min-height: 64px; padding: 8px 9px;
	background: var(--karte); border-radius: 12px; text-decoration: none; color: var(--text);
	border-top: 4px solid #b9bec5; line-height: 1.2; min-width: 0;
}
.ampel .k { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--grau); }
.ampel .k i { width: 10px; height: 10px; border-radius: 50%; background: #b9bec5; flex: 0 0 auto; }
.ampel .v { font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ampel .t { font-size: .68rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.ampel.gruen { border-top-color: #2f9e44; } .ampel.gruen i { background: #2f9e44; }
.ampel.gelb { border-top-color: #f2c200; background: #fffbe6; } .ampel.gelb i { background: #f2c200; }
.ampel.rot { border-top-color: #d6211e; background: #fdecec; } .ampel.rot i { background: #d6211e; }
.ampel.blau { border-top-color: #1971c2; } .ampel.blau i { background: #1971c2; }
.ampel.grau i { background: transparent; border: 2px solid #9aa1a9; }
.ampel.grau .v { color: var(--grau); }
.warnung.rot { background: #fdecec; border-left-color: #d6211e; }
.prio ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.prio a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--radius); background: #fdecec; border-left: 5px solid #d6211e; color: var(--text); text-decoration: none; }
.news .prio-eintrag a { border-left: 5px solid #d6211e; }
.formular { display: grid; gap: 12px; background: var(--karte); border-radius: var(--radius); padding: 16px; }
.formular label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.formular input, .formular textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; min-height: 44px; width: 100%; }
.formular .reihe { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.hinweis.ok { color: #2f6b3a; }

/* Hinweise, Warnungen, Knöpfe */
.hinweis, .konto {
	background: var(--karte); border-radius: var(--radius);
	padding: 14px; margin: 8px 0 20px; color: var(--grau);
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.konto p { margin: 0; flex: 1 1 100%; color: var(--text); }
.warnung {
	background: #fff4e5; border-left: 5px solid var(--orange); border-radius: var(--radius);
	padding: 14px 16px; margin-bottom: 20px;
}
.warnung h2 { color: #a33a00; font-size: 1.05rem; }
.warnung ul { margin: 0 0 12px; padding-left: 18px; }
.warnung .meta { display: block; }
.knopf {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 20px; border-radius: 12px;
	background: var(--blau); color: #fff; font-weight: 600; text-decoration: none;
}
.knopf.hell { background: var(--karte); color: var(--blau); border: 1px solid var(--linie); }
.knopf.klein { min-height: 44px; padding: 0 16px; }

.fakten { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; background: var(--karte); border-radius: var(--radius); padding: 14px; }
.fakten dt { color: var(--grau); }
.fakten dd { margin: 0; }

/* Fuß */
.fuss { text-align: center; font-size: .85rem; color: var(--grau); padding: 16px 16px 24px; }
.fuss p { margin: 4px 0; }
.fuss-links a { color: var(--grau); margin: 0 8px; display: inline-block; padding: 6px 0; }

/* ---------- Daumen-Navigation (Handy) ---------- */
.nav-unten {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--karte); border-top: 1px solid var(--linie);
	padding-bottom: env(safe-area-inset-bottom);
}
.nav-unten a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-height: 64px; color: var(--grau); text-decoration: none; font-size: .75rem; font-weight: 600;
}
.nav-unten svg, .nav-oben svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-unten a[aria-current] { color: var(--blau); }
.nav-unten a[aria-current] svg { stroke-width: 2.5; }

/* ---------- Tablet & PC ---------- */
@media (min-width: 768px) {
	body { padding-bottom: 0; }
	.nav-unten { display: none; }
	.nav-oben { display: flex; align-items: center; gap: 4px; }
	.nav-oben a {
		display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px;
		text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
	}
	.nav-oben a:hover { background: var(--hg); }
	.nav-oben a[aria-current] { color: var(--blau); background: #e8eef5; }
	.nav-oben svg { width: 18px; height: 18px; }
	.nav-oben .nur-mobil { display: none; }
	.nav-oben .konto-link { margin-left: 8px; border: 1px solid var(--linie); }
	.haupt { padding: 28px 24px; }
	.marke b { font-size: 1.15rem; }
	.marke small { font-size: .82rem; }
	.marke .logo { width: 42px; height: 42px; }
	.chips { margin: 0 0 22px; padding: 0; flex-wrap: wrap; }
}
@media (min-width: 960px) {
	.haupt { max-width: 1080px; }
	.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
	.lage { grid-template-columns: repeat(6, 1fr); gap: 8px; }
	.seite { max-width: 760px; }
}
@media (hover: hover) {
	.termin:hover, .news a:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
}
