/* ========================================
   🔤 Überschrift und allgemeines Layout
======================================== */

:root {
  --apple-bg: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-secondary: #6e6e73;
  --apple-accent: #00c7be; /* Aquamarin */
}

.ueberschrift {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 16px 0 8px 0;
  padding-left: 0;
}

.unter_ueberschrift {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 18px;
  color: var(--apple-secondary);
  margin: 0 0 8px 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--apple-text);
  background: var(--apple-bg);
  line-height: 1.5;
  margin: 0;
  padding: 20px;
}
html { scroll-behavior: smooth; }

/* Seite als Spalte, Formular an den unteren Rand schieben */
.box {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ========================================
   🖼️ Bild-Bereich
======================================== */

/* Gesamter Bereich mit grauem Hintergrund */
.bild-bereich {
  background-color: #e9e9ec;
  margin: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.bild-mit-text-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.bild-hintergrund-balken {
    background-color: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bild-mit-text {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    z-index: 1;
}

.bild-mit-text img {
	width: 100%;
	display: block;
	height: auto;
	z-index: 0;
	position: relative;
	filter: blur(3px); /* 1–5px empfehlenswert */
}

.overlay-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 50px;
	font-weight: bold;
	text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
	z-index: 1;
	pointer-events: none;
}


/* ========================================
   📝 Infotext-Bereich
======================================== */

/* Wiederverwendbare Karte im Stil des Formulars/FAQ */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0; /* Inhaltspadding wandert in .card-body */
  overflow: hidden; /* Header-Rundungen sauber anzeigen */
}

/* Einheitliche Inhaltsbreite analog FAQ */
.card.narrow {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 1cm auto; /* 1 cm Abstand nach unten zwischen Boxen */
  align-self: center; /* verhindert Stretch in Flex-Container */
}

/* Einheitlicher Kartenkopf und -inhalt */
.card-header {
  background: #0071e3;
  color: #fff;
  padding: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 700;
  font-size: 22px;
}
.card-body { padding: 20px; }
.text-center { text-align: center; }

.infotext {
	text-align: center;
	padding-bottom: 30px;
}


/* ========================================
   ⏳ Countdown-Bereich
======================================== */

.countdown-inline {
  text-align: center;
  margin: 24px auto 5cm auto;
  padding: 8px 0 0 0;
}
.countdown-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 20px;
  font-weight: 700;
  color: var(--apple-secondary);
  margin-bottom: 8px;
}
.countdown-timer {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on, "ss01" on;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--apple-text);
  display: flex;
  justify-content: center;
  gap: 18px;
}

.ct-item { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.ct-value { font-size: 40px; line-height: 1; }
.ct-label { margin-top: 6px; font-size: 12px; color: var(--apple-secondary); letter-spacing: .02em; }
.ct-done { font-size: 22px; font-weight: 700; color: var(--apple-accent); }

/* Größere Countdown-Variante (Save The Date) */
.countdown-large .countdown-timer { gap: 24px; }
.countdown-large .ct-item { min-width: 88px; }
.countdown-large .ct-value { font-size: 64px; }
.countdown-large .ct-label { font-size: 14px; }

/* ======================================== */


/* ========================================
   🔧 Sonstiges
======================================== */

/* Obere Navigationsleiste */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.top-nav .scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
  overflow: hidden;
}
.top-nav .scroll-progress__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--apple-accent) 0%, #00a69f 100%);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}
.top-nav .nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
}
.top-nav a {
  color: var(--apple-text);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
.top-nav a:hover { background: rgba(0,0,0,0.06); }
.top-nav .burger { display: none; }

/* Anker-Bereiche: Offset für sticky Nav */
.anchor-section { scroll-margin-top: 64px; }

/* ===============================
   📱 Mobile Navigation
=============================== */
@media (max-width: 600px) {
  /* Countdown mobil: kleinere Typo, flex-wrap, geringere Mindestbreite */
  .countdown-inline { margin: 16px auto 40px auto; padding-top: 0; }
  .countdown-timer { flex-wrap: wrap; gap: 12px; }
  .countdown-large .ct-item { min-width: 60px; }
  .countdown-large .ct-value { font-size: 42px; }
  .countdown-large .ct-label { font-size: 12px; }

  .top-nav { padding: 6px 8px; }
  .top-nav .burger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: var(--apple-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
  }
  .top-nav .burger:active { transform: translateY(1px); }
  .top-nav .nav-inner {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
  }
  .top-nav .nav-inner.open { display: flex; }
  .top-nav a {
    font-size: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
  }
  .anchor-section { scroll-margin-top: 56px; }

  .bottom-nav .nav-inner {
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* Parallax-Wrapper optimieren */
.parallax-group { will-change: transform, opacity; transform: translate3d(0, var(--parallax, 0px), 0); }

/* Extra small phones */
@media (max-width: 380px) {
  .countdown-timer { gap: 10px; }
  .countdown-large .ct-item { min-width: 54px; }
  .countdown-large .ct-value { font-size: 36px; }
}

/* Untere Navigationsleiste */
.bottom-nav {
  background: #1C6EA4;
  padding: 12px 16px;
}
.bottom-nav .nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.bottom-nav a {
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 600;
}
.bottom-nav a:hover { text-decoration: underline; }

/* Formular-Abschnitt am unteren Seitenrand mittig */
.bottom-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.formular-abschnitt {
    display: flex;
    justify-content: center;
    padding: 60px 20px 0 20px;
  background: transparent;
}
.faq-section { padding-bottom: 40px; }

/* Wann-Karte */
.when-card { text-align: center; }
.when-title {
  font-size: 28px;
  margin: 10px 0;
  background-color: #E6FFFB;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
}
.when-date {
  font-size: 40px;
  margin: 0;
}

/* Gästeübersicht – Blasenvisualisierung */
.bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 0;
}
.bubbles.packed { position: relative; display: block; gap: 0; }
.bubbles.packed .bubble-item { position: absolute; margin-top: 0 !important; }
.bubble-item { text-align: center; transition: transform .15s ease; }
.bubble-item:nth-child(3n) { margin-top: 6px; }
.bubble-item:nth-child(4n) { margin-top: 12px; }
.bubble-item:nth-child(5n) { margin-top: 2px; }
.bubble {
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .2s ease;
}
.bubble:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.bubble-caption {
  margin-top: 6px;
  font-size: 14px;
  color: #374151;
}

.bubble-inner { text-align: center; line-height: 1.2; padding: 6px; max-width: 90%; }
.bubble-name { font-size: 12px; white-space: normal; word-break: break-word; overflow: visible; }
.bubble-rides { font-size: 12px; opacity: 0.85; }

/* Chips für Summen */
.chips { display: flex; gap: 8px; justify-content: center; margin: 4px 0 10px 0; flex-wrap: wrap; }
.chip { background: #f3f4f6; border: 1px solid #e5e7eb; color: #374151; border-radius: 999px; padding: 4px 10px; font-size: 13px; }

/* ========================================
   🧭 Leichte Sektionen (ohne Card-Header)
======================================== */
.section { padding: 24px 0; }
.section.narrow { max-width: 800px; margin: 0 auto 1cm auto; }
.section-head {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 22px;
  font-weight: 700;
  color: var(--apple-secondary);
  margin: 0 0 12px 0;
}
.section-head::after { content: ""; display: block; width: 48px; height: 1px; background: rgba(0,0,0,0.08); margin: 8px auto 0; }
.section-body { text-align: center; }

/* Intro/Moin heading refinement */
.intro-head {
  text-align: left;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  padding-left: 72px; /* Raum für Badge */
}
.intro-head::after {
  background: var(--apple-accent);
  width: 56px;
  height: 2px;
  margin: 8px 0 0 0;
}

/* Badge icons aligned to heading (inline) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.icon-badge::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #e6fffb;
  border: 1px solid #00a69f;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
.badge--calendar.icon-badge::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>"); }
.badge--pin.icon-badge::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 12-9 12S3 17 3 10a9 9 0 1 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>"); }
.badge--users.icon-badge::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 0 0-4-4'/><path d='M7 21v-2a4 4 0 0 1 4-4'/><circle cx='12' cy='7' r='4'/></svg>"); }
.badge--hotel.icon-badge::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7v13'/><path d='M21 7v13'/><path d='M3 14h18'/><path d='M7 14V9a2 2 0 0 1 2-2h6a4 4 0 0 1 4 4v3'/></svg>"); }
.badge--mail.icon-badge::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2' ry='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
/* Icons bleiben auch mobil sichtbar */

/* Countdown responsive sizing */
/* (Revert) remove mobile-specific countdown scaling */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.block { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; padding: 16px; }
.two-col .block { text-align: left; }
.two-col .block h4 { margin: 0 0 8px 0; font-size: 18px; font-weight: 700; color: var(--apple-text); }
.two-col .block p { margin: 0; color: var(--apple-secondary); }

/* Side icons for blocks */
.block.icon-left { position: relative; }
.block.icon-left::before {
  content: "";
  position: absolute;
  left: -64px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #e6fffb; /* light aquamarine */
  border: 1px solid #00a69f;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}

/* Calendar icon */
.block--calendar.icon-left::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
}

/* Pin/Location icon */
.block--pin.icon-left::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 12-9 12S3 17 3 10a9 9 0 1 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
}

/* Users/Guests icon */
.block--users.icon-left::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 0 0-4-4'/><path d='M7 21v-2a4 4 0 0 1 4-4'/><circle cx='12' cy='7' r='4'/></svg>");
}

/* Hotel/Bed icon */
.block--hotel.icon-left::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2300c7be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7v13'/><path d='M21 7v13'/><path d='M3 14h18'/><path d='M7 14V9a2 2 0 0 1 2-2h6a4 4 0 0 1 4 4v3'/></svg>");
}

@media (max-width: 700px) {
  .block.icon-left::before { display: none; }
}

/* Intro/Moin block – Apple-like copy treatment */
.intro-block {
  padding: 28px 24px 24px 28px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--apple-accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: left;
}
.intro-block p { margin: 0 0 10px 0; }
.intro-block p:first-child {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-text);
}
.intro-block p + p {
  color: var(--apple-secondary);
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* Einheitliche Abschnittsüberschriften (z. B. Location) */
.section-title {
  text-align: center;
  font-size: 26px;
  margin: 0 0 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 700;
}

.betonung { font-weight: 600; color: var(--apple-accent); }

/* Bestätigungs-Toast nach Formularversand */
.confirmation-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    background-color: #e6ffed;
    border: 1px solid #b7f5c2;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
    z-index: 1000;
}

.confirmation-toast.show {
    display: block;
}

/* Fehler-Toast */
.error-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    background-color: #ffe6e6;
    border: 1px solid #f5b7b7;
    color: #7a1111;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
    z-index: 1000;
}
.error-toast.show { display: block; }

/* ===============================
   📚 FAQ Bereich
=============================== */
.faq-section {
  max-width: 800px;
  margin: 60px auto 20px auto;
  padding: 0 20px;
}
.faq-title {
  text-align: center;
  font-size: 26px;
  margin: 0 0 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question:hover { background: #f7f7f9; }
.faq-question:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 95, 107, 0.2);
  border-radius: 14px;
}
.faq-question::after {
  content: '+';
  color: var(--apple-accent);
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item.open .faq-question::after { content: '–'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 18px;
  color: #374151;
}
.faq-item.open .faq-answer {
  max-height: 200px; /* genügt für kurze Antworten */
  padding: 0 18px 14px 18px;
}

/* ===============================
   Reveal + Parallax (ruckelfrei)
   - Einmaliges Einblenden, Parallax direkt ohne Auslaufen
   - Deaktiviert bei "prefers-reduced-motion"
=============================== */
.reveal {
  --parallax: 0px;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: transform .5s ease-out, opacity .5s ease-out;
  will-change: transform, opacity;
}
.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, var(--parallax), 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stapelreihenfolge zurücksetzen (Standardfluss ohne Überdeckung) */
/* ===============================
   Layout: Heading ohne linken Padding (Icon ist inline)
=============================== */
.intro-head { padding-left: 0; }

/* Box-seitliche Icons weiterhin ausblenden (nur Headings nutzen Icon) */
.block.icon-left::before { display: none; content: none; }
