/* 
   STICKY NAV (glassmorphism)
    */
.idx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 40px;
  height: 64px;
  background: rgba(253,246,227,0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(232,213,163,0.15);
}

.idx-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.idx-brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.idx-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 16px;
}
.idx-nav-links a {
  text-decoration: none;
  color: rgba(253,246,227,0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}
.idx-nav-links a:hover { color: var(--lemon); }
.idx-nav-links a .nav-icon { font-size: 1rem; }

.idx-phone {
  margin-left: auto;
  margin-right: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(253,246,227,0.7);
  white-space: nowrap;
}

.login-btn {
  padding: 7px 16px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.login-btn, .login-btn:hover { text-decoration: none; }
.idx-nav-links + .login-btn { margin-left: auto; }
.idx-nav-links .nav-login-item { display: none; }
.login-btn:hover { background: var(--olive-dark); }

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.idx-nav--dash {
  position: sticky;
  top: 0;
  background: rgba(44,26,14,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.idx-nav .topbar-user {
  margin-left: auto;
  font-size: 0.82rem;
  color: rgba(253,246,227,0.75);
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
}

body.page-dashboard {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--brown);
  overflow-x: unset;
  height: auto;
  min-height: 100%;
}

/*  TOPBAR (dashboard)  */
.topbar {
  background: url('../Bilder/Web Bilder/pizza_1.jpg') center / cover no-repeat;
  position: relative;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,26,14,0.82);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
}
.topbar > * { position: relative; z-index: 1; }
.topbar-logo { height: 40px; width: auto; filter: brightness(1.2); }
.topbar-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-left: 4px;
  letter-spacing: 0.03em;
}
.topbar-user {
  margin-left: auto;
  font-size: 0.82rem;
  color: rgba(253,246,227,0.75);
  font-weight: 600;
}
.topbar-logout {
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(253,246,227,0.3);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s;
}
.topbar-logout:hover { background: rgba(255,255,255,0.25); }
.back-link {
  font-size: 0.82rem;
  color: rgba(253,246,227,0.6);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: var(--cream); }

/* Admin nav override  same dark style as dashboard */
.idx-nav--admin {
  position: sticky;
  top: 0;
  background: rgba(44,26,14,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* Admin toolbar (below topbar) */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 28px;
  background: var(--olive-dark);
  color: #fff;
  font-size: 0.85rem;
}
.admin-toolbar-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.admin-toolbar .topbar-logout {
  padding: 5px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-toolbar .topbar-logout:hover { background: rgba(255,255,255,0.28); }
.admin-toolbar .topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.admin-toolbar .topbar-countdown { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.admin-toolbar .topbar-countdown.warn { color: #ffcc00; font-weight: 700; }

.topbar-badge {
  background: rgba(255,255,255,0.2); border-radius: 6px;
  padding: 3px 10px; font-size: 0.75rem; font-weight: 700;
}
.topbar-countdown { font-size: 0.75rem; color: rgba(253,246,227,0.6); white-space: nowrap; transition: color 0.3s; }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-countdown.warn { color: #ffcc00; font-weight: 700; }
body.page-dashboard .topbar-user { margin-left: auto; }

/*  CHAT (dashboard)  */
.chat-wrap {
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}
.chat-header {
  background: var(--olive);
  color: #fff;
  padding: 13px 18px;
  font-family: var(--font-serif);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-online {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #7adb57;
  flex-shrink: 0;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  display: flex;
  gap: 10px;
  max-width: 75%;
}
.msg.team { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg.user .msg-avatar { background: var(--sand-dark); }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.msg.team .msg-bubble {
  background: var(--cream);
  border: 1px solid var(--sand);
  color: var(--brown);
  border-radius: 4px 12px 12px 12px;
}
.msg.user .msg-bubble {
  background: var(--olive);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}
.msg-time {
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 4px;
  text-align: right;
}
.msg.team .msg-time { text-align: left; }
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1.5px solid var(--sand);
  background: var(--warm-white);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--brown);
  outline: none;
  resize: none;
  font-family: var(--font-sans);
}
.chat-input:focus { border-color: var(--olive); }
.chat-send {
  padding: 10px 18px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--olive-dark); }

/*  AUTH GATE  */
.auth-gate {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 66px);
  gap: 16px;
  color: var(--brown-mid);
}
.auth-gate.visible { display: flex; }
.auth-gate .big { font-size: 3rem; }


/* Subpage nav (same fixed glassmorphism as index) */
.idx-nav--sub {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(44,26,14,0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/*  SHARED HERO TEXT STYLES (used on Pizzen + ber Uns)  */
.pizzen-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lemon);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(253,246,227,0.25);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.pizzen-hero-sub,
body.page-about .pizzen-hero-sub,
body.page-pizzen .pizzen-hero-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.pizzen-intro,
body.page-about .pizzen-intro,
body.page-pizzen .pizzen-intro {
  font-size: 0.95rem;
  color: #fff !important;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/*  GLOBAL FOOTER  */
.idx-footer {
  background: var(--brown);
  color: var(--sand);
  padding: 44px 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 3px solid var(--olive-dark);
}
.idx-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.idx-footer-brand strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--cream);
}
.idx-footer-brand span {
  font-size: 0.82rem;
  color: rgba(232,213,163,0.7);
}
.idx-footer-legal {
  font-size: 0.73rem;
  color: rgba(232,213,163,0.55);
  text-align: center;
}
.idx-footer-legal a {
  color: rgba(232,213,163,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.idx-footer-legal a:hover { color: var(--lemon); }

@media (max-width: 520px) {
  .idx-footer { padding: 36px 20px 22px; }
}

/*  ADMIN EVENTS BUTTON (used in admin + editor toolbar)  */
.topbar-events-btn {
  background: var(--lemon);
  color: var(--brown);
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-events-btn:hover { background: #e0b93b; }
.topbar-events-btn.admin-nav-btn.active {
  background: #fff !important;
  color: var(--olive-dark) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: default;
}

/*  SHARED SECTION HEAD (used in admin, dashboard, editor)  */
.section-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--olive-dark);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--sand);
}
.section-head:first-child { margin-top: 0; }

/* Shared admin/editor body + wrap */
body.page-admin {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--brown);
  min-height: 100%;
  height: auto;
  overflow-x: unset;
}
.admin-wrap { display: flex; min-height: calc(100vh - 58px); }

/* Shared save button */
.btn-save {
  padding: 11px 28px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save:hover { background: var(--olive-dark); }
.save-msg {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Global Hero Banner Component */
.hero-banner {
  position: relative;
  min-height: 440px;
  margin-top: -64px;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-banner .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(28,18,8,0.72) 0%, rgba(44,26,14,0.58) 50%, rgba(61,84,32,0.45) 100%);
  z-index: 1;
}
.hero-banner .hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, transparent 70%);
  border-radius: 24px;
  max-width: 800px;
}
.hero-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  border: none;
  padding: 0;
}
@media (max-width: 680px) {
  .hero-banner { min-height: 300px; }
  .hero-banner .hero-text { padding: 40px 20px; }
  .hero-banner h1 { font-size: 1.8rem; }
}

/*  GLOBAL SECTION MODULE STYLES (used by section.js on any page)  */
.idx-section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(90,122,46,0.1);
  border: 1px solid rgba(90,122,46,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 12px;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }

.about-img {
  position: relative;
  overflow: hidden;
}
.about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--warm-white);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--brown-mid);
}
.about-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--olive-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}
.about-text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--brown-mid);
  margin-bottom: 12px;
}
.about-section.reverse .about-text {
  background: var(--cream);
}
.about-text em {
  color: var(--olive);
  font-style: italic;
}
.about-quote-author {
  font-size: 0.82rem;
  color: var(--brown-mid);
  display: block;
  margin-top: 4px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--brown-mid);
  line-height: 1.5;
}
.about-list li i { color: var(--olive); flex-shrink: 0; }

.about-banner {
  background: var(--olive);
  color: #fff;
  border-radius: 0;
  padding: 56px 48px;
  text-align: center;
}
.about-banner-icon {
  font-size: 2rem;
  opacity: 0.7;
  margin-bottom: 12px;
  display: block;
}
.about-banner blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  color: #fff;
}

@media (max-width: 680px) {
  .about-section,
  .about-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }
  .about-text { padding: 36px 22px; }
  .about-img { min-height: 240px; }
  .about-banner { padding: 36px 24px; }
  .about-banner blockquote { font-size: 1.1rem; }
}

/*  GLOBAL CTA BANNER COMPONENT  */
.cta-banner {
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
  padding: 56px 48px;
  text-align: center;
}
.cta-banner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--olive-dark);
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--brown-mid);
  max-width: 640px;
  margin: 0 auto 28px;
}
.cta-banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn-secondary {
  color: var(--brown);
  border-color: #404132;
}
.cta-banner .btn-secondary:hover {
  background: var(--olive);
  color: #e8f5d8;
  border-color: var(--olive-dark);
}
@media (max-width: 680px) {
  .cta-banner { padding: 36px 20px; }
}

/*  TRIO MODULE (3 Bilder + Text)  */
.mod-trio {
  text-align: center;
  background: var(--cream);
  padding-bottom: 56px;
}
.mod-trio--alt {
  background: var(--warm-white);
}
.mod-trio-head {
  margin-top: 28px;
  padding: 0 48px;
}
.mod-trio-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--olive-dark);
  margin-top: 8px;
}
.mod-trio-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.mod-trio-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.mod-trio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mod-trio-text {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 0 20px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--brown-mid);
}
@media (max-width: 680px) {
  .mod-trio-head { padding: 0 20px; }
  .mod-trio-images { grid-template-columns: 1fr; gap: 0; }
}

/*  EVENTS BANNER MODULE  */
.mod-events-banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.mod-events-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,18,8,0.6) 0%, rgba(44,26,14,0.78) 100%);
  z-index: 1;
}
.mod-events-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 32px;
  max-width: 640px;
}
.mod-events-banner__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lemon);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(253,246,227,0.25);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.mod-events-banner__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.mod-events-banner__text {
  font-size: 1rem;
  color: rgba(253,246,227,0.82);
  line-height: 1.6;
  margin-bottom: 32px;
}
@media (max-width: 680px) {
  .mod-events-banner { min-height: 360px; }
  .mod-events-banner__content { padding: 56px 20px; }
}

/*  CAROUSEL MODULE  */
.mod-carousel {
  background: var(--brown);
  padding: 56px 0 48px;
}
.mod-carousel--bg {
  position: relative;
}
.mod-carousel--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 0, 0.72);
  z-index: 0;
}
.mod-carousel--bg .mod-carousel-head,
.mod-carousel--bg .mod-carousel-wrap,
.mod-carousel--bg .mod-carousel-dots {
  position: relative;
  z-index: 1;
}
.mod-carousel-head {
  text-align: center;
  padding: 0 32px 32px;
}
.mod-carousel-head .idx-section-tag {
  color: var(--lemon);
  background: rgba(255,255,255,0.1);
  border-color: rgba(253,246,227,0.25);
}
.mod-carousel-titel {
  color: var(--cream) !important;
}
.mod-carousel-text {
  font-size: 1rem;
  color: rgba(253,246,227,0.82);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.mod-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.mod-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 8px 4px;
  touch-action: pan-x;
}
.mod-carousel-track::-webkit-scrollbar { display: none; }
.mod-carousel-slide {
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  transition: transform 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
}
.mod-carousel-slide:hover { transform: translateY(-4px); }
.mod-carousel-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mod-carousel-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.mod-carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mod-carousel-slide:hover .mod-carousel-img img { transform: scale(1.05); }
.mod-carousel-caption {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mod-carousel-item-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
}
.mod-carousel-item-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
}
.mod-carousel-btn {
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 2px solid rgba(253,246,227,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
  z-index: 2;
}
.mod-carousel-btn:hover { background: rgba(255,255,255,0.2); }
.mod-carousel-prev { margin-right: -22px; }
.mod-carousel-next { margin-left: -22px; }
.mod-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}
.mod-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253,246,227,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mod-carousel-dots span.active {
  background: var(--lemon);
  transform: scale(1.3);
}
@media (max-width: 680px) {
  .mod-carousel { padding: 40px 0 32px; }
  .mod-carousel-btn { display: none; }
  .mod-carousel-wrap { padding: 0 8px; }
  .mod-carousel-dots { padding-top: 16px; gap: 10px; }
  .mod-carousel-dots span { width: 10px; height: 10px; }
  .mod-carousel-caption { padding: 8px 10px 10px; gap: 2px; }
  .mod-carousel-item-tag { font-size: 0.55rem; letter-spacing: 0.08em; }
  .mod-carousel-item-name { font-size: 0.82rem; }
}

/*  LIGHTBOX  */
.mod-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mod-lightbox--open { opacity: 1; }
.mod-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,6,2,0.92);
  backdrop-filter: blur(6px);
}
.mod-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mod-lightbox__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}
.mod-lightbox__caption {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mod-lightbox__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lemon);
}
.mod-lightbox__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--cream);
}
.mod-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(253,246,227,0.4);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mod-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.mod-lightbox__prev,
.mod-lightbox__next {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(253,246,227,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 16px;
  transition: background 0.2s;
}
.mod-lightbox__prev:hover,
.mod-lightbox__next:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 600px) {
  .mod-lightbox__prev, .mod-lightbox__next { width: 38px; height: 38px; font-size: 1.4rem; margin: 0 8px; }
  .mod-lightbox__close { top: 12px; right: 12px; }
}

/* Popup-Modul (Aufbau wie die Bildvorschau im Editor) */
.lp-popup-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; padding: 24px; animation: lpPopFade .25s ease; transition: opacity .2s ease; }
.lp-popup-overlay.is-closing { opacity: 0; }
.lp-popup-box { width: fit-content; min-width: min(300px, 94vw); max-width: min(94vw, 960px); max-height: 92vh; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(57,255,20,.45), 0 0 26px 5px rgba(57,255,20,.45), 0 0 70px 14px rgba(57,255,20,.28), 0 12px 48px rgba(0,0,0,0.5); animation: lpPopGlow 3s ease-in-out infinite; }
.lp-popup-head { width: 0; min-width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; background: #2b2b2e; }
.lp-popup-title { min-width: 0; margin: 0; font-family: var(--font-sans, 'Helvetica Neue', Arial, sans-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: #f5f1e8; }
.lp-popup-close { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--terra, #c8553d); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: auto; transition: background .15s, transform .15s; }
.lp-popup-close:hover { background: var(--terra-dark, #a8432f); transform: scale(1.1); }
.lp-popup-mediawrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #1c1c1e; }
.lp-popup-media { display: block; max-width: 100%; max-height: calc(92vh - 210px); object-fit: contain; }
.lp-popup-box.lp-nofoot .lp-popup-media { max-height: calc(92vh - 80px); }
.lp-popup-foot { width: 0; min-width: 100%; box-sizing: border-box; padding: 14px 20px 18px; background: #2b2b2e; text-align: center; }
.lp-popup-text { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.55; color: #d6d2c8; white-space: pre-line; }
.lp-popup-text:last-child { margin-bottom: 0; }
@keyframes lpPopFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .lp-popup-overlay { padding: 12px; } .lp-popup-media { max-height: calc(92vh - 190px); } }

.mod-events-banner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.lp-popup-sound { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: none; border-radius: 100px; background: var(--terra, #c8553d); color: #fff; font: 700 0.85rem/1 inherit; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); animation: lpSoundPulse 1.6s ease-in-out infinite; }
.lp-popup-sound:hover { background: var(--terra-dark, #a8432f); }
@keyframes lpSoundPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes lpPopGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(57,255,20,.40), 0 0 22px 4px rgba(57,255,20,.40), 0 0 60px 12px rgba(57,255,20,.24), 0 12px 48px rgba(0,0,0,.5); }
  50%      { box-shadow: 0 0 0 1px rgba(57,255,20,.65), 0 0 36px 9px rgba(57,255,20,.62), 0 0 96px 24px rgba(57,255,20,.38), 0 12px 48px rgba(0,0,0,.5); }
}
@media (prefers-reduced-motion: reduce) { .lp-popup-box { animation: none; } }

.lp-popup-foot .lp-popup-btn { padding: 6px 16px; font-size: 0.8rem; line-height: 1.2; border-width: 1.5px; border-radius: 6px; }
.lp-popup-foot .lp-popup-btn { background: transparent; color: #f5f1e8; border: 1.5px solid rgba(245,241,232,.55); box-shadow: none; text-shadow: none; transition: background .15s, border-color .15s, color .15s; }
.lp-popup-foot .lp-popup-btn:hover { background: rgba(245,241,232,.12); border-color: #f5f1e8; color: #fff; transform: none; }

/* Sprungmarken auf Modulen: Platz fuer die feste Menueleiste lassen */
[data-mod-id] { scroll-margin-top: 100px; }
.mod-anchor { display: block; height: 0; }
