/* ============================================================
   Die Platzmacher – gemeinsames Stylesheet für alle Seiten

   Aufbau dieser Datei:
   1. Farben und Grundwerte (Variablen)
   2. Grundlagen (Reset, Typografie)
   3. Bausteine (Buttons, Karten, Formular)
   4. Die einzelnen Abschnitte der Seite
   5. Anpassung für Handy und Tablet
   6. Animationen (Glanz, Linien)
   7. Intro beim ersten Besuch (Strichmännchen)
   8. Fotos „Aus unseren Einsätzen“
   ============================================================ */


/* ---------- 1. Farben und Grundwerte -------------------------
   Als CSS-Variablen definiert. Wenn du die Farbe der Seite
   ändern willst, änderst du sie hier einmal – und überall,
   wo var(--accent) steht, ändert sie sich mit.
   ------------------------------------------------------------ */
:root {
  --ink:        #14203a;   /* Dunkelblau, Haupttext und dunkle Flächen */
  --ink-soft:   #47526b;   /* Grauer Fließtext */
  --accent:     #d4761a;   /* Warmes Orange, für Knöpfe und Akzente */
  --accent-dk:  #b0600f;   /* Dieselbe Farbe dunkler: Fläche für Knöpfe mit weißer Schrift (gut lesbar) */
  --accent-dkr: #9a520b;   /* Noch dunkler, für Hover auf diesen Knöpfen */
  --bg:         #ffffff;
  --bg-alt:     #f4f6f9;   /* Sehr helles Grau für abgesetzte Abschnitte */
  /* Rahmenfarbe halbtransparent statt festem Hex-Wert: Das Dunkelblau mit
     13 % Deckkraft sieht auf Weiß aus wie vorher (#dfe4ec), passt sich aber
     automatisch an, wenn der Rahmen auf Grau, dem Verlauf im Hero oder dem
     durchscheinenden Kopfbereich liegt. */
  --line:       rgb(20 32 58 / 0.13);
  /* Ecken: drei feste Größen statt vieler verschiedener */
  --radius:      10px;     /* Knöpfe */
  --radius-feld: 8px;      /* Eingabefelder */
  --radius-box:  12px;     /* Karten, Kästen, Fotos */
  --radius-tag:  6px;      /* kleine Etiketten wie „Vorher“ */
  /* Schriftgrößen: eine feste, kleine Reihe. Fließtext ist 17px. */
  --fs-xs:   .8125rem;     /* 13px */
  --fs-sm:   .875rem;      /* 14px */
  --fs-md:   .9375rem;     /* 15px */
  --fs-base: 1.0625rem;    /* 17px */
  --fs-lg:   1.1875rem;    /* 19px */
  --fs-xl:   1.375rem;     /* 22px */
  --wrap:       1120px;    /* Maximale Inhaltsbreite */
  --shadow:     0 1px 2px rgba(20,32,58,.06), 0 8px 24px rgba(20,32,58,.07);
}


/* ---------- 2. Grundlagen ------------------------------------ */

/* border-box sorgt dafür, dass Innenabstand und Rahmen in der
   angegebenen Breite enthalten sind. Erspart viel Rechnerei. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
  /* Deutsche Komposita wie "Wohnungsentrümpelung" sind lang und würden
     sonst aus schmalen Karten herauslaufen. Zusammen mit lang="de" im
     <html>-Tag trennt der Browser sie an sinnvollen Stellen. */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }   /* clamp: wächst mit der Fensterbreite, aber nur zwischen min und max */
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 1em; }

a { color: var(--accent-dk); }

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

/* Der zentrale Container: begrenzt die Breite und zentriert sie */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.lead { font-size: var(--fs-lg); }
.small { font-size: var(--fs-sm); opacity: .8; }

/* Tastatur-Bedienbarkeit: sichtbarer Fokusrahmen */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}


/* ---------- 3. Bausteine ------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;          /* feste Höhe statt Innenabstand in em */
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent-dk); color: #fff; }
.btn-primary:hover { background: var(--accent-dkr); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-phone {
  background: var(--bg-alt);
  color: var(--ink);
  padding: 0 16px;
}
.btn-phone:hover { background: #e8ecf3; }
.btn-phone svg { width: 18px; height: 18px; fill: var(--accent); }

.btn-big   { font-size: var(--fs-xl); min-height: 56px; padding: 0 28px; }
.btn-block { width: 100%; }


/* ---------- 4. Abschnitte ------------------------------------ */

/* Kopfbereich */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;      /* bleibt beim Scrollen oben kleben */
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  margin-right: auto;    /* schiebt alles Weitere nach rechts */
}
.logo-mark {
  background: var(--ink);
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;                 /* Badge behält seine Größe, auch wenn der Text lang wird */
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark text { font-family: inherit; }   /* Monogramm in derselben Schrift wie die Seite */
.logo-text { font-size: var(--fs-base); }

.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--accent-dk); }

/* Menüknopf (☰) – nur auf dem Handy sichtbar, siehe Abschnitt 5 */
.nav-knopf {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-knopf svg { width: 22px; height: 22px; }
.nav-knopf .zu { display: none; }
.menu-offen .nav-knopf .auf { display: none; }
.menu-offen .nav-knopf .zu  { display: block; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 72px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-dk);
  margin-bottom: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.trust-card {
  list-style: none;
  margin: 0; padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.trust-card li { font-size: var(--fs-md); }
.trust-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Allgemeine Abschnitte */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { max-width: 62ch; margin-bottom: 36px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Leistungskarten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.section-alt .card { background: #fff; }

/* Ablauf-Schritte */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.steps li { position: relative; }
.step-num {
  position: relative;
  z-index: 1;            /* Kreis liegt über der Ablauf-Linie */
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dk);
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}
.steps p { margin: 0; font-size: var(--fs-md); }

/* Häkchenliste */
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.check-list strong { color: var(--ink); }

/* Einsatzgebiet */
.area-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 28px;
}
.area-list { color: var(--ink); font-weight: 500; }

/* Dunkler Kontaktbereich */
.section-dark {
  background: var(--ink);
  color: #c7cfdf;
}
.section-dark h2 { color: #fff; }
/* Nur Textlinks orange-hell; Knöpfe behalten ihre weiße Schrift */
.section-dark a:not(.btn) { color: #f0b070; }
.section-dark .form a { color: var(--accent-dk); }   /* im weißen Formular wieder dunkel */
.direct-contact { margin-top: 32px; display: grid; gap: 16px; justify-items: start; }
.mail-link { font-size: var(--fs-base); }

/* Formular */
.form {
  background: #fff;
  border-radius: var(--radius-box);
  padding: 28px;
  display: grid;
  gap: 16px;
  color: var(--ink-soft);
}
.form label {
  display: grid;
  gap: 8px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}
.form input, .form select, .form textarea {
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-feld);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form textarea { resize: vertical; }

/* Eigener Text-Mauszeiger über den Eingabefeldern: schmaler dunkler Strich
   mit weißem Rand. Der normale Windows-Textzeiger kehrt die Farbe darunter um
   und wurde über grauen Beispieltexten unsichtbar; dieser ist auf jedem
   Hintergrund zu sehen. Die Zahlen "6 11" sind die Mitte des Strichs. */
.form input:not([type="checkbox"]),
.form textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='22' viewBox='0 0 12 22'%3E%3Cpath d='M3 2.5c1.6 0 2.4.4 3 1.2.6-.8 1.4-1.2 3-1.2M6 3.7v14.6M3 19.5c1.6 0 2.4-.4 3-1.2.6.8 1.4 1.2 3 1.2' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 2.5c1.6 0 2.4.4 3 1.2.6-.8 1.4-1.2 3-1.2M6 3.7v14.6M3 19.5c1.6 0 2.4-.4 3-1.2.6.8 1.4 1.2 3 1.2' fill='none' stroke='%2314203a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 6 11, text;
}
.form .checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.checkbox input { width: auto; min-height: 0; margin-top: .3em; }

/* Fußzeile */
.site-footer {
  background: #0e1729;
  color: #9aa6bd;
  padding: 28px 0;
  font-size: var(--fs-md);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; }
.footer-nav { display: flex; gap: 20px; }
.site-footer a { color: #9aa6bd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Rechtstexte (Impressum, Datenschutz) */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: var(--fs-xl); margin-top: 2em; }
.legal .placeholder {
  background: #fff8e6;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5em;
  font-size: var(--fs-md);
}


/* ---------- 5. Handy und Tablet ------------------------------
   Alles unterhalb von 860 Pixel Breite bekommt einspaltiges
   Layout. Das ist der einzige Umbruchpunkt, den diese Seite
   braucht – bewusst simpel gehalten.
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero-inner,
  .two-col { grid-template-columns: 1fr; }

  .header-inner { min-height: 64px; gap: 12px; }

  /* Menü auf dem Handy: hinter dem Menüknopf (☰) versteckt, klappt
     beim Antippen unter dem Kopfbereich auf. Gesteuert vom Skript
     „Menü auf dem Handy“ in index.html. */
  .nav-knopf { display: inline-flex; }
  .nav:not(.nav-zurueck) {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(20 32 58 / .08);
  }
  .menu-offen .nav:not(.nav-zurueck) { display: flex; }
  .nav:not(.nav-zurueck) a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }
  .nav:not(.nav-zurueck) a:last-child { border-bottom: 0; }
  .nav-zurueck { display: flex; }  /* „Zurück zur Startseite“ auf Impressum/Datenschutz bleibt sichtbar */
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .logo-text { display: none; }    /* auf schmalen Displays nur das Kürzel, damit Telefon und Menü Platz haben */
  .btn-big { font-size: var(--fs-lg); }
}


/* ---------- 6. Animationen -----------------------------------
   Alles hier ist nur Verzierung. Wer am Gerät „Bewegung
   reduzieren“ eingestellt hat, bekommt es nicht zu sehen
   (prefers-reduced-motion). Das Einblenden des Startbereichs
   steht in js/animationen.js.
   ------------------------------------------------------------ */

/* Oranger Strich unter "frei" in der Überschrift.
   Ohne JavaScript (oder mit „Bewegung reduzieren“) steht er einfach
   fertig da; animationen.js lässt ihn beim Laden einmal entlangziehen. */
.mark-frei {
  position: relative;
  white-space: nowrap;
  isolation: isolate;      /* Strich liegt hinter den Buchstaben */
}
.mark-line {
  position: absolute;
  left: -3%;
  bottom: -.14em;
  width: 106%;
  height: .36em;
  z-index: -1;
  overflow: visible;
}
.mark-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {

  /* Glanz, der alle paar Sekunden über den Hauptknopf läuft */
  .btn-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .btn-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 60%;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / .38), transparent);
    transform: translateX(-180%) skewX(-18deg);
    animation: shine 6s ease-in-out 2s infinite;
    pointer-events: none;
  }
  @keyframes shine {
    0%        { transform: translateX(-180%) skewX(-18deg); }
    18%, 100% { transform: translateX(280%)  skewX(-18deg); }
  }
}

/* Ablauf-Linie: verbindet die Kreise 1 bis 4 und „zeichnet“ sich
   beim Scrollen. Erscheint nur, wenn animationen.js läuft
   (Klasse .steps-animated). --linie geht von 0 (leer) bis 1 (voll). */
.steps-animated { position: relative; }
.steps-animated li { z-index: 1; }            /* Schritte liegen über der Linie */
.steps-animated::before,
.steps-animated::after {
  content: "";
  position: absolute;
  height: 2px;
  top: 19px;                                   /* Mitte der 40px-Kreise */
  left: 20px;
  right: calc((100% - 3 * 28px) / 4 - 20px);   /* endet in der Mitte des 4. Kreises */
  border-radius: 2px;
  z-index: 0;
}
.steps-animated::before { background: var(--line); }            /* blasse Spur */
.steps-animated::after {
  background: var(--accent);                                     /* orange Linie */
  transform-origin: left center;
  transform: scaleX(var(--linie, 0));
}

@media (min-width: 861px) {
  /* Auf großen Bildschirmen immer vier Schritte nebeneinander,
     damit die Linie sauber durch alle Kreise läuft. */
  .steps-animated { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  /* Auf Handy und Tablet: Schritte untereinander, Kreis links,
     die Linie läuft senkrecht an den Kreisen entlang. */
  .steps-animated { grid-template-columns: 1fr; }
  .steps-animated li { padding-left: 60px; min-height: 40px; }
  .steps-animated .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .steps-animated h3 { padding-top: 8px; }
  .steps-animated::before,
  .steps-animated::after {
    width: 2px; height: auto;
    left: 19px; right: auto;
    top: 20px;
    bottom: var(--linie-ende, 20px);
  }
  .steps-animated::after {
    transform-origin: center top;
    transform: scaleY(var(--linie, 0));
  }
}



/* ---------- 7. Intro beim ersten Besuch ----------------------
   Drei Strichmännchen tragen die Kartons aus dem Bild, danach
   erscheint die Seite. Normalerweise unsichtbar; sichtbar nur,
   wenn <html> die Klasse "intro" hat (gesetzt im <head>,
   gesteuert von js/intro.js).
   ------------------------------------------------------------ */
.intro-overlay { display: none; }

.intro .intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;            /* liegt über allem, auch über dem Kopfbereich */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));   /* wie der Hero */
  /* Notbremse: Sollte das Skript hängen, verschwindet das Intro
     nach 6 Sekunden trotzdem von selbst. */
  animation: intro-notaus .01s 6s forwards;
}
@keyframes intro-notaus { to { opacity: 0; visibility: hidden; } }

.intro-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
}

.intro-szene {
  width: min(100%, 760px);
  height: auto;
  overflow: visible;
  /* Links und rechts weich ausblenden: Die Männchen kommen
     aus dem Nichts und verschwinden wieder darin. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.intro-boden {
  stroke: var(--line);
  stroke-width: 2;
}
.intro-mann line,
.intro-mann circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}
.intro-karton rect  { fill: var(--accent); }
.intro-karton .karton-kante { stroke: var(--accent-dk); stroke-width: 2; }
.intro-karton .karton-band  { fill: #f2c48f; }   /* Klebeband, helles Orange */

.intro-skip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  background: rgb(255 255 255 / .8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
}
.intro-skip:hover,
.intro-skip:focus-visible { color: var(--ink); border-color: var(--accent); }


/* ---------- 8. Fotos „Aus unseren Einsätzen“ -----------------
   Zwei Vorher/Nachher-Paare und eine zugeklappte Galerie. Alle
   Fotos sind bewusst klein (quadratisch) und lassen sich zum
   Vergrößern antippen (Großansicht ganz unten in diesem Abschnitt).
   ------------------------------------------------------------ */
.vn-bild img,
.galerie img {
  width: 100%;
  aspect-ratio: 1 / 1;        /* quadratisch, damit es kompakt bleibt */
  object-fit: cover;          /* Bild füllt die Fläche, ohne verzerrt zu werden */
  border-radius: var(--radius-box);
  border: 1px solid var(--line);
  background: #e8ecf3;        /* sichtbar, solange das Bild noch lädt */
  cursor: zoom-in;            /* Lupe: zeigt, dass man es vergrößern kann */
}

/* Vorher/Nachher: am PC beide Paare nebeneinander (4 Fotos in einer Reihe),
   auf dem Handy die Paare untereinander, Vorher und Nachher aber immer
   nebeneinander. */
.vn-liste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.vorher-nachher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}
.vn-bild { margin: 0; position: relative; }
.vn-etikett {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  pointer-events: none;       /* Antippen geht durch auf das Foto */
}
.vn-etikett-nachher { background: var(--accent-dk); }
.vn-text { grid-column: 1 / -1; margin: 4px 0 0; font-size: var(--fs-md); }
.vn-text strong { display: block; color: var(--ink); font-size: var(--fs-base); font-weight: 600; margin-bottom: 4px; }

/* Aufklapp-Knopf für die Galerie (sieht aus wie der helle Knopf oben) */
.galerie-klappe summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;           /* Standard-Dreieck ausblenden … */
}
.galerie-klappe summary::-webkit-details-marker { display: none; }
.galerie-klappe summary::after {   /* … und durch einen eigenen Pfeil ersetzen */
  content: "";
  width: .5em; height: .5em;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-.15em) rotate(45deg);
  transition: transform .2s ease;
}
.galerie-klappe[open] summary::after { transform: translateY(.1em) rotate(-135deg); }
.galerie-klappe summary:hover { border-color: rgb(212 118 26 / .45); }
.galerie-anzahl { color: var(--ink-soft); font-weight: 400; }

/* Galerie: am PC alle 6 Fotos in einer Reihe, auf dem Handy 3 nebeneinander */
.galerie {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.galerie figure { margin: 0; }
.galerie figcaption {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}

/* Großansicht */
.foto-gross {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 720px);
  overflow: visible;
}
.foto-gross::backdrop { background: rgb(14 23 41 / .85); }
.foto-gross img {
  max-height: 80vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-box);
}
.foto-text { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 500; }
.foto-zu {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .vn-liste { grid-template-columns: 1fr; gap: 24px; }   /* Paare untereinander */
  .galerie { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .galerie figcaption { font-size: var(--fs-xs); }
  .foto-zu { top: 8px; right: 8px; }
}
