/* ═══════════════════════════════════════════════════════════
   LUP – Luftbild Umwelt Planung · main.css

   Gestaltungsgrundlage (aus den UI-Leitfäden abgeleitet):
   · Eine Farbpalette: ein grüner Farbverlauf (Ramp) in zwei
     Modi – Flächen sind Tonstufen desselben Grüns, kein
     Fremdton (UI Pedia: „max. 3 Farben“, 60-30-10)
   · Begrenzte Sättigung (Dos & Don'ts, Tip 2)
   · Flächen verschmelzen tonal mit dem Hintergrund –
     keine harten Konturen, Tiefe über minimale Helligkeits-
     stufen (UI Pedia: Visual Weight / Figure-Ground)
   · Weiche, großzügige Rundungen: vertraut & angenehm
     (Psychology of User: Familiarity, Mental Models)
   · Eine Schriftfamilie, Golden-Ratio-Skala:
     17 px Body · LH ≈ 1,62 · H2 ≈ 44 px (UI Pedia, Typography)
   ═══════════════════════════════════════════════════════════ */

/* ── Design-Tokens ── */
:root {
  /* Palette aus dem Logo abgeleitet:
     #80C342 (Brand-Hellgrün) · #458137 (Brand-Waldgrün) */
  --lup-bg:        #EFF3E7;   /* 60 % – warmes gelbgrünes Papier   */
  --lup-bg-deep:   #E3EAD7;   /* Footer, Medienflächen             */
  --lup-surface:   #F7FAF1;   /* 30 % – Karten                     */
  --lup-surface-2: #FDFEFA;   /* Hover                             */
  --lup-line:      rgba(30, 44, 20, 0.10);
  --lup-text:      #1D2A15;
  --lup-muted:     #5A6B4B;
  --lup-accent:    #458137;   /* 10 % – Brand-Waldgrün             */
  --lup-accent-2:  #80C342;   /* dekorative Linien & Marker        */
  --lup-accent-ink:#F7FAF1;
  --lup-shadow:    0 16px 36px -24px rgba(30, 44, 20, 0.30);

  --lup-font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI",
              Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Weiche Rundungen – vertraut und ruhig */
  --r:      22px;
  --r-lg:   26px;
  --r-pill: 999px;

  /* Golden-Ratio-Typoskala: 17 → 21 → 44 */
  --fs-body:  17px;
  --fs-small: 14px;
  --fs-h3:    21px;
  --fs-h2:    clamp(30px, 3.4vw, 44px);
  --lh-body:  1.62;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--lup-font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--lup-text);
  background: var(--lup-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--lup-accent); color: var(--lup-accent-ink); }

:focus-visible {
  outline: 2px solid var(--lup-accent);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}

.lup-container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.lup-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--lup-accent);
  color: var(--lup-accent-ink);
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}
.lup-skip-link:focus { left: 0; }

/* Innenseiten: Abstand unter der fixen Navigation */
body:not(.lup-is-front) .lup-main { padding-top: calc(var(--nav-h) + 32px); }

/* ═══ Logo (inline-SVG mit steuerbaren Füllklassen) ═══
   .lup-lg-a = Brand-Hellgrün · .lup-lg-b = Brand-Waldgrün.
   Der Waldgrün-Anteil (Subtext) wird auf dunklem Grund aufgehellt. */
.lup-wordmark { height: auto; display: block; }
.lup-wordmark .lup-lg-a { fill: #80C342; }
.lup-wordmark .lup-lg-b { fill: #458137; transition: fill .3s ease; }
/* Im Hero liegt das Logo immer über dunklem Schleier */
.lup-hero-mark .lup-wordmark .lup-lg-b { fill: #F2F7EA; }

.lup-wordmark--hero   { width: clamp(300px, 52vw, 660px); }
.lup-wordmark--nav    { width: clamp(150px, 14vw, 190px); }
.lup-wordmark--404    { width: 260px; margin: 0 auto 28px; max-width: 100%; }

.lup-footer-logo-link { display: inline-flex; margin-bottom: 20px; }
.lup-footer-logo { display: block; width: 220px; max-width: 100%; height: auto; }

/* ═══ Navigation ═══ */
.lup-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s ease, backdrop-filter .35s ease;
}
/* Etwas mehr Luft zum Seitenrand als der Inhalt */
.lup-nav .lup-container { width: min(1200px, 100% - 72px); }

.lup-nav--scrolled {
  background: color-mix(in srgb, var(--lup-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lup-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.lup-nav-brand { display: flex; align-items: center; }
.lup-nav-brand .lup-nav-logo,
.lup-nav-brand .custom-logo-link { display: inline-flex; align-items: center; }
.lup-nav-brand .custom-logo { max-height: 44px; width: auto; }
.lup-nav-logo-img { display: block; height: 34px; width: auto; }

/* Rechte Gruppe: Menü · Moduswechsel · Burger */
.lup-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lup-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lup-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--lup-text) 14%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--lup-surface) 78%, transparent);
}
.lup-language-link {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 27px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  color: var(--lup-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  transition: color .2s ease, background .2s ease;
}
.lup-language-link:hover { color: var(--lup-text); }
.lup-language-link.is-active {
  color: var(--lup-accent-ink);
  background: var(--lup-accent);
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-language-switcher {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(16, 31, 20, .22);
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-language-link { color: rgba(255, 255, 255, .78); }
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-language-link:hover { color: #fff; }
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-language-link.is-active {
  color: #1d2a15;
  background: #fff;
}

/* Startseite: Das echte Nav-Logo erscheint direkt an seiner festen
   Position – exakt zusammen mit dem Hintergrund der Navigationsleiste. */
.lup-is-front .lup-nav-brand {
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.lup-is-front .lup-nav--scrolled .lup-nav-brand {
  opacity: 1;
  pointer-events: auto;
}

.lup-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lup-menu a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lup-muted);
  transition: color .2s ease;
}
/* Animierter Unterstrich: wächst beim Hover von links,
   beim aktiven Menüpunkt bleibt er stehen. */
.lup-menu a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--lup-accent-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease-out);
}
.lup-menu a:hover { color: var(--lup-text); }
.lup-menu a:hover::after { transform: scaleX(1); }
/* Unterstrich bleibt NUR auf der exakt aktuellen Seite stehen –
   Eltern-/Vorfahren-Menüpunkte werden nicht markiert */
.lup-menu .current-menu-item > a,
.lup-menu .current_page_item > a {
  color: var(--lup-text);
}
.lup-menu .current-menu-item > a::after,
.lup-menu .current_page_item > a::after {
  transform: scaleX(1);
}

/* ── Dropdown: Menüpunkte mit Unterpunkten (z. B. Publikationen) ── */
.lup-menu .menu-item-has-children { position: relative; }
/* Unsichtbare Brücke über den Zwischenraum zwischen Menüpunkt und
   Panel – das Dropdown bleibt offen, wenn man auf die Optionen fährt */
.lup-menu .menu-item-has-children::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.lup-menu .menu-item-has-children > a { padding-right: 30px; }
/* kleiner Pfeil (Caret) – ::before, da ::after der Unterstrich ist */
.lup-menu .menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease-out);
}
.lup-menu .menu-item-has-children:hover > a::before,
.lup-menu .menu-item-has-children:focus-within > a::before {
  transform: rotate(225deg);
  margin-top: -2px;
}

.lup-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 4px;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--lup-surface);
  border-radius: 16px;
  box-shadow: 0 22px 48px -20px rgba(24, 42, 30, 0.35);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
  z-index: 6;
}
.lup-menu li:hover > .sub-menu,
.lup-menu li:focus-within > .sub-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lup-menu .sub-menu li { display: block; }
.lup-menu .sub-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--lup-muted);
}
/* im Panel kein Unterstrich – Hover als sanfte Fläche */
.lup-menu .sub-menu a::after { display: none; }
.lup-menu .sub-menu a:hover {
  color: var(--lup-text);
  background: rgba(24, 42, 30, 0.06);
}
.lup-menu .sub-menu .current-menu-item > a {
  color: var(--lup-text);
  font-weight: 600;
}

/* ── Über dem dunklen Hero (Startseite, noch nicht gescrollt) ist der
   Nav-Text immer HELL. Sobald die Leiste beim Scrollen ihren
   Hintergrund bekommt, gelten die normalen Theme-Farben. ── */
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu a {
  color: rgba(255, 255, 255, 0.96);
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu a:hover,
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu .current-menu-item > a,
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu .current_page_item > a {
  color: #fff;
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu a::after {
  background: rgba(255, 255, 255, 0.95);
}
/* Dropdown-Panel behält seine helle Fläche → Theme-Farben im Panel */
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu .sub-menu a {
  color: var(--lup-muted);
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu .sub-menu a:hover,
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-menu .sub-menu .current-menu-item > a {
  color: var(--lup-text);
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-toggle {
  background: rgba(255, 255, 255, 0.16);
}
.lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-toggle span {
  background: #fff;
}

/* Burger */
.lup-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--lup-text) 7%, transparent);
  cursor: pointer;
  flex: none;
}
.lup-nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--lup-text);
  transition: transform .28s var(--ease-out), opacity .2s ease;
}
.lup-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lup-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lup-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ Hero / Landingpage ═══ */
.lup-hero {
  position: relative;
  height: 172vh;               /* 72vh Scrollstrecke für Abheben & Vorhang */
  background: transparent;
}

/* Der Inhalt nach dem Hero schiebt sich als „Vorhang“ mit eigener
   Hintergrundfläche und weich gerundeter Oberkante über die stehende
   Hero-Bühne (negative Überlappung = Scrollstrecke des Effekts). */
.lup-after-hero {
  position: relative;
  z-index: 5;
  margin-top: -72vh;
  background: var(--lup-bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.35);
  overflow: hidden;            /* Hintergrund-Grafik bleibt in der Form */
}

/* Frei positionierbare Hintergrund-Grafik: liegt HINTER allen
   Sektoren (deren z-index: 1) direkt auf der Grundfläche */
.lup-bg-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.lup-bg-deco img { width: 100%; height: auto; display: block; }

/* ═══ Admin-Positionierer: statische Miniatur der Startseite ═══
   (?lup_deco_preview=1) – Effekte aus, alles sichtbar, Hero flach */
.lup-preview-static .lup-reveal { opacity: 1 !important; transform: none !important; }
.lup-preview-static .lup-hero { height: 760px !important; }
.lup-preview-static .lup-hero-stage { position: relative !important; height: 760px !important; }
.lup-preview-static .lup-after-hero { margin-top: 0 !important; }
.lup-preview-static .lup-hero-layer--fg { display: none !important; }
.lup-preview-static .lup-scroll-hint svg { animation: none !important; }

.lup-hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.lup-hero-layers { position: absolute; inset: 0; z-index: 1; }

.lup-hero-layer {
  position: absolute;
  inset: -3.5%;                /* Reserve für Parallax-Bewegung */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  pointer-events: none;
}
/* Vordergrund (Vögel): fixiertes Overlay ÜBER allem – auch über dem
   Vorhang und der Navigation. Der Scroll-Handler schiebt es nach
   links aus dem Bild; pointer-events bleiben durchlässig. */
.lup-hero-layer--fg {
  position: fixed;
  inset: 0;                    /* komplettes Vordergrundbild ohne Randbeschnitt */
  z-index: 120;
}
.lup-hero-fg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Sicherheitsnetz: das Vogel-Overlay (liegt über allem) darf unter
   keinen Umständen Klicks abfangen – Navigation bleibt bedienbar */
.lup-hero-layer--fg,
.lup-hero-layer--fg * { pointer-events: none !important; }

/* Ohne JS bzw. bei reduzierter Bewegung: als normale Ebene über dem
   Hero verankern, damit das Overlay den Inhalt nicht dauerhaft deckt */
.no-js .lup-hero-layer--fg { position: absolute; z-index: 3; }
.no-js .lup-hero-fg-canvas { display: none; }

/* Schleier: oben Modus-Schleier für Lesbarkeit des Wortzeichens,
   unten fließt das Bild in die Seitenfarbe – Hero und Sektoren
   werden so „eins“ mit dem Hintergrund. */
.lup-hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6, 12, 8, 0.55) 0%,
      rgba(6, 12, 8, 0.18) 42%,
      rgba(6, 12, 8, 0.45) 100%);
  pointer-events: none;
}

.lup-hero-content {
  transition: opacity .25s ease;
  /* Der Hero-Schriftzug bleibt beim Zurückscrollen über der Navigation. */
  z-index: 100;
  position: absolute;
  left: clamp(24px, 7vw, 110px);
  top: 50%;
  transform: translateY(-58%);
}

.lup-hero-mark {
  position: relative;
  width: fit-content;
  color: #fff;                 /* über dem dunklen Schleier immer hell */
  transform-origin: center left;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.35));
}
.lup-hero-mark .lup-wordmark {
  color: #fff;
}

/* Untertitel: ruhige, gesperrte Planzeile unter dem Wortzeichen */
.lup-hero-subtitle {
  margin: clamp(16px, 2.4vw, 28px) 0 0 4px;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  will-change: opacity;
}

/* Scroll-Indikator: statisch, ein feiner Pfeil */
.lup-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color .2s ease;
}
.lup-scroll-hint svg {
  width: 24px;
  height: 24px;
  animation: lup-hint-bounce 2.2s var(--ease-out) infinite;
}
.lup-scroll-hint:hover { color: #fff; }

@keyframes lup-hint-bounce {
  0%, 100% { transform: translateY(0);   opacity: .65; }
  50%      { transform: translateY(9px); opacity: 1; }
}

/* Nur transform animieren – die Deckkraft steuert der Scroll-Handler */
@keyframes lup-hint-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}
.lup-scroll-hint { animation: lup-hint-bounce 2.2s ease-in-out infinite; }

/* ═══ Sektionen ═══
   Keine Trennlinien, keine Flächenwechsel – Sektoren leben im
   selben Grund und werden nur durch Weißraum gegliedert. */
.lup-section {
  position: relative;
  z-index: 1;                  /* Inhalt liegt über der Hintergrund-Grafik */
  scroll-margin-top: var(--nav-h);
  padding: clamp(44px, 5.5vw, 76px) 0;
}
.lup-section-inner { position: relative; z-index: 1; }

.lup-section-head { margin-bottom: clamp(22px, 3vw, 40px); max-width: 720px; }

.lup-section-title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lup-text);
}
.lup-taxonomy-description {
  margin: 16px 0 0;
  color: var(--lup-muted);
  max-width: 62ch;
}

/* ═══ Sektor 1 – Aktuelles ═══ */
.lup-news-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 116px;
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

/* Karten: eine Tonstufe heller als der Grund, keine Kontur –
   sie wachsen aus dem Hintergrund heraus. */
.lup-card {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
  transition: background-color .3s ease;
}
.lup-card:hover { background: var(--lup-surface-2); }

.lup-card-link { display: flex; flex-direction: column; height: 100%; }

.lup-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lup-bg-deep);
}
.lup-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lup-card-media-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--lup-muted) 45%, transparent);
  background: var(--lup-bg-deep);
}
.lup-card-media-placeholder svg { width: 44px; height: 44px; }

/* Datum als ruhige Metazeile im Kartentext */
.lup-card-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lup-muted);
}

.lup-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}
.lup-card-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--lup-text);
}
.lup-card-excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--lup-muted);
  flex: 1;
}
.lup-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lup-accent);
}
.lup-card-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.lup-card:hover .lup-card-more svg { transform: translateX(4px); }

.lup-card--placeholder { opacity: 0.8; }
.lup-card--placeholder:hover { background: var(--lup-surface); }

/* Verweis zu allen Beiträgen: gleiche weiche Kartensprache */
.lup-news-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 10px;
  border-radius: var(--r);
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
  text-align: center;
  transition: background-color .3s ease;
}
.lup-news-more:hover { background: var(--lup-surface-2); }
.lup-news-more-icon {
  display: grid;
  place-items: center;
  color: var(--lup-accent);
  transition: transform .25s var(--ease-out);
}
.lup-news-more-icon svg { width: 22px; height: 22px; }
.lup-news-more:hover .lup-news-more-icon { transform: translateX(4px); }
.lup-news-more-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--lup-text);
}

/* Archiv-Raster */
.lup-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* ═══ Sektor 2 – Über LUP ═══ */
.lup-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lup-about-text p { color: var(--lup-muted); margin: 0 0 1em; }
.lup-about-text .lup-section-title { margin-bottom: 20px; }
.lup-about-text .lup-btn { margin-top: 12px; }

.lup-about-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lup-bg-deep);
  box-shadow: var(--lup-shadow);
}
.lup-about-media img { width: 100%; height: 100%; object-fit: cover; }
.lup-about-media-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: color-mix(in srgb, var(--lup-muted) 60%, transparent);
  font-size: 14px;
  background: var(--lup-bg-deep);
}
.lup-about-media-placeholder svg { width: 52px; height: 52px; }

/* ═══ Sektor 3 – Mehr entdecken ═══ */
/* Minimalistische Linkliste: keine Kartenflächen, Schatten oder
   Dekoelemente – nur Typografie, Weißraum und feine Trennlinien. */
.lup-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
}
.lup-explore-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 7px 24px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--lup-line);
}

.lup-explore-tile-title {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--lup-text);
  transition: color .2s ease;
}
.lup-explore-tile:hover .lup-explore-tile-title { color: var(--lup-accent); }

.lup-explore-tile-desc {
  grid-column: 1;
  grid-row: 2;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lup-muted);
}
.lup-explore-tile-desc:empty { display: none; }

/* Der Pfeil bleibt bewusst ohne Kreis oder Farbfläche. */
.lup-explore-tile-arrow {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--lup-muted);
  transition: color .2s ease, transform .3s var(--ease-out);
}
.lup-explore-tile-arrow svg { width: 18px; height: 18px; }
.lup-explore-tile:hover .lup-explore-tile-arrow {
  color: var(--lup-accent);
  transform: translateX(3px);
}
.lup-explore-tile:focus-visible { border-radius: 0; }

@media (max-width: 760px) {
  .lup-explore-grid { grid-template-columns: 1fr; }
}

/* ═══ Buttons ═══
   Akzent nur hier großflächig – die eine Handlung pro Sektion. */
.lup-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--lup-accent);
  color: var(--lup-accent-ink);
  font-size: 15.5px;
  font-weight: 600;
  transition: filter .2s ease;
}
.lup-btn svg { width: 17px; height: 17px; }
.lup-btn:hover { filter: brightness(1.1); }

/* ═══ Seitenbanner ═══
   Exakt so breit wie der nachfolgende Inhaltscontainer: Archive und
   breite Templates 1200 px, Textseiten und Beiträge 820 px. */
.lup-page-banner {
  --lup-banner-notch: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1200px, calc(100% - 48px));
  min-height: 160px;
  max-height: 460px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--lup-bg-deep) 82%, var(--lup-surface));
  line-height: 0;
  overflow: hidden;
  position: relative;
}
.lup-page-banner--content { width: min(820px, calc(100% - 48px)); }
.lup-page-banner img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  display: block;
}

/* Titel-Aussparung: Die Fläche deckt das Bild wirklich ab und verwendet
   exakt den Seitenhintergrund. Zwei radiale Pseudo-Elemente formen die
   zusätzlichen nach innen gerundeten Übergänge links oben und rechts unten. */
.lup-page-banner-title {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  max-width: min(82%, 760px);
  padding: clamp(16px, 2vw, 24px) clamp(26px, 3vw, 40px) clamp(14px, 1.8vw, 22px);
  border-radius: 0 var(--r-lg) 0 0;
  background: var(--lup-bg);
  line-height: normal;
}
.lup-page-banner-title::before,
.lup-page-banner-title::after {
  content: '';
  position: absolute;
  width: var(--lup-banner-notch);
  height: var(--lup-banner-notch);
  background: radial-gradient(
    circle at 100% 0,
    transparent calc(var(--lup-banner-notch) - 1px),
    var(--lup-bg) var(--lup-banner-notch)
  );
  pointer-events: none;
}
.lup-page-banner-title::before {
  left: 0;
  top: calc(-1 * var(--lup-banner-notch));
}
.lup-page-banner-title::after {
  right: calc(-1 * var(--lup-banner-notch));
  bottom: 0;
}
.lup-page-banner-heading {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--lup-text);
}

/* Mit Banner beginnt der Titelbereich beinahe direkt darunter. Seiten
   ohne Banner behalten ihre bisherigen großzügigen Abstände. */
.lup-page-banner + .lup-single,
.lup-page-banner + .lup-section {
  padding-top: 20px;
}

@media (max-width: 640px) {
  .lup-page-banner {
    --lup-banner-notch: 18px;
    width: calc(100% - 32px);
    min-height: 140px;
    max-height: 280px;
    border-radius: 18px;
  }
  .lup-page-banner--content { width: calc(100% - 32px); }
  .lup-page-banner img { max-height: 280px; }
  .lup-page-banner-title {
    max-width: calc(100% - 32px);
    padding: 13px 20px 12px;
    border-radius: 0 18px 0 0;
  }
  .lup-page-banner-heading { font-size: clamp(24px, 8vw, 32px); }
}

/* ═══ Einzelbeitrag / Seite ═══ */
.lup-single { padding: clamp(24px, 4vw, 56px) 0 clamp(72px, 8vw, 110px); }
.lup-single-inner { max-width: 820px; }

.lup-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--lup-surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--lup-muted);
  transition: color .2s ease, background-color .2s ease;
}
.lup-backlink svg { width: 16px; height: 16px; }
.lup-backlink:hover { color: var(--lup-text); background: var(--lup-surface-2); }

.lup-single-head { margin-bottom: 32px; }
.lup-single-meta {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--lup-muted);
}
.lup-single-title {
  margin: 12px 0 0;
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--lup-text);
}
.lup-single-head > .lup-single-title:first-child { margin-top: 0; }

.lup-prose { font-size: 17.5px; }
.lup-prose > * + * { margin-top: 1.1em; }
.lup-prose p, .lup-prose li { color: color-mix(in srgb, var(--lup-text) 82%, var(--lup-muted)); }
.lup-prose h2, .lup-prose h3, .lup-prose h4 {
  color: var(--lup-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.5em;
}
.lup-prose a {
  color: var(--lup-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lup-prose img, .lup-prose .wp-block-image img { border-radius: var(--r); }
.lup-prose blockquote {
  margin: 1.4em 0;
  padding: 18px 26px;
  border-left: 3px solid var(--lup-accent);
  background: var(--lup-surface);
  border-radius: 0 var(--r) var(--r) 0;
}
.lup-prose pre {
  padding: 18px;
  border-radius: var(--r);
  background: var(--lup-bg-deep);
  overflow: auto;
}
.lup-prose figcaption { color: var(--lup-muted); font-size: 14px; margin-top: 8px; }

.lup-single-footer { margin-top: 48px; }

/* Pagination */
.lup-pagination { margin-top: 48px; }
.lup-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lup-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--lup-surface);
  font-weight: 600;
  color: var(--lup-muted);
  transition: color .2s ease, background-color .2s ease;
}
.lup-pagination .page-numbers:hover { color: var(--lup-text); background: var(--lup-surface-2); }
.lup-pagination .page-numbers.current {
  background: var(--lup-accent);
  color: var(--lup-accent-ink);
}

.lup-empty {
  padding: 44px;
  border-radius: var(--r);
  background: var(--lup-surface);
  color: var(--lup-muted);
  text-align: center;
}

/* 404 */
.lup-404 { text-align: center; max-width: 560px; }
.lup-404 h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--lup-text); margin: 0 0 12px; }
.lup-404 p { color: var(--lup-muted); margin: 0 0 28px; }

/* ═══ Footer ═══
   Eine Stufe tiefer, oben weich gerundet – schließt die Seite
   ruhig ab, ohne harte Kante. */
.lup-footer {
  position: relative;
  z-index: 5;
  background: var(--lup-bg-deep);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(56px, 7vw, 88px) 0 28px;
  transition: background-color .3s ease;
}
.lup-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--lup-line);
}
.lup-footer-about { color: var(--lup-muted); font-size: 15px; max-width: 40ch; margin: 0; }
.lup-footer-col h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lup-muted);
}
.lup-footer-menu, .lup-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Fallback-Menü (ul.lup-menu) im Footer vertikal darstellen */
.lup-footer-col .lup-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
.lup-footer-col .lup-menu a {
  padding: 4px 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--lup-muted);
  background: none;
}
.lup-footer-col .lup-menu a:hover { background: none; color: var(--lup-text); }
.lup-footer-menu a, .lup-footer-contact a {
  position: relative;
  display: inline-block;
  color: var(--lup-muted);
  transition: color .2s ease;
}
/* Unterstrich wie in der Navigation: wächst beim Hover von links,
   auf der aktuellen Seite bleibt er stehen */
.lup-footer-menu a::after,
.lup-footer-col .lup-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--lup-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease-out);
}
.lup-footer-menu a:hover, .lup-footer-contact a:hover { color: var(--lup-text); }
.lup-footer-menu a:hover::after,
.lup-footer-col .lup-menu a:hover::after { transform: scaleX(1); }
/* Im Footer bewusst KEINE dauerhafte Markierung – der Unterstrich
   erscheint ausschließlich beim Hover */
.lup-footer-col .lup-menu .current-menu-item > a::after,
.lup-footer-col .lup-menu .current_page_item > a::after,
.lup-footer-menu .current-menu-item > a::after,
.lup-footer-menu .current_page_item > a::after { transform: scaleX(0); }
.lup-footer-col .lup-menu .current-menu-item > a:hover::after,
.lup-footer-menu .current-menu-item > a:hover::after { transform: scaleX(1); }
.lup-footer-contact li { color: var(--lup-muted); font-size: 15px; }
.lup-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--lup-muted);
}
.lup-footer-legal { display: flex; gap: 18px; }
.lup-footer-legal a:hover { color: var(--lup-text); }

/* ═══ Reveal beim Scrollen ═══
   Nur Deckkraft + kleiner Versatz – ruhig und unaufdringlich. */
.lup-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .55s var(--ease-out) var(--reveal-delay, 0ms),
    transform .55s var(--ease-out) var(--reveal-delay, 0ms);
}
.lup-reveal.is-in { opacity: 1; transform: none; }

/* Ohne JS trotzdem alles sichtbar */
.no-js .lup-reveal { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */
@media (max-width: 1080px) {
  .lup-news-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lup-news-more {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 76px;
    padding: 18px 24px;
  }
}

@media (max-width: 900px) {
  .lup-about-grid { grid-template-columns: 1fr; }
  .lup-about-media { order: -1; max-width: 560px; }
  .lup-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .lup-nav-toggle { display: flex; }
  .lup-nav-links {
    position: fixed;
    inset: var(--nav-h) 16px auto 16px;
    padding: 10px;
    border-radius: var(--r);
    background: color-mix(in srgb, var(--lup-bg-deep) 97%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .24s var(--ease-out), transform .24s var(--ease-out), visibility 0s linear .24s;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  /* Auch Untermenüs setzen auf Mobilgeräten pointer-events:auto. Deshalb
     werden im geschlossenen Zustand ausdrücklich sämtliche Nachfahren
     deaktiviert, damit keine unsichtbaren Links Klicks abfangen können. */
  .lup-nav-links:not(.is-open),
  .lup-nav-links:not(.is-open) * {
    pointer-events: none !important;
  }
  .lup-nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .lup-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .lup-menu a { display: block; padding: 13px 18px; }
  .lup-menu a::after { left: 18px; right: auto; width: 26px; bottom: 8px; }
  .lup-menu .menu-item-has-children > a::before { display: none; }
  .lup-menu .sub-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    padding: 0 0 4px 16px;
  }
  .lup-menu .sub-menu a { padding: 10px 14px; }
  .lup-language-switcher {
    align-self: flex-start;
    margin: 4px 8px 6px;
    border-color: rgba(29, 42, 21, .16);
    background: rgba(255, 255, 255, .55);
  }
  .lup-language-link,
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-language-link { color: #46513e; }
  .lup-language-link.is-active,
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-language-link.is-active {
    color: #1d2a15;
    background: var(--lup-accent);
  }

  /* Das geöffnete Menü liegt auf einer hellen Fläche. Auch direkt auf
     dem noch dunklen Landingpage-Hero bleiben deshalb ALLE Texte dunkel. */
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open {
    background: #EFF3E7;
  }
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open .lup-language-switcher {
    border-color: rgba(29, 42, 21, .16);
    background: rgba(255, 255, 255, .58);
  }
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open .lup-menu a,
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open .lup-menu .sub-menu a,
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open .lup-menu .current-menu-item > a,
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open .lup-menu .current_page_item > a {
    color: #1D2A15;
  }
  .lup-is-front .lup-nav:not(.lup-nav--scrolled) .lup-nav-links.is-open .lup-menu a::after {
    background: var(--lup-accent);
  }
}

@media (max-width: 640px) {
  .lup-news-row { grid-template-columns: 1fr; }
  .lup-hero { height: 160vh; }
  .lup-after-hero { margin-top: -60vh; }
  .lup-hero-content { top: 46%; }
  .lup-wordmark--hero { width: min(72vw, 340px); }
  .lup-hero-subtitle { font-size: 12px; letter-spacing: 0.24em; }
}

/* Der Vordergrund bleibt auch auf kleinen und primär per Touch
   bedienten Geräten sichtbar. Das Canvas passt stets das vollständige
   Bild ein; das Overlay selbst nimmt weiterhin keine Klicks entgegen. */

/* ═══ Reduzierte Bewegung ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .lup-reveal { opacity: 1; transform: none; }
  .lup-hero { height: auto; }
  .lup-hero-stage { position: relative; height: 100vh; }
  .lup-after-hero { margin-top: 0; border-radius: 0; box-shadow: none; }
  .lup-hero-layer--fg { position: absolute; z-index: 3; }
}

/* ═══ Leistungsbereiche (Startseite) ═══ */
.lup-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.lup-service {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
  transition: background-color .3s ease;
}
.lup-service:hover { background: var(--lup-surface-2); }
.lup-service-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lup-bg-deep);
}
.lup-service-media img { width: 100%; height: 100%; object-fit: cover; }
.lup-service-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}
.lup-service-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--lup-text);
}
.lup-service-text { margin: 0; font-size: 15px; color: var(--lup-muted); flex: 1; }
.lup-service:hover .lup-card-more svg { transform: translateX(4px); }

/* ═══ Fakten (Über LUP) ═══ */
.lup-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
}
.lup-fact { margin: 0; }
.lup-fact-num {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--lup-accent);
  line-height: 1.1;
}
.lup-fact-label {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--lup-muted);
}

/* ═══ Datenportale ═══ */
.lup-portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.lup-portal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
  transition: background-color .3s ease;
}
.lup-portal:hover { background: var(--lup-surface-2); }
.lup-portal-media { min-height: 180px; background: var(--lup-bg-deep); }
.lup-portal-media img { width: 100%; height: 100%; object-fit: cover; }
.lup-portal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}
.lup-portal-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lup-text);
}
.lup-portal-text { margin: 0; font-size: 15px; color: var(--lup-muted); flex: 1; }
.lup-portal:hover .lup-card-more svg { transform: translate(2px, -2px); }

@media (max-width: 560px) {
  .lup-portal { grid-template-columns: 1fr; }
  .lup-portal-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ═══ Kategorie-Filter (Archiv) ═══ */
.lup-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -16px 0 36px;
}
.lup-filter-chip {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--lup-surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--lup-muted);
  transition: color .2s ease, background-color .2s ease;
}
.lup-filter-chip:hover { color: var(--lup-text); background: var(--lup-surface-2); }
.lup-filter-chip.is-active {
  background: var(--lup-accent);
  color: var(--lup-accent-ink);
}

.lup-card-cat { color: var(--lup-accent); }
.lup-single-cat { color: var(--lup-accent); }
.lup-single-cat:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ═══ Kontaktkarte (Team und Kontakt) ═══ */
.lup-contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 40px);
  margin-bottom: clamp(40px, 6vw, 72px);
  border-radius: var(--r);
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
}
.lup-contact-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lup-muted);
}
.lup-contact-col p { margin: 0 0 12px; color: var(--lup-text); }
.lup-contact-col a { color: var(--lup-accent); }

/* ═══ Team-Raster ═══ */
.lup-group-title {
  margin: clamp(36px, 5vw, 56px) 0 24px;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lup-text);
}
.lup-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.lup-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
  transition: background-color .3s ease;
}
.lup-person:hover { background: var(--lup-surface-2); }
.lup-person-photo {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lup-bg-deep);
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--lup-muted) 55%, transparent);
}
.lup-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.lup-person-photo svg { width: 44px; height: 44px; }
.lup-person-role {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lup-accent);
}
.lup-person-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lup-text);
}
.lup-person-degree { font-size: 13.5px; color: var(--lup-muted); }
.lup-person-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lup-muted);
  transition: color .2s ease;
}
.lup-person-link svg { width: 14px; height: 14px; }
.lup-person-link:hover { color: var(--lup-accent); }

/* ═══ Leistungsbereich-Seiten: Liste als ruhige Kachel-Punkte ═══ */
.lup-prose--service ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 10px 22px;
}
.lup-prose--service ul li {
  position: relative;
  padding: 12px 16px 12px 38px;
  border-radius: 14px;
  background: var(--lup-surface);
  font-size: 15.5px;
}
.lup-prose--service ul li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lup-accent);
}
.lup-service-others { margin-top: clamp(40px, 6vw, 64px); }

.lup-footer-note { color: var(--lup-muted); }

/* ═══ 3D-Anwinklung der Sektionsbilder ═══
   Eigenständige Bildflächen kippen leicht im Raum und richten
   sich beim Überfahren auf; Bilder in Karten kippen innerhalb
   ihres Rahmens (mit Reserve-Skalierung gegen Randlücken). */
/* Alleinstehende Bilder in den Sektoren kippen deutlich sichtbar
   im Raum und richten sich beim Überfahren sanft auf. Bilder in
   Karten bleiben bewusst flach – der Effekt gehört den Solitären. */
.lup-about-media {
  transform: perspective(1100px) rotateX(4deg) rotateY(-9deg);
  transition: background-color .3s ease;
}
/* Räumlicher Schattenwurf verstärkt die Anwinklung */
.lup-about-media {
  box-shadow: 24px 30px 60px -34px rgba(24, 42, 30, 0.45);
}

/* Das About-Bild trägt die Reveal-Klasse – deren „is-in“-Regel würde
   den Tilt mit transform:none überschreiben. Diese spezifischeren
   Regeln lassen das Bild IN die angewinkelte Pose einblenden. */
.lup-about-media.lup-reveal {
  transform: perspective(1100px) rotateX(4deg) rotateY(-9deg) translateY(16px);
}
.lup-about-media.lup-reveal.is-in {
  transform: perspective(1100px) rotateX(4deg) rotateY(-9deg);
}
.no-js .lup-about-media.lup-reveal {
  transform: perspective(1100px) rotateX(4deg) rotateY(-9deg);
}

@media (prefers-reduced-motion: reduce) {
  .lup-about-media { transform: none !important; }
}

/* ═══ MoorFutures-Zertifikat (Über-LUP-Sektor) ═══ */
.lup-cert {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 14px 20px 14px 14px;
  max-width: 560px;
  border-radius: var(--r);
  background: var(--lup-surface);
  box-shadow: var(--lup-shadow);
  transition: background-color .3s ease;
}
.lup-cert:hover { background: var(--lup-surface-2); }
.lup-cert-media {
  flex: none;
  width: 118px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--lup-line);
}
.lup-cert-media img { display: block; width: 100%; height: auto; }
.lup-cert-text { font-size: 14px; line-height: 1.5; color: var(--lup-muted); }
.lup-cert-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lup-accent);
}

/* ═══ Bilder im Beitragstext: beliebig viele, überall ═══
   Der Block-Editor kann Bilder/Galerien frei platzieren – hier die
   passende Darstellung inkl. Umfluss links/rechts. */
.lup-prose figure { margin: 1.5em 0; }
.lup-prose .wp-block-image img,
.lup-prose .wp-block-gallery img { height: auto; border-radius: var(--r); }
.lup-prose .alignleft  { float: left;  margin: 0.4em 1.6em 1em 0;  max-width: min(48%, 420px); }
.lup-prose .alignright { float: right; margin: 0.4em 0 1em 1.6em; max-width: min(48%, 420px); }
.lup-prose .aligncenter { margin-left: auto; margin-right: auto; }
.lup-prose .alignwide,
.lup-prose .alignfull {
  position: relative;
  left: 50%;
  max-width: none;
  transform: translateX(-50%);
}
.lup-prose .alignwide { width: min(1100px, calc(100vw - 48px)); }
.lup-prose .alignfull { width: 100vw; }
.lup-prose .alignfull img { width: 100%; border-radius: 0; }
.lup-prose .wp-block-gallery { gap: 14px; }
.lup-prose::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) {
  .lup-prose .alignleft, .lup-prose .alignright { float: none; max-width: 100%; margin: 1.2em 0; }
  .lup-cert { flex-direction: column; align-items: flex-start; }
}
