:root {
  --darkreader-inline-bgcolor: #645843;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 100;
  scroll-behavior: smooth;
  background-color: #181818;
  color: white;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-left: 1rem;
  padding-right: 3rem;
  padding-bottom: 0.5rem;
  z-index: 1000;
}

header a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  margin-right: 3rem;
}

.footer-nav {
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 3rem;
  padding-bottom: 1rem;
  z-index: 1000;
  justify-content: center;
}

.footer-nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  margin-right: 3rem;
}

.parallax-background {
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f2f2f2;
  h1 {
    font-size: 2.4rem;
  }
}

.text-shadow-black {
  text-align: center;
  text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black,
          -1px -1px 1px black;
}

.text-shadow-white {
  text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white,
          -1px -1px 1px white;
}

#mainPage {
  margin-top: 4.3rem;
}

.hero {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-align: center;
  max-width: none;
}

.hero h1 {
  font-size: 4rem;
}

.hero-contact {
  height: 50vh;
  background: url('./assets/galerie/galerie20.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-align: center;
  max-width: none;
}

.hero-contact h1 {
  font-size: 4rem;
}

.hero-buffet {
  background: url('./assets/Download1.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-align: center;
  max-width: none;
}

.hero-buffet h1 {
  font-size: 4rem;
}

section {
  padding: 5rem 2rem;
  max-width: 80vw;
  margin: 0 auto;
  text-align: center;
}

.section-dark {
  background: #111;
  color: white;
}

.section-dark {
  background: var(--darkreader-inline-bgcolor);
  color: white;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* <-- Zentriert die Bilder */
}

.gallery img {
  width: 100%;
  max-width: 16vw;
  border-radius: 8px;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #333;
  color: white;
}

.mailto {
  color: black;
}

.gold {
  color: var(--darkreader-inline-bgcolor);
}

.pointer {
  cursor: pointer;
}

.row {
  display: flex;
  flex-direction: row;
}

.row-item {
  margin-left: 1rem;
  margin-right: 1rem;
}

.center {
  justify-content: center;
}

.big {
  font-weight: 800;
}

.download-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* <-- Zentriert die Bilder */
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.download-item img {
  width: 100%;
  max-width: 16vw;
  border-radius: 8px;
}

.center-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.home-card {
  max-width: 40vw;
  margin: 2rem;
  font-weight: 100;
}

.mat-card {
  display: block;
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
  border-radius: 4px;
}

.mat-card-image {
  width: calc(100% + 32px);
  margin: 0 -16px 16px -16px;
  display: block;
  overflow: hidden;
}

.color-dark-gray {
  background-color: rgb(56, 56, 56);
}

.color-white {
  background-color: white;
}

.font-color-white {
  color: white;
}

.font-color-gray {
  color: black;
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.image-container img {
  width: calc(22.22% - 2rem); /* Abstand von 2rem zwischen den Bildern */
  margin: 1rem; /* Halber Abstand, um insgesamt 2rem zu erreichen */
  height: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

/*Partner Slider */

.slider {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
}

.slide-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.slide {
  width: 250px;
  height: 260px;
  background: #1a1a1a;
  margin: 0 15px;
  border-radius: 15px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  font-weight: 600;
  text-align: center;
  overflow: hidden; /* verhindert Überlaufen */
  position: relative;
}

.slide img {
  max-width: 80%; /* verhindert horizontales Überlaufen */
  max-height: 120px;
  object-fit: contain;
  display: block;
  margin-bottom: auto; /* Bild bleibt oben */
}

.slide p {
  margin: 10px 0 0;
  font-size: 16px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/*Tabelle*/

.tabelle {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-top: 1rem;
  justify-content: center;
  border-collapse: collapse;
  font-family: "Roboto", Arial, sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.tabelle th {
  text-align: left;
  color: #757575;
  font-weight: 500;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.tabelle td {
  padding: 12px 16px;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  color: black;
}

.tabelle tr:last-child td {
  border-bottom: none;
}

/*Navbar*/

.list{
  list-style: none;
  display: flex;
  gap: 25px;
}

#toggler {
  display: none;
}

.navbar label {
  display: none;
}

@media screen and (max-width: 600px) {
  .list {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .navbar label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }

  .menu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }

  #toggler:checked ~ .menu {
    max-height: 100%;
  }
}

/* ===== Schnee-Overlay über der ganzen Seite ===== */

.snow-body {
  position: fixed;
  inset: 0;              /* top:0; right:0; bottom:0; left:0; */
  height: 100%;
  overflow: hidden;
  pointer-events: none;  /* Klicks gehen durch */
  z-index: 9999;
  filter: drop-shadow(0 0 10px white);
}

/* Allgemeine Schneeflocken-Styles */
.snow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;

  /* Animationseinstellungen, werden per JS pro Flocke angepasst */
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Keyframes: Bewegung von oben nach unten mit leichtem Driften */
@keyframes snow-fall {
  0% {
    transform: translate3d(var(--x-start, 0), -10px, 0) scale(var(--scale, 1));
  }
  50% {
    transform: translate3d(var(--x-middle, 0), 50vh, 0) scale(var(--scale, 1));
  }
  100% {
    transform: translate3d(var(--x-end, 0), 100vh, 0) scale(var(--scale, 1));
  }
}

/* Optional: horizontales Scrollen verhindern, falls mal was rausrutscht */
html, body {
  overflow-x: hidden;
}
