/* Basis-Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Links */
a {
  color: inherit;
}

/* Navigation (global) */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  color: #ffffff;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout für alle Seiten */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3rem;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  opacity: 0.95;
}

p {
  line-height: 1.7;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.divider {
  margin: 1.8rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

ul {
  list-style: disc;
  margin-left: 1.3rem;
  margin-bottom: 0.8rem;
}

li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ---------------------- */
/* Startseite             */
/* ---------------------- */

body.page-home {
  height: 100%;
  color: #ffffff;
  background: url("../../mittenwald.jpg") center center no-repeat fixed;
  background-size: cover;
}

.page-home main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5rem; /* Platz für fixe Navigation */
}

.home-overlay {
  background: rgba(0, 0, 0, 0.45);
  padding: 2.5rem 3rem;
  border-radius: 1rem;
  max-width: 640px;
  width: 100%;
  backdrop-filter: blur(3px);
}

.home-contact {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.home-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.home-contact a:hover {
  text-decoration: none;
}

/* ---------------------- */
/* Galerie-Seite          */
/* ---------------------- */

body.page-gallery {
  background: #0b1020;
  color: #f4f4f4;
}

.page-gallery .small-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.page-gallery .contact-box {
  margin-top: 1.5rem;
  padding: 1.3rem 1.2rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-gallery .contact-box strong {
  display: block;
  margin-bottom: 0.5rem;
}

.page-gallery .contact-box a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Galerie-Grid */
.gallery {
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #151a2a;
  cursor: pointer;
}

.gallery-item figure {
  margin: 0;
}

/* fester Bildbereich + Zoom-Effekt */
.gallery-item img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (min-width: 900px) {
  .gallery-item img {
    height: 260px;
  }
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem 0.6rem;
  opacity: 0.85;
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper {
  max-height: 80vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.8rem;
}

.lightbox-meta {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.lightbox-caption {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ---------------------- */
/* Preise-Seite           */
/* ---------------------- */

body.page-prices {
  background: #07101c;
  color: #f4f4f4;
}

.page-prices .price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.96rem;
}

.page-prices .price-table th,
.page-prices .price-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 0.7rem;
  text-align: left;
}

.page-prices .price-table th {
  background: rgba(255, 255, 255, 0.08);
}

.page-prices .hint {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Formular */
.page-prices form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.page-prices .full-width {
  grid-column: 1 / -1;
}

.page-prices label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.page-prices input,
.page-prices select,
.page-prices textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 10, 18, 0.9);
  color: #f4f4f4;
  font-family: inherit;
  font-size: 0.95rem;
}

.page-prices textarea {
  min-height: 120px;
  resize: vertical;
}

.page-prices button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: #f2f2f2;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  justify-self: flex-start;
}

.page-prices button[type="submit"]:hover {
  background: #ffffff;
}

.page-prices .contact-note {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------------------- */
/* Responsive             */
/* ---------------------- */

@media (max-width: 700px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .page-prices form {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1.1rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1.2rem;
  }

  .lightbox-next {
    right: 1.2rem;
  }

  .home-overlay {
    padding: 1.8rem 1.5rem;
  }
}