/* ===== STUDENTENVEREIN MÜLLN DESIGN - APPLE INSPIRED ===== */

:root {
  --white: #ffffff;
  --black: #1d1d1f;
  --gray-50: #fbfbfd;
  --gray-100: #f5f5f7;
  --gray-300: #d2d2d7;
  --gray-500: #86868b;
  --gray-700: #6e6e73;

  /* Vereinsfarben: Hellgrau-Weiß als Basis, Bordeaux als Akzent */
  --verein-accent: #3d72a8;
  --verein-accent-light: #5b91c4;
  --verein-accent-dark: #2c5480;

  --accent: var(--verein-accent);
  --accent-light: var(--verein-accent-light);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--verein-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--verein-accent-light);
}

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

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 58px;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 2px solid var(--verein-accent);
}

.header-inner {
  max-width: 1024px;
  height: 58px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.3s;
}

.brand:hover {
  opacity: 1;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: 38px;
  object-fit: contain;
  filter: none;
}

.menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--black);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  padding: 0 10px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.main-nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.main-nav a.current {
  opacity: 1;
}

.main-nav a.current::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--verein-accent);
  z-index: 1;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #1d1d1f;
  padding-top: 58px;
  overflow: hidden;
  position: relative;
}

/* Hausfoto in Hero und Seitenköpfen: so breit wie möglich (volle Breite, nur oben und unten
   beschnitten) und das Wappen an der Fassade immer genau in der Mitte. Dafür wird das Foto
   als eigenes Element so verschoben, dass der Wappen-Punkt (48,75 % / 52,75 % des Bildes)
   auf der Mitte des Kopfbereichs liegt. Die Mindestbreite sorgt dafür, dass das Foto auch
   bei schmalen, hohen Bildschirmen den Kopfbereich ganz ausfüllt. --hero-h = Höhe des Bereichs. */
.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--hero-top, 0px) + (100% - var(--hero-top, 0px)) / 2);
  width: max(103%, calc(var(--hero-h) * 0.8));
  aspect-ratio: 800 / 1067;
  background-image: url("../../images/haus.jpg");
  background-image: image-set(url("../../images/haus.webp") type("image/webp"), url("../../images/haus.jpg") type("image/jpeg"));
  background-size: 100% 100%;
  transform: translate(-48.75%, -52.75%);
  z-index: 0;
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: var(--hero-top, 0px) 0 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 0;
}

.hero {
  --hero-top: 58px;
  --hero-h: calc(100svh - 58px);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  z-index: 1;
}

.kicker {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  color: var(--gray-300);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 1000px;
}

.hero p {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray-300);
  max-width: 580px;
  margin: 0 auto;
}

.hero p + p {
  margin-top: 12px;
}

.section-card {
  max-width: 680px;
  margin: 0 auto;
}

.section-card + .section-card {
  margin-top: 56px;
}

/* ===== PAGE HERO (Subpages) ===== */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  margin-top: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1d1d1f;
  --hero-h: clamp(400px, 50vh, 600px);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ===== CONTENT STYLING ===== */
.content {
  padding: 80px 24px;
  background: var(--white);
}

body:not(.page-start) .content {
  padding-top: 80px;
}

/* When page-hero exists, reduce content top padding */
.page-hero + .content {
  padding-top: 80px;
}

.content article {
  max-width: 680px;
  margin: 0 auto;
}

.content h1 {
  font-size: clamp(34px, 6.5vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}

.content h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  margin-top: 52px;
  margin-bottom: 16px;
  color: var(--black);
}

.content h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--black);
  margin-top: 36px;
  margin-bottom: 12px;
}

.content h2:first-child,
.content h3:first-child,
.content .lead + h2 {
  margin-top: 0;
}

.content p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.content p.lead {
  font-size: 21px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 28px;
}

.content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.content li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 8px;
}

/* ===== LARGE INTRO SECTION ===== */
.intro-section {
  padding: 120px 24px;
  background: var(--gray-100);
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(34px, 6.5vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--black);
  max-width: 900px;
  margin: 0 auto 24px;
}

.intro-section p {
  font-size: 21px;
  line-height: 1.5;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ERROR PAGE ===== */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 70px;
  text-align: center;
}

.not-found__content {
  max-width: 460px;
}

.not-found h1 {
  margin: 0;
  color: var(--verein-accent);
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
}

.not-found h2 {
  margin: 18px 0 18px;
  color: var(--black);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
}

.not-found p {
  margin: 0 auto 32px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.6;
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--verein-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

#scrollTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn svg {
  width: 24px;
  height: 24px;
}

/* ===== LINK WITH ARROW ===== */
.link-arrow {
  font-size: 21px;
  color: var(--verein-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-arrow::after {
  content: '›';
  font-size: 26px;
  line-height: 1;
  transition: transform 0.25s;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-arrow:hover {
  text-decoration: underline;
  color: var(--verein-accent-light);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Hero entrance animation */
.page-start .kicker {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.page-start .hero h1 {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.page-start .hero p {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.page-start .hero p:nth-of-type(2) {
  animation-delay: 0.5s;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-100);
  padding: 16px 0;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
}

.footer p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--verein-accent);
  color: var(--white);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer a {
  color: var(--gray-700);
  font-size: 12px;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== CONTACT SOCIAL LINKS ===== */
.contact-social {
  margin: 44px 0 8px;
}

.contact-social__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-social__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 24px 10px 12px;
  border-radius: 980px;
  background: var(--gray-100);
  color: var(--black);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.14);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-social__link:hover {
  background: var(--verein-accent);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(61, 114, 168, 0.25);
}

.contact-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-700);
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-social__link:hover .contact-social__icon {
  background: var(--white);
  color: var(--verein-accent);
}

.contact-social__icon svg {
  flex-shrink: 0;
}

/* ===== MOBILE ===== */
@media (max-width: 833px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-100);
    background-color: #f5f5f7 !important;
    flex-direction: column;
    padding: 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
  }

  .main-nav a {
    background: #f5f5f7;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    font-size: 17px;
    font-weight: 600;
    padding: 16px 48px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: block;
    width: 100%;
    opacity: 1;
  }

  .main-nav a.current::after {
    display: none;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .kicker,
  .hero p {
    font-size: 16px;
  }

  .content {
    padding: 60px 24px;
  }

  body:not(.page-start) .content {
    padding-top: 60px;
  }

  .page-hero {
    height: 40vh;
    min-height: 300px;
    --hero-h: clamp(300px, 40vh, 600px);
  }

  .page-hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .content h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    margin-bottom: 32px;
  }

  .content h2 {
    font-size: 24px;
  }

  .intro-section {
    padding: 80px 24px;
  }

  .intro-section h2 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .intro-section p {
    font-size: 17px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 22px;
  }
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(61, 114, 168, 0.2);
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 4px solid rgba(61, 114, 168, 0.45);
  outline-offset: 1px;
  border-radius: 4px;
}

/* ===== EXTERNAL LINK BOX ===== */
.external-link-box {
  margin-top: 48px;
  padding: 32px;
  background: var(--gray-50);
  border-radius: 16px;
  text-align: center;
}

.external-link-box p {
  font-size: 17px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verein-accent);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--verein-accent-dark);
  transform: scale(1.02);
  text-decoration: none;
  color: var(--white);
}

/* ===== KONTAKTFORMULAR ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-field label {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

.form-optional {
  font-weight: 400;
  color: var(--gray-500);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--black);
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--verein-accent);
  box-shadow: 0 0 0 3px rgba(61, 114, 168, 0.2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-700);
}

.form-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--verein-accent);
}

/* Fallenfeld für Bots: aus dem sichtbaren Bereich geschoben statt display:none, das manche Bots erkennen */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form altcha-widget {
  --altcha-color-primary: var(--verein-accent);
  --altcha-border-radius: 12px;
  --altcha-max-width: 100%;
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.content .form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
}

.content .form-status--info {
  background: var(--gray-100);
  color: var(--gray-700);
}

.content .form-status--erfolg {
  background: #e8f5ec;
  color: #1e6b3a;
}

.content .form-status--fehler {
  background: #fdecec;
  color: #a12a2a;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== FOTOGALERIE ===== */
/* Hochformat links über zwei Zeilen, die beiden Querformate rechts übereinander */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
}

.gallery__item--hoch {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item {
  position: relative;
}

.gallery__nr {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--verein-accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===== GRUNDRISS MIT FOTO-PUNKTEN ===== */
.plan {
  margin: 8px 0 24px;
}

.plan__bild {
  position: relative;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.plan__bild img {
  width: 100%;
  height: auto;
}

/* Position (--x, --y) in Prozent des Grundrisses, --richtung = Blickrichtung des Fotos (0deg = rechts) */
.plan-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--verein-accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: plan-pin-puls 2.4s ease-out infinite;
}

/* Pfeil in Blickrichtung */
.plan-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -7px 0 0 -6px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--verein-accent);
  transform: rotate(var(--richtung)) translateX(24px);
}

.plan-pin:hover,
.plan-pin:focus-visible {
  background: var(--verein-accent-dark);
  color: var(--white);
  text-decoration: none;
  transform: scale(1.12);
}

.plan-pin:hover::after,
.plan-pin:focus-visible::after {
  border-left-color: var(--verein-accent-dark);
}

@keyframes plan-pin-puls {
  0% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 10px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(61, 114, 168, 0.55); }
  70%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 10px rgba(0, 0, 0, 0.35), 0 0 0 16px rgba(61, 114, 168, 0); }
}

.plan figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
}

@media (max-width: 600px) {
  .plan-pin {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    font-size: 13px;
    line-height: 28px;
  }

  .plan-pin::after {
    transform: rotate(var(--richtung)) translateX(20px);
  }
}

.content .gallery-note {
  font-size: 14px;
  color: var(--gray-500);
}

.lightbox {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(1200px, 94vw);
  max-height: 94vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

/* Feste vw/vh-Grenzen statt %, weil der Dialog seine Breite erst vom Bild bekommt */
.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  margin: 0 auto;
  border-radius: 8px;
}

.content .lightbox__caption {
  margin: 10px 0 0;
  text-align: center;
  color: var(--white);
  font-size: 15px;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

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

  .gallery__item--hoch {
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
