/* ─── VARIABLES ─── */
:root {
  /* Brand */
  --purple: #8b2be2;
  --purple-light: #a855f7;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --neon-pink: #f0abfc;

  /* Backgrounds */
  --dark: #06060f;
  --dark2: #0d0d1a;
  --dark3: #13132b;
  --card: #0f0f20;

  /* Text */
  --text: #e8e8f0;
  --muted: #8888aa;

  /* Borders & effects */
  --border: rgba(139, 43, 226, 0.25);
  --glow: 0 0 40px rgba(139, 43, 226, 0.4);

  /* Navigation */
  --bg-nav: rgba(6, 6, 15, 0.92);
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-muted: rgba(255, 255, 255, 0.55);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
optgroup,
select,
textarea {
  font-family: "Barlow", sans-serif !important;
  font-feature-settings: normal !important;
  font-variation-settings: normal !important;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nav-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 43, 226, 0.5);
}

/* Desktop Dropdown */
.has-dropdown {
  position: relative;
  z-index: 1;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chevron {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--nav-muted);
  border-bottom: 2px solid var(--nav-muted);
  transform: rotate(45deg) translateY(-2px);
  transition:
    transform 0.25s,
    border-color 0.2s;
}

.has-dropdown:hover .chevron {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--cyan);
}

.has-dropdown:hover > a {
  color: var(--cyan);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #0e0e22;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 250px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* Unsichtbare Brücke zwischen Nav-Link und Dropdown – verhindert Hover-Verlust */
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-muted);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ── Nested Subdropdown (Desktop) ── */
.has-subdropdown {
  position: relative;
}

.has-subdropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sub-caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--nav-muted);
  border-bottom: 2px solid var(--nav-muted);
  transform: rotate(-45deg);
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.has-subdropdown:hover .sub-caret {
  border-color: var(--cyan);
}

.subdropdown {
  display: none;
  position: absolute;
  left: 100%;
  right: auto;
  top: -8px;
  width: max-content;
  background: #0e0e22;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.has-subdropdown:hover .subdropdown {
  display: block;
}

/* Burger Button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--nav-border);
    padding: 8px 5% 16px;
    gap: 0;
    z-index: 998;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links > li > a {
    padding: 12px 0;
    width: 100%;
    display: block;
  }

  .has-dropdown .dropdown {
    display: none !important;
  }

  .chevron {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 43, 226, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    var(--dark);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-logo-img {
  max-width: min(520px, 90vw);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(139, 43, 226, 0.6));
  border: 4px solid var(--border);
  border-radius: 20px;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 40px;
}

.hero-btns {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(139, 43, 226, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(139, 43, 226, 0.6);
}

.btn-outline {
  border: 2px solid var(--purple-light);
  color: var(--purple-light);
  padding: 14px 36px;
  border-radius: 50px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--purple-light);
  color: var(--dark);
}

/* ─── SECTION BASE ─── */
section {
  padding: 100px 5%;
}

.section-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 2px;
  line-height: 1;
  background: linear-gradient(90deg, #fff 60%, var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ─── GRID CARDS ─── */
.grid-item {
  scroll-margin-top: 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.grid-item:hover {
  transform: translateY(-6px);
  border-color: var(--purple-light);
  box-shadow: var(--glow);
}

[onclick].grid-item {
  cursor: pointer;
}

.grid-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.icon-img-grid {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.5));
  border: 2px solid var(--border);
  border-radius: 16px;
  justify-self: center;
}

.grid-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 8px;
}

.grid-text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.grid-text a {
  color: var(--cyan);
  text-decoration: none;
}

.grid-text a:hover {
  text-decoration: underline;
}

/* ─── BUCHUNG ─── */
#booking {
  background: var(--dark3);
  position: relative;
  overflow: hidden;
}

#booking::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.booking-layout {
  align-items: start;
}

.booking-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.form-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 28px;
  color: #fff;
}

.form-group {
  margin-bottom: 20px;
}

/* ── Pflichtfeld-Fehler ── */
@keyframes field-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

.form-group.field-error > label {
  color: #f87171;
}

.form-group.field-error input,
.form-group.field-error textarea,
.form-group.field-error .checkbox-group {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18) !important;
  animation: field-shake 0.35s ease;
}

label {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.booking-form input:not([type="checkbox"]),
.booking-form select,
.booking-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.booking-form input:not([type="checkbox"]):focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}

/* ─── Flatpickr Theme-Overrides ─────────────────────────────────────────── */
.flatpickr-calendar {
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-family: inherit;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--purple-light, #a855f7);
  border-color: var(--purple-light, #a855f7);
}
.flatpickr-day:hover {
  background: rgba(168, 85, 247, 0.2);
}
.flatpickr-day.today {
  border-color: var(--purple-light, #a855f7);
}
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
.flatpickr-current-month {
  color: #fff;
}
.numInputWrapper span.arrowUp:after { border-bottom-color: #a855f7; }
.numInputWrapper span.arrowDown:after { border-top-color: #a855f7; }
.flatpickr-time .numInputWrapper input,
.flatpickr-time .flatpickr-time-separator {
  color: #fff;
}
.flatpickr-minute {
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.booking-form input.flatpickr-input.form-control,
.booking-form input.flatpickr-input[readonly] {
  cursor: pointer;
}

select option {
  background: var(--dark2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
}

/* ── Accordion-Gruppe ── */
.equip-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.equip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.equip-header:hover {
  background: rgba(168, 85, 247, 0.07);
  color: var(--purple-light);
}

.equip-header.open {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-light);
  border-bottom: 1px solid var(--border);
}

.equip-caret {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-bottom: 2px;
}

.equip-header.open .equip-caret {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

.equip-body {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 10px;
  background: rgba(0, 0, 0, 0.15);
}

.equip-body.open {
  display: flex;
}

.equip-body label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.equip-body label:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
}

.equip-body input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple-light);
  flex-shrink: 0;
}

.booking-form .qty-select {
  width: 64px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  color-scheme: dark;
}

.agb-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.agb-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.agb-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
  margin-top: -2px;
}

.agb-box:checked {
  border-color: var(--purple-light);
  background: var(--purple-light);
}

.agb-box:checked::after {
  transform: rotate(45deg) scale(1);
}

.agb-label {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  user-select: none;
  -webkit-user-select: none;
}

.agb-label .inline-link {
  display: inline !important;
  color: var(--cyan);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  line-height: inherit;
}

.form-group.field-error .agb-label {
  color: #f87171;
}

.form-group.field-error .agb-box {
  border-color: #f87171;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: none;
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 43, 226, 0.5);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── PREISÜBERSICHT ─── */
.price-summary {
  background: rgba(139, 43, 226, 0.07);
  border: 1px solid rgba(139, 43, 226, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.price-summary-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.price-row-label {
  color: var(--text);
  opacity: 0.8;
}

.price-row-value {
  color: var(--text);
  white-space: nowrap;
}

.price-row-unavailable .price-row-value {
  color: #f87171;
  white-space: normal;
}

.price-divider {
  border: none;
  border-top: 1px solid rgba(139, 43, 226, 0.2);
  margin: 0.75rem 0;
}

.price-total {
  font-size: 1rem;
  text-align: right;
  color: var(--text);
}

.price-hint,
.price-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.4rem;
}

/* .checkbox-group braucht keine Grid-Breakpoints mehr (Accordion = immer flex column) */

@media (max-width: 760px) {
  .booking-form {
    padding: 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  /* checkbox-group: kein Grid mehr nötig */
}

@media (max-width: 520px) {
  .booking-form {
    padding: 20px;
  }
  .checkbox-group {
    gap: 10px;
    padding: 12px;
  }
}

/* ─── KONTAKT ─── */
#contact {
  background: var(--dark2);
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 32px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-text {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.footer-links button:hover {
  color: var(--cyan);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  padding: 28px 36px;
  border-radius: 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 20px 60px rgba(139, 43, 226, 0.5);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: min(480px, calc(100% - 40px));
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.hidden {
  display: none !important;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 80vw;
  max-height: 96vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow:
    0 0 18px rgba(0, 200, 255, 0.18),
    0 0 45px rgba(0, 200, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  padding: 12px 50px 25px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal-text::-webkit-scrollbar {
  width: 8px;
}
.modal-text::-webkit-scrollbar-track {
  background: var(--dark);
  border-radius: 4px;
}
.modal-text::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}
.modal-text::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}

.modal-close {
  /* Kein absolute mehr – bleibt als Flex-Item immer am Anfang sichtbar */
  align-self: flex-end;
  flex-shrink: 0;
  margin: 14px 16px 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--purple-light);
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.25s;
  padding: 8px 13px;
  border-radius: 8px;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--neon-pink);
  transform: rotate(90deg);
}

.modal-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.modal-subtitle {
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0.45em;
  color: #7f8aa8;
  margin-bottom: 12px;
}

.modal-paragraph {
  font-size: 18px;
  letter-spacing: 0.45em;
  font-weight: 800;
  margin-top: 15px;
  color: #7f8aa8;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 680px;
}

.gallery-caption {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  max-width: 480px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .modal-box {
    max-width: 95vw;
  }
  .modal-close {
    margin: 10px 12px 0;
    padding: 9px 14px;
    font-size: 17px;
  }
  .modal-text {
    padding: 8px 20px 20px;
  }
  .gallery-caption {
    font-size: 0.8rem;
    padding: 0 12px;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  .modal-paragraph {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
}

/* ─── PRODUKT-MODAL ─── */
.pm-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-row-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.pm-section-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: -0.25rem 0 0.25rem;
}

.pm-sub-desc {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 0.25rem 0 0.5rem;
}

.pm-sub-desc:empty {
  display: none;
}

.pm-sub-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  color: var(--purple-light);
  letter-spacing: 0.5px;
  white-space: normal;
  text-align: center;
  width: 100%;
}
.pm-sub-price small {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 1px;
}

.pm-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.6rem;
}

.pm-subs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.pm-cat-item,
.pm-sub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 10px 8px;
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.2s,
    opacity 0.2s,
    background 0.2s;
}

.pm-cat-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pm-cat-item span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  text-align: center;
  color: #fff;
  width: 100%;
  line-height: 1.3;
}

.pm-sub-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.pm-sub-item span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  text-align: center;
  color: #fff;
  width: 100%;
  line-height: 1.3;
}

.pm-cat-item.pm-active,
.pm-sub-item.pm-active {
  border-color: var(--purple-light);
  opacity: 1;
  background: rgba(168, 85, 247, 0.1);
}

.pm-cat-item:hover,
.pm-sub-item:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.06);
}

/* Großer Preis über Galerie */
.pm-price-big {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pm-price-big-amount {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: var(--purple-light);
  letter-spacing: 1px;
  line-height: 1;
}

.pm-price-big-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Galerie */
.pm-gallery {
  margin-top: 0.5rem;
}

.pm-gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-gallery-img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.pm-arrow {
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.pm-arrow:hover {
  background: rgba(139, 43, 226, 0.7);
}
.pm-prev {
  left: 0;
}
.pm-next {
  right: 0;
}

.pm-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.pm-counter {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0.55;
  margin-top: 0.3rem;
}

.pm-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

.pm-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}

.pm-thumb.pm-active {
  opacity: 1;
  border-color: var(--purple-light);
}
.pm-thumb:hover {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .pm-cats {
    grid-template-columns: repeat(3, 1fr);
  }

  .pm-cat-item img {
    display: none;
  }

  .pm-sub-desc {
    order: 1;
  }
}

@media (max-width: 400px) {
  .pm-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .pm-subs {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .pm-gallery-img {
    max-height: 38vh;
  }
  .pm-thumb {
    width: 44px;
    height: 44px;
  }
}

/* ─── BUCHUNGSKALENDER ──────────────────────────────────────────────────── */

/* Booking-Layout: einspaltig (kein Sidebar-Kalender mehr) */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* Equipment + Kalender nebeneinander */
.equip-cal-row {
  margin-bottom: 20px;
}

.equip-cal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 760px) {
  .equip-cal-inner {
    grid-template-columns: 1fr;
  }
}

/* Kalender innerhalb des Formulars */
.booking-calendar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  max-width: 300px;
  user-select: none;
}

/* Hinweistext wenn kein Equipment gewählt */
.cal-hint {
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-align: center;
  padding: 32px 12px;
  line-height: 1.6;
}

/* Navigation */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-month-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #fff;
}

.cal-prev,
.cal-next {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.cal-prev:hover,
.cal-next:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--purple-light);
}

/* Wochentag-Header */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}

.cal-wd {
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 3px 0;
}

/* Tages-Grid */
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* Basis-Tageszelle – nicht klickbar */
.cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: default;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cal-day-empty {
  background: transparent;
  pointer-events: none;
}

/* Heute */
.cal-day.cal-day-today {
  border-color: var(--purple-light);
  color: var(--purple-light);
}

/* Vergangene Tage */
.cal-day.cal-day-past {
  opacity: 0.3;
}

/* BELEGT */
.cal-day.belegt {
  background: rgba(127, 29, 29, 0.55);
  border-color: rgba(220, 38, 38, 0.35);
  color: #fca5a5;
}

/* WAHL (Zeitraum aus Von/Bis-Inputs) */
.cal-day.wahl {
  background: rgba(234, 88, 12, 0.45);
  border-color: rgba(234, 88, 12, 0.6);
  color: #fed7aa;
}

/* Start-/Endtag der WAHL */
.cal-day.cal-day-start,
.cal-day.cal-day-end {
  background: rgba(234, 88, 12, 0.75);
  border-color: #ea580c;
  color: #fff;
  font-weight: 700;
}

/* Legende */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-dot-frei   { background: rgba(255, 255, 255, 0.2); }
.cal-dot-belegt { background: rgba(127, 29, 29, 0.85); border: 1px solid rgba(220, 38, 38, 0.5); }
.cal-dot-wahl   { background: #ea580c; }
