@font-face {
	font-family: 'DM Sans';
	src: url('/assets/fonts/dm-sans-400.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'DM Sans';
	src: url('/assets/fonts/dm-sans-500.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'DM Sans';
	src: url('/assets/fonts/dm-sans-700.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('/assets/fonts/source-sans-3-400.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('/assets/fonts/source-sans-3-600.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('/assets/fonts/source-sans-3-700.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}

:root {
	/* Kalkstein und Dschungel. Haematit-Rot ist die Farbe, in der die
	   Tempelfassaden gefasst waren - deshalb die einzige Akzentfarbe. */
	--bg: #f7f3ea;
	--bg-soft: #efe8da;
	--paper: #fffdf8;
	--ink: #241d17;
	--ink-soft: #3d332a;
	--muted: #6b6055;
	--accent: #9a3b22;
	--accent-dark: #7a2d19;
	--accent-soft: #f0dcd3;
	--accent-tint: #faf0ea;
	--jade: #2d5f52;
	--jade-soft: #dfeae5;
	--rule: #e0d7c6;

	--c-bauwerke: #9a3b22;
	--c-geschichte: #7a5c1f;
	--c-schrift: #2d5f52;
	--c-natur: #46662c;
	--c-besuch: #4a5a6b;

	--maxw: 1180px;
	--textw: 68ch;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
	font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
	line-height: 1.68;
	text-underline-offset: 0.18em;
}

h1, h2, h3, h4 {
	font-family: 'DM Sans', system-ui, sans-serif;
	line-height: 1.14;
	letter-spacing: -0.03em;
	margin: 0;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); font-weight: 700; margin: 2.6em 0 0.6em; }
h3 { font-size: clamp(1.13rem, 1.03rem + 0.45vw, 1.35rem); font-weight: 500; margin: 2em 0 0.4em; }
h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

.huelle { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }

.sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.springlink {
	position: absolute; left: 1rem; top: -3rem; z-index: 60;
	background: var(--ink); color: var(--paper); padding: 0.65rem 1rem;
	border-radius: 0 0 8px 8px; transition: top .18s var(--ease);
}
.springlink:focus { top: 0; color: var(--paper); }

/* ---------------------------------------------------------------- Ornamente */

.orn { width: 1.15em; height: 1.15em; flex: none; }

/* Stufenmaeander als Trennband. Das Motiv laeuft in beide Richtungen, deshalb
   ein symmetrischer Rapport - sonst sieht der Anschluss falsch aus. */
.band-maeander {
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 20h14v-6h6v-6h14v6h6v6h14v-12h6v-6h14v6h6v12h14v-6h6v-6h14' fill='none' stroke='%239a3b22' stroke-opacity='.28' stroke-width='2.4' stroke-linejoin='miter'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: left bottom;
	background-size: 120px 22px;
}

/* ------------------------------------------------------------------- Kopf */

.kopf {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}
.kopf-innen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem clamp(1rem, 3vw, 2rem);
	align-items: center;
	justify-content: space-between;
	padding-block: clamp(0.85rem, 2vw, 1.15rem);
}
.marke {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
	letter-spacing: -0.035em;
	color: var(--ink);
	text-decoration: none;
}
.marke .orn { width: 1.5em; height: 1.5em; color: var(--accent); }
.marke:hover { color: var(--accent-dark); }
.marke span { font-weight: 400; color: var(--muted); font-size: 0.72em; letter-spacing: -0.01em; }

.hauptnav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.35rem; }
.hauptnav a {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border-radius: 7px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--ink-soft);
	text-decoration: none;
	transition: background-color .18s var(--ease), color .18s var(--ease);
}
.hauptnav a:hover { background: var(--bg-soft); color: var(--ink); }
.hauptnav a[aria-current] { background: var(--accent); color: var(--paper); }

/* ---------------------------------------------------------------- Anzeige */

/* Die Hoehe laesst sich nicht reservieren, AdSense ueberschreibt sie per
   !important auch auf dem Elternelement. Deshalb steht hier nur die Breite
   und ein Mindestabstand, keine min-height. */
.anzeige {
	max-width: var(--maxw);
	margin: clamp(1rem, 2.5vw, 1.6rem) auto 0;
	padding-inline: clamp(1rem, 4vw, 2.25rem);
}
.anzeige ins { display: block; }

/* -------------------------------------------------------------------- Hero */

.hero { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.hero-raster {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: end;
	grid-template-columns: 1fr;
}
/* Nur zweispaltig, wenn wirklich ein Bild danebensteht - sonst reisst der
   leere Platz den Kopf der Seite auf. */
@media (min-width: 900px) {
	.hero-raster:has(> .bild) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero-raster:not(:has(> .bild)) .anriss { max-width: 62ch; }
.hero-text > * { animation: auf .7s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .07s; }
.hero-text > :nth-child(3) { animation-delay: .14s; }
@keyframes auf { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero .augen {
	display: inline-flex; align-items: center; gap: 0.45rem;
	font-family: 'DM Sans', sans-serif; font-weight: 500;
	font-size: 0.88rem; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--accent); margin-bottom: 0.9rem;
}
.hero .anriss {
	max-width: 54ch;
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
	color: var(--ink-soft);
	margin-top: 1.1rem;
}
.hero .bild { margin: 0; }
.hero .bild img { border-radius: 12px; }

/* ------------------------------------------------------------------ Kachel */

.raster {
	display: grid;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.kachel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	padding: 1.15rem 1.25rem 1.25rem;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 11px;
	border-top: 3px solid var(--kf, var(--accent));
	text-decoration: none;
	color: inherit;
	transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.kachel:hover {
	transform: translateY(-2px);
	background: var(--bg-soft);
	border-color: var(--rule);
	color: inherit;
}
.kachel .kt {
	display: flex; align-items: center; gap: 0.5rem;
	font-family: 'DM Sans', sans-serif; font-weight: 700;
	font-size: 1.05rem; letter-spacing: -0.02em;
	color: var(--ink);
}
.kachel .kt .orn { color: var(--kf, var(--accent)); }
.kachel .kb { color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.kachel[data-c="bauwerke"]   { --kf: var(--c-bauwerke); }
.kachel[data-c="geschichte"] { --kf: var(--c-geschichte); }
.kachel[data-c="schrift"]    { --kf: var(--c-schrift); }
.kachel[data-c="natur"]      { --kf: var(--c-natur); }
.kachel[data-c="besuch"]     { --kf: var(--c-besuch); }
.kachel.offen { opacity: .62; }
.kachel.offen .kt::after {
	content: 'in Arbeit';
	font-family: 'Source Sans 3', sans-serif; font-weight: 400;
	font-size: 0.72rem; color: var(--muted);
	border: 1px solid var(--rule); border-radius: 999px;
	padding: 0.05rem 0.5rem; margin-left: auto;
}

/* ------------------------------------------------------------------ Inhalt */

.inhalt { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.inhalt-raster { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 940px) {
	.inhalt-raster { grid-template-columns: minmax(0, 1fr) 17.5rem; }
}
.text { min-width: 0; max-width: var(--textw); }
.text h2 + p, .text h3 + p { margin-top: 0; }
.text ul, .text ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.text li { margin-bottom: 0.35em; }
.text li::marker { color: var(--accent); }

/* Kurz gesagt: das Kernstueck jeder Seite, direkt unter der H1.
   Kein Rahmen ringsum, nur eine kraeftige Kante links. */
.kurz {
	background: var(--accent-tint);
	border-left: 3px solid var(--accent);
	border-radius: 0 9px 9px 0;
	padding: 1.05rem 1.25rem;
	margin: 0 0 1.85em;
}
.kurz p {
	font-family: 'DM Sans', sans-serif; font-weight: 500;
	font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 0.5rem;
}
.kurz ul { margin: 0; padding-left: 1.15em; }
.kurz li { margin-bottom: 0.3em; }
.kurz li:last-child { margin-bottom: 0; }

.hinweis {
	background: var(--jade-soft);
	border-left: 3px solid var(--jade);
	border-radius: 0 9px 9px 0;
	padding: 1rem 1.25rem;
	margin: 1.85em 0;
}
.hinweis p:last-child { margin-bottom: 0; }

.bild { margin: 1.85em 0; }
.bild img { border-radius: 10px; border: 1px solid var(--rule); }
.bild figcaption {
	margin-top: 0.6rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--muted);
}
.bild figcaption b { font-weight: 600; color: var(--ink-soft); }

.tabelle-hulle { overflow-x: auto; margin: 1.85em 0; min-width: 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: 'DM Sans', sans-serif; font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: var(--bg-soft); }

/* -------------------------------------------------------------- Randspalte */

/* Bewusst nicht sticky - die Randspalte soll mitlaufen und nicht kleben. */
.rand { min-width: 0; }
.rand-block { border-top: 2px solid var(--rule); padding-top: 1rem; margin-bottom: 1.75rem; }
.rand-block h2 {
	font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 0.7rem; font-weight: 700;
}
.rand-liste { list-style: none; margin: 0; padding: 0; }
.rand-liste li { margin-bottom: 0.15rem; }
.rand-liste a {
	display: block; padding: 0.4rem 0.6rem; border-radius: 7px;
	font-size: 0.97rem; text-decoration: none; color: var(--ink-soft);
	transition: background-color .16s var(--ease), color .16s var(--ease);
}
.rand-liste a:hover { background: var(--bg-soft); color: var(--ink); }
.rand-liste a[aria-current] { background: var(--accent); color: var(--paper); font-weight: 600; }
.rand-liste .offen { color: var(--muted); padding: 0.4rem 0.6rem; font-size: 0.97rem; display: block; }

/* ------------------------------------------------------------------ Sektion */

.sektion { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.sektion-kopf { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: clamp(1rem, 2.5vw, 1.5rem); }
.sektion-kopf h2 { margin: 0; }
.sektion-kopf .mehr { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.sektion-kopf .mehr:hover { text-decoration: underline; }

.brot { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.brot a { color: var(--muted); }
.brot a:hover { color: var(--accent); }

/* --------------------------------------------------------------------- Fuss */

.fuss {
	background: var(--paper);
	border-top: 1px solid var(--rule);
	padding-block: clamp(2rem, 4vw, 3rem);
	margin-top: clamp(2rem, 5vw, 4rem);
	font-size: 0.96rem;
}
.fuss-raster { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.fuss h2 { font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.3rem; }
.fuss a { color: var(--ink-soft); text-decoration: none; }
.fuss a:hover { color: var(--accent); text-decoration: underline; }
.fuss-unten { border-top: 1px solid var(--rule); margin-top: 1.75rem; padding-top: 1.25rem; color: var(--muted); }
