/**
 * Mamuschka — Design-System
 *
 * Farbregel, gemessen und verbindlich:
 *   --gold      #A08038  Markengold. Nur Flächen, Linien, Ornamente und große
 *                        Headlines. NIE für Fließtext — auf Navy nur 4,08:1.
 *   --gold-hell #C9A96A  Text und Icons auf dunklem Grund (6,77:1 auf Navy).
 *   --gold-tief #7A5F26  Text und Links auf hellem Grund (5,59:1 auf Creme).
 * Wer diese Regel bricht, fällt durch WCAG AA — das ist bei Gold der
 * wahrscheinlichste Fehler und deshalb hier oben notiert.
 */

:root {
	/* Marke */
	--navy: #102838;
	--navy-tief: #0a1b26;
	--navy-weich: #1b3648;
	--creme: #faf6f0;
	--creme-warm: #f2eae0;
	--gold: #a08038;
	--gold-hell: #c9a96a;
	--gold-tief: #7a5f26;
	--text: #2a2119;
	--text-leise: #5c5147;
	--linie: rgba(42, 33, 25, 0.14);
	--linie-dunkel: rgba(201, 169, 106, 0.22);

	/* Typografie */
	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Fließende Größen: mobil zuerst, ohne Sprünge bis 4K */
	--t-hero: clamp(2.75rem, 1.6rem + 5.6vw, 5rem);
	--t-h1: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);
	--t-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
	--t-h3: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
	--t-lead: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
	--t-body: 1.0625rem;
	--t-klein: 0.9375rem;
	--t-mini: 0.8125rem;

	/* Raster */
	--breite: 1240px;
	--breite-eng: 760px;
	--rand: clamp(1.25rem, 5vw, 4rem);
	--luft-sektion: clamp(4rem, 9vw, 8rem);

	/* Details */
	--radius: 3px;
	--radius-karte: 6px;
	--schatten: 0 1px 2px rgba(16, 40, 56, 0.06), 0 8px 24px rgba(16, 40, 56, 0.08);
	--schatten-hoch: 0 4px 12px rgba(16, 40, 56, 0.1), 0 20px 48px rgba(16, 40, 56, 0.16);
	--tempo: 0.55s;
	--kurve: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Schriften, lokal ---------- */

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/CormorantGaramond-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/CormorantGaramond-400-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/CormorantGaramond-400-cyrillic.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/CormorantGaramond-600-latin.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/CormorantGaramond-600-latin-ext.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/CormorantGaramond-600-cyrillic.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Lato";
	src: url("../fonts/Lato-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
	font-family: "Lato";
	src: url("../fonts/Lato-400-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lato";
	src: url("../fonts/Lato-700-latin.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--creme);
	color: var(--text);
	font-family: var(--sans);
	font-size: var(--t-body);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p {
	margin: 0 0 1.15em;
	text-wrap: pretty;
}

a {
	color: var(--gold-tief);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Sichtbarer Fokus. Auf Creme reicht Gold-hell nicht (2,08:1), deshalb Navy. */
:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
	border-radius: 2px;
}

.auf-dunkel :focus-visible,
.mam-kopf :focus-visible {
	outline-color: var(--gold-hell);
}

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

.mam-bahn {
	width: 100%;
	max-width: var(--breite);
	margin-inline: auto;
	padding-inline: var(--rand);
}

.mam-bahn--eng {
	max-width: var(--breite-eng);
}

.mam-sektion {
	padding-block: var(--luft-sektion);
}

.mam-sektion--dunkel {
	background: var(--navy);
	color: var(--creme);
}

.mam-sektion--warm {
	background: var(--creme-warm);
}

.mam-sektion--dunkel h2,
.mam-sektion--dunkel h3 {
	color: var(--creme);
}

/* ---------- Typografische Bausteine ---------- */

/* Kleine Überschrift über der Headline. Gesperrt, in Gold. */
.mam-augenbraue {
	font-family: var(--sans);
	font-size: var(--t-mini);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-tief);
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.mam-augenbraue::before {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: var(--gold);
	flex: none;
}

.auf-dunkel .mam-augenbraue,
.mam-sektion--dunkel .mam-augenbraue {
	color: var(--gold-hell);
}

.mam-lead {
	font-size: var(--t-lead);
	line-height: 1.65;
	color: var(--text-leise);
	max-width: 62ch;
}

.mam-sektion--dunkel .mam-lead {
	color: rgba(250, 246, 240, 0.82);
}

/* Der zitierfähige Antwortabsatz: beantwortet die Kernfrage der Seite in
   zwei bis drei Sätzen direkt am Anfang. Für Menschen wie für KI-Suchen. */
.mam-antwort {
	font-size: var(--t-lead);
	line-height: 1.6;
	border-left: 3px solid var(--gold);
	padding-left: clamp(1rem, 3vw, 1.75rem);
	margin-block: 0 2.5rem;
	max-width: 68ch;
}

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

.mam-btn {
	--btn-bg: var(--gold-hell);
	--btn-fg: var(--navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.85rem 1.75rem;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--sans);
	font-size: var(--t-klein);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: transform var(--tempo) var(--kurve), box-shadow var(--tempo) var(--kurve), background-color 0.25s ease;
}

.mam-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(16, 40, 56, 0.22);
	background: var(--gold);
}

.mam-btn:active {
	transform: translateY(0);
}

/* Sekundär: auf dunklem Grund */
.mam-btn--linie {
	--btn-bg: transparent;
	--btn-fg: var(--creme);
	border-color: rgba(201, 169, 106, 0.55);
}

.mam-btn--linie:hover {
	background: rgba(201, 169, 106, 0.14);
	color: var(--creme);
}

/* Sekundär: auf hellem Grund */
.mam-btn--linie-hell {
	--btn-bg: transparent;
	--btn-fg: var(--navy);
	border-color: rgba(16, 40, 56, 0.28);
}

.mam-btn--linie-hell:hover {
	background: var(--navy);
	color: var(--creme);
}

/* ---------- Links mit wachsender Unterlinie ---------- */

.mam-link {
	position: relative;
	display: inline-block;
	color: var(--gold-tief);
	text-decoration: none;
	font-weight: 700;
	font-size: var(--t-klein);
	letter-spacing: 0.04em;
}

.mam-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s var(--kurve);
}

.mam-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.auf-dunkel .mam-link,
.mam-sektion--dunkel .mam-link {
	color: var(--gold-hell);
}

/* ---------- Ornament ---------- */

/* Feine Doppellinie mit Rautenpunkt — der folkloristische Anklang,
   reduziert auf ein Detail. */
.mam-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-block: 1.5rem;
}

.mam-ornament::before,
.mam-ornament::after {
	content: "";
	height: 1px;
	width: clamp(2rem, 8vw, 5rem);
	background: linear-gradient(to right, transparent, var(--gold));
}

.mam-ornament::after {
	background: linear-gradient(to left, transparent, var(--gold));
}

.mam-ornament span {
	width: 6px;
	height: 6px;
	background: var(--gold);
	transform: rotate(45deg);
	flex: none;
}

/* ---------- Scroll-Reveals ---------- */

@media (prefers-reduced-motion: no-preference) {
	[data-reveal] {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity 0.7s var(--kurve), transform 0.7s var(--kurve);
		transition-delay: var(--verzug, 0s);
	}

	[data-reveal].ist-sichtbar {
		opacity: 1;
		transform: none;
	}
}

/* Der ruhige Bereich: Trauerfeiern verzichtet auf Bewegung. */
.ist-still [data-reveal] {
	opacity: 1;
	transform: none;
	transition: none;
}

/* ---------- Hilfsklassen ---------- */

.nur-fuer-screenreader {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.zum-inhalt {
	position: absolute;
	left: 50%;
	transform: translate(-50%, -120%);
	z-index: 200;
	background: var(--navy);
	color: var(--creme);
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.zum-inhalt:focus {
	transform: translate(-50%, 0.5rem);
}

/* Noch auszutauschendes Bildmaterial wird sichtbar markiert —
   im Entwurf hilfreich, vor Livegang muss die Klasse verschwinden. */
[data-platzhalter="ja"] {
	position: relative;
}

[data-platzhalter="ja"]::after {
	content: "Platzhalter";
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	background: rgba(16, 40, 56, 0.86);
	color: var(--gold-hell);
	font-family: var(--sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.3rem 0.6rem;
	border-radius: 2px;
	pointer-events: none;
}
