/* Fix: verhindert 1–2px Overflow durch Padding/100vw */
*, *::before, *::after {
  box-sizing: border-box;
}


/* Grundlayout */
body {
  margin: 0;
  min-height: 100vh;
  background: #f6f4f1;
  font-family: 'Playfair Display', serif;
  color: #2b2b2b;
}

/* Screen Wrapper */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Karte */
.paper {
  max-width: 900px;
  width: 90%;
  padding: 80px 40px;
  background: #faf9f7;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  text-align: center;
}

/* Gate */
#pw {
  padding: 12px;
  font-size: 16px;
  margin-top: 20px;
  width: 240px;
  text-align: center;
}

.gate-actions {
  margin-top: 18px;
}

button {
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: 1px solid #2b2b2b;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.msg {
  margin-top: 16px;
  font-size: 14px;
  min-height: 18px;
}

.msg-error { color: #9b2c2c; }
.msg-lock  { color: #4a4a4a; opacity: 0.85; }

/* Monogram */
.monogram-slot {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 50px;
  transition: max-width 220ms ease, margin 220ms ease;
}

.monogram-slot.is-compact {
  max-width: 220px;
  margin: 0 auto 24px;
}

.monogram-slot svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Stroke-Draw */
.monogram-slot path {
  fill: none !important;
  stroke: #1f1f1f !important;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monogram-slot.is-filled path {
  transition: fill 700ms ease;
  fill: #1f1f1f !important;
  stroke: transparent !important;
}

/* Typo */
.subtitle {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Linie nach Subtitle – volle Breite */
.subtitle::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.25);
  margin: 18px 0 32px;
}

background: linear-gradient(
  to right,
  rgba(0,0,0,0),
  rgba(0,0,0,0.25),
  rgba(0,0,0,0)
);



h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 4px;
  margin: 20px 0;
}

.date {
  font-size: 14px;
  letter-spacing: 2px;
  margin-top: 30px;
}

.coming {
  margin-top: 50px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Pages + Smooth Fade */
.pages {
  /* Platz für Menü unten */
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

.page {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.page.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  height: auto;
  overflow: visible;
}

/* Bottom Nav (iPhone tauglich) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

	width: 100%;
	overflow: hidden; /* verhindert, dass sie den Body breiter drückt */


  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
}

/* Innerer Scroll-Container:
   - auf Mobile: horizontal scroll
   - auf Desktop: zentriert */
.bottom-nav-inner {
  display: flex;
  gap: 8px;

  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  justify-content: flex-start;  /* mobile default */
  touch-action: pan-x;
  padding-bottom: 2px;
}

.bottom-nav-inner::-webkit-scrollbar { display: none; }

/* Navigation Buttons – Dark Style */
.nav-btn {
  flex: 0 0 auto;
  white-space: nowrap;

  padding: 10px 14px;
  background: #1f1f1f;              /* Schwarz */
  color: #f6f4f1;                   /* Hintergrund-Weiß */
  border: 1px solid #1f1f1f;

  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;

  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

/* Aktiver Tab */
.nav-btn.is-active {
  background: #000;                 /* etwas tieferes Schwarz */
  border-color: #000;
  opacity: 1;
}

/* Inaktive Tabs minimal zurücknehmen */
.nav-btn:not(.is-active) {
  opacity: 0.85;
}

/* Touch-Feedback */
.nav-btn:active {
  opacity: 0.65;
}


/* Desktop/Laptop: Menü mittig */
@media (min-width: 900px) {
  .bottom-nav-inner {
    justify-content: center;
    overflow-x: visible;   /* alles passt i.d.R. */
  }
}

/* Sehr kleine Handys: Buttons etwas kleiner */
@media (max-width: 380px) {
  .nav-btn { font-size: 10px; padding: 9px 10px; }
}

/* Responsive Typo */
@media (max-width: 600px) {
  h1 { font-size: 28px; }
}

.loading {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 30px;
}

/* Responsive Map – größer & breiter */
.map-wrap {
  margin: 32px auto 24px;
  width: 100%;
  max-width: 900px; /* breiter als Text */
}

.map-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Adresse unter der Karte */
.address-block {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  user-select: text; /* wichtig: kopierbar */
}

.address-actions {
  margin-top: 10px;
}

.address-actions a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  padding-bottom: 2px;
}

/* =========================
   Mobile Scroll Hint – softer Fade + klarer Pfeil
========================= */
@media (max-width: 899px) {

  .bottom-nav::before,
  .bottom-nav::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;              /* mehr Fade-Fläche */
    pointer-events: none;
    z-index: 2;
  }

  /* Linke Seite – weicher Verlauf */
  .bottom-nav::before {
    left: 0;
    background: linear-gradient(
      to right,
      rgba(250,249,247,1) 0%,
      rgba(250,249,247,0.85) 35%,
      rgba(250,249,247,0) 100%
    );
  }

  /* Rechte Seite – weicher Verlauf + Pfeil */
  .bottom-nav::after {
    right: 0;
    background: linear-gradient(
      to left,
      rgba(250,249,247,1) 0%,
      rgba(250,249,247,0.85) 35%,
      rgba(250,249,247,0) 100%
    );

    content: "›";
    font-size: 26px;          /* klarer */
    font-weight: 300;
    color: rgba(30,30,30,0.75); /* dunkler & edler */

    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
  }

  .bottom-nav-inner {
    padding-right: 44px; /* Platz für Pfeil + Fade */
  }
}


/* =========================
   Form Styling (Rückmeldung)
========================= */

.form {
  margin-top: 26px;
  text-align: left;
}

.form-row {
  margin: 16px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.label {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  font-size: 16px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  outline: none;
}

.input:focus {
  border-color: rgba(0,0,0,0.35);
}

.radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.details {
  margin-top: 8px;
}

.form-actions {
  margin-top: 22px;
  text-align: center;
}

.btn {
  padding: 12px 18px;
  background: #1f1f1f;
  color: #f6f4f1;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:active { opacity: 0.75; }

.fineprint {
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.65;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Unterkunft – Bildergalerie
========================= */

.gallery {
  margin: 32px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Mobile: einspaltig */
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Slideshow (Unterkunft)
========================= */

.slideshow {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 32px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
}

/* ✅ Mobile: rand-zu-rand (nur wenn slideshow--bleed gesetzt ist) */
@media (max-width: 700px) {
  .slideshow.slideshow--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}



/* Fester Rahmen / gleiches Seitenverhältnis */
.slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* <- gleichbleibende Höhe, super wichtig */
  
  
	/* Fallback, falls aspect-ratio nicht greift */
	@supports not (aspect-ratio: 16 / 9) {
	  .slides {
		height: 0;
		padding-top: 56.25%; /* 16:9 */
	  }
	}

	/* Mobile Fallback (4:3) */
	@supports not (aspect-ratio: 4 / 3) {
	  @media (max-width: 700px) {
		.slides {
		  padding-top: 75%; /* 4:3 */
		}
	  }
}

  
  
  
  
}

@media (max-width: 700px) {
  .slides { aspect-ratio: 4 / 3; } /* auf Mobile etwas „höher“ */
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;   /* <- schneidet sauber zu statt zu verzerren */
  object-position: center;
}

/* Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(250,249,247,0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;
}

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

.slide-btn:active { opacity: 0.7; }

/* Dots */
/* ✅ Indicator Bar statt Dots */
.dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  z-index: 2;
}

.dot {
  height: 3px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(250,249,247,0.65);
  cursor: pointer;
}

.dot.is-active {
  background: rgba(0,0,0,0.75);
}


.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.35);
  background: rgba(250,249,247,0.65);
  cursor: pointer;
}

.dot.is-active {
  background: rgba(0,0,0,0.75);
  border-color: rgba(0,0,0,0.75);
}

/* ===== FIX: Slideshow Höhe erzwingen (Desktop Safe) ===== */
.slides {
  min-height: 600px;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================
   Mobile: Monogramm enger
========================= */
@media (max-width: 1000px) {

  .monogram-slot {
    margin-bottom: 28px; /* vorher ~50px */
  }

  .monogram-slot.is-compact {
    margin-bottom: 16px;
  }

  /* Optional: Paper oben/unten etwas enger */
  .paper {
    padding-top: 10px;
    padding-bottom: 20px;
  }
}

/* =========================
   Mobile: Slideshow Höhe an Breite koppeln
========================= */
@media (max-width: 700px) {

  .slides {
    min-height: 0;        /* Desktop-Fix auf Mobile aufheben */
    height: auto;
    aspect-ratio: 1 / 1;  /* quadratisch – sehr ruhig auf Handy */
  }

}

html, body {
  overflow-x: hidden;
}


/* =========================
   Anreise – 2 Spalten
========================= */

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
  text-align: left;
}

.travel-col h2 {
  margin-top: 0;
}

.travel-col h3 {
  margin-top: 28px;
  font-size: 15px;
  letter-spacing: 1px;
}

/* Mobile: untereinander */
@media (max-width: 700px) {
  .travel-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =========================
   Anreise – Editorial Layout
========================= */

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 48px 0;
  text-align: left;
  position: relative;
}

/* Feine Trennlinie (nur Desktop) */
@media (min-width: 701px) {
  .travel-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(0,0,0,0.12);
    transform: translateX(-50%);
  }
}

.travel-col h2 {
  margin-top: 0;
}

.travel-col h3 {
  margin-top: 30px;
  font-size: 15px;
  letter-spacing: 1px;
}

/* Dezente Icons */
.icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 21px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.55;
}

.icon.small {
  font-size: 20px;
  opacity: 0.45;
}

/* Mobile: untereinander + keine Linie */
@media (max-width: 700px) {
  .travel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .travel-grid::after {
    display: none;
  }
}
/* =========================
   Kontakt Modal – hochwertig
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

/* Karte */
.modal-card {
  position: relative;
  width: calc(100% - 40px);
  max-width: 460px;

  background: #faf9f7;
  padding: 48px 36px;
  border-radius: 22px;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.25);

  text-align: center;
  z-index: 1;

  animation: modalIn 260ms ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Kontakt-Inhalt */
.contact-block {
  margin-top: 10px;
}

.contact-block p {
  margin: 0 0 18px;
  line-height: 1.6;
  font-size: 15px;
}

/* Links ruhig & edel */
.contact-block a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  padding-bottom: 2px;
  color: inherit;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;

  font-size: 22px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;

  opacity: 0.5;
  transition: opacity 160ms ease;
}

.modal-close:hover {
  opacity: 1;
}

/* Mobile Feinschliff */
@media (max-width: 480px) {
  .modal-card {
    padding: 40px 26px;
  }
}

/* Modal: hidden MUSS wirklich ausblenden */
.modal[hidden] {
  display: none !important;
}

/* Modal Close Button muss klickbar sein */
.modal-card { position: relative; z-index: 1; }
.modal-close { position: absolute; z-index: 3; pointer-events: auto; }

/* Backdrop darf nicht über dem Card-Content liegen */
.modal-backdrop { z-index: 0; }

.day-group {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.day-title {
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap; /* verhindert Umbruch zwischen Box & Text */
}

.checkbox input {
  flex-shrink: 0; /* Checkbox darf nicht schrumpfen */
}


.checkbox .text {
  color: #000000;
  font-size: 1rem;
  line-height: 2.3;
}



/* ############################################################## */
/* Ab hier kommt Timeline / Ablauf */
/* ############################################################## */

/* =========================
   Ablauf – Accordion
========================= */

.accordion {
  margin-top: 5px;
  text-align: left;
}

.accordion-item {
  border-top: none;
}

.accordion-item + .accordion-item {
  border-top: 1px solid rgba(0,0,0,0.15);
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}


.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 6px;
  display: grid;
  grid-template-columns: 96px 1fr 28px; /* Datum | Titel | Icon */
  gap: 10px;
  align-items: baseline;
}


.accordion-header .date {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 30px;
  opacity: 0.6;
  text-align: left;
}

.accordion-header .title {
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.accordion-header .chevron {
  font-size: 18px;
  opacity: 0.55;
}

.accordion-item.is-open .chevron {
  transform: rotate(45deg);
}

/* Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
/* =========================
   Timeline (Ablauf) – cleaner
========================= */

.timeline {
  list-style: none;
  padding: 18px 6px 26px;
  margin: 0;
  position: relative;
}

/* Vertikale Linie zwischen Zeit & Text */
.timeline::before {
  content: "";
  position: absolute;
  left: 108px;                /* weiter nach rechts = mehr Luft */
  top: 18px;
  bottom: 26px;
  width: 1px;
  background: rgba(0,0,0,0.18);
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 18px 1fr;  /* Zeit | Dot | Text */
  gap: 7px;
  align-items: baseline;
  margin: 0 0 1px;
}

.timeline .time {
  font-size: 12px;
  opacity: 0.6;
  text-align: right;
  white-space: nowrap;
}

.timeline .dot {
  width: 1px;
  height: 1px;
  border-radius: 999px;
  background: rgba(177, 22, 22, 0.85);
  margin-top: 6px;
  visibility: hidden;
}

.timeline .text {
  font-size: 15px;
  line-height: 1.5;
}

/* Mobile: Timeline kompakter */
@media (max-width: 600px) {

  .timeline {
    padding: 14px 0 18px;     /* weniger Innenabstand */
  }

  .timeline::before {
    left: 62px;               /* Linie näher ran */
    top: 14px;
    bottom: 18px;
  }

  .timeline li {
    grid-template-columns: 50px 12px 1fr; /* Zeit schmaler */
    gap: 10px;                             /* weniger Luft */
    margin-bottom: 12px;
  }

  .timeline .time {
    font-size: 11px;          /* etwas kleiner */
  }

  .timeline .text {
    font-size: 14px;          /* minimal kompakter */
  }
}

@media (max-width: 600px) {
  .accordion-header {
    grid-template-columns: 72px 1fr 24px;
    gap: 10px;
  }

  .accordion-header .date {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}
.ja-img {
  height: 1.2em;          /* ⬅️ exakt so hoch wie der Text */
  width: auto;
  vertical-align: middle;
  margin: 0 0.2em;
}
