/* bernhardsandfort.de – statischer Nachbau der WordPress-Seite (Bricks), intro – Werbung und Design, 12/2026
   Werte am Original gemessen (390 / 768 / 1440 px). Fluide Größen interpolieren zwischen 390 und 1440 px. */

@font-face {
  font-family: "Poppins";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/poppins-300.woff2") format("woff2");
}

:root {
  --rot: #e12020;
  --rot-dunkel: #700f0f;
  --grau-grund: #a1a0a0;
  --grau-footer: #e5e5e5;
  --creme: #f6f2ec;
  --text: #1a1a1a;
  --weiss: #ffffff;
  --titel-hell: #f2f2f2;
  --rosa-hell: #fbe9ea;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --poppins: "Poppins", var(--sans);

  --fs-text: clamp(16px, 15.44px + 0.178vw, 18px);
  --fs-h3: clamp(16.6px, 12.1px + 1.16vw, 28.8px);
  --sektion-x: clamp(29px, 12.44vw - 19.15px, 160px);
  --sektion-y: clamp(33px, 27.52px + 1.422vw, 48px);
  --kopf-pad: clamp(16.5px, 13.77px + 0.71vw, 24px);

  --schatten-bild:
    2.8px 2.8px 2.2px 0 rgba(0, 0, 0, 0.02),
    0 6.7px 5.3px -5px rgba(0, 0, 0, 0.04),
    0 12.5px 10px -5px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px -5px rgba(0, 0, 0, 0.08),
    0 41.8px 33.4px -5px rgba(0, 0, 0, 0.1),
    0 80px 80px -5px rgba(0, 0, 0, 0.106);
}

/* ---------- Grundlagen ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-text);
  line-height: 1.5;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .zitat, .nachlass-name, .fuss-name { margin: 0; line-height: 1.2; font-weight: 700; text-wrap: pretty; text-rendering: optimizeLegibility; }
p { margin: 0; }
a { color: var(--rot); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--weiss); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  padding: 8px 14px; background: var(--rot); color: var(--weiss);
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 998;
  transition: background-color .2s, transform .4s;
}
.kopf.ist-weg { transform: translateY(-100%); }
.kopf-innen {
  display: flex; flex-direction: row; justify-content: flex-end; align-items: center;
  padding: var(--kopf-pad);
  background: var(--grau-grund);
}
.kopf-logo { display: none; }

.menue { display: flex; flex-direction: row; }
.menue > li { position: relative; margin-left: 25px; }
.menue > li > a,
.menue .untermenue-schalter {
  display: flex; align-items: center;
  padding: 3px 10px;
  font-size: 18px; line-height: 27px; font-weight: 500;
  text-transform: uppercase; color: var(--weiss);
  transition: all .1s;
}
.menue .untermenue-schalter svg { width: 1em; height: 1em; margin-left: 13px; }
.menue > li:hover > a,
.menue > li:hover > .untermenue-schalter { color: rgba(255, 255, 255, .7); }
.menue > li.aktiv > a,
.menue > li.aktiv > .untermenue-schalter { background: var(--rot); color: var(--weiss); }

.untermenue {
  position: absolute; top: 100%; left: 0; z-index: 998;
  min-width: 150px; white-space: nowrap;
  background: var(--grau-footer);
  opacity: 0; visibility: hidden; transition: all .1s;
}
.menue > li.offen > .untermenue,
.menue > li:hover > .untermenue,
.menue > li:focus-within > .untermenue { opacity: 1; visibility: visible; }
.untermenue a {
  display: flex; padding: 5px 20px;
  font-size: 18px; line-height: 27px; color: #000;
  transition: all .1s;
}
.untermenue li:hover { background: var(--rot); }
.untermenue li:hover > a { color: var(--rosa-hell); }
.untermenue li.aktiv > a { background: var(--rot); color: var(--weiss); }

.burger { display: none; position: relative; width: 30px; height: 16px; color: var(--weiss); z-index: 1000; }
.burger span {
  position: absolute; right: 0; display: block; width: 30px; height: 2px;
  background: currentColor; transition: all .1s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }

.mobilmenue { display: none; }

@media (max-width: 991px) {
  .menue > li { margin-left: 20px; }
  .menue > li > a, .menue .untermenue-schalter { font-size: 15px; line-height: 22.5px; }
}

@media (max-width: 767px) {
  .kopf-innen { justify-content: space-between; }
  .kopf-logo {
    display: flex; order: 1;
    background: var(--rot);
    border: max(1px, .4vw) solid var(--weiss);
  }
  .kopf-logo img { width: 50px; height: 50px; }
  .kopf-innen > nav:not(.mobilmenue) { display: none; }
  .burger { display: block; order: 3; }

  .mobilmenue {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    background: rgba(230, 230, 230, .95);
    opacity: 0; visibility: hidden; transform: translateX(-100%);
    transition: opacity .2s, transform .2s, visibility .2s;
    overflow-y: auto;
  }
  .menue-offen .mobilmenue { opacity: 1; visibility: visible; transform: none; }
  .menue-offen .burger { color: var(--rot); transform: translate(-5px, 26px); }
  .menue-offen .burger span:nth-child(1) { top: 50%; transform: rotate(45deg); }
  .menue-offen .burger span:nth-child(2) { opacity: 0; }
  .menue-offen .burger span:nth-child(3) { top: 50%; transform: rotate(-45deg); }
  .menue-offen { overflow: hidden; }

  .mobilmenue > ul > li > a,
  .mobilmenue .untermenue-schalter {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 5px;
    font-size: 1.5em; font-weight: 600; line-height: 60px; color: #000;
    transition: all .1s;
  }
  .mobilmenue > ul > li > a:hover { font-size: 2.5em; }
  .mobilmenue .untermenue-schalter svg { width: 1em; height: 1em; margin-left: 8px; }
  .mobilmenue .untermenue-schalter svg path { stroke-width: 2; }
  .mobilmenue .untermenue-m { display: none; }
  .mobilmenue li.offen > .untermenue-m { display: block; }
  .mobilmenue .untermenue-m a { display: inline-block; padding: 0 45px; font-size: 1.3em; line-height: 60px; color: #000; }
  .mobilmenue li.aktiv > a,
  .mobilmenue li.aktiv > .untermenue-schalter,
  .mobilmenue a[aria-current="page"],
  .mobilmenue a:active { color: var(--rot); }
}

/* ---------- Startseite ---------- */
.start {
  display: flex; flex-direction: column;
  padding: 2vw var(--sektion-x) var(--sektion-y);
  background: var(--grau-grund);
}
.start-innen { display: flex; flex-direction: row; width: 100%; }
.start-links {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; max-width: 20vw;
}
.start-rechts {
  --slider: min(80vh, 100vw - 2 * var(--sektion-x) - 21vw);
  display: flex; justify-content: flex-end;
  flex: 1 1 auto;
}

/* Logo, das sich beim Überfahren dreht (Flipbox) */
.flipbox { position: relative; display: block; width: 14vw; height: 14vw; perspective: 1000px; }
.flipbox-seite {
  position: absolute; inset: 0;
  border: .3vw solid var(--weiss);
  background-position: left top; background-size: cover;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .65s ease-in-out;
}
.flipbox-vorn {
  background-color: var(--rot);
  background-image: url("/img/bernhard-sandfort-logo-schrift-weiss.svg");
  transform: rotateX(0) rotateY(0);
}
.flipbox-hinten {
  background-color: #e0e0e0;
  background-image: url("/img/bernhard-sandfort-mannheim-kuenstler-portraet-400w.webp");
  transform: rotateX(0) rotateY(180deg);
}
.flipbox:hover .flipbox-vorn, .flipbox:focus-visible .flipbox-vorn { transform: rotateX(0) rotateY(-180deg); }
.flipbox:hover .flipbox-hinten, .flipbox:focus-visible .flipbox-hinten { transform: rotateX(0) rotateY(0); }

.nachlass { display: flex; flex-direction: column; max-width: 15em; z-index: 100; }
.nachlass h2 { font-size: var(--fs-text); }
.nachlass p.nachlass-name { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.nachlass a { display: inline-flex; align-self: flex-start; line-height: 1.5; }

.zitat {
  font-size: clamp(18px, 11.74px + .851vw, 24px);
  font-weight: 500; line-height: 1.2; color: var(--weiss);
}

/* Slider */
.slider {
  position: relative;
  width: var(--slider); height: var(--slider); flex: 0 0 auto;
}
.slider-buehne { position: relative; width: 100%; height: 100%; box-shadow: var(--schatten-bild); }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
.slide.aktiv { opacity: 1; pointer-events: auto; z-index: 1; }
.slide img {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1; object-fit: cover;
  border: 1vw solid var(--weiss);
}
.slider-pfeil {
  position: absolute; top: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-top: -25px;
  color: var(--weiss); font-size: 4vw;
}
.slider-pfeil svg { width: 1em; height: 1em; fill: currentColor; }
.slider-zurueck { left: -80px; }
.slider-vor { right: -80px; }

@media (max-width: 991px) {
  .start-innen { column-gap: 1vw; }
  /* Korrektur gegenüber dem Original: dort ragt der Slider bei Tablet-Breite über den Text.
     Slider passt sich hier der freien Breite an, die Pfeile stehen rechts unter dem Bild. */
  .slider-pfeil { top: calc(100% + 16px); margin-top: 0; font-size: 34px; }
  .slider-zurueck { left: auto; right: 19px; }
  .slider-vor { right: -11px; }
  .start-rechts { padding-bottom: 60px; }
}

@media (max-width: 767px) {
  .start { padding-top: 2vw; }
  .start-rechts { padding-bottom: 0; }
  .start-innen { flex-direction: column-reverse; row-gap: 12vw; }
  .start-links { max-width: 100%; }
  .start-rechts { --slider: 100%; width: 100%; }
  .slider { aspect-ratio: 1 / 1; height: auto; }
  .flipbox { display: none; }
  .nachlass { min-width: 80vw; max-width: 80vw; margin-bottom: 5vw; }
  .zitat { order: -1; max-width: 50vw; width: 15em; margin-bottom: 5vw; }
  .slider-pfeil { top: calc(100% + 42px); margin-top: 0; font-size: 7vw; }
  .slider-zurueck { left: auto; right: 19px; }
  .slider-vor { right: -11px; }
}
@media (max-width: 478px) {
  .start { min-height: calc(85vh); justify-content: center; }
  .start-innen { margin-bottom: 20vw; }
  .start-links { width: 70vw; max-width: 70vw; }
  .zitat { font-size: 18px; }
}

/* ---------- Unterseiten: Titelbild ---------- */
.titel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 3vw var(--sektion-x) 4vw;
  background-color: #555;
}
.titel-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.titel::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .61), rgba(0, 0, 0, 0) 50%);
}
.titel-innen {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  height: 30vw; min-height: 230px; margin: 0 10px;
}
.titel-logo {
  display: block; width: 14vw;
  background: var(--rot); border: .35vw solid var(--weiss);
}
.titel-logo img { width: 100%; height: auto; }
.titel h1 {
  font-size: clamp(21.4px, 13.91px + 1.914vw, 41.5px); line-height: 1.2;
  color: var(--titel-hell);
}
@media (max-width: 767px) {
  .titel-logo { display: none; }
  .titel-innen { justify-content: flex-end; margin: 0; }
}

/* ---------- Sektionen ---------- */
.sektion { display: flex; flex-direction: column; align-items: center; padding: var(--sektion-y) var(--sektion-x); }
.sektion-grau { background: var(--grau-grund); }
.sektion-weiss { background: var(--weiss); }
.innen { width: calc(100% - 20px); margin: 0 10px; }
.jahr { color: var(--rot-dunkel); font-weight: 700; }
.eintrag { padding-bottom: .6em; }
.liste-zweispaltig { column-count: 2; column-gap: 7%; }
.liste-zweispaltig > * { break-inside: avoid; }
.liste-zweispaltig > * + * { margin-top: 1em; }
.zwischentitel { font-size: var(--fs-text); color: var(--rot-dunkel); }
.schatten-l {
  box-shadow: 0 2.7px 3.6px -5px rgba(0, 0, 0, .04), 0 7.5px 10px -5px rgba(0, 0, 0, .06),
              0 18px 24.1px -5px rgba(0, 0, 0, .08), 0 60px 80px -5px rgba(0, 0, 0, .1);
}
.rahmen { border: .4vw solid var(--weiss); }
.rahmen img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .sektion-randlos { padding-left: 0; padding-right: 0; }
  .liste-zweispaltig { column-count: 1; }
}
@media (max-width: 478px) {
  .sektion-randlos { padding-left: 8vw; padding-right: 8vw; }
  .innen { width: 100%; margin: 0; }
  .rahmen { border-width: max(1.5px, .4vw); }
}

/* Einfahren beim Scrollen (wie im Original: von links/rechts, 1 s, einmalig) */
@keyframes einLinks { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes einRechts { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
.js [data-ein] { opacity: 0; }
.js [data-ein].ist-sichtbar { animation: 1s both; }
.js [data-verz="05"].ist-sichtbar { animation-delay: .5s; }
.js [data-verz="1"].ist-sichtbar { animation-delay: 1s; }
.js [data-ein="links"].ist-sichtbar { animation-name: einLinks; }
.js [data-ein="rechts"].ist-sichtbar { animation-name: einRechts; }
main { overflow-x: clip; }

/* Fotoband (bleibt beim Scrollen stehen) */
.band { position: relative; height: 30vw; min-height: 300px; clip-path: inset(0); }
.band-bild { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; pointer-events: none; }
/* Touchgeräte (iOS kann fixierte Hintergründe nicht): Bild scrollt normal mit */
@media (hover: none) { .band-bild { position: absolute; width: 100%; height: 100%; } }

/* ---------- Biografie ---------- */
.bio-paar { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; }
.bio-bild { width: 30vw; height: 30vw; z-index: 50; flex: 0 0 auto; }
.bio-karte {
  display: flex; flex-direction: column; justify-content: center;
  width: 28em; height: 28em; min-width: 32vw; min-height: 32vw;
  margin-top: 30px; background: var(--weiss);
}
.bio-karte-links { margin-left: -2.5vw; padding: 2.5vw 2.5vw 2.5vw 5vw; }
.bio-karte-rechts { margin-right: -2.5vw; padding: 2.5vw 5vw 2.5vw 2.5vw; }
@media (max-width: 767px) {
  .bio-karte { width: 60vw; min-width: 0; }
}
@media (max-width: 478px) {
  .bio-paar { flex-direction: column; align-items: center; }
  .bio-paar.umgekehrt { flex-direction: column-reverse; }
  .bio-bild { width: 80vw; height: 75vw; }
  .bio-karte { width: 80vw; height: auto; min-height: 0; margin: 0; padding: 10vw 5.7vw 10vw 5vw; }
  .bio-karte-rechts { padding: 10vw 5vw 10vw 2.5vw; }
}

/* ---------- Werk-Karussell mit Knopf „Arbeiten“ ---------- */
.werkband { position: relative; width: 100%; overflow: hidden; }
.werkband-spur { display: flex; gap: 5px; will-change: transform; }
.werkband-spur.mit-uebergang { transition: transform 1s ease; }
.werkband-spur > * { flex: 0 0 calc((100% - 15px) / 4); }
.werkband-spur img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.werkband-pfeil {
  position: absolute; top: 50%; z-index: 11; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  color: var(--weiss); font-size: 4vw; filter: drop-shadow(0 0 3px #000);
}
.werkband-pfeil svg { width: 1em; height: 1em; fill: currentColor; }
.werkband-zurueck { left: 10px; }
.werkband-vor { right: 10px; }
.knopf-arbeiten {
  position: absolute; top: 50%; left: 50%; z-index: 50; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  padding: .5em 1em; background: var(--rot); color: var(--weiss); line-height: 1.5;
}
/* Einheitlicher Hover für alle Knöpfe: Fläche dunkelrot, Schrift weiß, Pfeil rückt etwas ab */
.knopf-arbeiten, .knopf-creme, .mehr-knopf, .filter-reset, .formular button {
  transition: background-color .3s ease, color .3s ease, gap .3s ease;
}
.knopf-arbeiten:hover, .knopf-arbeiten:focus-visible,
.knopf-creme:hover, .knopf-creme:focus-visible,
.mehr-knopf:hover, .mehr-knopf:focus-visible,
.filter-reset:not(:disabled):hover, .filter-reset:not(:disabled):focus-visible,
.formular button:not(:disabled):hover, .formular button:not(:disabled):focus-visible {
  background: var(--rot-dunkel); color: var(--weiss);
}
.knopf-arbeiten:hover, .knopf-arbeiten:focus-visible, .knopf-creme:hover, .knopf-creme:focus-visible { gap: 14px; }
.knopf-arbeiten svg { width: 1em; height: 1em; fill: currentColor; }
@media (max-width: 767px) { .werkband-pfeil { font-size: 7vw; } }
@media (max-width: 478px) { .werkband-spur > * { flex-basis: calc((100% - 10px) / 3); } }

/* ---------- Gesellschaftspolitische Impulse ---------- */
.impuls-oben { display: flex; flex-direction: row; align-items: flex-start; }
.impuls-bilder { display: flex; flex-direction: column; width: 35vw; margin-right: -8vw; z-index: 30; flex: 0 0 auto; }
.impuls-bild { height: 20vw; max-height: 20vw; margin-top: 5vw; }
.impuls-bild:first-child { margin-right: 2vw; }
.impuls-bild + .impuls-bild { margin-top: 2vw; margin-left: 2vw; }
.impuls-karte { width: 50vw; padding: 3.75vw 3.75vw 3.75vw 15vw; background: var(--weiss); }
.impuls-karte > * + * { margin-top: 1.5em; }
.impuls-karte p + p, .impuls-unten-text p + p { margin-top: 1.5em; }
.weiter-pfeil { display: inline-flex; color: var(--rot); }
.weiter-pfeil svg { width: 20px; height: 20px; fill: currentColor; }
.impuls-unten { display: flex; flex-direction: row; align-items: flex-start; column-gap: 5vw; }
.impuls-unten-bild { width: 30vw; min-width: 400px; flex: 0 0 auto; }
.impuls-unten-bild img { width: 100%; height: auto; }
@media (max-width: 767px) {
  .impuls-oben { justify-content: center; }
  .impuls-karte { width: 65vw; }
}
@media (max-width: 478px) {
  .impuls-oben { flex-direction: column; }
  .impuls-bilder { flex-direction: row; width: 100%; margin: 0; gap: 4vw; }
  .impuls-bild, .impuls-bild + .impuls-bild { flex: 1; height: 30vw; max-height: 30vw; margin: 0; }
  .impuls-karte { width: 100%; padding: 30px 3vw; }
  .impuls-unten { flex-direction: column; }
  .impuls-unten-text { padding: 0 3vw; margin-bottom: 10vw; }
  .impuls-unten-bild { width: 100%; min-width: 0; }
}

/* ---------- Bibliografie ---------- */
.biblio-oben { display: flex; flex-direction: row; align-items: stretch; }
.biblio-bild { display: flex; width: 25vw; margin: 10vw -2vw 16vw 0; z-index: 10; flex: 0 0 auto; overflow: hidden; }
.biblio-bild img { width: 100%; height: 100%; object-fit: cover; }
.biblio-karte { flex: 1; padding: 3.75vw 3.75vw 3.75vw 8vw; background: var(--weiss); }
.biblio-karte .liste-zweispaltig, .biblio-unten .liste-zweispaltig { margin-top: 0; }
.biblio-unten { position: relative; display: flex; flex-direction: row; align-items: stretch; }
.biblio-unten-text { flex: 1; }
.biblio-unten-text .liste-zweispaltig { margin-top: 3vw; }
.biblio-sticky {
  position: sticky; top: 0; z-index: 100; flex: 0 0 auto;
  width: 25vw; min-width: 250px; height: 100vh; margin: 2.5vw 0 0 2.5vw; overflow: hidden;
}
.biblio-sticky img { width: 100%; height: 100%; object-fit: cover; }
/* Seitliches Parallax wie simpleParallax im Original (orientation right, scale 1.5, delay .6) */
[data-parallax] { transform: scale(1.5); transition: transform .6s cubic-bezier(0, 0, 0, 1); will-change: transform; }
@media (max-width: 478px) {
  .biblio-oben { flex-direction: column-reverse; }
  .biblio-bild { width: 100%; height: 250px; margin: 0; }
  .biblio-karte { padding: 30px 5vw; }
  .biblio-unten { flex-direction: column; }
  .biblio-sticky { position: relative; width: 100%; height: 50vh; margin: 8vw 0 0; }
}

/* ---------- Ausstellungen ---------- */
.aktuell-box {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-top: 2vw; padding: 1.5vw;
  background: rgba(9, 60, 68, .5); color: var(--rosa-hell);
}
.aktuell-box h2 { font-size: var(--fs-h3); color: var(--text); }
.ausst-block { position: relative; display: flex; flex-direction: row; align-items: flex-start; margin-top: 10vw; }
.ausst-bilder {
  position: sticky; top: 0; display: grid; grid-template-columns: 1fr; row-gap: 1vw;
  width: 30%; flex: 0 1 auto; padding: 1.5vw; background: var(--grau-footer);
}
.ausst-bilder img { width: 100%; max-height: 15em; min-height: 24vh; object-fit: cover; aspect-ratio: 1 / 1; }
.ausst-listen { position: relative; flex: 1; padding: 1.5vw; background: var(--grau-footer); }
.reiter { position: absolute; right: 1.5vw; bottom: 100%; display: flex; gap: .5em; margin-bottom: 1vw; }
.reiter button { padding: 3px 20px; background: var(--grau-footer); color: var(--text); line-height: 1.5; }
.reiter button[aria-selected="true"] { background: var(--rot); color: var(--titel-hell); }
.reiter-inhalt { padding: 20px; }
.reiter-inhalt h2 { font-size: var(--fs-h3); }
.reiter-inhalt .auswahl { margin: 1em 0 5vw; }
.ausst-text { width: 60vw; margin-top: 5vw; margin-bottom: 4.5vw; font-size: var(--fs-h3); line-height: 1.5; }
.fotoband { position: relative; width: 75vw; margin-bottom: 10vw; }
.fotoband-fenster { overflow: hidden; }
.fotoband .werkband-spur { gap: 10px; }
.fotoband .werkband-spur > * { flex-basis: calc((100% - 30px) / 4); }
.fotoband .werkband-spur img { aspect-ratio: auto; height: 13vw; }
.fotoband .werkband-pfeil { color: var(--rot); filter: none; }
.fotoband .werkband-zurueck { left: -50px; }
.fotoband .werkband-vor { right: -50px; }
.werkband-hoch .werkband-spur img { aspect-ratio: auto; height: 23vw; }
@media (max-width: 767px) {
  .ausst-block { flex-direction: column; }
  .ausst-bilder { position: relative; width: 100%; grid-template-columns: 1fr 1fr; }
  .ausst-listen { margin-top: 70px; width: 100%; }
}
@media (max-width: 478px) {
  .ausst-bilder { gap: 5px; }
  .reiter button { background: var(--weiss); }
  .ausst-text { width: 100%; }
  .fotoband { width: 100%; }
  .fotoband .werkband-spur > * { flex-basis: calc((100% - 10px) / 2); }
  .fotoband .werkband-spur img { height: 30vw; }
  .fotoband .werkband-zurueck { left: 0; }
  .fotoband .werkband-vor { right: 0; }
}

/* ---------- Kontakt ---------- */
.kontakt { flex-direction: row; align-items: stretch; padding-top: 8vw; padding-bottom: 10vw; }
.kontakt-karte {
  flex: 0 0 auto; max-width: 300px; padding: 2.5vw; margin-top: 0;
  background: var(--grau-footer); border: .4vw solid var(--weiss);
  box-shadow: 0 2.7px 3.6px -5px rgba(0, 0, 0, .04), 0 7.5px 10px -5px rgba(0, 0, 0, .06), 0 18px 24.1px -5px rgba(0, 0, 0, .08);
}
.kontakt-karte .k-name, .kontakt-karte .k-ort { font-size: clamp(20px, 18.6px + .38vw, 24px); line-height: 1.5; font-weight: 700; }
.kontakt-karte .k-name { color: var(--rot); }
.kontakt-karte .k-hinweis { font-size: var(--fs-text); line-height: 1.2; margin-bottom: 4vw; }
.kontakt-karte a.k-web { display: inline-flex; margin-bottom: 4vw; }
.kontakt-formular { flex: 1; padding: 0 2.5vw 2.5vw; }
.kontakt-formular h2 { font-size: var(--fs-h3); margin-bottom: 3vw; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 50px; }
.formular .voll { grid-column: 1 / -1; }
.formular label { display: block; margin-bottom: 5px; color: var(--weiss); }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  width: 100%; height: 42px; padding: 0 12px;
  font: inherit; color: var(--text);
  background: var(--weiss); border: 1px solid #dddedf; border-radius: 0;
}
.formular textarea { display: block; height: 170px; padding: 10px 12px; resize: vertical; }
@media (min-width: 992px) { .formular textarea { height: 240px; } }
.formular .zustimmung { display: flex; align-items: baseline; gap: 8px; }
.formular .zustimmung input { flex: 0 0 auto; margin: 0; transform: translateY(1px); }
.formular .zustimmung label { display: block; margin: 0; }
.formular .zustimmung a { color: var(--weiss); text-decoration: underline; text-underline-offset: 2px; }
.formular .zustimmung a:hover, .formular .zustimmung a:focus-visible { color: var(--rot-dunkel); }
.formular .honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .absenden { display: flex; justify-content: flex-end; align-items: flex-start; }
.formular button { padding: 5px 20px; background: #c71414; color: var(--weiss); }
.formular button:disabled { opacity: .6; cursor: wait; }
.formular-meldung { grid-column: 1 / -1; min-height: 1.5em; }
.formular-meldung.ok { color: var(--weiss); font-weight: 700; }
.formular-meldung.fehler { color: var(--rot-dunkel); font-weight: 700; }
@media (max-width: 767px) {
  .kontakt { flex-direction: column; }
  .kontakt-karte { max-width: none; }
  .kontakt-formular { padding: 4rem 0 0; }
}
@media (max-width: 478px) {
  .kontakt { padding-left: 5vw; padding-right: 5vw; }
  .formular { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Impressum, Datenschutz ---------- */
.rechtstext { padding: 3.75vw 3.75vw 3.75vw 8vw; background: var(--creme); }
.rechtstext-kontakte { display: grid; grid-template-columns: 1fr 1fr; gap: 2em 2.5vw; margin-bottom: 4.5vw; }
.rechtstext-text { padding-right: 10vw; }
.rechtstext-text h2 { font-size: var(--fs-text); margin: 1.5em 0 .5em; }
.rechtstext-text h3 { font-size: var(--fs-text); margin: 1.2em 0 .4em; }
.rechtstext-text p + p, .rechtstext-text ul { margin-top: .8em; }
.rechtstext-text ul { padding-left: 1.2em; }
.datenschutz .rechtstext { padding-right: 25vw; }
@media (max-width: 478px) {
  .rechtstext { padding: 30px 8vw; }
  .datenschutz .rechtstext { padding-right: 8vw; }
  .rechtstext-kontakte { grid-template-columns: 1fr; }
  .rechtstext-text { padding-right: 0; }
}

/* ---------- 404 ---------- */
.fehlerseite { min-height: 30vh; }
.fehlerseite .aufruf { font-size: var(--fs-h3); font-weight: 700; color: var(--weiss); }
.fehlerseite .knoepfe { display: flex; flex-wrap: wrap; gap: 1em; margin-top: 1em; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .9); color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 120px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; }
.lightbox figcaption { padding: 10px 0 0; font-size: 14px; line-height: 18px; text-align: center; color: #eee; }
.lightbox-zaehler { position: absolute; top: 18px; left: 20px; font-size: 14px; color: #ccc; }
.lightbox button { position: absolute; color: #fff; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; opacity: .8; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox button svg { width: 34px; height: 34px; fill: currentColor; }
.lightbox-zu { top: 8px; right: 10px; }
.lightbox-zurueck { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-vor { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 478px) { .lightbox figure { max-width: 100vw; } .lightbox-zurueck, .lightbox-vor { top: auto; bottom: 10px; transform: none; } }

/* ---------- Arbeiten ---------- */
.arbeiten-intro h2 { max-width: 30em; font-size: var(--fs-h3); color: var(--weiss); }
.arbeiten-intro h2 + h2 { margin-bottom: 3.75vw; }
.filter { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
.filter-feld { margin-bottom: 28.8px; }
.filter-feld > .filter-titel, .filter-feld legend { display: block; margin: 0 0 24px; padding: 0; font-size: 20px; line-height: 1.2; font-weight: 400; color: var(--weiss); }
.filter-feld fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter select {
  width: 100%; height: 40px; padding: 6px 48px 6px 8px;
  font: inherit; font-size: 16px; color: #000;
  background: #fff url("/img/pfeil-auswahl.svg") no-repeat right 8px center / 24px;
  border: 2px solid #c7c7c7; border-radius: 4px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.filter select:focus-visible { outline: 2px solid var(--rot); outline-offset: 1px; }
.filter option:disabled { color: #b5b5b5; }
.bereich { position: relative; height: 22px; margin: 0 0 8px; }
.bereich-spur { position: absolute; top: 8px; left: 0; right: 0; height: 6px; background: rgba(204, 204, 204, .4); }
.bereich-fuellung { position: absolute; top: 0; bottom: 0; background: #fff; }
.bereich input[type=range] {
  position: absolute; top: 0; left: -8px; width: calc(100% + 16px); height: 22px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.bereich input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #dd3333; pointer-events: auto; cursor: pointer;
}
.bereich input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #dd3333; pointer-events: auto; cursor: pointer;
}
.bereich input[type=range]::-webkit-slider-runnable-track { background: none; }
.bereich input[type=range]::-moz-range-track { background: none; }
.bereich input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--weiss); }
.bereich-werte { font-size: 14px; color: var(--weiss); }
.filter-reset {
  padding: 12px 36px; border-radius: 4px;
  font-size: 18px; line-height: 20px; font-weight: 500; color: #fff; background: #f85464;
}
.filter-reset:disabled { opacity: .5; cursor: default; }
.werkraster { position: relative; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.js .werkraster { display: block; transition: height .4s ease; }
.js .werk { position: absolute; top: 0; left: 0; transition: transform .7s ease, opacity .7s ease; }
.werk.neu { opacity: 0; }
.werk[hidden] { display: none; }
.werk-knopf {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  text-align: center; color: #fff; perspective: 1200px;
}
.werk-knopf img {
  width: 100%; height: auto;
  transform-origin: 50% 0; transition: opacity .35s ease-in-out, transform .35s ease-in-out;
}
.werk-overlay {
  position: absolute; inset: 0; background: var(--rot);
  opacity: 0; transform: translate3d(0, -100%, 0); transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}
.werk-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 20px; opacity: 0;
  transform-origin: 50% 100%; transform: perspective(1200px) translate3d(0, -100%, 0) rotateX(90deg);
  transition: opacity .35s ease-in-out, transform .35s ease-in-out;
}
.werk-titel { margin: 0 .5em; font-size: 1.2em; line-height: 1.2; font-weight: 500; opacity: 0; transform: translate3d(0, 100%, 0); transition: all .5s ease-in-out .1s; }
.werk-jahr { margin: .5em 1em 0; font-size: .9em; line-height: 1; opacity: 0; transform: translate3d(0, 100%, 0); transition: all .3s ease-in-out .5s; }
.werk-material { margin: .5em 1em 0; font-size: .7em; line-height: 1; opacity: 0; transform: translate3d(0, 100%, 0); transition: all .3s ease-in-out .5s; }
.werk-masse { margin-top: .3em; font-size: .9em; line-height: 2; opacity: 0; transition: all .3s ease-in-out .6s; }
.werk-knopf:hover img, .werk-knopf:focus-visible img { opacity: 0; transform: perspective(1200px) translate3d(0, 100%, 0) rotateX(-90deg); }
.werk-knopf:hover .werk-overlay, .werk-knopf:focus-visible .werk-overlay { opacity: 1; transform: none; }
.werk-knopf:hover .werk-info, .werk-knopf:focus-visible .werk-info { opacity: 1; transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0); }
.werk-knopf:hover .werk-info > *, .werk-knopf:focus-visible .werk-info > * { opacity: 1; transform: none; }
.werk-knopf:focus-visible { outline: 3px solid var(--weiss); outline-offset: -3px; }
.keine-treffer { color: var(--weiss); font-size: var(--fs-h3); font-weight: 700; }
.mehr-zeile { display: flex; justify-content: center; margin-top: 4vw; }
.mehr-knopf { padding: 15px 36px; border-radius: 4px; font-size: 18px; line-height: 20px; font-weight: 500; color: #fff; background: #dd3333; }
.interesse { text-align: center; }
.interesse h2 { font-size: var(--fs-h3); color: var(--rot); }
.interesse .unter { margin-bottom: 1.5em; font-weight: 700; }
.interesse .aufruf { margin-bottom: 1em; font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.knopf-creme { display: inline-flex; align-items: center; gap: 10px; padding: .5em 1em; background: var(--creme); color: var(--rot); }
.knopf-creme svg { width: 1em; height: 1em; fill: currentColor; }
@media (max-width: 767px) {
  .filter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .werk-titel { font-size: .96em; } }
@media (max-width: 478px) {
  .filter { column-gap: 14px; }
}
@media (hover: none) {
  /* Auf Touchgeräten: erster Tipp zeigt keine Hover-Info, sondern öffnet die Großansicht */
  .werk-knopf:hover img { opacity: 1; transform: none; }
  .werk-knopf:hover .werk-overlay, .werk-knopf:hover .werk-info, .werk-knopf:hover .werk-info > * { opacity: 0; }
}

/* ---------- Footer ---------- */
.fuss-haupt { padding: var(--sektion-y) var(--sektion-x); background: var(--grau-footer); }
.fuss-innen {
  display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start;
  gap: 3vh; margin: 0 10px;
}
.fuss-logo {
  display: inline-block; margin-bottom: 1vw;
  background: var(--rot); border: max(1px, .15vw) solid var(--titel-hell);
}
.fuss-logo img { width: 5vw; height: 5vw; }
.fuss-name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.fuss-vita { width: 55%; column-count: 2; column-gap: 2.5em; font-size: .9em; line-height: 1.5; }
.fuss-vita p { break-inside: avoid; }
.fuss-vita p + p { margin-top: .8em; }
.fuss-menue-titel { margin-bottom: 10px; font-size: 20px; line-height: 1.2; }
.fuss-menue a {
  display: flex; font-family: var(--poppins); font-size: 13px; line-height: 19.5px; font-weight: 300;
  color: #000; transition: all .1s;
}
.fuss-menue a:hover { color: var(--weiss); }
.fuss-menue a[aria-current="page"] { color: var(--rot); }

.fuss-leiste {
  display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: var(--sektion-y) var(--sektion-x);
  background: var(--rot);
}
.fuss-leiste p {
  font-family: var(--poppins); font-size: 12px; line-height: 1.2; font-weight: 300;
  color: rgba(255, 255, 255, .79);
}
.fuss-leiste a { color: inherit; }

@media (max-width: 991px) {
  .fuss-vita { column-count: 1; }
}
@media (max-width: 767px) {
  .fuss-menue-titel { font-size: 16px; }
}
@media (max-width: 478px) {
  .fuss-innen { flex-direction: column; align-items: flex-start; justify-content: flex-start; margin: 0; }
  .fuss-logo img { width: 70px; height: 70px; }
  .fuss-vita { width: 80%; }
  .fuss-leiste { flex-direction: column; align-items: flex-start; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
