/* Roter Trödelladen – ruhig, lesbar, ohne externe Schriften */

:root {
	--papier: #f7f3ec;
	--papier-dunkler: #efe8dc;
	--tinte: #2b2522;
	--gedaempft: #675e57;
	--rot: #a3312a;
	--rot-dunkel: #7e241f;
	--gruen: #2f6a45;
	--linie: #ddd3c4;
	--gelb: #fff1a8;

	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--breite: 72rem;
	--rand: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--papier);
	color: var(--tinte);
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--rot); text-underline-offset: .18em; }
a:hover { color: var(--rot-dunkel); }
a:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.5rem; }

.breite { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.schmal { max-width: 44rem; }
.abschnitt { padding-block: clamp(2rem, 6vw, 4rem); }

/* Hinweise oben */
.vorschau-hinweis {
	background: var(--gelb);
	border-bottom: 2px solid #c9a800;
	padding: .6rem var(--rand);
	font-size: .95rem;
}
.aktueller-hinweis {
	background: var(--rot);
	color: #fff;
	padding: .75rem var(--rand);
	text-align: center;
	font-weight: 600;
}
mark.platzhalter {
	background: var(--gelb);
	color: #5a4a00;
	padding: 0 .2em;
	border-radius: 2px;
	font-family: var(--sans);
	font-size: .9em;
}

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); }
.kopf-innen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 2rem;
	padding-block: 1rem;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--tinte);
	text-decoration: none;
}
.logo-punkt { width: .85em; height: .85em; background: var(--rot); border-radius: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a { color: var(--tinte); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--linie); }
.nav a[aria-current] { border-bottom-color: var(--rot); }

/* Startseite */
.titelbild { margin: 0; background: var(--papier-dunkler); }
.titelbild img { width: 100%; max-height: 78vh; object-fit: cover; }
.einleitung { padding-block: clamp(2rem, 6vw, 4rem) 1rem; }
.gross { font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.45; }
.adresszeile { color: var(--gedaempft); }

.ladenfotos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: clamp(.5rem, 1.5vw, 1rem);
	padding-block: 1rem;
}
.ladenfoto img { width: 100%; border-radius: 3px; }

.abschnitt-kopf {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem 1rem;
	margin-bottom: 1rem;
}

/* Werke */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.filter a {
	padding: .4rem 1rem;
	border: 1px solid var(--linie);
	border-radius: 999px;
	color: var(--tinte);
	text-decoration: none;
	background: #fff;
}
.filter a[aria-current] { background: var(--tinte); border-color: var(--tinte); color: #fff; }

.werk-raster {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
}
.werk-karte a { display: block; color: var(--tinte); text-decoration: none; }
.werk-bild { background: var(--papier-dunkler); border-radius: 3px; overflow: hidden; margin-bottom: .6rem; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.werk-bild img { width: 100%; height: 100%; object-fit: contain; }
.werk-karte a:hover .werk-titel { text-decoration: underline; text-underline-offset: .18em; }
.werk-titel { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.werk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-top: .3rem; font-size: 1rem; }
.ist-verkauft .werk-bild img { filter: grayscale(.6); opacity: .8; }

.status { font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.status::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .4em; vertical-align: .05em; }
.status-verfuegbar { color: var(--gruen); }
.status-verfuegbar::before { background: var(--gruen); }
.status-verkauft { color: var(--rot); }
.status-verkauft::before { background: var(--rot); }
.preis { font-weight: 600; }
.nummer { color: var(--gedaempft); font-size: .9rem; }

/* Werk-Detail */
.werk-detail {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: clamp(1.5rem, 5vw, 3rem);
}
@media (min-width: 60rem) {
	.werk-detail { grid-template-columns: 3fr 2fr; align-items: start; }
	.werk-hauptfoto { grid-column: 1; grid-row: 1; }
	.werk-weitere { grid-column: 1; grid-row: 2; }
	.werk-text { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 1.5rem; }
}
.werk-weitere { display: grid; gap: 1rem; }
.werk-hauptfoto img,
.werk-weitere img { width: 100%; border-radius: 3px; background: var(--papier-dunkler); }
.zurueck { margin-top: 0; font-size: 1rem; }
.werk-art { color: var(--gedaempft); margin: 0 0 .25rem; }
.anfrage { margin-top: 2rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--linie); border-radius: 4px; }
.anfrage h2 { font-size: 1.25rem; }

/* Besuch */
.besuch-raster { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 48rem) { .besuch-raster { grid-template-columns: 1fr 1fr; } }

/* Texte */
.fliesstext { max-width: 44rem; }
.fliesstext h2 { margin-top: 1.5em; }

/* Öffnungszeiten, Adresse, Kontakt */
.zeiten { margin: 0; max-width: 22rem; }
.zeiten div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px dotted var(--linie); }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; text-align: right; }
.zeiten .zu dd { color: var(--gedaempft); }
address { font-style: normal; }
.kontakt { list-style: none; padding: 0; margin: 0; }
.kontakt li { margin-bottom: .3rem; overflow-wrap: anywhere; }

/* Fuß */
.fuss { margin-top: clamp(2rem, 6vw, 4rem); background: var(--papier-dunkler); border-top: 1px solid var(--linie); font-size: 1rem; }
.fuss h2 { font-size: 1.2rem; }
.fuss-raster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 2rem;
	padding-block: 2.5rem;
}
.fuss-unten {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	padding-block: 1rem 2rem;
	border-top: 1px solid var(--linie);
	color: var(--gedaempft);
}

/* Blättern in der Galerie */
.blaettern {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--linie);
}
.blaettern a {
	padding: .5rem 1.1rem;
	border: 1px solid var(--linie);
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	color: var(--tinte);
}
.blaettern a:hover { border-color: var(--tinte); }

/* Künstler und Werkdaten */
.werk-kuenstler { display: block; color: var(--gedaempft); font-size: .95rem; margin-top: .1rem; }
p.werk-kuenstler { margin: -.25rem 0 .5rem; font-size: 1.15rem; }
.werk-daten { margin: 1.25rem 0; border-top: 1px solid var(--linie); }
.werk-daten div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--linie); }
.werk-daten dt { color: var(--gedaempft); }
.werk-daten dd { margin: 0; }

/* Galerie-Filter */
.galerie-filter { margin: 1rem 0 1.75rem; }
.galerie-filter .filter { margin: .6rem 0; }
.galerie-filter .filter a { font-size: 1rem; min-height: 2.5rem; display: inline-flex; align-items: center; gap: .4rem; }
.galerie-filter .filter a:hover { border-color: var(--tinte); }
.filter .anzahl { font-size: .85rem; color: var(--gedaempft); }
.filter a[aria-current] .anzahl { color: #ddd; }
.galerie-suche { display: flex; gap: .5rem; max-width: 34rem; }
.galerie-suche input {
	flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .55rem .8rem;
	border: 1px solid #b9ad9c; border-radius: 999px; background: #fff; color: var(--tinte);
}
.galerie-suche button {
	font: inherit; font-size: 1rem; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--tinte); background: var(--tinte); color: #fff;
}
.galerie-suche input:focus, .galerie-suche button:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.filter-ergebnis { color: var(--gedaempft); font-size: 1rem; margin: .5rem 0 0; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
