/* =============================================================
	STYLEGUIDE – KANON "NACHTGESPRÄCH AM KAMIN"
	Intime, ruhige Dunkelheit + warmer Gold-Akzent.
	Farb-Tokens:
		--bg-main      #1a1a1a  (Fläche)
		--bg-contrast  #111111  (Sektionen / Hero / Footer)
		--text-light   #f5f5f5  (Primärtext auf Dark)
		--text-muted   #a3a3a3  (Sekundär)
		--accent       #d4af37  (Interaktion / CTA / Fokus)
	Typografie (aktueller Stand – nach Harmonisierung):
		Basis: 16px / 1.65  Ziel-Zeilenlänge max 68ch.
		Modular-Skala ≈1.23 angewendet.
		Heading-Skala global: H1 clamp(2rem,4.5vw,2.9rem), H2 1.9rem, H3 1.45rem.
		Hero-H1 Override: clamp(2.15rem,5vw,3.05rem) (dezenter Vorsprung ohne Dominanz).
	Layout:
		Container 1120px – Fließtext begrenzt auf 68ch (Lesbarkeit 60–75 Zeichen real).
		Section-Padding 5rem vertikal, Panels invertiert (hell) mit tiefer Schattenlage.
	Hero:
		Mobile: Stack (Text vor Bild). Desktop ≥900px Grid 1.2fr / .8fr.
	Spacing Scale (rem): .25 .5 1 1.5 2 3 4  => --space-1..--space-7
	A11y:
		Sichtbarer :focus-visible Ring, Link-Unterstreichung bei Hover/Focus, Mindestkontrast >4.5:1.
	CTA:
		Pill Radius 9999px, Padding .75rem 1.25rem, kein Scale-Shift, dezenter Hover (leichte Abdunklung ~6%).
		Hierarchie (BATCH-10): .cta--primary (gefüllt, dominant), .cta--ghost (transparent, Akzent-Rand).
	Komponenten (BATCH-10):
		.callout--scarcity: Mangel-Hinweis Block mit Akzent-Rand + subtiler Hinterlegung.
		.section-break: Visuelle Pause (margin + 1px Linie), aria-hidden für Dekoration.
	Performance:
		Keine generischen Optimierungen (bewusste Lesbarkeit). Kein Inline-CSS / Framework.
	============================================================= */

/* === TOKENS === */
:root {
	--font-family-heading: 'Lora', Georgia, serif;
	--font-family-body: 'Inter', system-ui, -apple-system, sans-serif;

	/* Neue Farbpalette */
	--bg-main: #1a1a1a; /* Holzkohle/Asphalt */
	--bg-contrast: #111111; /* Onyx */
	--text-light: #ffffff; /* Pure White für besseren Kontrast */
	--text-muted: #a3a3a3; /* Steingrau */
	--accent: #d4af37; /* Gedämpftes Gold/Safran */
	--accent-on-light: #5c4500; /* Dunklere Goldvariante für Kontrast auf Weiß */
	--panel-bg: #ffffff;
	--panel-text: #1a1a1a;
	--border-color: #333333;

	--container-width: 1120px;
	--container-padding: 1.5rem;
	--section-padding: 5rem 0;
	/* Spacing Scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;
	--space-7: 4rem;
	/* Typografie */
	--font-size-base: 1rem; /* 16px weitere Reduktion */
	--measure: 68ch; /* Straffer für kürzere Zeilen */
	/* Radius & Shadow Scale (T2-03 / PR2) */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--shadow-depth-1: 0 4px 12px rgba(0,0,0,0.35);
	--shadow-depth-2: 0 8px 22px rgba(0,0,0,0.5);
	--shadow-depth-3: 0 14px 38px rgba(0,0,0,0.55);
	/* Entfernt: --font-size-small (ungenutzt) (T2-07 / PR2) */
	/* Lead / Teaser vereinheitlicht (T2-01 / PR1) */
	--lead-size: 1.15rem;
	--lead-line: 1.55;
	/* Panel Padding Tokens (T2-02 / PR1) */
	--panel-pad-x: 2.5rem;
	--panel-pad-y: 2.5rem;
	--panel-pad-bottom: 2.75rem; /* historischer unterer Wert */
	/* Fokus Ring (T2-04 / PR1) */
	--focus-ring: 2px solid var(--accent);
	/* Entfernt: --h1-max (nicht genutzt) */
	/* Layering Tokens */
	--z-header: 100;
	--z-overlay: 300; /* generische Overlays (Dropdowns etc.) */
	--z-consent: 350; /* Consent Banner sitzt über Standard-Overlays aber unter echten Modals */
	--z-modal: 500;
}

/* === GLOBALE STYLES & TYPOGRAFIE === */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
	color-scheme: dark;
}

body {
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	line-height: 1.65;
	color: var(--text-light);
	background-color: var(--bg-main);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-heading);
	color: var(--text-light);
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.8vw, 1.9rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); }

p {
	margin-bottom: 1.5rem;
}

a {
	color: var(--accent);
	text-decoration: none;
	text-underline-offset: 2px;
	transition: color .2s ease, opacity .2s ease, text-decoration-color .2s;
}
a:hover,
a:focus-visible {
	opacity: .9;
	text-decoration: underline;
}

/* === LAYOUT-KOMPONENTEN === */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.site-main > section {
	padding: var(--section-padding);
}

.panel {
	background-color: var(--panel-bg);
	color: var(--panel-text);
	padding: var(--panel-pad-y) var(--panel-pad-x) var(--panel-pad-bottom);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-depth-2);
	position: relative;
}

/* Zeilenlängenbegrenzung im Panel für Lesbarkeit */
.panel > p,
.panel > ul,
.panel > ol,
.panel > h2,
.panel > h3,
.panel > div > p { max-width: var(--measure); }

/* Hero Content genauso begrenzen */
.hero .hero__content > * { max-width: var(--measure); }

.panel h2, .panel h3 {
    color: var(--panel-text);
}

/* === HEADER & FOOTER === */
.site-header, .site-footer {
    background-color: var(--bg-contrast);
}

.site-header {
	padding: 1rem 0;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header a {
	color: var(--text-light);
}

.site-header .brand {
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 700;
}

.site-nav {
	display: flex;
	gap: 2rem;
    flex-wrap: wrap; /* Safety für sehr schmale Geräte */
}

.site-footer {
    color: var(--text-muted);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}
.link-button {
	background: none;
	border: none;
	color: var(--accent);
	font: inherit;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	position: relative;
}
.link-button:hover,
.link-button:focus-visible { text-decoration: underline; }


.footer-nav {
	display: flex;
	gap: 2rem;
	margin-bottom: 1rem;
}

/* === BUTTONS & INTERAKTIVE ELEMENTE === */
.btn, .cta {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border-radius: 9999px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
	background-color: var(--accent);
	color: var(--bg-contrast);
	letter-spacing: .25px;
}

.btn:hover, .cta:hover,
.btn:focus-visible, .cta:focus-visible {
	background-color: #caa430; /* ~6% dunkler */
	text-decoration: none;
}

/* === CTA HIERARCHIE (T2-09 / BATCH-10) === */
/* Primary CTA: Verstärkung der Basis mit vollem Akzent-Hintergrund */
.cta--primary {
	background-color: var(--accent);
	color: var(--bg-contrast);
	font-weight: 600;
}

.cta--primary:hover,
.cta--primary:focus-visible {
	background-color: #caa430; /* 6% dunkler als Basis */
}

/* Ghost CTA: Transparenter Hintergrund, Akzent-Text, Underline bei Hover */
.cta--ghost {
	background-color: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
	text-decoration: underline;
	background-color: rgba(212, 175, 55, 0.1); /* Sehr subtile Akzent-Hinterlegung */
}

/* === CALLOUT KOMPONENTEN (T2-10 / BATCH-10) === */
/* Scarcity Callout: Abgesetzter Block für Mangel/Knappheit-Hinweise */
.callout--scarcity {
	max-width: var(--measure);
	padding: var(--space-4);
	margin: var(--space-5) 0;
	border: 1px solid var(--border-color);
	border-left: 4px solid var(--accent);
	background-color: rgba(212, 175, 55, 0.05); /* Sehr subtiler Akzent-Hintergrund */
	border-radius: var(--radius-md);
}

.callout--scarcity p {
	margin-bottom: 0;
	font-style: italic;
	color: var(--text-muted);
}

.callout--scarcity p:last-child {
	margin-bottom: 0;
}

/* === SECTION-RHYTHMUS UTILITIES (T4-05 / BATCH-10) === */
/* Section Break: Erzeugt visuelle Pause zwischen Abschnitten */
.section-break {
	margin-block: var(--space-6);
	border: none;
	height: 1px;
	background-color: var(--border-color);
}

/* (Rule .section-break[aria-hidden="true"] entfernt – war leer; falls dekorative Varianten nötig, gezielt wieder hinzufügen) */

/* Barrierefreiheit: Fokus-Ringe */
/* Fokus – bewusst schlanker Ring für Pill / Links */
:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 3px;
}

/* === HERO SEKTION === */
.hero {
	background-color: var(--bg-contrast);
	padding: 3.75rem 0 4rem;
}

/* Mobile default: Stack */
.hero .container {
	display: block;
}

@media (min-width: 900px) {
	.hero .container {
		display: grid;
		grid-template-columns: 1.2fr 0.8fr;
		gap: 4rem;
		align-items: center;
	}
}

.hero h1 { font-size: clamp(2.15rem, 5vw, 3.05rem); margin-bottom: 1.5rem; }

.hero .lead { font-size: var(--lead-size); line-height: var(--lead-line); margin-bottom: 2rem; }

.hero__figure img {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: var(--radius-md);
	border: 1px solid var(--accent);
	box-shadow: var(--shadow-depth-1);
}

/* Mobile Hero */
@media (max-width: 900px) {
	.hero .container { text-align: center; }
	.hero__figure { margin-top: 2rem; }
}

/* === FAQ SEKTION === */
.faq-section {
	background-color: var(--bg-contrast);
	padding: var(--section-padding);
}

details {
	margin-bottom: 1.5rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem;
}

summary {
	font-family: var(--font-family-heading);
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--text-light);
}

summary::-webkit-details-marker {
	display: none;
}

summary::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: 300;
}

details[open] summary::after {
	content: '−';
}

details[open] div {
	padding-top: 1rem;
	color: var(--text-light);
}

/* === FORMULARE === */
form {
	max-width: 600px;
}

label {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: var(--text-light);
}
/* Panel labels default to panel text color (dark text for white panels) */
.panel label { 
	color: var(--panel-text);
}

/* Safety: Force light text for labels when panel background is dark */
/* Entfernt fragilen Inline-Style-Selector – künftig Modifier-Klasse .panel--dark verwenden (Backlog B6) */
/* .panel--dark label { color: var(--text-light); } */

input, textarea, select {
	width: 100%;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 0.75rem;
	font-family: inherit;
	color: var(--panel-text);
	background: var(--panel-bg);
	font-size: 1rem;
}

textarea {
	height: 120px;
	resize: vertical;
}

.field {
	margin-bottom: 1.5rem;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: var(--bg-contrast);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
	.container { padding-left: 1rem; padding-right: 1rem; }
	.site-main > section { padding: 3rem 0; }
	/* Entfernt frühere fixe Heading-Oversizing: Fluid-Clamps greifen jetzt konsistent */
	.panel { padding: 1.75rem; } /* Glatterer Übergang zwischen Desktop und Mobile */
	.site-nav { gap: 1rem; }
}

@media (max-width: 480px) {
	/* Fluid Heading-Skala bleibt aktiv – nur kompakteres Spacing */
	.panel { padding: 1.25rem; } /* Konsistenter Abstufung: Desktop 2.5rem → 768px 1.75rem → 480px 1.25rem */
	.hero { padding: 2.5rem 0; }
}

/* === UTILITIES === */
.muted {
    color: var(--text-muted);
}

.mt-5 {
    margin-top: 2rem;
}

.mt-3 { margin-top: 0.75rem; }

.lead { font-size: var(--lead-size); line-height: var(--lead-line); }

/* Measure Utility for consistent line length */
.measure { max-width: var(--measure); }

/* Rhythm Utility */
.flow > * + * { margin-top: var(--space-4); }

/* === BLOG LIST (Linienstil) === */
.list-reset { list-style:none; padding:0; margin:0; }
.blog-item { padding:1.5rem 0; border-bottom:1px solid var(--border-color); }
.blog-link { display:block; color:inherit; text-decoration:none; }
.blog-title { margin:0 0 0.5rem 0; }

/* (Entfernt doppelte Listen-Definition – erste Block bleibt maßgeblich) */

/* === ARTICLE STYLES === */
article .featured-image {
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	border-radius: var(--radius-md);
	margin-bottom: var(--space-5);
	display: block;
}
article .article-header { text-align:center; margin-bottom: var(--space-6); }
article .article-header .teaser { color: var(--text-muted); font-size: 1.15rem; line-height:1.55; margin: 0 0 .75rem; }
article .article-header .date { color: var(--text-muted); font-size: .85rem; font-style: italic; margin:0; }
article .article-content { max-width: var(--measure); margin: 0 auto; }
/* CTA Block (Inline im Artikel) */
.cta-block { background: var(--bg-contrast); padding: 1.25rem 1.5rem; border:1px solid var(--border-color); border-radius: var(--radius-md); margin: 2.25rem 0; box-shadow: var(--shadow-depth-1); }
.cta-block p { margin:0; font-weight:500; }
.cta-block a { font-weight:600; }

/* FAQ (Artikel-interne eigene Struktur */
.faq { margin: 3rem 0 2rem; padding: 0; }
.faq__item { margin: 0 0 1.75rem; }
.faq__item h3 { font-size: 1.15rem; margin: 0 0 .5rem; line-height:1.35; }
.faq__item p { margin:0; color: var(--text-muted); }

/* Panel Links – Kontraststeigerung auf weißem Grund */
.panel a { color: var(--accent-on-light); text-decoration: underline; text-decoration-color: var(--accent-on-light); }
.panel a:hover, .panel a:focus-visible { text-decoration: underline; color: #4a3900; }

/* CTA Buttons in Panel – Ensure proper contrast by using darker text */
.panel .cta { color: var(--bg-contrast); text-decoration: none; }

/* Fehlertexte / Validation */
.error { font-size:0.875rem; color:#c0392b; margin-top:0.5rem; }
.error[hidden] { display:none !important; }

/* Hinweistexte / Form hints */
.hint { font-size:0.875rem; color:#555555; margin-top:0.5rem; line-height:1.4; }
.upload-info { margin-top:1rem; margin-bottom:1.5rem; }
.upload-info .hint { color:#666666; font-style:italic; }
.scarcity-info { margin-top:1rem; margin-bottom:1rem; }
.scarcity-info .hint { color:#9A2A2A; font-weight:500; }

/* Visual error indicators for form fields */
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
	border-color: #c0392b;
	box-shadow: 0 0 0 1px #c0392b;
}

/* Visually Hidden Utility */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
article .article-content h2 { margin-top: var(--space-6); }

/* === CONSENT BANNER (VEREINFACHT) === */
.consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(17,17,17,0.96);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-top: 1px solid var(--border-color);
	padding: 1rem 0;
	z-index: var(--z-consent);
}

.consent-banner .consent-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.consent-banner .consent-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--text-light);
}

.consent-banner .consent-text a {
	color: var(--accent);
	text-decoration: underline;
}

.consent-banner .consent-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.consent-banner .consent-btn {
	background: var(--accent);
	color: var(--bg-contrast);
	font-size: 0.85rem;
	padding: 0.55rem 1rem;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.consent-banner .consent-btn:hover {
	background-color: #caa430;
}

.consent-banner .consent-btn.btn-secondary {
	background: #333333;
	color: var(--text-light);
}

.consent-banner .consent-btn.btn-secondary:hover {
	background: #3d3d3d;
}

.consent-banner .consent-btn.danger {
	background: #444;
	color: var(--text-light);
}

.consent-banner .consent-btn.danger:hover {
	background: #555;
}

.consent-banner .consent-prefs {
	border-top: 1px solid var(--border-color);
	padding: 0.75rem 1.5rem 1rem;
	display: block;
}

.consent-banner .consent-prefs[hidden] {
	display: none;
}

.consent-banner .consent-prefs-text {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-light);
}

.consent-banner .consent-prefs-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

@media (min-width: 700px) {
	.consent-banner .consent-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.consent-banner .consent-text {
		flex: 1;
	}
}