/* --- GLOBAL --- */
:root {
  --accent: #d4b98c;
  --accentfooter: #f8e7c7;
  --bg: #f5f5f5;
  --text: #222;
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.35);
  --nav-bg: rgba(20, 20, 25, 0.45);
  --header-blur: 1px;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

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

/* --- HEADER --- */
header {
  height: 35vh;
  min-height: 260px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("pictures/backgroundimage_websiteold.jpg") center 10% / cover no-repeat;
  filter: blur(var(--header-blur));
  transform: scale(1.05);
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

header h1 {
  color: #f2f2f2;
  text-shadow:
    0 0 12px rgba(0,0,0,0.55),
    0 0 22px rgba(0,0,0,0.45),
    0 4px 14px rgba(0,0,0,0.55);
  padding: 0;
  border-radius: 0;
  z-index: 2;
  position: relative;
  font-size: clamp(2.2rem, 3.5vw, 4.0rem);
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: none;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

p {
  line-height: 1.65;
  font-size: 1.00rem;
}

.p1 {
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 700;
}

.p2 {
  line-height: 1.65;
  font-size: 1rem;
  font-style: italic;
}

.p3 {
  text-decoration: underline;
}

/* --- HAMBURGER --- */
.hamburger {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 5000;
  transition: transform 0.2s ease;
}

.hamburger:hover {
  transform: scale(1.08);
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
  transition: 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hamburger.active span {
  opacity: 0;
}

.hamburger.active::before,
.hamburger.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: center;
  transition: 0.25s ease;
  z-index: 5001;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hamburger.active::before { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger.active::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- HEADER SOCIALS --- */
.header-socials {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 5000;
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.header-icon {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

.header-socials a:hover {
  transform: scale(1.12);
  color: var(--accent);
}

@media (max-width: 768px) {
  .header-socials {
    bottom: 1.5rem;
    left: 1.25rem;
    gap: 1rem;
  }
}

/* --- OVERLAY MENU --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 18, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  z-index: 3000;
}

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

.nav-overlay a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-overlay a:hover {
  transform: translateX(10px);
  color: var(--accent);
}

/* --- MAIN --- */
main {
  padding: 2rem;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef1f5 100%);
}

.hero-glass {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 12px;
  padding: 2.2rem;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 20px auto 2rem auto;
}

.hero-glass p, .glass-card p {
  text-align: justify;
  text-justify: inter-word;
}

.glass-card {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  max-width: 900px;
  margin: 2rem auto;
  transition: 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.section-title {
  border-left: 5px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: #1b263b;
}

.welcome-title {
  border-left: none !important;
  padding-left: 0 !important;
  display: block;
  margin: 40px auto 40px auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  animation: welcomeFade 0.9s ease forwards;
}

.welcome-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  animation: welcomeLine 0.9s ease forwards 0.45s;
}

@keyframes welcomeFade { to { opacity: 1; transform: translateY(0); } }
@keyframes welcomeLine { to { width: 55%; } }

.card-title {
  border-left: none !important;
  padding-left: 0 !important;
  display: block;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-40px);
  animation: cardTitleIn 0.7s ease forwards;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1b263b;
}

.card-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: cardTitleLine 0.6s ease forwards 0.3s;
}

@keyframes cardTitleIn { to { opacity: 1; transform: translateX(0); } }
@keyframes cardTitleLine { to { width: 100%; } }

.contact-ig-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transform: translateY(2px);
}

.vorstand-foto {
  width: 250px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pdf-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  margin: 10px 0;
}

.pdf-box a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.pdf-box:hover {
  background: rgba(255,255,255,0.22);
  color: var(--accent);
  text-decoration: underline;
}

.gallery-glass {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 2rem; /* Abstand vom Inhalt zum äußeren Glas-Rand */
  max-width: 1300px;
  margin: 2.5rem auto;
  box-sizing: border-box;
}

.gallery-layout {
  display: flex;
  gap: 2rem; /* Perfekter, identischer Abstand: Poster<->Divider und Divider<->Slideshow */
  align-items: flex-start;
  width: 100%;
}

.gallery-left {
  flex: 0 0 320px !important;
  width: 320px;
  max-width: 320px;
  flex-shrink: 0 !important;
  margin: 0 !important; /* Keine manuellen Margins mehr, macht jetzt das gap! */

  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
}

.gallery-poster {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: block;

  margin-top: auto;
  margin-bottom: auto;
}

.gallery-divider {
  width: 2px;
  align-self: stretch;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  flex-shrink: 0;
}

.gallery-right {
  flex: 1 1 auto;
  min-width: 0 !important;
  width: 100%;
  margin: 0 !important; /* Keine manuellen Margins mehr */
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 100% !important; /* WICHTIG: Kein 800px Limit mehr, füllt die rechte Seite komplett aus */
  margin: 0 !important; /* Kein auto-Centering mehr */
  border-radius: 12px;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-height: 480px;
}

.slide-track {
  display: flex !important;
  flex-wrap: nowrap !important; /* Zwingt nebeneinander */
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.slide {
  min-width: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Pfeile & Dots */
.slide-prev, .slide-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  user-select: none;
  transition: 0.25s ease;
  z-index: 10;
}

.slide-prev { left: 15px; }
.slide-next { right: 15px; }

.slide-prev:hover, .slide-next:hover {
  background: var(--accent);
  color: #1b263b;
}

.slide-dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: var(--accent);
  transform: scale(1.3);
}

/* --- MOBILE ANPASSUNG GALERIE (nur unter 800px) --- */
@media (max-width: 800px) {
  .gallery-layout {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .gallery-left {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .gallery-divider {
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.15);
    margin: 2rem 0;
  }

  .slideshow-container {
    min-height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }

  .slide img {
    height: 100% !important;
    object-fit: cover !important;
  }

  .slide-prev, .slide-next {
    transform: translateY(-50%) scale(0.8);
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 14px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    user-select: none;
    transition: 0.25s ease;
    z-index: 10;
  }

  .slide-prev { left: 8px; }
  .slide-next { right: 8px; }

  .slide-dots {
    position: absolute;   /* Wichtig für die Positionierung unten */
    bottom: 4px;          /* Je kleiner die Zahl (z.B. 0px oder 4px), desto weiter UNTEN sind die Dots */
    width: 100%;
    text-align: center;
    z-index: 10;
    white-space: nowrap;  /* Verhindert garantiert, dass Dots in die 2. Zeile rutschen */
  }

  /* Hier verkleinerst du die einzelnen Dots direkt (statt per transform) */
  .slide-dots .dot {
    height: 6px;          /* Vorher 10px */
    width: 6px;           /* Vorher 10px */
    margin: 0 3px;        /* Verringert den Abstand zwischen den Dots, damit alle nebeneinander passen */
  }
}

/* --- INLINE SOCIALS --- */
.social-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-inline-link:hover {
  color: var(--accentfooter);
  transform: translateX(3px);
}

.social-inline-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.social-inline-link:hover .social-inline-icon {
  transform: scale(1.12);
}

/* --- FOOTER --- */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 110px;
  background: rgba(27, 38, 59, 0.25);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-sizing: border-box;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

footer.visible { transform: translateY(0); }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 120px;
}

.footer-socials a {
  color: white;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accentfooter);
  transform: scale(1.1);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--accentfooter);
  text-decoration: underline;
  transform: scale(1.05);
}

footer p { margin: 0; padding: 0; font-size: 0.9rem; opacity: 1; }

.footer-logo-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 120px;
}

.footer-logo-img {
  width: 32px;
  height: auto;
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

body.high-contrast .footer-logo-img {
  mix-blend-mode: screen !important;
  filter: brightness(0) invert(1) !important;
}

/* --- BARRIEREFREIHEIT & POPUPS --- */
.a11y-toggle {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: rgba(27, 38, 59, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #ffffff;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.a11y-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  background: rgba(27, 38, 59, 0.95);
}

.a11y-popup {
  position: fixed;
  bottom: 4rem;
  right: 1rem;
  background: var(--glass-bg);
  color: var(--text);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  width: 280px;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 9999;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.a11y-popup.open { display: flex; }

.a11y-btn {
  padding: 0.6rem;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a11y-btn:hover { background: rgba(240,240,240,1); }

.a11y-close {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: #1b263b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* HIGH CONTRAST */
body.high-contrast {
  --bg: #000;
  --text: #fff;
  --accent: #ffffff;
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.35);
}

body.high-contrast main { background: #000 !important; }
body.high-contrast header::before { filter: blur(var(--header-blur)) !important; }
body.high-contrast header::after { background: rgba(0,0,0,0.75) !important; }
body.high-contrast .section-title { color: #fff !important; }
body.high-contrast .hero-glass,
body.high-contrast .glass-card,
body.high-contrast .gallery-glass {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
}

.gallery-poster { filter: none !important; }

body.high-contrast footer { background: #111 !important; border-top: 1px solid #fff !important; }
body.high-contrast footer p, body.high-contrast footer a { color: #fff !important; }
body.high-contrast .nav-bar { background: #000; }

.underline-links a { text-decoration: underline !important; }

:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav-link:focus { outline: 2px solid transparent !important; outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: white;
  padding: 8px 12px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus { top: 10px; }

.material-symbols-rounded {
  font-size: 26px;
  font-variation-settings: 'wght' 500;
}

/* --- MOBILE ANPASSUNGEN GENERAL --- */
@media (max-width: 768px) {
  .hamburger.active {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    bottom: auto;
  }

  .nav-overlay {
    width: 100%;
    height: 100vh;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
  }

  .nav-overlay a {
    font-size: clamp(2.0rem, 7vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0;
  }

  header { height: 40vh; min-height: 320px; }
  header h1 {
    font-size: clamp(2.2rem, 6vw, 3.0rem);
    line-height: 1.25;
    max-width: 92%;
    text-align: center;
  }

  footer {
    height: auto;
    padding: 1rem 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;
  }

  .footer-links { display: none; }
  footer p { order: 3; margin: 0; padding: 0; font-size: 0.8rem; }
  footer p:last-child { margin-bottom: 0.2rem; }

  .footer-logo-right {
    display: block;
    position: static;
    order: 2.5;
    margin-top: 0.4rem;
    width: auto;
    justify-content: center;
  }

  .footer-socials { width: auto; justify-content: center; }
  .footer-logo-right img { width: 28px; height: auto; opacity: 0.9; transition: 0.2s ease; }
  .footer-logo-right img:hover { opacity: 1; transform: scale(1.05); }
  .footer-instagram-desktop { display: none; }

  .a11y-toggle { bottom: 3.5rem; }
  .a11y-popup { bottom: 7rem; }
}

@media (max-width: 600px) {
  h1, h2, h3 { font-size: 1.2em; }
  p { font-size: 1.05rem; line-height: 1.6; }
  .hero-glass { padding: 1.4rem; }
  .glass-card { padding: 1.4rem; }
}

/* --- SCROLL ANIMATIONEN --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- DARK MODE --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6e6e6;
    --accent: #d4b98c;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(0, 0, 0, 0.45);
  }

  html, body { background: var(--bg); color: var(--text); }
  header::after { background: rgba(0,0,0,0.65); }
  main { background: linear-gradient(180deg, #0d1117 0%, #161b22 100%); }

  .hero-glass, .glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  }

  .glass-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.55); }
  .section-title { color: var(--text); }

  footer { background: rgba(10, 15, 25, 0.45); color: #f2f2f2; }
  footer .footer-links a { color: #f2f2f2; }
  footer .footer-links a:hover { color: var(--accent); }

  .a11y-popup {
    background: #161b22;
    color: #e6e6e6;
    border: 1px solid rgba(255,255,255,0.12);
  }

  .a11y-btn {
    background: #1f2630;
    border: 1px solid rgba(255,255,255,0.15);
    color: #e6e6e6;
  }

  .a11y-close { background: #1b263b; }
}