/* Eigene Anpassungen */
body {
  font-family: 'Poppins', 'Helvetica Neue', sans-serif;
  background-color: rgb(252, 249, 242);
  background-image: url("/modules/img/structure/wall.png");
  background-repeat: repeat;
  background-size: auto;
  background-blend-mode: multiply;
  color: #333;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: "Noto Serif Display", serif;
  font-style: normal;
}

h3.title {
  font-size: 2rem;
}

h4.title {
  font-size: 1.5rem;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.visible-nav {
  background-color: #f0ede5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* navigation */
.custom-nav {
  transition: opacity 0.9s ease;
  padding: 0;
  background-color: rgba(252, 249, 242, 0.5);
  backdrop-filter: blur(8px); /* optional für Glass-Effekt */
  -webkit-backdrop-filter: blur(8px); /* für Safari */
  opacity: 0;
}

.custom-nav.scrolled {
  background-color: rgba(252, 249, 242, 0.5);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.custom-nav .brand-text,
.visible-nav .brand-text {
  color: #333;
}

.navbar-brand {
  padding: 1;
}

.nav-logo {
  transition: filter 0.9s ease;
  width: auto; /* Breite: 30% der Bildschirmbreite */
  max-height: 30px; /* maximal 400px auf großen Bildschirmen */
  min-height: 20px; /* minimal 150px auf kleinen Geräten */
  height: 2vw;
}

.custom-nav-link,
.visible-nav-link {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.custom-nav-link a:hover,
.visible-nav-link a:hover {
  color: #666; /* leicht dunkler beim Hover */
}

/* video */
.video-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: relative;
  z-index: 2;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* halbtransparente Überlagerung */
  padding: 2rem;
}

.video-hero {
  max-height: 50%;
  width: auto;
}

.hero-logo {
  width: 50vw; /* Breite: 30% der Bildschirmbreite */
  max-width: 800px; /* maximal 400px auf großen Bildschirmen */
  min-width: 150px; /* minimal 150px auf kleinen Geräten */
  height: auto;
}

.logo-invert {
  filter: invert(1);
}

/* section-name */
.section-name {
  display: flex;
  flex-direction: column;
}

.divider-left,
.divider-right {
  height: 2px;
  background: #c5bba0;
  width: 80%;
  margin: 0 auto;
}

.divider-left {
  margin-left: 0;
}

.divider-right {
  margin-right: 0;
}

.portait {
  max-height: 250px;
}

/* Grundlayout: mobil untereinander */
.block {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 Bilder pro Reihe */
  gap: 1rem;
  max-width: 100%;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 75%;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
  will-change: transform; /* wichtig für Performance */
  z-index: 1;
}

/* Hover: Bild leicht vergrößern & ganz anzeigen */
.gallery-item:hover img {
  transform: scale(3.0);
  object-fit: contain;
  z-index: 10;
}

/* contact */

#contact .hero-logo {
  max-width: 35vh;
}

.table-container {
  display: flex;
  justify-content: center;
}

.opening-hours-table {
  max-width: 75%;
}

.opening-hours-table th,
.opening-hours-table td {
  background-color: transparent;
  color: #333;
}

/* Linie nur für sichtbare Zeilen */
.opening-hours-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* footer */
footer {
  background-color: #f0ede5;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px); /* für Glass-Effekt */
  -webkit-backdrop-filter: blur(8px); /* für Safari */

  color: #333;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.change-cookie-settings a {
  text-align: center;
  font-style: italic;
}

/* cookies */
.cookie-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: 500px;
  background: white;
  border-radius: 10px;
  padding: 2rem;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  display: none;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cookie-buttons button {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
}

.cookie-popup a {
  color: #333;
  text-decoration: underline;
}

.external-iframe {
  height: 100%;
  width: 100%;
}

.external-placeholder {
  width: 100%; 
  height: 100%; 
  background: #eee; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #444; 
  font-size: 1rem; 
  text-align: center;
}

/* overall */
a {
  color: #333;
  text-decoration: none; /* Entfernt die Unterstreichung */
}

a:hover {
  color: #666; 
}

button {
  background-color: #333;
  color: rgb(252, 249, 242);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #555;
}

/* Für dunkle Designs (Dark Mode) */
@media (prefers-color-scheme: dark) {
  body {
    background-image: url("/modules/img/structure/wall_invert.png");
    background-repeat: repeat;
    background-size: auto;
    background-blend-mode: normal;
    background-color: #181a1b;
  }
  
  a,
  body,
  .subtitle,
  .opening-hours-table th,
  .opening-hours-table td {
    color: #ccc !important;  /* Linkfarbe für dunkles Design */
  }

  a:hover {
    color: #8b7f6b;  /* Hover-Farbe im Dunkelmodus */
  }
  
  .opening-hours-table tr {
    border-bottom: 1px solid rgba(32, 32, 32, 0.2);
  }

  .logo,
  .logo-invert {
    filter: invert(1);
  }
  
  .custom-nav,
  .custom-nav.scrolled {
    background-color: rgb(24, 26, 27, 0.5);
  }

  .visible-nav,
  footer {
    background-color: #070808;
  }
}

/* Tablets: 3 Spalten */
@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Smartphones: 1 Spalte */
@media (max-width: 576px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Desktop-Layout ab 768px: nebeneinander */
@media (min-width: 768px) {
  .block {
    flex-direction: row;
    align-items: center;
  }

  .block.reverse {
    flex-direction: row-reverse;
  }

  .heading, .text {
    width: 50%;
  }
}