/* ════════════════════════════════════════════════════════════════
   style.css – das Aussehen deiner Website

   Ruhiger weißer Rahmen mit kleinen gesperrten Versalien, darin die
   Bilder. Auf der Startseite eine große Fläche mit ausgewählten
   Arbeiten. Die Variablen unter :root sind die wichtigsten
   Stellschrauben.
   ════════════════════════════════════════════════════════════════ */

/* ── Schrift: liegt lokal in assets/fonts (keine Verbindung zu Google) ── */
@font-face {
  font-family: "Cabin";
  src: url("fonts/cabin-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabin";
  src: url("fonts/cabin-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cabin";
  src: url("fonts/cabin-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Stellschrauben ── */
:root {
  /* Farben */
  --farbe-grund: #ffffff;   /* Hintergrund */
  --farbe-text: #6f6f6f;    /* Fließtext und Menü */
  --farbe-titel: #262626;   /* Überschriften */
  --farbe-dunkel: #222222;  /* Linien, mobiles Menü, Blättern */
  --farbe-flaeche: #f3f2ef; /* Fläche hinter noch ladenden Bildern */
  --farbe-akzent: #cc4f31;  /* Farbtupfer im Schriftzug, aktiver Menüpunkt */
  --farbe-rand: #dedbd5;    /* feine Linie um Layoutseiten auf weißem Grund */

  /* Schrift */
  --schrift: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --groesse: clamp(14px, 0.6rem + 0.5vw, 16px);
  --sperrung: 0.1em;
  --zeile: 1.8;

  /* Abstände */
  --rand-l: max(22px, 4vw, env(safe-area-inset-left, 0px));   /* Seitenrand links */
  --rand-r: max(22px, 4vw, env(safe-area-inset-right, 0px));  /* Seitenrand rechts */
  --raster-spalten: 3;   /* Bilder pro Reihe auf den Kategorieseiten */
  --raster-abstand: 0px; /* Abstand zwischen den Bildern im Raster */
  --start-spalten: 3;    /* Kacheln pro Reihe auf der Startseite */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--farbe-grund);
  color: var(--farbe-text);
  font-family: var(--schrift);
  font-size: var(--groesse);
  font-weight: 400;
  line-height: var(--zeile);
  letter-spacing: var(--sperrung);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fläche über der Kopfzeile, falls ein Handy oben einen Ausschnitt hat */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 25;
  background: var(--farbe-grund);
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

h1, h2, h3 {
  font-size: inherit;
  font-weight: 400;
  color: var(--farbe-titel);
  text-wrap: balance;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--farbe-titel);
}

strong {
  font-weight: 700;
  color: var(--farbe-titel);
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 1px solid var(--farbe-dunkel);
  outline-offset: 4px;
}

::selection {
  background: var(--farbe-titel);
  color: var(--farbe-grund);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: var(--rand-l);
  z-index: 50;
  padding: 8px 12px;
  background: var(--farbe-grund);
  color: var(--farbe-titel);
}

.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}

/* Unterstrichene Links im Fließtext */
.text-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Mail-Adressen nicht am Bindestrich umbrechen */
a[href^="mailto:"] {
  white-space: nowrap;
}

.inhalt {
  padding-left: var(--rand-l);
  padding-right: var(--rand-r);
}

/* ── Schriftzug ── */
.wortmarke {
  display: inline-block;
  font-size: clamp(22px, 1.1rem + 1.1vw, 32px);
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--farbe-titel);
}

/* Die Punkte des ö als zwei Farbtupfer */
.wortmarke__tupfer {
  position: relative;
}

.wortmarke__tupfer::before,
.wortmarke__tupfer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--farbe-akzent);
}

.wortmarke__tupfer::before {
  top: 0.235em;
  left: 0.075em;
  width: 0.135em;
  height: 0.12em;
  transform: rotate(-14deg);
}

.wortmarke__tupfer::after {
  top: 0.225em;
  left: 0.335em;
  width: 0.12em;
  height: 0.135em;
  transform: rotate(12deg);
}

/* ── Kopfzeile ── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px var(--rand-r) 32px var(--rand-l);
  background: var(--farbe-grund);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.ist-versteckt {
  transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
}

.site-logo {
  display: block;
  line-height: 0;
  color: var(--farbe-titel);
}

.site-logo img {
  width: clamp(200px, 28vw, 292px);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 16px;
  max-width: 40em;
}

.site-nav a {
  display: inline-block;
  padding-block: 2px;
  text-transform: uppercase;
}

.site-nav a[aria-current],
.menue-overlay a[aria-current] {
  color: var(--farbe-titel);
  text-decoration: underline;
  text-decoration-color: var(--farbe-akzent);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

/* Burger-Knopf (nur mobil) */
.burger {
  display: none;
  position: relative;
  flex: none;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--farbe-dunkel);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}

.burger span:nth-child(1) {
  top: 13px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  top: 17px;
  transform: rotate(-45deg);
}

/* Mobiles Menü über die ganze Fläche */
.menue-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--rand-r) calc(env(safe-area-inset-bottom, 0px) + 40px) var(--rand-l);
  overflow-y: auto;
  background: var(--farbe-grund);
}

.menue-overlay ul {
  text-align: center;
}

.menue-overlay a {
  display: inline-block;
  font-size: 21px;
  line-height: 2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--farbe-dunkel);
}

html.menue-offen,
html.kasten-offen {
  overflow: hidden;
}

@media (max-width: 767px) {
  .js .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .js .site-nav {
    display: none;
  }

  .js .burger {
    display: block;
  }

  .site-logo img {
    width: min(246px, 62vw);
  }

  .site-header .wortmarke {
    font-size: 21px;
  }
}

/* ── Startseite ── */
.buehne {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.buehne__flaeche {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 820px);
  overflow: hidden;
  background: var(--farbe-flaeche);
}

.buehne__bild {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.4s ease;
}

/* Beim Wechsel liegt das nächste Bild kurz unsichtbar darüber und blendet ein */
.buehne__bild.ist-neu {
  opacity: 0;
}

.buehne__zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-height: 1.8em;
}

.buehne__angabe {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  min-width: 0;
}

.buehne__titel {
  color: var(--farbe-titel);
  text-transform: uppercase;
}

.buehne__pause {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  text-transform: uppercase;
  cursor: pointer;
}

.buehne__pause:hover {
  color: var(--farbe-titel);
}

.start__claim {
  max-width: 26em;
  margin: 72px auto 0;
  font-size: 1.3em;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(var(--start-spalten), minmax(0, 1fr));
  column-gap: 2.4vw;
  row-gap: 44px;
  width: 100%;
  margin-top: 72px;
}

.kachel a {
  display: block;
}

.kachel__bild {
  display: block;
  aspect-ratio: 1;
  max-width: 100%;
  overflow: hidden;
  background: var(--farbe-flaeche);
}

.kachel__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fokus, 50% 50%);
}

.kachel__titel {
  display: inline-block;
  margin-top: 16px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Bei sieben oder acht Kacheln: vier pro Reihe, damit keine einzeln übrig bleibt */
@media (min-width: 768px) {
  .kacheln--vier {
    --start-spalten: 4;
  }
}

@media (max-width: 767px) {
  :root {
    --start-spalten: 2;
  }

  .buehne__flaeche {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }

  .start__claim {
    margin-top: 48px;
    font-size: 1.15em;
  }

  .kacheln {
    column-gap: 16px;
    row-gap: 28px;
    margin-top: 48px;
  }
}

/* ── Kategorieseiten: Bildraster ── */
.raster {
  display: grid;
  grid-template-columns: repeat(var(--raster-spalten), minmax(0, 1fr));
  gap: var(--raster-abstand);
  padding-top: 10px;
}

.raster__eintrag {
  position: relative;
  display: block;
  aspect-ratio: 1;
  max-width: 100%;
  overflow: hidden;
  background: var(--farbe-flaeche);
}

.raster__eintrag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fokus, 50% 50%);
}

/* Titel erscheint beim Darüberfahren */
.raster__titel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(255 255 255 / 0.9);
  color: var(--farbe-titel);
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.raster__eintrag:hover .raster__titel,
.raster__eintrag:focus-visible .raster__titel {
  opacity: 1;
}

@media (hover: none) {
  .raster__titel {
    display: none;
  }
}

.kategorie__intro {
  max-width: 34em;
  margin: 0 auto 48px;
  text-align: center;
}

@media (max-width: 767px) {
  :root {
    --raster-spalten: 2;
  }
}

@media (max-width: 479px) {
  :root {
    --raster-spalten: 1;
  }
}

/* ── Projektseiten ── */
.projekt {
  display: grid;
  grid-template-columns: 9fr 1fr 8fr 2fr;
  align-items: center;
  padding-top: 56px;
}

.projekt--mehrere {
  align-items: start;
}

.projekt__medien {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.projekt__bild img,
.galerie__bild img,
.ueber__foto img {
  width: 100%;
}

.lichtlink {
  display: block;
  cursor: zoom-in;
}

.projekt__text {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  min-width: 0;
}

.projekt__titel {
  text-transform: uppercase;
}

.projekt__untertitel,
.projekt__link,
.projekt__datum {
  font-style: italic;
}

.projekt__untertitel {
  color: var(--farbe-titel);
}

.projekt__link a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Die Aufgabe: hervorgehoben über dem Text */
.projekt__aufgabe {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  max-width: 34em;
  padding-left: 16px;
  border-left: 2px solid var(--farbe-akzent);
  color: var(--farbe-titel);
}

.projekt__marke {
  color: var(--farbe-akzent);
  font-size: 0.86em;
  letter-spacing: var(--sperrung);
  text-transform: uppercase;
}

.projekt__beschreibung {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 34em;
}

/* Weitere Bilder in Spalten (zwei, wenn das Projekt nichts anderes angibt) */
.galerie {
  columns: var(--galerie-spalten, 2);
  column-gap: 24px;
  margin-top: 24px;
}

.galerie__bild {
  margin-bottom: 24px;
  break-inside: avoid;
}

/* Ein Bild über die ganze Breite, zum Beispiel ein Panorama */
.galerie__bild--breit {
  column-span: all;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .galerie {
    columns: 2;
  }
}

/* Prozess: Bilder in einer Reihe, alle gleich hoch */
.prozess {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 96px;
}

.prozess h2 {
  text-transform: uppercase;
}

.prozess__reihe {
  display: flex;
  gap: 16px;
  max-width: calc(var(--summe, 3) * 320px + 48px);
}

.prozess__reihe li {
  flex: var(--verh, 1) 1 0;
  min-width: 0;
}

.prozess__reihe img {
  width: 100%;
}

/* Layoutseiten sind weiß auf Weiß: eine feine Linie zeigt, wo die Seite endet */
.prozess__reihe .mit-rahmen img {
  outline: 1px solid var(--farbe-rand);
  outline-offset: -1px;
}

.prozess__reihe figcaption,
.ueber__foto figcaption {
  margin-top: 10px;
  font-size: 0.86em;
}

.blaettern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 120px;
}

.blaettern a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--farbe-dunkel);
  text-transform: uppercase;
}

.blaettern a:hover {
  opacity: 0.6;
}

.blaettern__weiter {
  margin-left: auto;
  text-align: right;
}

.blaettern svg,
.lichtkasten svg {
  flex: none;
  width: 13px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

@media (max-width: 767px) {
  .projekt {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
    padding-top: 16px;
  }

  /* Mobil: erstes Bild, dann der Text, dann die weiteren Bilder */
  .projekt__medien {
    display: contents;
  }

  .projekt__bild {
    order: 2;
  }

  .projekt__bild:first-child {
    order: 0;
  }

  .projekt__text {
    grid-column: 1;
    order: 1;
  }

  .galerie {
    columns: 1;
  }

  .prozess {
    margin-top: 64px;
  }

  .prozess__reihe {
    flex-wrap: wrap;
    max-width: none;
  }

  .prozess__reihe li {
    flex: 1 1 40%;
  }

  .blaettern {
    margin-top: 80px;
  }
}

/* ── Geschichte eines Projekts: Schritte mit Text links und Bildern rechts ── */
.geschichte {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 112px;
}

.geschichte__titel,
.aehnlich__ueberschrift,
.abschnitt__titel {
  text-transform: uppercase;
}

.geschichte__schritte {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.schritt {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 5vw;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--farbe-rand);
}

.schritt:not(:has(.schritt__bilder)) {
  grid-template-columns: minmax(0, 1fr);
}

.schritt__text {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  max-width: 30em;
}

.schritt__nummer {
  color: var(--farbe-akzent);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--sperrung);
}

.schritt__titel {
  color: var(--farbe-titel);
  text-transform: uppercase;
}

.schritt__text .text-links {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.schritt__reihe {
  display: flex;
  gap: 16px;
}

.schritt__reihe li {
  flex: var(--verh, 1) 1 0;
  min-width: 0;
}

.schritt__reihe img {
  width: 100%;
}

/* Ein einzelnes Hochformat wird nicht höher als etwa drei Viertel des Bildschirms */
.schritt__reihe li:only-child {
  max-width: calc(72vh * var(--verh, 1));
}

.schritt__reihe .mit-rahmen img {
  outline: 1px solid var(--farbe-rand);
  outline-offset: -1px;
}

.schritt__reihe figcaption {
  margin-top: 10px;
  font-size: 0.86em;
}

/* ── Was daraus wurde: wie ein Schritt, ohne Nummer ── */
.ergebnis {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 112px;
}

/* ── Gruppenseite (z. B. Freie Arbeiten): Kategorien untereinander ── */
.gruppe__abschnitt + .gruppe__abschnitt {
  margin-top: 96px;
}

.gruppe__titel {
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .gruppe__abschnitt + .gruppe__abschnitt {
    margin-top: 64px;
  }
}

/* ── Das Ergebnis: am Ende der Geschichte noch einmal groß ── */
.finale {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 112px;
}

.finale__bilder {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--farbe-rand);
}

.finale__bild img {
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .finale {
    margin-top: 72px;
  }
}

/* ── Stimmen: Empfehlungen als Zitate ── */
.stimmen {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 140px;
}

.stimmen__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px 2.4vw;
}

.stimme {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--farbe-rand);
}

.stimme blockquote {
  margin: 0;
  color: var(--farbe-titel);
  font-size: 1.15em;
  line-height: 1.6;
}

.stimme blockquote p::before {
  content: "„";
}

.stimme blockquote p::after {
  content: "“";
}

.stimme figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.86em;
}

.stimme__name {
  color: var(--farbe-titel);
  text-transform: uppercase;
  letter-spacing: var(--sperrung);
}

.stimme--klein {
  margin-top: 0.6em;
  padding-top: 0;
  border-top: 0;
}

.stimme--klein blockquote {
  font-size: 1em;
}

/* ── Was ich für dich zeichne (Startseite) ── */
.leistungen {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 140px;
}

.leistungen__kopf {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40em;
}

.leistungen__intro {
  color: var(--farbe-titel);
  font-size: 1.1em;
  line-height: 1.7;
}

.leistungen__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 2.4vw;
}

.leistung {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--farbe-rand);
}

.leistung__titel {
  color: var(--farbe-titel);
  text-transform: uppercase;
}

.leistung__link {
  margin-top: auto;
  padding-top: 4px;
  text-transform: uppercase;
  font-size: 0.86em;
  letter-spacing: var(--sperrung);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* ── Aufruf: Fläche mit Mail-Knopf ── */
.aufruf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 140px;
  padding: 72px 24px;
  background: var(--farbe-flaeche);
  text-align: center;
}

.aufruf__titel {
  color: var(--farbe-titel);
  font-size: 1.3em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aufruf__text {
  max-width: 32em;
}

.knopf {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--farbe-dunkel);
  color: var(--farbe-grund);
  letter-spacing: var(--sperrung);
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.knopf:hover {
  background: var(--farbe-akzent);
  color: var(--farbe-grund);
}

.ergebnis + .aufruf {
  margin-top: 112px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .leistungen__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ergebnis {
    margin-top: 72px;
  }

  .leistungen,
  .stimmen,
  .aufruf {
    margin-top: 88px;
  }

  .leistungen__liste {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .aufruf {
    padding: 48px 20px;
  }
}

/* ── Ähnliche Projekte unter jedem Projekt ── */
.aehnlich {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 120px;
}

.aehnlich__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4vw;
}

.aehnlich__liste a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aehnlich__bild {
  display: block;
  aspect-ratio: 1;
  max-width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--farbe-flaeche);
}

.aehnlich__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fokus, 50% 50%);
  transition: transform 0.6s ease;
}

.aehnlich__liste a:hover .aehnlich__bild img {
  transform: scale(1.03);
}

.aehnlich__titel {
  color: var(--farbe-titel);
  text-transform: uppercase;
}

.aehnlich__kategorie {
  font-size: 0.86em;
}

@media (max-width: 767px) {
  .geschichte {
    margin-top: 72px;
  }

  .geschichte__schritte {
    gap: 48px;
  }

  .schritt {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .schritt__reihe {
    flex-wrap: wrap;
  }

  .schritt__reihe li {
    flex: 1 1 40%;
  }

  .aehnlich {
    margin-top: 80px;
  }

  .aehnlich__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .aehnlich__liste li:nth-child(3) {
    display: none;
  }
}

/* ── Bild in groß ── */
.lichtkasten {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--farbe-grund);
  color: var(--farbe-dunkel);
  overflow: hidden;
}

.lichtkasten::backdrop {
  background: transparent;
}

.lichtkasten__leiste {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--rand-r) 0 var(--rand-l);
  font-variant-numeric: tabular-nums;
}

.lichtkasten__knopf,
.lichtkasten__pfeil {
  padding: 8px 0;
  border: 0;
  background: none;
  text-transform: uppercase;
  cursor: pointer;
}

.lichtkasten__flaeche {
  position: absolute;
  inset: 60px 56px calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lichtkasten__flaeche img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.lichtkasten__pfeil {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  padding: 16px;
  transform: translateY(-50%);
}

.lichtkasten__pfeil--zurueck {
  left: max(4px, env(safe-area-inset-left, 0px));
}

.lichtkasten__pfeil--weiter {
  right: max(4px, env(safe-area-inset-right, 0px));
}

@media (max-width: 767px) {
  .lichtkasten__flaeche {
    inset: 56px 12px calc(env(safe-area-inset-bottom, 0px) + 72px);
  }

  .lichtkasten__pfeil {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    transform: none;
  }

  .lichtkasten__pfeil--zurueck {
    left: 24%;
  }

  .lichtkasten__pfeil--weiter {
    right: 24%;
  }
}

/* ── Über mich ── */
.ueber {
  display: grid;
  grid-template-columns: 8fr 1fr 8fr 3fr;
  align-items: center;
  padding-top: 56px;
}

.ueber__foto {
  grid-column: 1;
  min-width: 0;
}

.ueber__text {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  min-width: 0;
}

.ueber__titel {
  text-transform: uppercase;
}

.ueber__einleitung,
.ueber__kontakt-text {
  color: var(--farbe-titel);
}

.ueber__zusatz {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin: 120px auto 0;
}

.ueber__zusatz h2 {
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .ueber {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
    padding-top: 16px;
  }

  .ueber__text {
    grid-column: 1;
  }

  .ueber__zusatz {
    margin-top: 80px;
  }
}

/* Aufklappbare Listen */
.akkordeon {
  border-top: 1px solid var(--farbe-dunkel);
}

.akkordeon__eintrag {
  border-bottom: 1px solid var(--farbe-dunkel);
}

.akkordeon__eintrag summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  list-style: none;
  cursor: pointer;
  color: var(--farbe-titel);
  text-transform: uppercase;
}

.akkordeon__eintrag summary::-webkit-details-marker {
  display: none;
}

.akkordeon__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.akkordeon__icon::before,
.akkordeon__icon::after {
  content: "";
  position: absolute;
  background: var(--farbe-dunkel);
  transition: transform 0.25s ease;
}

.akkordeon__icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -0.5px;
}

.akkordeon__icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
}

.akkordeon__eintrag[open] .akkordeon__icon::after {
  transform: scaleY(0);
}

.akkordeon__inhalt {
  padding-bottom: 24px;
}

.akkordeon__inhalt li + li {
  margin-top: 0.3em;
}

/* ── Shop (ausgeschaltet, bleibt für später) ── */
.shop {
  padding-top: 40px;
}

.shop__info {
  max-width: 780px;
  margin: 0 auto 80px;
}

.shop__bereich {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: 4vw;
  align-items: start;
}

.shop__seitenleiste {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.shop__titel {
  text-transform: uppercase;
}

.produkte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 10px;
}

.produkt a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.produkt__bild {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--farbe-flaeche);
}

.produkt__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produkt__titel {
  text-transform: uppercase;
}

.produkt__preis {
  color: var(--farbe-dunkel);
}

@media (max-width: 900px) {
  .shop__bereich {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 560px) {
  .produkte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }
}

/* ── Textseiten (Impressum, Datenschutz) ── */
.textseite {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  max-width: 40em;
  margin: 0 auto;
  padding-top: 40px;
}

.textseite h1,
.textseite h2 {
  text-transform: uppercase;
}

.textseite h2 {
  margin-top: 1em;
}

/* ── Fußbereich ── */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 120px;
  padding: 0 var(--rand-r) calc(env(safe-area-inset-bottom, 0px) + 56px) var(--rand-l);
  text-align: center;
}

.site-footer__marke {
  line-height: 0;
}

.site-footer__marke img {
  width: 140px;
}

.site-footer__marke .wortmarke {
  font-size: 17px;
}

.site-footer__zeile {
  max-width: 36em;
}

.site-footer__teil {
  white-space: nowrap;
}

.site-footer__social,
.site-footer__recht {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
}

.site-footer__social a {
  text-transform: uppercase;
  color: var(--farbe-titel);
}

.site-footer__recht {
  font-size: 0.86em;
}

/* ── Einblenden beim Laden ── */
@keyframes einblenden {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .kachel,
  .raster li,
  .produkt,
  .projekt,
  .galerie,
  .ueber,
  .textseite {
    animation: einblenden 0.9s cubic-bezier(0.33, 0, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  .menue-overlay {
    animation: einblenden 0.3s ease both;
  }

  .lichtkasten[open] {
    animation: einblenden 0.25s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
