/* Theme "Kunstmagazin" für info.canvarisma.de (T2, 20.11.2026).
   Grundlage: freigegebenes Muster design/a-kunstmagazin/stil.css (Betreiber 20.11.2026: "M und Design A."),
   Werkseiten mit der Petrolwand aus design/c-salon/stil.css (#173B3F).
   Literata für Titel (optische Größe), Source Serif 4 für Text (Mediävalziffern, echte Kapitälchen). Nur lokale Schriften.
   Lesespalte 42rem (rund 800 px bei 19 px), ab 1100 px 19 px Grundschrift. Nichts ist sticky oder fixed.
   Hell und dunkel über prefers-color-scheme, ohne Speicherung im Browser. Kontraste WCAG AA (Werte im Bericht T2). */

@font-face { font-family: "Literata"; src: url("/assets/ic/fonts/literata-var.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/ic/fonts/source-serif-4-var.woff2") format("woff2"); font-weight: 400 650; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/ic/fonts/source-serif-4-italic-var.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  --papier: #FFFFFF;
  --tinte: #16181A;
  --grau: #5A5E61;
  --petrol: #194246;
  --linie: #16181A;
  --haar: #D9D6CF;
  --flaeche: #F4F2EE;
  --warn: #8A3A12;
  --wand: #173B3F;
  --wand-text: #F1F0EB;
  --wand-grau: #BCCBCA;
  --wand-linie: rgba(241, 240, 235, .38);
  --rand: 16px;
  --spalte: 42rem;   /* rund 800 px bei 19 px Grundschrift */
  --breit: 1240px;
  --titel: "Literata", Georgia, "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #121415;
    --tinte: #ECEAE5;
    --grau: #A4A8AA;
    --petrol: #8FC4C6;
    --linie: #ECEAE5;
    --haar: #34383A;
    --flaeche: #1B1E1F;
    --warn: #F0A47A;
    --wand: #0F2A2D;
  }
}

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

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
@media (min-width: 700px) { :root { --rand: 32px; } }
@media (min-width: 1100px) { html { font-size: 118.75%; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--petrol); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
button { font: inherit; }

.kap { font-variant-caps: all-small-caps; letter-spacing: .07em; font-variant-numeric: lining-nums; }
.nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sprung { position: absolute; left: -9999px; top: 0; }
.sprung:focus { left: 12px; top: 12px; z-index: 10; background: var(--papier); padding: .5rem .8rem; }

/* ---------- Kopf: Titelzeile wie bei einer Zeitschrift ---------- */
.kopf { max-width: var(--breit); margin: 0 auto; padding: 1.6rem var(--rand) 0; text-align: center; }
.marke { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--tinte); }
.marke:hover { color: var(--tinte); }
.marke-name { font-family: var(--titel); font-optical-sizing: auto; font-weight: 400; font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -.01em; }
.marke-zusatz { margin-top: .35rem; font-size: .95rem; color: var(--grau); letter-spacing: .22em; }
.nav { margin-top: 1.3rem; border-top: 1px solid var(--linie); border-bottom: 3px double var(--linie); }
.nav ul { list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.4rem; font-size: 1.05rem; }
.nav a { text-decoration: none; display: inline-block; padding: .15rem 0; }
.nav a[aria-current="page"], .nav a.ist-bereich { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.nav-extra a, .nav-shop a { color: var(--grau); }
@media (min-width: 900px) { .nav-extra { margin-left: 1.4rem; padding-left: 1.4rem; border-left: 1px solid var(--haar); } }

/* ---------- Brotkrumen ---------- */
.krumen { font-size: .95rem; color: var(--grau); }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .45rem; }
.krumen li + li::before { content: "›"; margin-right: .45rem; }
.krumen a { color: var(--grau); text-decoration: none; }
.krumen a:hover { text-decoration: underline; }

/* ---------- Auftakt: Titel und Titelbild ---------- */
.auftakt { max-width: var(--breit); margin: 0 auto; padding: 1.4rem var(--rand) 0; }
.auftakt-raster { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
.auftakt-text, .buehne-text > * { min-width: 0; }
h1 { overflow-wrap: break-word; }
.auftakt-raster.ohne-bild { max-width: calc(var(--spalte) + 8rem); }
.rubrik { margin: 0; color: var(--petrol); font-size: 1.05rem; letter-spacing: .14em; }
h1, h2, h3 { font-family: var(--titel); font-optical-sizing: auto; font-weight: 500; line-height: 1.12; letter-spacing: -.012em; }
h1 { margin: .1em 0 .3em; font-weight: 400; font-size: clamp(3.2rem, 14vw, 7.2rem); line-height: .95; letter-spacing: -.03em; hyphens: auto; }
h1.h1-lang { font-size: clamp(2.3rem, 8.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; }
h1.h1-sehr-lang { font-size: clamp(1.65rem, 6.5vw, 3.2rem); line-height: 1.08; letter-spacing: -.015em; }
h1.h1-wort-lang { font-size: clamp(1.5rem, 5.6vw, 2.6rem); }
.kurz { margin: 0 0 .6rem; font-size: 1.18rem; line-height: 1.5; }
.kurz-label { color: var(--petrol); margin-right: .35em; letter-spacing: .1em; }
.kurzantwort .kurz + p { font-size: 1.18rem; line-height: 1.5; }
.einleitung p { margin: 0 0 .6rem; font-size: 1.18rem; line-height: 1.5; }
.byline { margin: 1rem 0 0; font-style: italic; color: var(--grau); }
.byline a { color: var(--grau); }
.titelbild { margin: 0 calc(-1 * var(--rand)); }
.titelbild figcaption { padding: .6rem var(--rand) 0; }
figure { margin: 0; }
figcaption { font-size: .9rem; line-height: 1.45; color: var(--grau); font-style: italic; }
figcaption a { color: var(--grau); }
.ki { font-style: normal; }
.ist-platzhalter img { background: var(--flaeche); }

@media (min-width: 960px) {
  .auftakt-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: end; }
  .auftakt-raster.ohne-bild { grid-template-columns: minmax(0, 1fr); }
  .titelbild { margin: 0; }
  .titelbild figcaption { padding: .6rem 0 0; }
  .auftakt-text { padding-bottom: 2.2rem; }
  .ohne-bild .auftakt-text { padding-bottom: 0; }
}

.probehinweis { margin: 0 0 1rem; padding: .5rem .8rem; border: 1px dashed var(--warn); color: var(--warn); font-size: .9rem; font-style: normal; }

/* ---------- Lesespalte ---------- */
.spalte { max-width: calc(var(--spalte) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.spalte > :first-child { margin-top: 2.2rem; }
.spalte h2 { margin: 2.4rem 0 .6rem; font-size: clamp(1.7rem, 4.6vw, 2.3rem); }
.spalte h3 { margin: 1.8rem 0 .4rem; font-size: 1.35rem; }
.spalte p, .spalte li { hyphens: auto; }
.spalte p { margin: 0 0 1em; }
.spalte ul, .spalte ol { margin: 0 0 1em; padding-left: 1.3rem; }
.spalte li { margin-bottom: .3rem; }
.spalte a { text-decoration-color: color-mix(in srgb, var(--petrol) 60%, transparent); }
.spalte table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
.spalte caption { text-align: left; font-variant-caps: all-small-caps; letter-spacing: .07em; color: var(--grau); padding-bottom: .4rem; }
.spalte th, .spalte td { text-align: left; vertical-align: top; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--haar); }
.spalte thead th { border-bottom: 1px solid var(--linie); font-weight: 600; }
.tabelle-rahmen { overflow-x: auto; }
sup.q { font-size: .7em; line-height: 0; font-variant-numeric: lining-nums; }
sup.q a { text-decoration: none; color: var(--petrol); }
blockquote { margin: 1.6rem 0; padding-left: 1rem; border-left: 1px solid var(--linie); font-style: italic; }

.initial::first-letter {
  float: left;
  font-family: var(--titel);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 4.1em;
  line-height: .82;
  margin: .06em .09em 0 0;
  color: var(--petrol);
}

/* ---------- Steckbrief: feste Box mit Linien ---------- */
.steckbrief { margin: 2.6rem 0 1.4rem; border-top: 3px solid var(--linie); border-bottom: 1px solid var(--linie); }
.spalte .steckbrief h2 { margin: .7rem 0 .2rem; font-family: var(--text); font-weight: 600; font-size: 1.1rem; letter-spacing: .12em; }
.steckbrief dl { margin: 0; display: grid; }
.steckbrief dl > div { padding: .55rem 0 .6rem; border-top: 1px solid var(--haar); }
.steckbrief dl > div:first-child { border-top: 0; }
.steckbrief dt { color: var(--grau); font-size: .95rem; font-variant-caps: all-small-caps; letter-spacing: .07em; line-height: 1.3; }
.steckbrief dd { margin: 0; line-height: 1.4; }
@media (min-width: 600px) {
  .steckbrief dl { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .steckbrief dl > div:nth-child(2) { border-top: 0; }
  .steckbrief-breit { grid-column: 1 / -1; }
}

/* ---------- Inhaltsverzeichnis ---------- */
.verz { margin: 2rem 0 1.4rem; padding: .2rem 0 .4rem 1rem; border-left: 1px solid var(--linie); }
.verz-titel { margin: 0 0 .3rem !important; color: var(--petrol); letter-spacing: .12em; }
.verz ol { margin: 0; padding-left: 1.2rem; font-variant-numeric: lining-nums; }
.verz li { margin: .15rem 0; }
.verz ol.ohne-zahl { list-style: none; padding-left: 0; }
@media (max-width: 599px) { .nav ul { gap: .1rem 1rem; font-size: 1rem; } .kopf { padding-top: 1.1rem; } }
.verz a { text-decoration: none; }
.verz a:hover { text-decoration: underline; }
.druckzeile { margin: 1rem 0 0 !important; }
.knopf-still { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .9rem; background: none; color: var(--tinte); border: 1px solid var(--linie); cursor: pointer; text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .08em; }
.knopf-still:hover { color: var(--petrol); border-color: var(--petrol); }

/* ---------- Bilder im Text ---------- */
.textbild { margin: 2rem 0; }
.textbild img { width: 100%; }
.textbild figcaption { margin-top: .6rem; }
.raumbild { max-width: var(--breit); margin: 2.6rem auto; padding: 0 var(--rand); }
.raumbild img { width: 100%; }
.raumbild figcaption { max-width: var(--spalte); margin: .7rem auto 0; padding-left: .8rem; border-left: 1px solid var(--linie); }
@media (max-width: 699px) {
  .raumbild { padding: 0; }
  .raumbild figcaption { margin: .7rem var(--rand) 0; }
}
.grafik { margin: 2rem 0; }
.grafik img, .grafik svg { width: 100%; }
.grafik figcaption { margin-top: .6rem; }
.grafik-legende { margin: .8rem 0 0; display: grid; gap: .3rem; font-size: .92rem; }
.grafik-legende div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .6rem; }
.grafik-legende dt { color: var(--grau); font-variant-caps: all-small-caps; letter-spacing: .07em; }
.grafik-legende dd { margin: 0; }

/* Größenvergleich (vom Theme gezeichnet) */
.vergleich { background: var(--flaeche); }
.vergleich .gv-boden { stroke: var(--linie); stroke-width: 1.5; }
.vergleich .gv-moebel { fill: none; stroke: var(--grau); stroke-width: 1.5; stroke-linejoin: round; }
.vergleich .gv-person { fill: var(--haar); stroke: var(--grau); stroke-width: 1; }
.vergleich .gv-werk { fill: color-mix(in srgb, var(--petrol) 22%, transparent); stroke: var(--petrol); stroke-width: 2; }
.vergleich .gv-text { fill: var(--tinte); font-family: var(--text); font-size: 17px; font-variant-numeric: lining-nums; }
.vergleich .gv-text-werk { fill: var(--petrol); font-weight: 600; }

/* ---------- Kästen: Rechtslage, Selbst rechnen ---------- */
.kasten { margin: 2.4rem 0; padding: 1rem 1.2rem 1.1rem; border: 1px solid var(--linie); border-top-width: 3px; }
.kasten-rubrik { margin: 0 0 .1rem !important; color: var(--petrol); letter-spacing: .12em; }
.spalte .kasten h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.kasten p:last-child { margin-bottom: 0; }
.kasten-stand { font-size: .9rem; color: var(--grau); font-style: italic; }
.kasten-link a { color: var(--petrol); font-weight: 600; }

/* ---------- Häufige Fragen ---------- */
.fragen { margin-top: 2.6rem; }
.fragen details { border-top: 1px solid var(--haar); padding: .2rem 0; }
.fragen details:last-child { border-bottom: 1px solid var(--haar); }
.fragen summary { cursor: pointer; padding: .6rem 0; font-weight: 600; list-style-position: outside; }
.fragen summary:hover { color: var(--petrol); }
.fragen details > div { padding: 0 0 .6rem; }

/* ---------- Quellen und Autor ---------- */
.spalte-ende > :first-child { margin-top: 3rem; }
.quellen { margin: 3.4rem 0 0; padding-top: .55rem; border-top: 1px solid var(--linie); font-size: .92rem; }
.spalte .quellen h2 { margin: 0 0 .4rem; font-family: var(--text); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; }
.quellen ol { margin: 0; padding-left: 1.3rem; }
.quellen li { margin-bottom: .25rem; hyphens: manual; }
.stand { margin: .6rem 0 0 !important; color: var(--grau); }
.autor { margin: 1.4rem 0 0 !important; padding-top: .8rem; border-top: 1px solid var(--haar); }
.autor .kap { color: var(--grau); margin-right: .4em; }
.autor a { color: inherit; }

/* ---------- Kartenreihen ---------- */
.reihe { max-width: var(--breit); margin: 3.6rem auto 0; padding: 0 var(--rand); }
.reihe-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin: 0 0 1.2rem; padding-top: .55rem; border-top: 3px solid var(--linie); }
.reihe-titel { margin: 0; font-family: var(--text); font-weight: 600; font-size: 1.15rem; letter-spacing: .12em; }
.reihe-mehr { color: var(--petrol); font-size: .95rem; }
.reihe-text { max-width: var(--spalte); margin: -.4rem 0 1.4rem; }
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .karten-3, .karten-2, .karten-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .karten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .karten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.karte { position: relative; height: 100%; }
.karte-bild { background: var(--flaeche); }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte img.karte-ganz { object-fit: contain; padding: .6rem; }
.karte-wand { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--wand); color: var(--wand-text); }
.karte-wand svg { width: auto; height: 86%; max-width: 92%; }
.karte-meta { margin: .75rem 0 0; font-size: .9rem; color: var(--grau); }
.karte h3 { margin: .1rem 0 .35rem; font-size: 1.5rem; }
.karte-bild + h3 { margin-top: .75rem; }
.karte h3 a { text-decoration: none; }
.karte-link h3 a::after { content: ""; position: absolute; inset: 0; }
.karte h3 a:hover { color: var(--petrol); }
.karte-link:hover h3 a { color: var(--petrol); }
.karte p { margin: 0; }
.karte-links { margin-top: .5rem !important; font-size: .95rem; }
.karte-links a { position: relative; z-index: 1; color: var(--petrol); }
.reihe-hinweis { margin: 1rem 0 0; font-size: .85rem; color: var(--grau); font-style: italic; }
.reihe-weg { margin: 1.2rem 0 0; }
.reihe-weg a { color: var(--petrol); }
.leer { color: var(--grau); font-style: italic; }

/* ---------- Startseite: Bühne mit Raumbild ---------- */
.buehne { max-width: var(--breit); margin: 1.6rem auto 0; padding: 0 var(--rand); }
.buehne-bild { margin: 0 calc(-1 * var(--rand)); }
.buehne-bild img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; }
.buehne-bild figcaption { padding: .5rem var(--rand) 0; text-align: right; }
.buehne-text { margin-top: 1.4rem; }
.buehne h1 { margin: 0 0 .25em; font-size: clamp(3rem, 12vw, 6.6rem); }
@media (min-width: 700px) {
  .buehne-bild { margin: 0; }
  .buehne-bild figcaption { padding: .5rem 0 0; }
}
@media (min-width: 960px) {
  .buehne-text { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-top: .6rem; }
  .buehne h1 { margin: 0; }
  .buehne .kurz { padding-bottom: .9rem; }
}

/* ---------- Werkseite: Petrolwand (Entwurf C) ---------- */
.wand { margin-top: 1.4rem; background: var(--wand); color: var(--wand-text); }
.wand-innen { max-width: var(--breit); margin: 0 auto; padding: 1.2rem var(--rand) clamp(2.4rem, 7vw, 4.2rem); }
.wand a { color: var(--wand-text); }
.krumen-wand, .krumen-wand a { color: var(--wand-grau); }
.wand .rubrik { margin-top: 1.6rem; color: var(--wand-grau); }
.wand h1 { color: var(--wand-text); }
.wand-unter { margin: 0 0 .4rem; font-size: 1.2rem; font-style: italic; color: var(--wand-grau); }
.wand .probehinweis { color: #F6C9A8; border-color: #F6C9A8; }
.wand-raster { display: grid; gap: 2.4rem; margin-top: 2rem; align-items: center; }
.gerahmt { margin: 0 auto; max-width: min(46rem, calc(100% - 24px)); }
.gerahmt img, .gerahmt svg { outline: 1px solid var(--wand-linie); outline-offset: 10px; box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }
.gerahmt figcaption { margin: 1.4rem auto 0; color: var(--wand-grau); text-align: center; font-size: .88rem; }
.gerahmt figcaption a { color: var(--wand-grau); }
.formatfigur svg { box-shadow: none; outline-offset: 0; outline: 0; max-height: 26rem; margin: 0 auto; width: auto; }
.formatgrafik .fg-rahmen { fill: rgba(241, 240, 235, .06); stroke: var(--wand-text); stroke-width: 2; }
.formatgrafik .fg-innen { fill: none; stroke: var(--wand-linie); stroke-width: 1; }
.formatgrafik .fg-mass { fill: none; stroke: var(--wand-grau); stroke-width: 1.2; }
.formatgrafik .fg-text { fill: var(--wand-grau); font-family: var(--text); font-size: 17px; font-variant-numeric: lining-nums; }
@media (min-width: 960px) {
  .wand-raster { grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr); gap: 3.5rem; }
}

/* Museumsschild (Muster .schild) */
.schild { max-width: 26rem; padding: 1.1rem 1.25rem 1rem; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte); font-size: .95rem; line-height: 1.45; }
.wand .schild { border-color: transparent; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.schild p { margin: 0; }
.schild a { color: var(--petrol); }
.schild-kuenstler strong { font-weight: 650; }
.schild-kuenstler a { color: var(--tinte); }
.schild-kuenstler span { color: var(--grau); }
.schild-titel { margin-top: .15rem !important; }
.schild-titel cite { font-style: italic; }
.schild-daten { margin: .8rem 0 0; padding-top: .6rem; border-top: 1px solid var(--haar); display: grid; gap: .15rem; font-variant-numeric: lining-nums; }
.schild-daten > div { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: .6rem; }
.schild-daten dt { color: var(--grau); }
.schild-daten dd { margin: 0; }
.schild-link { margin-top: .9rem !important; padding-top: .6rem; border-top: 1px solid var(--haar); }
.schild-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.schild-link a::after { content: " ↗"; margin-left: .25em; }
.schild-stand { margin-top: .3rem !important; font-size: .8rem; color: var(--grau); font-style: italic; }

/* ---------- Glossarfenster ---------- */
abbr.begriff { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: help; }
abbr.begriff[aria-expanded="true"] { color: var(--petrol); text-decoration-style: solid; }
.begriff-fenster { position: absolute; z-index: 20; display: block; width: max-content; max-width: min(21rem, calc(100vw - 24px)); padding: .9rem 1rem;
  background: var(--papier); color: var(--tinte); border: 1px solid var(--linie); border-top-width: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  font-size: .92rem; line-height: 1.5; hyphens: auto; }
.begriff-fenster strong { display: block; font-family: var(--titel); font-weight: 500; font-size: 1.05rem; margin-bottom: .2rem; }
.begriff-fenster a { display: inline-flex; align-items: center; min-height: 44px; color: var(--petrol); }

/* Glossar A bis Z */
.az { list-style: none; margin: 0 0 1.6rem; padding: .5rem 0; display: flex; flex-wrap: wrap; gap: .2rem; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); font-size: 1.1rem; }
.az li a, .az li span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; min-height: 2.2rem; text-decoration: none; }
.az li span { color: var(--grau); opacity: .55; }
.az li a:hover, .az li a[aria-current] { color: var(--papier); background: var(--petrol); }
.glossar-liste { columns: 1; column-gap: 2.5rem; }
@media (min-width: 760px) { .glossar-liste { columns: 2; } }
.glossar-gruppe { break-inside: avoid; margin-bottom: 1.6rem; }
.glossar-gruppe h3 { margin: 0 0 .3rem; font-size: 1.9rem; color: var(--petrol); }
.glossar-gruppe ul { list-style: none; margin: 0; padding: 0; }
.glossar-gruppe li { padding: .45rem 0; border-top: 1px solid var(--haar); }
.glossar-gruppe li > a, .glossar-begriff { font-weight: 600; }
.glossar-text { display: block; color: var(--grau); font-size: .92rem; line-height: 1.45; }
.glossar-leiste { margin-top: 3rem; }
.glossar-leiste p { margin: 0 0 .3rem; color: var(--petrol); letter-spacing: .12em; }

/* ---------- Suche und Fehlerseiten ---------- */
.suchform { margin: 1.6rem 0 1rem; }
.suchform label { display: block; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--grau); margin-bottom: .3rem; }
.suchform-zeile { display: flex; gap: .5rem; flex-wrap: wrap; }
.suchform input { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: .5rem .8rem; font: inherit; color: var(--tinte); background: var(--papier); border: 1px solid var(--linie); border-radius: 0; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .4rem 1.3rem; background: var(--petrol); color: var(--papier); border: 1px solid var(--petrol); cursor: pointer; font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 1.05rem; text-decoration: none; }
.knopf:hover { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.suche-status { color: var(--grau); }
.suchliste { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--linie); }
.suchliste li { border-bottom: 1px solid var(--haar); }
.suchliste a { display: block; padding: .7rem 0; text-decoration: none; }
.suchliste b { display: block; font-family: var(--titel); font-weight: 500; font-size: 1.2rem; }
.suchliste span { display: block; color: var(--grau); font-size: .95rem; }
.suchliste a:hover b { color: var(--petrol); text-decoration: underline; }

/* ---------- Werkzeuge (Rechner aus dem heutigen Portal, Klassen rechner-*) ---------- */
.werkzeug { margin: 2.2rem 0 0; }
.rechner { margin: 0; padding: clamp(1rem, 3vw, 1.6rem); background: var(--flaeche); border: 1px solid var(--linie); border-top-width: 3px; }
.rechner-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 1.1rem; }
.rechner-feld[hidden], .rechner-moebel[hidden] { display: none; }
.rechner-feld { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rechner-feld > label { font-variant-caps: all-small-caps; letter-spacing: .07em; font-size: 1rem; color: var(--tinte); }
.rechner-feld input, .rechner-feld select { width: 100%; min-height: 2.75rem; padding: .5rem .65rem; font: inherit; font-size: 1rem; color: var(--tinte); background: var(--papier); border: 1px solid var(--grau); border-radius: 0; }
.rechner-feld input[type="color"] { padding: .25rem; height: 2.75rem; cursor: pointer; }
.rechner-tipp { font-size: .85rem; line-height: 1.4; color: var(--grau); }
.rechner-ausgabe { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); }
.rechner-wert { margin: 0 !important; font-family: var(--titel); font-size: clamp(1.4rem, 3.8vw, 1.9rem); font-weight: 500; line-height: 1.2; color: var(--petrol); font-variant-numeric: lining-nums tabular-nums; }
.rechner-notiz { margin: .5rem 0 0 !important; font-size: .95rem; line-height: 1.55; }
.rechner-warnung { color: var(--warn); }
.rechner-liste { list-style: none; margin: .9rem 0 0 !important; padding: 0 !important; border-top: 1px solid var(--haar); }
.rechner-liste li { display: flex; flex-wrap: wrap; gap: .2rem .8rem; justify-content: space-between; padding: .45rem 0; margin: 0; border-bottom: 1px solid var(--haar); font-size: .95rem; line-height: 1.45; }
.rechner-liste b { font-weight: 600; }
.rechner-liste span { color: var(--grau); font-variant-numeric: lining-nums tabular-nums; }
.rechner-liste em { display: block; width: 100%; font-style: normal; font-size: .88rem; color: var(--grau); }
.rechner-balken { height: .55rem; margin: .8rem 0 .2rem; background: var(--haar); overflow: hidden; }
.rechner-balken i { display: block; height: 100%; width: 0; background: var(--petrol); transition: width .2s ease; }
.rechner-balken i.ist-knapp { background: #B07A12; }
.rechner-balken i.ist-wenig { background: var(--warn); }
.rechner-palette { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .7rem; margin: 0 0 1rem !important; padding: 0 !important; }
.rechner-palette li { margin: 0; border: 1px solid var(--haar); overflow: hidden; background: var(--papier); }
.rechner-palette b { display: block; height: 3.4rem; }
.rechner-palette span { display: block; padding: .4rem .5rem .5rem; font-size: .85rem; line-height: 1.35; color: var(--grau); }
.rechner-palette span code { display: block; font-size: .85rem; color: var(--tinte); }
.rechner-buehne { margin: 0 0 .9rem; }
.rechner-wand { display: flex; align-items: flex-end; justify-content: center; min-height: 4rem; padding: .8rem .8rem 0; background: var(--papier); border: 1px solid var(--haar); }
.rechner-bild { background: color-mix(in srgb, var(--petrol) 18%, var(--papier)); border: 1px solid var(--petrol); }
.rechner-moebel { height: .9rem; margin: .55rem .8rem 0; background: var(--haar); }
.rechner-raster { display: grid; justify-content: center; margin: 0 auto; }
.rechner-raster i { background: color-mix(in srgb, var(--petrol) 18%, var(--papier)); border: 1px solid var(--petrol); }
.rechner-fuss { margin: 1rem 0 0 !important; font-size: .85rem; color: var(--grau); }
.rechner-ohne-js { margin: 0 0 1.1rem !important; padding: .7rem .85rem; background: var(--papier); border-left: 3px solid var(--warn); font-size: .92rem; line-height: 1.5; }

/* ---------- Redaktion ---------- */
.autoren-liste { list-style: none; margin: 1.6rem 0 0 !important; padding: 0 !important; }
.autor-karte { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.2rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--haar); }
.autor-karte img { width: 120px; height: 120px; object-fit: cover; }
.autor-karte h2 { margin: .1rem 0 .3rem !important; font-size: 1.6rem !important; }
.autor-kopf { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.autor-kopf img { width: 160px; height: 160px; object-fit: cover; }
.autor-kopf h1 { font-size: clamp(2.3rem, 8vw, 4rem); }
.korrektur { margin-top: 1.6rem !important; }

/* ---------- Fuß ---------- */
.fuss { margin-top: 4.5rem; border-top: 3px double var(--linie); }
.fuss-innen { max-width: var(--breit); margin: 0 auto; padding: 1.8rem var(--rand) 2.4rem; display: grid; gap: 1.8rem; }
.fuss-kopf { display: grid; gap: .6rem; justify-items: center; text-align: center; }
.fuss-marke { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.fuss-marke .marke-name { font-size: 1.9rem; }
.fuss-marke .marke-zusatz { font-size: .85rem; }
.fuss-text { margin: 0; max-width: 36rem; color: var(--grau); font-size: .95rem; }
.fuss-spalten { display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); border-top: 1px solid var(--haar); padding-top: 1.4rem; }
@media (min-width: 900px) { .fuss-spalten { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fuss-spalten a { overflow-wrap: anywhere; }
.fuss-titel { margin: 0 0 .4rem; color: var(--petrol); letter-spacing: .12em; }
.fuss-spalten ul { list-style: none; margin: 0; padding: 0; }
.fuss-spalten li { margin: 0; }
.fuss-spalten a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.fuss-spalten a:hover { text-decoration: underline; }
.fuss-copy { margin: 0; font-size: .88rem; color: var(--grau); text-align: center; }
.fuss-copy a { color: var(--grau); }

/* ---------- Druckansicht ---------- */
@media print {
  :root { --papier: #FFFFFF; --tinte: #000000; --grau: #444444; --petrol: #194246; --linie: #000000; --haar: #BBBBBB; --flaeche: #FFFFFF; --wand: #FFFFFF; --wand-text: #000000; --wand-grau: #444444; }
  html { font-size: 11pt; }
  .nav, .sprung, .reihe, .fuss-spalten, .fuss-text, .druckzeile, .glossar-leiste, .suchform, .begriff-fenster, .verz { display: none !important; }
  .kopf { padding-top: 0; }
  .wand { background: none; color: #000; }
  .gerahmt img, .gerahmt svg { box-shadow: none; outline: 1px solid #000; }
  .wand .schild { box-shadow: none; border-color: #000; }
  .auftakt-raster { grid-template-columns: 1fr; }
  .spalte { max-width: none; }
  a { text-decoration: none; }
  .spalte a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; word-break: break-all; }
  figure, .steckbrief, .kasten, .schild, .rechner, table { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  abbr.begriff { text-decoration: none; }
  .fragen details > div { display: block; }
}

/* Bildnachweise: Liste der Shop-Motive in Spalten (T5) */
.spalte ul.nachweis-motive { columns: 2 14rem; column-gap: 2rem; list-style: none; padding-left: 0; }
.spalte ul.nachweis-motive li { break-inside: avoid; margin-bottom: .25rem; }
