/*
 * Die öffentliche Seite: ein Bauplan, zwölf Stile. Der Stil steht als data-stil am <html>,
 * die Farbe des Kunden als --farbe, die Schrift darauf als --auf-farbe.
 * Schriften unter SIL OFL, vom eigenen Server (schriften/LIZENZ.md).
 */
@font-face { font-family: "Inter"; src: url(schriften/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(schriften/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(schriften/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Syne"; src: url(schriften/syne.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(schriften/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(schriften/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(schriften/fraunces-kursiv.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(schriften/cormorant.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(schriften/cormorant-kursiv.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(schriften/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(schriften/newsreader-kursiv.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(schriften/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(schriften/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

/* --- Grundlage: gilt für alle Stile ------------------------------------------------------- */
:root {
	--grund: #ffffff; --text: #141414; --leise: #6b6b6b; --linie: #e4e4e4; --flaeche: #f3f3f2;
	--schrift: "Inter", system-ui, sans-serif; --titelschrift: var(--schrift);
	--titel-gewicht: 600; --titel-gross: clamp(2.6rem, 7.5vw, 6.5rem); --titel-trans: none; --titel-sperr: -0.03em; --titel-zeile: 0.98;
	--h2-gross: clamp(1.4rem, 2.6vw, 2.1rem);
	--rand: clamp(1.1rem, 4vw, 3.5rem); --luft: clamp(3.5rem, 9vw, 8rem); --abstand: clamp(1rem, 2.4vw, 2.2rem);
	--ecke: 0px; --breite: 1360px; --zeile: 1.62; --knopf-ecke: 999px;
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--schrift); font-size: 1.0625rem; line-height: var(--zeile); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--titelschrift); font-weight: var(--titel-gewicht); letter-spacing: var(--titel-sperr); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: var(--h2-gross); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--farbe); outline-offset: 3px; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--grund); padding: 0.5rem 1rem; }

.kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 2rem; padding: 1.4rem var(--rand); max-width: var(--breite); margin: 0 auto; }
.marke { font-family: var(--titelschrift); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 0.4rem 1.6rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--leise); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--farbe); text-decoration-thickness: 2px; }

main { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: var(--luft) 0 0; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(1.2rem, 3vw, 2.2rem); }
.mehr { font-size: 0.95rem; color: var(--leise); text-decoration-color: var(--farbe); }
.mehr::after { content: " →"; }
.text { max-width: 42rem; }
.text-schmal { margin-bottom: 2rem; color: var(--leise); }
.knopf { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: var(--knopf-ecke); background: var(--farbe); color: var(--auf-farbe); text-decoration: none; font-weight: 600; font-size: 0.98rem; border: 0; cursor: pointer; }
.knopf:hover { filter: brightness(1.06); }
.knopf-gross { font-size: clamp(1.1rem, 2.4vw, 1.6rem); padding: 1rem 1.8rem; }

/* Startseite */
.held { padding-top: clamp(1rem, 3vw, 2.5rem); display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); }
/* Das längste Wort passt immer in die Zeile: --zeichen kommt vom Server, --zeichenbreite vom Stil. */
.held-titel { font-size: min(var(--titel-gross), calc((100vw - 2 * var(--rand)) / (var(--zeichen, 8) * var(--zeichenbreite, 0.62)))); line-height: var(--titel-zeile); text-transform: var(--titel-trans); overflow-wrap: break-word; }
.held-zeile { margin: 0.8rem 0 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--leise); max-width: 40rem; }
.held-bild { margin: 0; }
.held-text, .held-bild { min-width: 0; }
.held-bild img { width: 100%; max-height: 78svh; object-fit: contain; object-position: left center; border-radius: var(--ecke); }

/* Werke */
.werke { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: var(--abstand); }
.werk { display: flex; flex-direction: column; gap: 0.7rem; text-decoration: none; }
.werk-bild { display: grid; place-items: center; aspect-ratio: 1; background: var(--flaeche); border-radius: var(--ecke); overflow: hidden; }
.werk-bild img { width: 86%; height: 86%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.werk:hover .werk-bild img { transform: scale(1.03); }
.werk-text { display: flex; flex-direction: column; gap: 0.1rem; }
.werk-titel { font-weight: 500; }
.werk-angaben { font-size: 0.88rem; color: var(--leise); }
.unter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.6rem 0 2rem; }
.unter a { padding: 0.35rem 0.9rem; border: 1px solid var(--linie); border-radius: var(--knopf-ecke); text-decoration: none; font-size: 0.9rem; }
.unter a[aria-current] { background: var(--text); color: var(--grund); border-color: var(--text); }

.werkseite { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); padding-top: clamp(1rem, 3vw, 2rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .werkseite { grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr); align-items: end; } }
.werkseite-bild { margin: 0; background: var(--flaeche); border-radius: var(--ecke); padding: clamp(1rem, 4vw, 3.5rem); display: grid; place-items: center; }
.werkseite-bild img { max-height: 76svh; width: auto; object-fit: contain; }
.werkseite-titel { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 1.2rem; }
.werkseite-angaben { display: grid; gap: 0.5rem; margin: 0 0 1.6rem; }
.werkseite-angaben div { display: grid; grid-template-columns: 6rem 1fr; border-top: 1px solid var(--linie); padding-top: 0.5rem; }
.werkseite-angaben dt { color: var(--leise); font-size: 0.9rem; }
.werkseite-angaben dd { margin: 0; }
.werkseite-weitere { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--abstand); }
.blaettern { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); font-size: 0.95rem; }
.blaettern a { text-decoration: none; color: var(--leise); }
.blaettern a:hover { color: var(--text); }

/* Listen */
.eintraege { display: grid; gap: 1.6rem; }
.eintrag-jahr { display: grid; grid-template-columns: minmax(4rem, 8rem) 1fr; gap: 1rem; border-top: 1px solid var(--linie); padding-top: 1rem; }
.eintrag-jahr h3 { font-variant-numeric: tabular-nums; }
.eintrag-jahr ul, .termine, .aufrufe, .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.eintrag-jahr li { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: baseline; }
.eintrag-ort, .eintrag-art { color: var(--leise); font-size: 0.92rem; }
.eintrag-art { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.termine li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.2rem 1.5rem; border-top: 1px solid var(--linie); padding-top: 0.9rem; }
.termin-tag { font-variant-numeric: tabular-nums; color: var(--leise); grid-row: span 3; }
.termin-titel { font-weight: 600; }
.termin-ort, .termin-text { color: var(--leise); font-size: 0.95rem; }
.aufrufe a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--linie); border-radius: var(--ecke); text-decoration: none; }
.aufrufe a:hover { border-color: var(--farbe); }
.aufruf-titel { font-weight: 600; }
.aufruf-frist { color: var(--leise); white-space: nowrap; }
.mitglieder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: var(--abstand); }
.mitglied { text-decoration: none; display: grid; gap: 0.4rem; }
.mitglied-bild { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--flaeche); display: block; }
.mitglied-bild img { width: 100%; height: 100%; object-fit: cover; }
.mitglied-name { font-weight: 600; }
.mitglied-zeile { font-size: 0.88rem; color: var(--leise); }
.mitgliedseite, .ueber { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 800px) { .mitgliedseite, .ueber { grid-template-columns: minmax(12rem, 22rem) 1fr; align-items: start; } }
.profil { margin: 0; }
.profil img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ecke); }
.mitglied-werke { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--abstand); }
.vorstand { display: grid; gap: 0.6rem; margin: 0; }
.vorstand div { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; border-top: 1px solid var(--linie); padding-top: 0.6rem; }
.vorstand dt { color: var(--leise); }
.vorstand dd { margin: 0; }
.ueber-text h1 { margin-bottom: 1.4rem; }
.raum-karte { display: grid; text-decoration: none; position: relative; overflow: hidden; border-radius: var(--ecke); background: var(--text); color: var(--grund); min-height: 18rem; }
.raum-bild img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; position: absolute; inset: 0; }
.raum-text { position: relative; display: grid; gap: 0.6rem; align-content: end; justify-items: start; padding: clamp(1.4rem, 4vw, 3rem); }
.raum-marke { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.raum-titel { font-family: var(--titelschrift); font-size: clamp(1.6rem, 4vw, 3rem); font-weight: var(--titel-gewicht); line-height: 1.05; }
.kontakt-zeile { font-size: 1.15rem; }
.recht .text { font-size: 0.98rem; }
.recht h2 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }

.fuss { max-width: var(--breite); margin: var(--luft) auto 0; padding: 2rem var(--rand) 2.5rem; border-top: 1px solid var(--linie); display: grid; gap: 0.8rem; font-size: 0.9rem; color: var(--leise); }
.fuss-name { margin: 0; color: var(--text); font-weight: 500; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.fuss-nav a { text-decoration: none; }
.fuss-nav a:hover { color: var(--text); }
.stilwahl { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 1rem; }
.stilwahl a { font: 500 0.8rem/1 system-ui, sans-serif; padding: 0.45rem 0.7rem; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; color: var(--text); letter-spacing: 0; text-transform: none; }
.stilwahl a[aria-current] { background: var(--farbe); color: var(--auf-farbe); border-color: var(--farbe); }

/* --- Die zwölf Stile ----------------------------------------------------------------------- */

/* Weißer Raum: viel Luft, leichte Schrift, Werke mittig auf hellem Grau. */
[data-stil="weiss"] { --titel-gewicht: 300; --titel-sperr: -0.045em; --luft: clamp(4rem, 11vw, 10rem); }
[data-stil="weiss"] .held-bild img { object-position: center; max-height: 72svh; }
[data-stil="weiss"] .held { text-align: left; }
[data-stil="weiss"] .werk-angaben { font-size: 0.82rem; }

/* Nacht: schwarz, Bilder randlos, Titel über dem Bild. */
[data-stil="nacht"] { --grund: #0a0a0a; --text: #f2f2f2; --leise: #9a9a9a; --linie: #262626; --flaeche: #141414; --titel-gewicht: 200; --titel-sperr: -0.04em; color-scheme: dark; }
[data-stil="nacht"] .kopf { position: absolute; inset: 0 0 auto; z-index: 2; max-width: none; color: #fff; background: linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0)); padding-bottom: 3rem; }
[data-stil="nacht"] .kopf .nav a { color: rgb(255 255 255 / 0.75); }
[data-stil="nacht"] .held { position: relative; margin: 0 calc(-1 * var(--rand)); padding: 0; min-height: 100svh; align-content: end; }
[data-stil="nacht"] .held-bild { position: absolute; inset: 0; }
[data-stil="nacht"] .held-bild img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
[data-stil="nacht"] .held-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0) 55%); }
[data-stil="nacht"] .held-text { position: relative; padding: 0 var(--rand) clamp(2rem, 6vw, 5rem); }
[data-stil="nacht"] .held-zeile { color: rgb(255 255 255 / 0.75); }
[data-stil="nacht"] .werke { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 3px; }
[data-stil="nacht"] .werk-bild { aspect-ratio: 4 / 5; background: #000; }
[data-stil="nacht"] .werk-bild img { width: 100%; height: 100%; object-fit: cover; }
[data-stil="nacht"] .werk { position: relative; }
[data-stil="nacht"] .werk-text { position: absolute; inset: auto 0 0; padding: 1rem; background: linear-gradient(to top, rgb(0 0 0 / 0.75), transparent); opacity: 0; transition: opacity 0.3s; }
[data-stil="nacht"] .werk:hover .werk-text, [data-stil="nacht"] .werk:focus-visible .werk-text { opacity: 1; }
@media (hover: none) { [data-stil="nacht"] .werk-text { opacity: 1; } }

/* Plakat: breite, schwere Großbuchstaben, Farbe als Fläche. */
[data-stil="plakat"] { --zeichenbreite: 1.04; --schrift: "Archivo", system-ui, sans-serif; --titel-gewicht: 900; --titel-trans: uppercase; --titel-sperr: -0.02em; --titel-zeile: 0.86; --titel-gross: clamp(2.8rem, 9.5vw, 10.5rem); --knopf-ecke: 0px; --h2-gross: clamp(1.8rem, 4.5vw, 3.6rem); }
[data-stil="plakat"] h1, [data-stil="plakat"] h2, [data-stil="plakat"] .marke, [data-stil="plakat"] .raum-titel { font-stretch: 125%; text-transform: uppercase; }
[data-stil="plakat"] .marke { font-weight: 900; }
[data-stil="plakat"] .nav { text-transform: uppercase; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
[data-stil="plakat"] .held-text { order: -1; }
[data-stil="plakat"] .held-zeile { display: inline-block; background: var(--farbe); color: var(--auf-farbe); padding: 0.3rem 0.8rem; font-weight: 700; text-transform: uppercase; font-size: clamp(0.95rem, 1.6vw, 1.2rem); }
[data-stil="plakat"] .held-bild img { object-fit: cover; max-height: 70svh; width: 100%; object-position: center; }
[data-stil="plakat"] .werke { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
[data-stil="plakat"] .werk-bild { aspect-ratio: 4 / 3; background: var(--farbe); }
[data-stil="plakat"] .werk-titel { font-weight: 800; text-transform: uppercase; font-stretch: 112%; }
[data-stil="plakat"] .abschnitt-kopf { border-top: 8px solid var(--text); padding-top: 1rem; }

/* Fein: Serife, Elfenbein, haarfeine Linien, kursiv. */
[data-stil="fein"] { --grund: #fbf8f2; --flaeche: #f3eee4; --linie: #ddd5c6; --text: #2a2620; --leise: #7d7364; --schrift: "Cormorant", Georgia, serif; --titel-gewicht: 300; --titel-sperr: -0.01em; --titel-zeile: 1; font-size: 1.2rem; --knopf-ecke: 0px; }
[data-stil="fein"] body { font-size: 1.22rem; }
[data-stil="fein"] h1, [data-stil="fein"] h2, [data-stil="fein"] .held-zeile, [data-stil="fein"] .werk-titel { font-style: italic; }
[data-stil="fein"] .kopf, [data-stil="fein"] .held { justify-items: center; text-align: center; justify-content: center; }
[data-stil="fein"] .kopf { flex-direction: column; align-items: center; border-bottom: 1px solid var(--linie); }
[data-stil="fein"] .nav { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; font-style: normal; }
[data-stil="fein"] .held-text { order: -1; }
[data-stil="fein"] .held-zeile { margin-inline: auto; }
[data-stil="fein"] .held-bild { padding: clamp(1rem, 4vw, 3rem); border: 1px solid var(--linie); }
[data-stil="fein"] .held-bild img { object-position: center; }
[data-stil="fein"] .werk-bild { background: transparent; border: 1px solid var(--linie); }
[data-stil="fein"] .werk-text { text-align: center; }
[data-stil="fein"] .knopf { background: transparent; color: var(--text); border: 1px solid var(--text); font-weight: 500; }

/* Feuilleton: Kopf wie eine Zeitung, Serife zum Lesen, Bildunterschriften. */
[data-stil="feuilleton"] { --grund: #f7f5f0; --flaeche: #ebe7dd; --linie: #1a1a1a; --text: #161616; --leise: #5f5a50; --schrift: "Newsreader", Georgia, serif; --titelschrift: "Newsreader", Georgia, serif; --titel-gewicht: 500; --titel-sperr: -0.02em; --knopf-ecke: 2px; }
[data-stil="feuilleton"] .kopf { flex-direction: column; align-items: center; border-bottom: 3px double var(--linie); }
[data-stil="feuilleton"] .marke { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 600; }
[data-stil="feuilleton"] .nav { font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
[data-stil="feuilleton"] .held { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { [data-stil="feuilleton"] .held { grid-template-columns: 1fr 2fr; align-items: end; } }
[data-stil="feuilleton"] .held-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-stil="feuilleton"] .held-zeile { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-style: italic; color: var(--text); margin: 0; }
[data-stil="feuilleton"] .held-text { border-top: 1px solid var(--linie); padding-top: 1rem; }
[data-stil="feuilleton"] .text p:first-child::first-letter { float: left; font-size: 3.4em; line-height: 0.85; padding: 0.06em 0.08em 0 0; font-weight: 600; }
[data-stil="feuilleton"] .abschnitt-kopf { border-top: 1px solid var(--linie); padding-top: 0.8rem; }
[data-stil="feuilleton"] .werk-bild { background: transparent; aspect-ratio: auto; }
[data-stil="feuilleton"] .werk-bild img { width: 100%; height: auto; }
[data-stil="feuilleton"] .werk-titel { font-style: italic; }
[data-stil="feuilleton"] .werk-angaben { font-family: "Inter", sans-serif; font-size: 0.78rem; }

/* Raster: strenge Spalten, Nummern, Schweizer Typografie. */
[data-stil="raster"] { --titel-gewicht: 700; --titel-sperr: -0.05em; --titel-zeile: 0.9; --ecke: 0px; --knopf-ecke: 0px; --abstand: 1px; }
[data-stil="raster"] .kopf { border-bottom: 2px solid var(--text); }
[data-stil="raster"] .held { grid-template-columns: repeat(12, minmax(0, 1fr)); }
[data-stil="raster"] .held-text { grid-column: 1 / -1; }
[data-stil="raster"] .held-bild { grid-column: 1 / -1; }
@media (min-width: 900px) { [data-stil="raster"] .held-text { grid-column: 1 / 8; align-self: end; } [data-stil="raster"] .held-bild { grid-column: 8 / -1; } }
[data-stil="raster"] .held-zeile { border-top: 2px solid var(--farbe); padding-top: 0.6rem; color: var(--text); }
[data-stil="raster"] .werke { background: var(--linie); border: 1px solid var(--linie); }
[data-stil="raster"] .werk { background: var(--grund); padding: 1rem; position: relative; }
[data-stil="raster"] .werk::before { content: attr(data-nr); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--farbe); font-weight: 700; }
[data-stil="raster"] .werk-bild { background: transparent; }
[data-stil="raster"] .abschnitt-kopf { border-top: 2px solid var(--text); padding-top: 0.6rem; }

/* Werkstatt: Mono, sichtbare Linien, roh. */
[data-stil="werkstatt"] { --zeichenbreite: 0.66; --grund: #ececea; --flaeche: #e0e0dc; --linie: #1b1b1b; --text: #1b1b1b; --leise: #55554f; --schrift: "JetBrains Mono", ui-monospace, monospace; --titel-gewicht: 700; --titel-trans: uppercase; --titel-sperr: -0.04em; --titel-gross: clamp(2.2rem, 7vw, 5.6rem); --knopf-ecke: 0px; --abstand: 0px; }
[data-stil="werkstatt"] body { font-size: 0.95rem; }
[data-stil="werkstatt"] .kopf { border: 1px solid var(--linie); margin-top: var(--rand); max-width: calc(var(--breite) - 2 * var(--rand)); }
[data-stil="werkstatt"] .nav a::before { content: "/"; color: var(--farbe); }
[data-stil="werkstatt"] .held { border: 1px solid var(--linie); border-top: 0; padding: var(--rand); }
[data-stil="werkstatt"] .held-bild { border: 1px solid var(--linie); background: var(--flaeche); padding: 1rem; }
[data-stil="werkstatt"] .held-bild img { object-position: center; }
[data-stil="werkstatt"] .werke { border-left: 1px solid var(--linie); border-top: 1px solid var(--linie); }
[data-stil="werkstatt"] .werk { border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 0.8rem; }
[data-stil="werkstatt"] .werk-titel::before { content: attr(data-nr); }
[data-stil="werkstatt"] .werk-bild { background: transparent; }
[data-stil="werkstatt"] .knopf { border: 1px solid var(--linie); background: var(--farbe); }

/* Atelier: warmes Papier, weiche Ecken, ruhig. */
[data-stil="atelier"] { --grund: #f4efe7; --flaeche: #ebe3d6; --linie: #dcd2c2; --text: #2f2a24; --leise: #7a6f60; --schrift: "DM Sans", system-ui, sans-serif; --titel-gewicht: 500; --titel-sperr: -0.035em; --ecke: 1.4rem; }
[data-stil="atelier"] .held-bild img { object-fit: cover; aspect-ratio: 16 / 10; max-height: 74svh; border-radius: 2rem; object-position: center; }
[data-stil="atelier"] .werke { columns: 3 17rem; display: block; column-gap: var(--abstand); }
[data-stil="atelier"] .werk { break-inside: avoid; margin-bottom: var(--abstand); }
[data-stil="atelier"] .werk-bild { aspect-ratio: auto; background: transparent; }
[data-stil="atelier"] .werk-bild img { width: 100%; height: auto; border-radius: var(--ecke); }
[data-stil="atelier"] .unter a[aria-current] { background: var(--farbe); color: var(--auf-farbe); border-color: var(--farbe); }

/* Farbfeld: die ganze Seite in der Farbe des Kunden. */
[data-stil="farbfeld"] { --zeichenbreite: 0.62; --grund: var(--farbe); --text: var(--auf-farbe); --leise: color-mix(in srgb, var(--auf-farbe) 72%, var(--farbe)); --linie: color-mix(in srgb, var(--auf-farbe) 25%, var(--farbe)); --flaeche: color-mix(in srgb, var(--auf-farbe) 8%, var(--farbe)); --schrift: "Bricolage Grotesque", system-ui, sans-serif; --titel-gewicht: 800; --titel-sperr: -0.05em; --titel-gross: clamp(3rem, 11vw, 10rem); --ecke: 0.6rem; }
[data-stil="farbfeld"] .knopf { background: var(--auf-farbe); color: var(--farbe); }
[data-stil="farbfeld"] :focus-visible { outline-color: var(--auf-farbe); }
[data-stil="farbfeld"] .held-bild img { box-shadow: 0 2rem 4rem -1.5rem rgb(0 0 0 / 0.45); width: auto; max-width: 100%; }
[data-stil="farbfeld"] .werke { columns: 3 16rem; display: block; column-gap: var(--abstand); }
[data-stil="farbfeld"] .werk { break-inside: avoid; margin-bottom: var(--abstand); }
[data-stil="farbfeld"] .werk-bild { aspect-ratio: auto; background: transparent; }
[data-stil="farbfeld"] .werk-bild img { width: 100%; height: auto; box-shadow: 0 1rem 2rem -1rem rgb(0 0 0 / 0.4); }
[data-stil="farbfeld"] .nav a[aria-current] { text-decoration-color: var(--auf-farbe); }
[data-stil="farbfeld"] .stilwahl a[aria-current] { background: var(--auf-farbe); color: var(--farbe); }

/* Beton: dunkles Grau, riesige Überschriften. */
[data-stil="beton"] { --zeichenbreite: 0.88; --grund: #232322; --flaeche: #2d2d2c; --linie: #3d3d3b; --text: #ecebe6; --leise: #a19f97; --schrift: "Syne", system-ui, sans-serif; --titel-gewicht: 800; --titel-trans: uppercase; --titel-sperr: -0.03em; --titel-zeile: 0.85; --titel-gross: clamp(3rem, 10.5vw, 11rem); --h2-gross: clamp(2rem, 6vw, 4.5rem); color-scheme: dark; }
[data-stil="beton"] .held-text { order: -1; }
[data-stil="beton"] .held-titel { word-break: break-word; }
[data-stil="beton"] .held-bild img { object-fit: cover; width: 100%; max-height: 64svh; object-position: center; }
[data-stil="beton"] .werke { grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
[data-stil="beton"] .werk-bild { aspect-ratio: 3 / 2; }
[data-stil="beton"] .werk-titel { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
[data-stil="beton"] .abschnitt-kopf h2, [data-stil="beton"] h1 { text-transform: uppercase; }

/* Index: zuerst die Liste, das Bild kommt beim Darüberfahren. */
[data-stil="index"] { --schrift: "Space Grotesk", system-ui, sans-serif; --titel-gewicht: 500; --titel-sperr: -0.03em; --titel-gross: clamp(2rem, 5vw, 3.8rem); --abstand: 0px; }
[data-stil="index"] .held { grid-template-columns: 1fr; }
[data-stil="index"] .held-bild { display: none; }
[data-stil="index"] .werke { display: block; border-top: 1px solid var(--text); }
[data-stil="index"] .werk { display: grid; grid-template-columns: 3rem 1fr 4.5rem; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
[data-stil="index"] .werk::before { content: attr(data-nr); color: var(--leise); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
[data-stil="index"] .werk-bild { order: 3; aspect-ratio: 1; background: transparent; }
[data-stil="index"] .werk-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; transform-origin: right center; }
[data-stil="index"] .werk-text { flex-direction: row; flex-wrap: wrap; gap: 0.2rem 1.5rem; align-items: baseline; }
[data-stil="index"] .werk:hover { background: var(--flaeche); }
[data-stil="index"] .werk:hover .werk-bild img { transform: scale(2.2); position: relative; z-index: 3; box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 0.25); }
[data-stil="index"] .werk:hover .werk-titel { color: var(--farbe); }

/* Museum: Sand, viel Wand, Angaben wie ein Wandtext. */
[data-stil="museum"] { --grund: #efe9df; --flaeche: #e6dfd2; --linie: #cfc6b6; --text: #26231e; --leise: #6f685c; --titelschrift: "Fraunces", Georgia, serif; --titel-gewicht: 400; --titel-sperr: -0.02em; --luft: clamp(4rem, 10vw, 9rem); --knopf-ecke: 0px; }
[data-stil="museum"] .held { grid-template-columns: minmax(0, 1fr); justify-items: center; }
[data-stil="museum"] .held-bild { padding: clamp(1rem, 5vw, 4rem); }
[data-stil="museum"] .held-bild img { object-position: center; box-shadow: 0 1.2rem 2.4rem -1.4rem rgb(40 30 20 / 0.5); max-height: 68svh; width: auto; }
[data-stil="museum"] .held-text { justify-self: end; max-width: 22rem; border-left: 2px solid var(--farbe); padding-left: 1rem; }
[data-stil="museum"] .held-titel { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
[data-stil="museum"] .held-zeile { font-size: 1rem; }
[data-stil="museum"] .werk-bild { background: transparent; }
[data-stil="museum"] .werk-bild img { box-shadow: 0 0.8rem 1.6rem -1rem rgb(40 30 20 / 0.55); }
[data-stil="museum"] .werk-text { border-left: 2px solid var(--farbe); padding-left: 0.7rem; }
[data-stil="museum"] .werk-titel { font-family: var(--titelschrift); font-style: italic; }

/* --- Die Leiste für Angemeldete: neutral, über jedem Stil gleich --------------------------- */
body[data-leiste] { padding-bottom: 5rem; }
.leiste { position: fixed; z-index: 90; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 0.3rem; padding: 0.35rem; border-radius: 999px; background: #161616; color: #fff; box-shadow: 0 0.8rem 2.4rem rgb(0 0 0 / 0.35); font: 500 0.9rem/1 system-ui, sans-serif; letter-spacing: 0; text-transform: none; max-width: calc(100vw - 1rem); overflow-x: auto; }
.leiste button, .leiste a { all: unset; cursor: pointer; padding: 0.7rem 1rem; border-radius: 999px; white-space: nowrap; }
.leiste button:hover, .leiste a:hover, .leiste [aria-pressed="true"] { background: #333; }
.leiste :focus-visible { outline: 2px solid #ffb38a; }
.leiste .leiste-haupt { background: #ff7a45; color: #1a0d07; }
.leiste .leiste-haupt:hover { background: #ff925f; }
.zeigen [data-teil]:hover { outline: 3px solid #ff7a45; outline-offset: 4px; cursor: crosshair; }
.zeigen a { pointer-events: none; }
.zeigen [data-teil] { pointer-events: auto; }
.tafel { position: fixed; z-index: 95; inset: auto 0 0 0; margin: 0 auto; max-width: 34rem; max-height: 85svh; overflow: auto; background: #fff; color: #161616; border-radius: 1.2rem 1.2rem 0 0; padding: 1.4rem 1.4rem max(1.4rem, env(safe-area-inset-bottom)); box-shadow: 0 -1rem 3rem rgb(0 0 0 / 0.3); font: 400 1rem/1.5 system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.tafel h2 { font: 700 1.2rem/1.2 system-ui, sans-serif; letter-spacing: 0; text-transform: none; margin: 0 0 0.3rem; }
.tafel p { color: #555; margin: 0 0 1rem; font-size: 0.95rem; }
.tafel label { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.9rem; }
.tafel input, .tafel textarea, .tafel select { font: inherit; font-weight: 400; padding: 0.7rem 0.8rem; border: 1px solid #ccc; border-radius: 0.6rem; background: #fff; color: #161616; width: 100%; }
.tafel textarea { min-height: 7rem; resize: vertical; }
.tafel input[type="color"] { padding: 0.2rem; height: 3rem; }
.tafel-knoepfe { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 0.5rem; }
.tafel-knoepfe button { font: 600 0.95rem/1 system-ui, sans-serif; padding: 0.8rem 1.2rem; border-radius: 999px; border: 1px solid #ccc; background: #fff; color: #161616; cursor: pointer; }
.tafel-knoepfe .stark { background: #161616; color: #fff; border-color: #161616; }
.tafel-stile { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.4rem; margin-bottom: 1rem; }
.tafel-stile button { font: 500 0.9rem/1.2 system-ui, sans-serif; padding: 0.7rem; border: 1px solid #ccc; border-radius: 0.6rem; background: #fff; color: #161616; cursor: pointer; text-align: left; }
.tafel-stile button[aria-pressed="true"] { border-color: #161616; box-shadow: inset 0 0 0 1px #161616; }
.tafel-meldung { padding: 0.8rem; border-radius: 0.6rem; background: #f1f7ee; color: #24461b; margin-bottom: 0.8rem; }
.tafel-meldung.fehler { background: #fdeeee; color: #7a1d1d; }

@media print { .kopf .nav, .fuss, .leiste, .stilwahl { display: none; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.mitglied-portfolio { grid-column: 1 / -1; }
.mitglieder-galerie .mitglied-bild { border-radius: var(--ecke); aspect-ratio: 4 / 5; }
.werkseite-kuenstler { margin: 0 0 0.4rem; font-size: 1.05rem; }
.werkseite-kuenstler a { text-decoration-color: var(--farbe); }
