/*
Theme Name: Bruderkette
Theme URI: https://www.bruderkette.de
Description: Schlichte Platzhalterseite mit Übersicht der Freimaurerlogen in Sachsen – hell und neutral in den sächsischen Landesfarben Weiß und Grün. Systemschriften, keine externen Anfragen, keine Cookies, automatischer Dark Mode.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Enrico Schüppel
License: GPL-2.0-or-later
Text Domain: bruderkette
*/

/* ---------- Farben: Sachsen Weiß-Grün ---------- */
:root {
	--bg: #ffffff;
	--soft: #f3f7f4;
	--card: #ffffff;
	--ink: #17241c;
	--muted: #5b6b61;
	--line: #dfe8e2;
	--green: #00843d;
	--green-dark: #006830;
	--green-soft: #e3f2e8;
	--slate-soft: #eceff1;
	--slate: #4a5761;
	--shadow: 0 1px 2px rgba(23, 36, 28, .04), 0 6px 20px rgba(23, 36, 28, .06);
	--radius: 12px;
	--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0d1410;
		--soft: #111b15;
		--card: #15211a;
		--ink: #e6eee9;
		--muted: #9db0a4;
		--line: #23342a;
		--green: #3fbf72;
		--green-dark: #5fd38c;
		--green-soft: #18352a;
		--slate-soft: #1e2a32;
		--slate: #a9b8c2;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .3);
	}
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 750; line-height: 1.15; letter-spacing: -.015em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* Landesfarben-Leiste ganz oben: Weiß über Grün */
body::before { content: ""; display: block; height: 10px; background: linear-gradient(180deg, #ffffff 0 50%, #00843d 50% 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .04); }
@media (prefers-color-scheme: dark) { body::before { background: linear-gradient(180deg, #e9efeb 0 50%, #2e9e5e 50% 100%); } }

/* ---------- Kopfbereich ---------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero__inner { padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: center; }
.hero__mark { grid-row: span 3; width: clamp(84px, 11vw, 132px); height: auto; color: var(--green); }
.eyebrow { margin: 0 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-width: 18ch; }
.lead { margin: 14px 0 0; max-width: 60ch; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); }
@media (max-width: 640px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__mark { grid-row: auto; width: 84px; margin-bottom: 18px; }
}

/* ---------- Logen ---------- */
.logen { padding: clamp(32px, 5vw, 56px) 0 64px; }
.orte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.ort { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ort__head { margin: 0; padding: 14px 18px; font-size: 1.05rem; font-weight: 750; letter-spacing: .02em; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.ort__head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }
.ort__liste { list-style: none; margin: 0; padding: 4px 0; }
.loge { padding: 12px 18px; }
.loge + .loge { border-top: 1px solid var(--line); }
.loge__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.loge__name { font-weight: 600; line-height: 1.35; }
.loge__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .93rem; font-weight: 500; word-break: break-word; text-decoration: none; }
.loge__link:hover { text-decoration: underline; }
.loge__link svg { width: 14px; height: 14px; flex: none; }
.loge__link.is-muted { color: var(--muted); font-style: italic; font-weight: 400; }
.badge { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .05em; border-radius: 999px; padding: 3px 9px; margin-top: 2px; }
.badge--afuam { background: var(--green-soft); color: var(--green-dark); }
.badge--fo { background: var(--slate-soft); color: var(--slate); }
.hinweis { margin: 32px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }

/* ---------- Unterseiten ---------- */
.content { padding: 48px 0 64px; }
.entry { max-width: 760px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 44px); }
.entry__title { margin-top: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.entry__body img { max-width: 100%; height: auto; }

/* ---------- Fußbereich ---------- */
.site-footer { flex-shrink: 0; background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 22px 0; text-align: center; }
.site-footer__inner p { margin: 0; }
.site-footer__mark { width: 48px; height: 16px; color: var(--green); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
