/* HallerLabs Bauernmoderne — Website-Stylesheet
   Quelle der Werte: Designsystem „HallerLabs Bauernmoderne" (tokens.json). Werte hier nur ändern, wenn sie dort geändert wurden. */

@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-black-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/work-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/work-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/work-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wand: #f6f2ea; --wand-papier: #ffffff; --sand: #ead9b8; --tinte: #141210; --grau: #5a554c;
  --rot: #c4432b; --ocker: #d9a441; --blaugrau: #2f4858; --text-auf-dunkel: #ffffff; --rohbau: #b9b2a5;
  --font-schild: "Archivo Black", Impact, "Arial Black", sans-serif;
  --font-text: "Work Sans", Arial, Helvetica, sans-serif;
  --schritt-1: 6px; --schritt-2: 12px; --schritt-3: 16px; --schritt-4: 20px; --schritt-5: 28px; --schritt-6: 36px; --schritt-7: 56px; --schritt-8: 96px;
  --kontur: 3px; --kontur-boden: 6px; --kontur-dach: 14px;
  --rand: var(--schritt-7); --inhalt: 1168px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--wand); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wand); color: var(--tinte); font-family: var(--font-text); font-size: 17px; line-height: 1.5; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.seite { max-width: calc(var(--inhalt) + 2 * var(--rand)); margin: 0 auto; padding: 44px var(--rand) 40px; min-height: 100vh; display: flex; flex-direction: column; gap: var(--schritt-6); }
main { display: flex; flex-direction: column; gap: 48px; }

/* Etikett */
.etikett { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grau); line-height: 1.2; }
.schildschrift { font-family: var(--font-schild); font-weight: 400; text-transform: uppercase; }

/* Kopfzeile */
.kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--schritt-2) var(--schritt-5); padding-bottom: var(--schritt-2); border-bottom: var(--kontur) solid var(--tinte); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.kopf a { color: var(--tinte); text-decoration: none; padding: 8px 0; display: inline-block; }
.kopf a:hover, .kopf a:focus-visible { color: var(--rot); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.kopf nav { display: flex; gap: var(--schritt-5); flex-wrap: wrap; }
.kopf a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Tisch (Startseite) */
.tisch { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: var(--schritt-6); align-items: end; }
.tisch .titelblock { display: flex; flex-direction: column; gap: 18px; }
.akzent { width: 28px; height: 28px; background: var(--rot); }
.titel { font-family: var(--font-schild); font-weight: 400; font-size: 84px; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.zitat { font-size: 20px; line-height: 1.35; max-width: 34em; }
.grundriss { width: 100%; max-width: 760px; height: auto; margin-left: auto; }
.grundriss a { cursor: pointer; }
.grundriss a:hover .raum, .grundriss a:focus-visible .raum { filter: brightness(1.08); }
.grundriss a:focus-visible .raum { stroke-width: 6; }
.grundriss a:focus-visible { outline: none; }
.grundriss .label { font-family: var(--font-schild); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.grundriss .label-eng { letter-spacing: 0.01em; font-size: 10.5px; }
.grundriss .label-hell { fill: var(--text-auf-dunkel); }
.grundriss .label-dunkel { fill: var(--tinte); }
.grundriss .linie { fill: none; stroke: var(--tinte); stroke-width: 3; stroke-linecap: square; }
.raumliste { display: none; }

/* Abschnittsmarke */
.marke { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grau); line-height: 1.2; }
.marke::after { content: ""; flex: 1 1 auto; height: var(--kontur); background: var(--tinte); }
.abschnitt { display: flex; flex-direction: column; gap: var(--schritt-2); }

/* Schilder */
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--schritt-4); }
.schild { display: flex; flex-direction: column; gap: var(--schritt-1); padding: 14px var(--schritt-3); text-decoration: none; min-height: 144px; color: var(--text-auf-dunkel); background: var(--blaugrau); }
.schild:hover, .schild:focus-visible { outline: var(--kontur) solid var(--tinte); outline-offset: 0; }
.schild .nummer { font-family: var(--font-schild); font-size: 30px; line-height: 1; }
.schild .name { font-family: var(--font-schild); font-size: 20px; line-height: 1.05; text-transform: uppercase; }
.schild .unter { font-size: 14px; line-height: 1.3; }
.schild .stand { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: auto; padding-top: var(--schritt-1); }
.schild.werkstatt, .schild.studio { background: var(--blaugrau); color: var(--text-auf-dunkel); }
.schild.galerie, .schild.bar, .schild.heuboden-raum { background: var(--ocker); color: var(--tinte); }
.schild.heuboden { background: var(--rot); color: var(--text-auf-dunkel); }
.schild.buehne { background: var(--tinte); color: var(--text-auf-dunkel); }
.schild.tisch-schild, .schild.kueche { background: var(--wand-papier); color: var(--tinte); border: var(--kontur) solid var(--tinte); }
.schild.zimmer { background: var(--sand); color: var(--tinte); }
.schild.rohbau-schild { background-image: repeating-linear-gradient(135deg, rgba(20,18,16,0.10) 0 3px, transparent 3px 14px); }

/* Räume-Übersicht */
.raeume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--schritt-4); }

/* Raumkopf */
.raumkopf { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--schritt-6); align-items: end; }
.raumkopf .etikett { margin-bottom: var(--schritt-3); }
.raumname { font-family: var(--font-schild); font-weight: 400; font-size: 48px; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: var(--schritt-3); }
.balken { height: 240px; border: var(--kontur) solid var(--tinte); position: relative; background: var(--blaugrau); }
.balken .stand { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-schild); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-auf-dunkel); }
.balken.ocker, .balken.sand, .balken.papier { color: var(--tinte); }
.balken.ocker .stand, .balken.sand .stand, .balken.papier .stand { color: var(--tinte); }
.balken.rot { background: var(--rot); } .balken.ocker { background: var(--ocker); } .balken.sand { background: var(--sand); } .balken.papier { background: var(--wand-papier); } .balken.tinte { background: var(--tinte); }
.zurueck { display: inline-block; margin-top: var(--schritt-4); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinte); text-decoration: none; border-bottom: var(--kontur) solid var(--tinte); padding-bottom: 4px; }
.zurueck:hover, .zurueck:focus-visible { color: var(--rot); border-color: var(--rot); }

/* Text auf Raumseiten */
.text { max-width: 68ch; display: flex; flex-direction: column; gap: var(--schritt-3); }
.text h2 { font-family: var(--font-schild); font-weight: 400; font-size: 24px; line-height: 1.1; text-transform: uppercase; margin-top: var(--schritt-2); }
.text h3 { font-size: 17px; font-weight: 600; }
.text a { color: var(--tinte); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.text a:hover { color: var(--rot); }
.text ul { margin: 0; padding-left: 1.2em; }
.text li + li { margin-top: var(--schritt-1); }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--schritt-6); align-items: start; }

/* Exponat-Tafel (Zeile Exponat) */
.exponat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--schritt-5); padding: var(--schritt-5) 0; border-top: var(--kontur) solid var(--tinte); }
.exponat:last-child { border-bottom: var(--kontur) solid var(--tinte); }
.exponat .schild { min-height: 160px; }
.exponat .text { gap: var(--schritt-2); }
.exponat .text p:first-child { font-size: 20px; line-height: 1.35; }

/* Rohbau */
.rohbau { border: var(--kontur) solid var(--tinte); padding: var(--schritt-5); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--schritt-5); align-items: center; background-image: repeating-linear-gradient(135deg, var(--rohbau) 0 3px, transparent 3px 14px); }
.rohbau .feld { background: var(--wand); border: var(--kontur) solid var(--tinte); height: 132px; display: flex; align-items: center; justify-content: center; font-family: var(--font-schild); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.rohbau .text { background: var(--wand); padding: var(--schritt-3); gap: var(--schritt-1); }

/* Knopf, Link-Tafel */
.knopf { display: inline-block; padding: 14px 20px; border: var(--kontur) solid var(--tinte); background: var(--tinte); color: var(--text-auf-dunkel); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; align-self: flex-start; }
.knopf:hover, .knopf:focus-visible { background: var(--rot); border-color: var(--rot); }
.knopf.hell { background: var(--wand); color: var(--tinte); }
.knopf.hell:hover, .knopf.hell:focus-visible { background: var(--tinte); color: var(--text-auf-dunkel); border-color: var(--tinte); }
.tafel { border: var(--kontur) solid var(--tinte); padding: var(--schritt-5); display: flex; flex-direction: column; gap: var(--schritt-2); background: var(--wand-papier); }
.tafel .etikett { margin-bottom: 2px; }

/* Fußzeile */
.fuss { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--schritt-2) var(--schritt-5); padding-top: var(--schritt-4); border-top: var(--kontur) solid var(--tinte); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grau); }
.fuss a { color: var(--grau); text-decoration: none; padding: 6px 0; display: inline-block; }
.fuss a:hover, .fuss a:focus-visible { color: var(--rot); }
.fuss nav { display: flex; gap: var(--schritt-4); flex-wrap: wrap; }

/* Handy und Tablet */
@media (max-width: 1100px) {
  .tisch { grid-template-columns: 300px minmax(0, 1fr); }
  .titel { font-size: 64px; }
}
@media (max-width: 900px) {
  :root { --rand: 24px; }
  .seite { padding-top: 24px; }
  .tisch { grid-template-columns: 1fr; align-items: start; }
  .grundriss { margin-left: 0; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raeume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raumkopf { grid-template-columns: 1fr; }
  .balken { height: 96px; order: -1; }
  .zweispaltig { grid-template-columns: 1fr; }
  .exponat { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --rand: 16px; }
  .titel { font-size: 48px; }
  .raumname { font-size: 36px; }
  .zitat { font-size: 18px; }
  .raster, .raeume { grid-template-columns: 1fr; }
  .rohbau { grid-template-columns: 1fr; }
  .rohbau .feld { height: 72px; }
  .kopf nav { gap: var(--schritt-4); }
}
@media (max-width: 900px) {
  .raumliste { display: block; margin-top: var(--schritt-3); }
  .raumliste ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .raumliste a { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--tinte); display: inline-block; padding: 8px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .schild, .knopf, .kopf a, .zurueck { transition: background-color 120ms linear, color 120ms linear, outline-color 120ms linear; }
}
@media print {
  .kopf nav, .fuss { display: none; }
}

/* Nachträge Prüfung 08.11.2026 */
.text a.knopf { color: var(--text-auf-dunkel); text-decoration: none; }
.text a.knopf:hover, .text a.knopf:focus-visible { color: var(--text-auf-dunkel); }
.exponat { align-items: start; }
.abschnitt > .exponat:first-of-type { border-top: 0; padding-top: var(--schritt-3); }
.zweispaltig > .exponat { border-top: 0; padding-top: 0; }

.kopf .sprache { border: var(--kontur) solid var(--tinte); padding: 4px 8px; line-height: 1; }
.kopf .sprache:hover, .kopf .sprache:focus-visible { background: var(--tinte); color: var(--text-auf-dunkel); text-decoration: none; }
