/* === Font Faces === */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* === Scroll Snap Container === */
.scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* === Sections (Mobile-First) === */
.panel {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

/* === Background Images === */
.panel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark gradient overlay for WCAG contrast */
.panel__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

/* === Text Content (Mobile) === */
.panel__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 1.5rem 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.panel__content h1,
.panel__content h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.panel__content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 40ch;
}

/* === Text Reveal Animation === */
.panel__content h1,
.panel__content h2,
.panel__content p {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.panel__content p {
  transition-delay: 0.15s;
}

.panel.is-visible .panel__content h1,
.panel.is-visible .panel__content h2,
.panel.is-visible .panel__content p {
  opacity: 1;
  transform: translateY(0);
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

.site-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.info-btn {
  pointer-events: auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.info-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* === Scroll Hint === */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.scroll-hint.is-visible {
  opacity: 1;
}

.scroll-hint.is-visible svg {
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  display: block;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* === Slideshow (auto-advancing background) === */
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

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

/* === Gallery Button === */
.gallery-btn,
.booking-btn,
.info-open-btn {
  align-self: center;
  margin-top: 1rem;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gallery-btn:hover,
.booking-btn:hover,
.info-open-btn:hover {
  background: #fff;
  color: #111;
}

/* === Gallery Modal === */
.gallery-modal {
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: #000;
  overflow: hidden;
}

.gallery-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.gallery-modal__close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.gallery__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery__btn--prev { left: 0.75rem; }
.gallery__btn--next { right: 0.75rem; }

.gallery__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.gallery__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.gallery__dot.is-active {
  background: #fff;
}

/* === Info Modal === */
.info-modal {
  border: none;
  border-radius: 0.75rem;
  padding: 0;
  max-width: 36rem;
  width: calc(100% - 2rem);
  height: calc(100dvh - 4rem);
  margin: 2rem auto auto;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

.info-modal[open] {
  display: flex;
  flex-direction: column;
}

.info-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Header with close + tabs */
.info-modal__header {
  position: relative;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.info-modal__header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  width: 3rem;
  background: linear-gradient(to left, #fff, transparent);
  pointer-events: none;
  z-index: 2;
}

.info-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0.25rem;
  z-index: 10;
}

.info-modal__close:hover {
  color: #1a1a1a;
}

/* Tabs */
.info-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2.5rem 0 0.75rem;
}

.info-tabs::-webkit-scrollbar {
  display: none;
}

.info-tabs__tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.info-tabs__tab:hover {
  color: #1a1a1a;
}

.info-tabs__tab.is-active {
  color: #1a1a1a;
  font-weight: 700;
  border-bottom-color: #1a1a1a;
}

/* Scrollable body */
.info-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Tab panels */
.info-panel {
  display: none;
}

.info-panel.is-active {
  display: block;
}

.info-panel p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-booking-btn {
  display: block;
  width: fit-content;
  margin: 1.25rem auto 0;
  padding: 0.5rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.info-booking-btn:hover {
  background: transparent;
  color: #1a1a1a;
}

/* Facts & distances tables */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.facts-table tr {
  border-bottom: 1px solid #eee;
}

.facts-table td {
  padding: 0.6rem 0;
}

.facts-table td:first-child {
  font-weight: 700;
  padding-right: 1rem;
  white-space: nowrap;
}

.facts-table td:last-child {
  text-align: right;
  color: #555;
}

/* Ausstattung lists */
.info-panel h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-panel h3:first-child {
  margin-top: 0;
}

.info-panel ul {
  list-style: none;
  padding: 0;
}

.info-panel li {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* FAQ */
.faq-list {
  font-size: 0.9rem;
}

.faq-list dt {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* === Impressum === */
.site-footer {
  position: absolute;
  bottom: 0.75rem;
  right: 1.5rem;
  z-index: 3;
}

.impressum-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.impressum-link:hover {
  color: #fff;
}

/* === Desktop Split-Screen === */
@media (min-width: 1024px) {
  .panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .panel__media {
    position: relative;
    min-height: 0;
  }

  .panel__content {
    min-height: 0;
  }

  .panel__media::after {
    display: none;
  }

  .site-header {
    left: 50%;
    right: 0;
  }

  .panel__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    background: #111;
    text-shadow: none;
  }

  /* Odd sections: image left, text right */
  .panel:nth-child(odd) .panel__media {
    order: 1;
  }
  .panel:nth-child(odd) .panel__content {
    order: 2;
  }

  /* Even sections: image right, text left */
  .panel:nth-child(even) .panel__media {
    order: 2;
  }
  .panel:nth-child(even) .panel__content {
    order: 1;
  }

  /* Odd sections: text is right (75%), even: text is left (25%) */
  .panel:nth-child(odd) .scroll-hint {
    left: 75%;
  }
  .panel:nth-child(even) .scroll-hint {
    left: 25%;
  }

  .site-footer {
    right: 1.5rem;
    left: auto;
  }
}
