:root {
  --bg: #0f2a38;
  --bg-soft: #123243;
  --text: #eaf3f8;
  --muted: #b7c6cf;

  --primary: #f2432e;
  --primary-600: #d93b29;

  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --maxw: 1200px;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans";
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.2px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    0deg,
    rgba(15, 42, 56, 0.85),
    rgba(15, 42, 56, 0.95)
  );
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand-logo {
  height: 70px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-list {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.menu a {
  opacity: 0.9;
  font-weight: 600;
}
.badge {
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
}
.lang {
  opacity: 0.9;
}

/* Dropdown trigger */
.nav-link {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  opacity: 0.95;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.8;
  transform: translateY(1px);
}

/* Sub (Desktop) */
.sub {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: none;
  box-shadow: var(--shadow);
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.sub a:hover {
  background: var(--primary);
  color: #fff;
  filter: brightness(1.05);
}
@media (min-width: 901px) {
  .nav-item.has-sub:hover > .sub {
    display: block;
  }
}

/* Burger (basis) */
.hamb {
  display: none;
}

/* Mobile Drawer + Overlay */
@media (max-width: 900px) {
  .container {
    padding-inline: clamp(14px, 4vw, 20px);
  }
  .nav {
    padding: 12px 0;
    min-height: 56px;
  }

  .header .container.nav {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    margin-left: 12px;
  }

  .brand-logo {
    height: 72px;
    max-height: 72px;
    width: auto;
    display: block;
  }
  .badge {
    display: none;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 998;
    display: none;
  }
  .nav-overlay.show {
    display: block;
  }

  .hamb {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: transparent;
  }
  .hamb span,
  .hamb::before,
  .hamb::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.25s ease;
  }
  .hamb::before {
    top: 14px;
  }
  .hamb span {
    top: 21px;
  }
  .hamb::after {
    top: 28px;
  }
  .hamb.is-open::before {
    transform: translateY(7px) rotate(45deg);
  }
  .hamb.is-open::after {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hamb.is-open span {
    opacity: 0;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;

    height: 100dvh;
    width: clamp(280px, 50vw, 420px);

    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: transform 0.28s ease, opacity 0.18s ease,
      visibility 0s linear 0.28s;

    background: #0c2430;
    padding: 82px 16px 24px;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 999;
    display: block !important;
  }

  .menu.open {
    /* OPEN */
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease, opacity 0.18s ease;
  }

  body.noscroll {
    overflow: hidden;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;

    align-items: stretch; /* <-- DAS ist der Fix */
  }
  .nav-item > .nav-link,
  .nav-item > a {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 6px;
    font-size: 18px;
    line-height: 1.25;
    color: #eaf3f8;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-item.has-sub > .nav-link::after {
    content: "▾";
    opacity: 0.6;
    margin-left: auto;
    transform: translateY(-1px);
  }
  .nav-item.open > .nav-link::after {
    transform: rotate(180deg);
  }

  .sub {
    position: static !important;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-item.open > .sub {
    max-height: 600px;
    opacity: 1;
  }
  .sub a {
    padding: 12px 6px 12px 18px;
    font-size: 16px;
    color: #cfe0e8;
  }
  .sub a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }
}

/* Hero / Countdown */
.hero {
  padding: 56px 0 24px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 42px);
  text-align: center;
  margin: 0 0 24px;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px) {
  .countdown {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 72px 0 32px;
  }
}

.card {
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 106, 61, 0.06) 0%,
    rgba(18, 50, 67, 0.2) 80%
  );
  box-shadow: var(--shadow);
}
.countdown .card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kpi .value {
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
}
.kpi .label {
  font-size: clamp(18px, 2.5vw, 36px);
  font-weight: 700;
  color: var(--muted);
  margin-top: 6px;
}

/* Dates */
.dates {
  padding: 10px 0 70px;
}
.dates .wrap {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.dates h2 {
  margin: 16px 0 8px;
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
}
.date-item {
  font-size: clamp(16px, 2.2vw, 22px);
  background: var(--bg-soft);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.date-item b {
  color: var(--primary-600);
}
.time {
  font-size: clamp(16px, 2.2vw, 22px);
  margin-top: 6px;
  text-align: center;
  color: var(--muted);
}

/* Card-Grid */
.grid-4 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.card-text {
  margin: 0;
  color: var(--muted);
}

/* Media (Bild/Text) */
.media {
  display: grid;
  gap: 20px;
  align-items: stretch;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}
.media-img {
  border-radius: 14px;
  overflow: hidden;
}
.media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card {
  display: flex;
  flex-direction: column;
}
.media-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.media-reverse {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .media {
    grid-template-columns: 1.1fr 1.4fr;
    min-height: 360px;
  }
  .media-reverse {
    grid-template-columns: 1.4fr 1.1fr;
  }
}

/* Links/Buttons */
.text-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
}
.text-link:hover {
  filter: brightness(1.05);
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow);
  transition: transform 0.06s ease, filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* CTA-Band */
.cta-band {
  padding: 20px 0 40px;
  background: var(--bg);
}
.cta-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cta-card {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.cta-card h3 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.2vw, 26px);
}
.cta-card p {
  color: var(--muted);
  margin: 0 0 18px;
}
.cta-card .btn {
  margin-top: auto;
  align-self: center;
}

/* Gallery / Slider */
.gallery {
  padding: 10px 0 40px;
}
.slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b2230;
}
.slides {
  position: relative;
  width: 100%;
  height: clamp(320px, 55vw, 520px);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}
.slide img.portrait {
  object-fit: contain;
  background: #0b2230;
  filter: brightness(1);
}

.caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  padding: 0 18px;
  max-width: min(100%, 1100px);
}
.caption h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
}
.caption p {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 20px);
  opacity: 0.95;
}

.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ctrl-prev {
  left: 12px;
}
.ctrl-next {
  right: 12px;
}
.dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.dots button[aria-selected="true"] {
  background: var(--primary);
  width: 22px;
  border-radius: 999px;
}

/*Banner*/
#xmas-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #b11226;
  color: #fff;
  padding: 12px 48px 12px 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#xmas-banner button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.xmas-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 1.4;
}

/* Slider Mobile Tweaks */
@media (max-width: 600px) {
  .slides {
    height: clamp(260px, 70vw, 420px);
  }
  .caption {
    top: auto;
    bottom: 18px;
    transform: translateX(-50%);
  }
  .caption h2 {
    margin: 0 0 6px;
  }
  .ctrl {
    width: 46px;
    height: 46px;
  }
  .ctrl-prev {
    left: 8px;
  }
  .ctrl-next {
    right: 8px;
  }
  .dots {
    bottom: 8px;
  }
  .card {
    padding: 18px;
  }
  .countdown .card {
    min-height: 150px;
  }
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  justify-items: center;
  margin-top: 20px;
}
@media (min-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.video-card {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.yt-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 3px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  cursor: pointer;
  display: block;
}
.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
}

/* Footer */
.footer {
  margin-top: auto;
  color: var(--muted);
  text-align: center;
  padding: 30px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}
.footer-left {
  color: var(--text);
  opacity: 0.9;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  opacity: 0.95;
}
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.08s ease, background 0.2s ease;
}
.social:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}
@media (min-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
  }
}
@media (max-width: 979px) {
  .footer-social {
    justify-content: center;
  }
}

/* Simple gallery */
.ac-gallery {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
.ac-gallery img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin-bottom: 30px;
}

/* Form grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.9rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  font: inherit;
  background: rgba(3, 30, 46, 0.95);
  color: #fff;
}
.field textarea {
  resize: vertical;
}
.radio-row,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.9rem;
}

.camper {
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid var(--accent, #ff4d32);
  padding: 18px 18px 20px;
  background: rgba(1, 24, 38, 0.9);
}
.camper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.camper-header h4 {
  margin: 0;
}
.card-soft {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.btn-ghost.btn-remove {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ENROLL PAGE */
.enroll-page .page-title {
  text-align: center;
  margin: 40px 0 24px;
}
.enroll-page .form-shell {
  max-width: 980px;
  margin: 0 auto 60px;
}
.enroll-page .form-card {
  background: #032a39;
  border-radius: 18px;
  border: 2px solid #ff4a33;
  padding: 28px 24px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) {
  .enroll-page .form-card {
    padding: 32px 32px 38px;
  }
}
@media (max-width: 600px) {
  .enroll-page .form-card {
    padding: 20px 16px 24px;
  }
}
.enroll-page .form-intro {
  margin-bottom: 26px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.enroll-page .form-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 18px 0 10px;
}
.enroll-page .children-header {
  margin-top: 26px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.enroll-page .children-header .hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.enroll-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.enroll-form label {
  font-size: 0.85rem;
  font-weight: 500;
}
.enroll-form input,
.enroll-form select,
.enroll-form textarea {
  width: 100%;
  border-radius: 10px;
  border: none;
  padding: 10px 12px;
  background: #053241;
  color: #fff;
  font: 400 0.9rem/1.4 "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}
.enroll-form input::placeholder,
.enroll-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  outline: 2px solid #ff4a33;
  outline-offset: 0;
}

.enroll-form .field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 900px) {
  .enroll-form .field-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .enroll-form .field-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.enroll-page .child-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.enroll-page .child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.enroll-page .child-title {
  font-size: 1rem;
  font-weight: 600;
}
.enroll-page .child-remove {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  background: rgba(255, 74, 51, 0.1);
  color: #ff7056;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.enroll-page .child-remove:hover {
  background: #ff4a33;
  color: #fff;
}

.enroll-page .form-actions-main {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .enroll-page .form-actions-main {
    justify-content: flex-start;
  }
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.flag-icon {
  width: 26px;
  height: auto;
  border-radius: 4px;
}
.lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: var(--shadow);
  min-width: 140px;
  display: none;
  list-style: none;
  z-index: 999;
}
.lang-dropdown.open {
  display: block;
}
.lang-dropdown li a {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}
.lang-dropdown li a:hover {
  background: var(--primary);
  border-radius: 8px;
}

/* iOS Safe-Area */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 900px) {
    .menu {
      padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
  }
}
