/* -------------------------------------------------------
   GLOBAL BASICS
-------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  color: #000;
  background: rgb(154, 201, 211);
}

/* -------------------------------------------------------
   HEADER
-------------------------------------------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 26px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.40);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

header.is-scrolled {
  background: rgba(0, 0, 0, 0.60);
  padding: 8px 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 54px;
  width: auto;
  filter: invert(1);
  display: block;
  transition: height 0.25s ease, transform 0.25s ease;
}

header.is-scrolled .logo-img {
  height: 40px;
  transform: translateY(1px);
}

/* -------------------------------------------------------
   NAVIGATION
-------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  position: relative;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
}

/* Unterstrich */
.nav a:not(.nav-icon)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: #fff;
  transition: width 0.2s ease;
}

.nav a:not(.nav-icon):hover::after {
  width: 100%;
}

/* Aktiver Menüpunkt */
.nav a.is-active {
  font-weight: 600;
}

.nav a.is-active:not(.nav-icon)::after {
  width: 100%;
}

.nav-icon .icon {
  width: 17px;
  height: 17px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.nav-icon:hover .icon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
  transform: translateY(-1px);
}

/* Burger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span+span {
  margin-top: 4px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------
   HERO SECTION
-------------------------------------------------------- */

.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  background: url("../bilder/wwdz01.jpg") center/cover no-repeat;
  overflow: hidden;
  color: #ffffff;
}

/* Soft top gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.60) 0%,
      rgba(255, 255, 255, 0.30) 35%,
      rgba(255, 255, 255, 0.00) 80%);
  z-index: 1;
}

/* Fade-out bottom (smooth transition into page background color) */
.hero-fadeout {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom,
      rgba(154, 201, 211, 0) 0%,
      rgba(154, 201, 211, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Hero centered content */
.hero-content-wrapper {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  text-align: center;
  z-index: 3;
}

/* .hero-content moved by JS Parallax */

/* Fade + Slide-In */
.hero-inner {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 1s;
}

/* Buttons appear later */
.hero-buttons {
  display: inline-flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 1.7s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------
   NEU: HERO MIT VIDEO (media.html)
-------------------------------------------------------- */

.hero--video {
  background: none;
  /* überschreibt Bild */
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* unter Overlay */
}

/* -------------------------------------------------------
   GLASS BUTTONS
-------------------------------------------------------- */

.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.30);
}

/* No-blur fallback */
@supports not (backdrop-filter: blur(4px)) {
  .btn {
    background: rgba(255, 255, 255, 0.40);
  }

  .btn-primary {
    background: #ffffff;
  }
}

/* -------------------------------------------------------
   MAIN CONTENT BACKGROUND COLOR
-------------------------------------------------------- */

.content {
  min-height: 70vh;
  padding: 4rem 1.5rem;
  background: rgb(154, 201, 211);
  color: #000;
}

.content h2 {
  margin-bottom: 1rem;
}

/* -------------------------------------------------------
   FLOATING HOME BUTTON
-------------------------------------------------------- */

.floating-home {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 30;
}

.floating-home.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* -------------------------------------------------------
   VERANSTALTUNGEN (EVENTS)
-------------------------------------------------------- */

.content-events {
  max-width: 1100px;
  margin: 0 auto;
}

.content-events h2 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.event-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.event-media img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.event-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.event-meta {
  margin: 0 0 1.25rem 0;
}

.event-meta-item {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.15rem;
  margin-bottom: 0.4rem;
}

.event-meta-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.event-meta-item dd {
  font-size: 0.9rem;
  margin: 0;
}

.event-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.event-extra {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.85;
  font-style: italic;
}

/* Desktop → zweispaltig */
@media (min-width: 900px) {
  .event-card {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .event-media {
    max-width: 40%;
  }
}

/* Mobile Tweaks */
@media (max-width: 599px) {
  .event-card {
    padding: 1.25rem;
  }

  .event-meta-item {
    grid-template-columns: 1fr;
  }

  .event-meta-item dt {
    margin-bottom: 0.05rem;
  }
}

/* -------------------------------------------------------
   VERBINDUNGEN (LINK LIST)
-------------------------------------------------------- */

.content-connections {
  max-width: 1100px;
  margin: 0 auto;
}

.content-connections h2 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* Card Layout */
.connection-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

/* Verbindungen: Bilder niemals hochskalieren */
.connection-media img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Text */
.connection-info {
  flex: 1;
}

.connection-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.connection-url a,
.connection-card a,
.event-card a {
  font-size: 0.9rem;
  color: #004a66;
  text-decoration: underline;
  word-break: break-all;
}

.connection-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* Desktop zweispaltig */
@media (min-width: 900px) {
  .connection-card {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .connection-media {
    max-width: 40%;
  }
}

/* Mobile Optimierung */
@media (max-width: 599px) {
  .connection-card {
    padding: 1.25rem;
  }
}

/* =========================
   TEAM ("WIR") – Foto links, Text rechts
   ========================= */

.connection-card.team-card .connection-media {
  flex: 0 0 400px;
  max-width: 400px;
}

.connection-card.team-card .connection-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 400x400 Look */
  object-fit: cover;
  /* sauberer Crop */
  border-radius: 14px;
  display: block;
}

/* Responsive: auf kleineren Screens nicht 400px erzwingen */
@media (max-width: 900px) {
  .connection-card.team-card .connection-media {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

/* -------------------------------------------------------
   BILDUNG (FLIESSTEXT)
-------------------------------------------------------- */

.content-education {
  max-width: 900px;
  margin: 0 auto;
}

.content-education h2 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.education-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.education-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.education-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .education-card {
    padding: 1.4rem;
  }
}

/* -------------------------------------------------------
   NEU: MEDIA (media.html) – Cards wie „Events“
-------------------------------------------------------- */

.content-media {
  max-width: 1100px;
  margin: 0 auto;
}

.content-media h2 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.media-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.media-inline-video {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.media-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.media-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.media-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.media-photo-placeholder {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.08);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .media-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* === Media: YouTube Video Grid === */
.media-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .media-video-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsiver YouTube-Embed */
.yt-embed {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 */
  overflow: hidden;
  border-radius: 8px;
}

.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   MEDIA: Editorial-Galerie (Text links, Slider rechts)
   ========================= */

.gallery-card {
  /* nutzt media-card Basis (Padding, Radius, Shadow etc.) */
  position: relative;
}

.gallery-card .gallery-text {
  min-width: 0;
}

.gallery-card .gallery-slider {
  position: relative;
  min-width: 0;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.gallery-track {
  display: flex;
  transition: transform 450ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Pfeile */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 150ms ease, background 200ms ease;
  color: #000;
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
  display: block;
}

.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* Dots */
.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
}

.gallery-dot.is-active {
  background: rgba(0, 0, 0, 0.55);
}

/* Desktop Layout: Text links, Slider rechts */
@media (min-width: 900px) {
  .gallery-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
  }
}

/* -------------------------------------------------------
   KONTAKT
-------------------------------------------------------- */

.content-contact {
  max-width: 900px;
  margin: 0 auto;
}

.content-contact h2 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.contact-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* Formular-Layout */
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.contact-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
}

/* Textarea leicht anders */
.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
}

/* Button-Gruppe im Formular */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Feedback-Meldungen im Kontaktbereich */
.contact-feedback {
  display: none;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Erfolg */
.contact-feedback--success {
  display: block;
  background: rgba(0, 120, 60, 0.12);
  border: 1px solid rgba(0, 120, 60, 0.4);
  color: #004225;
}

/* Fehler */
.contact-feedback--error {
  display: block;
  background: rgba(180, 0, 0, 0.12);
  border: 1px solid rgba(180, 0, 0, 0.4);
  color: #5a0000;
}


/* -------------------------------------------------------
   FOOTER
-------------------------------------------------------- */

.site-footer {
  background: rgb(120, 170, 185);
  /* etwas dunkler als der Content-Hintergrund */
  color: #ffffff;
  padding: 1.8rem 1.5rem;
  margin-top: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-address a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Links und Button im Footer gleich aussehen lassen */
.footer-link,
.footer-link-button {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

/* Hover-Unterstrich */
.footer-link::after,
.footer-link-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.footer-link:hover::after,
.footer-link-button:hover::after {
  width: 100%;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------
   RESPONSIVE NAVIGATION
-------------------------------------------------------- */

@media (max-width: 900px) {
  header {
    padding: 12px 14px;
  }

  header.is-scrolled {
    padding: 8px 10px;
  }

  .logo-img {
    height: 46px;
  }

  header.is-scrolled .logo-img {
    height: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0, 0, 0, 0.94);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
  }
}


/* -------------------------------------------------------
   SCROLLFX: dezente Reveal/Parallax Effekte
-------------------------------------------------------- */

/* Basis: Karten + Überschriften werden per JS mit .scrollfx markiert */
.scrollfx {
  --p: 0;
  /* 0..1 Progress im Viewport */
  opacity: calc(0.20 + (var(--p) * 0.80));
  transform: translate3d(0, calc((1 - var(--p)) * 24px), 0) scale(calc(0.98 + (var(--p) * 0.02)));
  filter: blur(calc((1 - var(--p)) * 2px));
  transition:
    opacity 600ms ease,
    transform 700ms cubic-bezier(.2, .8, .2, 1),
    filter 700ms ease;
  will-change: opacity, transform, filter;
}

/* Sobald ein Element einmal im Viewport war, bekommt es zusätzlich eine Klasse */
.scrollfx.is-visible {
  /* Progress steuert weiterhin die Feinheiten, aber wir stellen sicher, dass es sichtbar bleibt */
  opacity: calc(0.55 + (var(--p) * 0.45));
  filter: blur(0);
}

/* Überschriften etwas knackiger */
.content h2.scrollfx {
  transform: translate3d(calc((1 - var(--p)) * -12px), calc((1 - var(--p)) * 18px), 0);
  transition:
    opacity 500ms ease,
    transform 650ms cubic-bezier(.2, .8, .2, 1),
    filter 650ms ease;
}

/* Weiße Blöcke (Cards): leichte Transparenz-Dynamik */
.event-card.scrollfx,
.connection-card.scrollfx,
.education-card.scrollfx,
.contact-card.scrollfx,
.media-card.scrollfx {
  /* Start: etwas transparenter, wird beim Scrollen „fester“ */
  background: rgba(255, 255, 255, calc(0.70 + (var(--p) * 0.25)));
  box-shadow: 0 10px 30px rgba(0, 0, 0, calc(0.06 + (var(--p) * 0.05)));
  backdrop-filter: blur(calc(2px + (var(--p) * 4)));
}

/* Optional: minimaler Abstandseindruck ohne Layout-Shift (über translateY) */
.scrollfx[data-scrollfx-tight="true"] {
  transform: translate3d(0, calc((1 - var(--p)) * 18px), 0);
}

@media (prefers-reduced-motion: reduce) {
  .scrollfx {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    background: inherit !important;
    box-shadow: inherit !important;
    backdrop-filter: none !important;
  }
}

/* =========================
   LIGHTBOX (clean): Bild groß + Pfeile + Dots
   ========================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.lightbox-figure {
  width: min(1100px, 92vw);
  margin: 0;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  display: block;
}

/* Close (oben rechts) */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Pfeile */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 150ms ease, background 200ms ease;
}

.lightbox-arrow svg {
  width: 26px;
  height: 26px;
  display: block;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Dots */
.lightbox-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.lightbox-dot.is-active {
  background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 700px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}