/* BauerLangeArt – Blocklook vom Acker: Himmel oben, Grasnarbe, Erde unten, Werke auf Holzplanken-Kästen */
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/pixelify-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/pixelify-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --himmel: #bfe0ee; --himmel-2: #d8eef6;
  --papier: #fbf6ea; --papier-2: #f1e8d2;
  --erde: #6e482b; --erde-dunkel: #3a2616; --tinte: #2a1d12;
  --gras: #4f8f3b; --gras-hell: #6fb054; --weizen: #e6bd52;
  --text: #2a1d12; --text-leise: #5b4a3a;
  --rand: 3px solid var(--tinte);
  --block: 5px 5px 0 var(--tinte);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--himmel); color: var(--text); font-family: "Rubik", system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gras); font-weight: 500; }
a:hover { color: var(--erde); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--weizen); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: "Pixelify Sans", "Rubik", monospace; font-weight: 700; line-height: 1.1; margin: 0; color: var(--tinte); text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 30px); }
h3 { font-size: 22px; }
p { margin: 0; }
.kicker { font-family: "Pixelify Sans", monospace; font-weight: 500; font-size: 15px; color: var(--gras); letter-spacing: .03em; }

/* Kopf: Himmel mit Grasnarbe als unterer Kante */
.kopf { background: linear-gradient(var(--himmel-2), var(--himmel)); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 18px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinte); }
.marke img { width: 56px; height: auto; background: var(--papier); border: var(--rand); padding: 4px; box-shadow: 4px 4px 0 var(--tinte); }
.marke b { display: block; font-family: "Pixelify Sans", monospace; font-size: clamp(26px, 4vw, 36px); line-height: 1; }
.marke small { display: block; font-size: 15px; color: var(--text-leise); margin-top: 4px; }
.narbe { height: 32px; background: url("../bilder/narbe.png") repeat-x; background-size: 64px 32px; image-rendering: pixelated; }
.menue-band { background: url("../bilder/erde.png"); background-size: 64px; image-rendering: pixelated; border-bottom: var(--rand); }
.menue { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px 14px; }
.menue a { font-family: "Pixelify Sans", monospace; font-weight: 500; font-size: 16px; text-decoration: none; color: var(--tinte); background: var(--papier); border: var(--rand); padding: 6px 12px; box-shadow: 3px 3px 0 var(--tinte); }
.menue a:hover { background: var(--weizen); color: var(--tinte); }
.menue a[aria-current] { background: var(--gras-hell); }
.menue a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinte); }

/* Inhalt mit Seitenleiste */
.rahmen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-block: 32px 64px; }
@media (max-width: 900px) { .rahmen { grid-template-columns: minmax(0, 1fr); } }
.kasten { background: var(--papier); border: var(--rand); box-shadow: var(--block); padding: clamp(18px, 3vw, 32px); }
main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.leiste { display: flex; flex-direction: column; gap: 22px; }
.leiste h2 { font-size: 22px; margin-bottom: 10px; }
.leiste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.leiste li a { display: block; padding: 7px 0; border-bottom: 2px dashed var(--papier-2); text-decoration: none; color: var(--tinte); }
.leiste li a:hover { color: var(--gras); }
.leiste .datum { display: block; font-size: 13px; color: var(--text-leise); }

/* Startseite */
.einstieg { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: center; }
.einstieg-bild { border: var(--rand); box-shadow: 4px 4px 0 var(--tinte); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.einstieg-text { display: flex; flex-direction: column; gap: 14px; }
.einstieg-text p:not(.kicker) { color: var(--text-leise); font-size: 18px; }
@media (max-width: 640px) { .einstieg { grid-template-columns: minmax(0, 1fr); } .einstieg-bild { aspect-ratio: 4 / 3; } }
.block { display: flex; flex-direction: column; gap: 18px; }
.projekte { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.projekt { background: var(--papier-2); border: var(--rand); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.projekt p:not(.kicker) { color: var(--text-leise); font-size: 16px; }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.karte { display: flex; flex-direction: column; text-decoration: none; color: var(--tinte); border: var(--rand); background: var(--papier); box-shadow: 4px 4px 0 var(--tinte); transition: transform .1s, box-shadow .1s; }
.karte img, .karte .leer { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--rand); background: var(--papier-2); }
.karte span { font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 18px; padding: 10px 12px; }
.karte:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinte); color: var(--tinte); }
.karte:hover span { background: var(--weizen); }

.blogliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.blogliste a { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 2px dashed var(--papier-2); text-decoration: none; color: var(--tinte); font-weight: 500; }
.blogliste a:hover { color: var(--gras); }
.blogliste .datum { min-width: 140px; color: var(--text-leise); font-size: 15px; }
.mehr { font-family: "Pixelify Sans", monospace; font-weight: 700; text-decoration: none; }

/* Werkseiten */
.seite { display: flex; flex-direction: column; gap: 16px; }
.seite > p, .seite > h2 { max-width: 70ch; }
.seite > p { color: var(--text-leise); }
.seite > h2 { margin-top: 12px; }
.zurueck { font-family: "Pixelify Sans", monospace; font-size: 16px; text-decoration: none; }
.werk { margin: 10px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.werk figcaption { grid-column: 1 / -1; order: -1; font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 20px; color: var(--tinte); }
.bild { display: block; border: var(--rand); background: var(--papier-2); box-shadow: 3px 3px 0 var(--tinte); }
.bild img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bild:hover { box-shadow: 3px 3px 0 var(--gras); }
.seite .karten { margin-top: 8px; }
.gross { font-size: 22px; font-weight: 700; }
.nfc .bild { max-width: 300px; background: #fff; }
.nfc .bild img { aspect-ratio: auto; object-fit: contain; }

/* Lupe */
.lupe { border: var(--rand); padding: 0; background: var(--papier); max-width: 96vw; max-height: 96vh; }
.lupe::backdrop { background: rgba(42, 29, 18, .85); }
.lupe img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; }
.lupe-zu { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 48px; height: 48px; font: 700 28px/1 "Pixelify Sans", monospace; border: var(--rand); background: var(--weizen); color: var(--tinte); cursor: pointer; box-shadow: 3px 3px 0 var(--tinte); }

/* Fuß: Erde */
.fuss { background: url("../bilder/erde.png"); background-size: 64px; image-rendering: pixelated; color: var(--papier); }
.fuss-narbe { height: 32px; background: var(--himmel) url("../bilder/narbe.png") repeat-x bottom; background-size: 64px 32px; image-rendering: pixelated; }
.fuss .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px 34px; font-family: "Pixelify Sans", monospace; font-size: 16px; }
.fuss-links { display: flex; gap: 18px; }
.fuss a { color: var(--papier); }
.fuss a:hover { color: var(--weizen); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Variante „Scheune trifft Holzkiste“: Holz + Digital ===== */
@font-face { font-family: "Stencil"; src: url("../fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --rot: #9b2f24; --rot-dunkel: #6f1f17; --kohle: #28231f; --gold: #e6bd52; --gras: #3f6b3a;
  --papier: #fbf6ea; --papier-2: #f0e4c8; --tinte: #231a14;
  --pixel: 4px 0 0 var(--tinte), 0 4px 0 var(--tinte), 4px 4px 0 var(--tinte), 8px 8px 0 rgba(35,26,20,.35);
}
body { background: #e9d8b6 url("../bilder/sperrholz.png"); background-size: 512px; }
h1, h2, h3, .karte span, .werk figcaption, .marke b { font-family: "Stencil", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(40px, 6vw, 62px); line-height: .98; }
h2 { font-size: clamp(28px, 3.6vw, 36px); }
.kicker, .datum, .zurueck, .mehr, .leiste .datum { font-family: "Pixelify Sans", monospace; font-weight: 500; text-transform: none; }
.kicker { color: var(--rot); font-size: 15px; }
a { color: var(--rot); }
a:hover { color: var(--gras); }

/* Kopf: Scheunenrot mit digitalem Pixelraster */
.kopf { background: var(--rot) url("../bilder/raster-rot.png"); background-size: 16px; border-bottom: 0; }
.kopf-innen { padding-block: 24px 22px; }
.marke b { color: var(--gold); font-size: clamp(40px, 7vw, 60px); line-height: .95; text-shadow: 3px 3px 0 var(--rot-dunkel); }
.marke small { color: #f6e7d0; font-family: "Pixelify Sans", monospace; font-size: 16px; }
.marke img { box-shadow: 4px 4px 0 var(--rot-dunkel); }
.narbe, .fuss-narbe { display: none; }
/* Menü auf Holzplanke */
.menue-band { background: url("../bilder/planke.png"); background-size: 512px 256px; image-rendering: auto; border-top: 3px solid var(--tinte); border-bottom: 3px solid var(--tinte); }
.menue a { font-family: "Stencil", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: .03em; background: var(--papier); padding: 5px 12px; }
.menue a:hover { background: var(--gold); }
.menue a[aria-current] { background: var(--kohle); color: var(--gold); }

/* Kästen: Papier mit gelasertem Rand und Pixel-Treppenschatten */
.kasten { box-shadow: var(--pixel); position: relative; }
.kasten::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(35,26,20,.22); pointer-events: none; }
.projekt { background: #f3e8cf url("../bilder/sperrholz.png"); background-size: 300px; }
.karte { box-shadow: 4px 4px 0 var(--tinte); }
.karte:hover span { background: var(--gold); }
.karte span { font-size: 21px; }
.werk figcaption { font-size: 22px; }

/* Fuß: Kohle mit Pixelraster, oben Holzleiste */
.fuss { background: var(--kohle) url("../bilder/raster.png"); background-size: 16px; border-top: 10px solid transparent; border-image: url("../bilder/planke.png") 30 round; color: #e9dcc4; }
.fuss .wrap { font-family: "Pixelify Sans", monospace; }
.fuss a { color: var(--gold); }
.datum, .leiste .datum { font-family: "Rubik", sans-serif; font-weight: 500; font-size: 13px; color: var(--text-leise); }
@media (max-width: 640px) { .menue a { font-size: 15px; padding: 4px 9px; } .menue { gap: 6px; } }
/* Lichtenberg-Brandmuster als Hintergrund */
body { background: #e9d8b6 url("../bilder/lichtenberg.jpg"); background-size: 1024px; }
.projekt { background: var(--papier-2); }
/* Menüleiste: Kohle mit Pixelraster statt Holzplanke */
.menue-band { background: var(--kohle) url("../bilder/raster.png"); background-size: 16px; border-top: 3px dashed var(--gold); border-bottom: 3px solid var(--tinte); }
.fuss { border-image: none; border-top: 3px dashed var(--gold); }
.menue a[aria-current] { background: var(--gold); color: var(--tinte); }
/* Projekt-Kachel als Link, Spielseite */
.projekt-link { text-decoration: none; color: var(--tinte); transition: transform .1s, box-shadow .1s; }
.projekt-link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--tinte); color: var(--tinte); }
.spiel-teaser { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
@media (max-width: 640px) { .spiel-teaser { grid-template-columns: minmax(0, 1fr); } }
.spiel-bild img { border: var(--rand); box-shadow: 4px 4px 0 var(--tinte); width: 100%; }
.spiel-text { display: flex; flex-direction: column; gap: 14px; }
.spiel-text p { color: var(--text-leise); }
.knopf { display: inline-block; font-family: "Stencil", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; text-decoration: none; color: var(--tinte); background: var(--gold); border: var(--rand); padding: 10px 22px; box-shadow: 4px 4px 0 var(--tinte); }
.knopf:hover { color: var(--tinte); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinte); }
.klein { font-size: 14px; }
@media (min-width: 641px) { .menue a { font-size: 16px; padding: 5px 9px; } .menue { gap: 7px; } }
/* Album-Ansicht */
.lupe { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; border: 0; background: rgba(28, 22, 18, .96); display: none; touch-action: pan-y; overflow: hidden; }
.lupe[open] { display: flex; align-items: center; justify-content: center; }
.lupe::backdrop { background: rgba(28, 22, 18, .9); }
.lupe-buehne { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; padding: 56px 12px 48px; }
.lupe-buehne img { max-width: min(92vw, 1400px); max-height: calc(100vh - 150px); width: auto; height: auto; border: 3px solid var(--papier); box-shadow: 6px 6px 0 #000; user-select: none; -webkit-user-drag: none; }
.lupe-buehne figcaption { font-family: "Stencil", sans-serif; font-weight: 800; text-transform: uppercase; color: var(--gold); font-size: 20px; text-align: center; }
.lupe-pfeil { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 64px; font: 700 40px/1 "Pixelify Sans", monospace; border: var(--rand); background: var(--gold); color: var(--tinte); cursor: pointer; box-shadow: 3px 3px 0 #000; z-index: 2; }
.lupe-zurueck { left: max(10px, env(safe-area-inset-left)); }
.lupe-vor { right: max(10px, env(safe-area-inset-right)); }
.lupe-zahl { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-family: "Pixelify Sans", monospace; color: var(--papier); font-size: 16px; }
@media (max-width: 640px) { .lupe-pfeil { width: 40px; height: 52px; font-size: 30px; top: auto; bottom: max(8px, env(safe-area-inset-bottom)); transform: none; } }

/* Aufklappmenü Stratifex */
.aufklapp { position: relative; display: inline-flex; }
.unter { display: none; position: absolute; top: 100%; left: 0; z-index: 20; flex-direction: column; gap: 6px; padding: 10px; margin-top: 6px; background: var(--kohle); border: var(--rand); box-shadow: 4px 4px 0 var(--tinte); min-width: 220px; }
.unter::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.aufklapp:hover .unter, .aufklapp:focus-within .unter { display: flex; }
@media (hover: none) { .aufklapp:hover .unter { display: none; } }
.leiste .einzug { padding-left: 14px; margin-bottom: 4px; }
.leiste .einzug a { font-size: 15px; }
.projekt-link p:not(.kicker) { font-weight: 400; }
/* Album mit Bildleiste */
.lupe-fenster { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.lupe-leiste { display: flex; width: 300vw; height: 100%; will-change: transform; transform: translate3d(-100vw,0,0); }
.lupe-platz { width: 100vw; height: 100%; flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 12px 64px; }
.lupe-platz img { max-width: min(92vw, 1400px); max-height: calc(100vh - 170px); width: auto; height: auto; border: 3px solid var(--papier); box-shadow: 6px 6px 0 #000; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lupe-platz figcaption { font-family: "Stencil", sans-serif; font-weight: 800; text-transform: uppercase; color: var(--gold); font-size: 20px; text-align: center; max-width: 90vw; }
.lupe-zu, .lupe-pfeil, .lupe-zahl { z-index: 3; }
.fuss-galerie { border: 2px solid var(--gold); padding: 2px 10px; text-decoration: none; }
.fuss-galerie:hover { background: var(--gold); color: var(--tinte) !important; }
.fuss-links { align-items: center; flex-wrap: wrap; }

/* 404 mit dem Bauern */
.fehlerseite { flex-direction: row; align-items: center; gap: clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.fehlerseite img { width: min(260px, 60%); height: auto; }
.fehlerseite > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.fehlerseite p { color: var(--text-leise); }
