@font-face {
  font-family: "Sour Gummy";
  src: url("/assets/fonts/SourGummy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sour Gummy";
  src: url("/assets/fonts/SourGummy-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sour Gummy";
  src: url("/assets/fonts/SourGummy-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sour Gummy";
  src: url("/assets/fonts/SourGummy-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
body {
  margin: 0px;
  font-family: "Sour Gummy", cursive, sans-serif;
  background-color: #eeeeee;
  color: #3f3f3f;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: white;
  }
  .content {
    background-color: #4d4d4d !important;
  }
  .slideshow > img {
    filter: brightness(0.95);
  }
  footer .footer-normal {
    z-index: -10;
  }
  footer img {
    filter: brightness(0.3);
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  padding: 0 20px;
  font-size: 25px;
  color: white;
  box-shadow: 0px 0px 0px rgba(3, 7, 18, 0.02), 0px 0px 0px rgba(3, 7, 18, 0.03),
    0px 1px 1px rgba(3, 7, 18, 0.05), 0px 1px 2px rgba(3, 7, 18, 0.06),
    0px 2px 3px rgba(3, 7, 18, 0.08), 0px 2px 4px rgba(3, 7, 18, 0.1),
    0px 3px 6px rgba(3, 7, 18, 0.11), 0px 4px 8px rgba(3, 7, 18, 0.13),
    0px 5px 10px rgba(3, 7, 18, 0.14), 0px 6px 12px rgba(3, 7, 18, 0.16);
}
header .logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin-right: 80px;
  color: white;
}
header .logo img {
  height: 65px;
  margin-right: 10px;
}
header .logo a {
  color: white;
  text-decoration: none;
}
.menu-toggle,
.mobile-nav {
  display: none;
}
nav.desktop-nav {
  display: flex;
  justify-content: flex-start;
  flex: 1;
}
nav.desktop-nav ul.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav.desktop-nav ul.menu > li {
  position: relative;
  margin: 0 10px;
}

nav.desktop-nav ul.menu > li > a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav.desktop-nav ul.menu > li > a,
nav.desktop-nav ul.menu > li > span {
      padding: 11px 15px;
}

nav.desktop-nav ul.menu > li:hover {
  background-color: rgba(131, 131, 131, 0.6);
  cursor: pointer;
}

.visitor-count {
  font-family: sans-serif !important;
  
  color: white;
  padding: 0 15px;
  line-height: 60px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}
nav.desktop-nav ul.submenu {
  position: absolute;
  top: 55px;
  left: 0;
  background-color: rgba(58, 58, 58, 0.8);
  min-width: 180px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  padding: 0;
  margin: 0;
  
  list-style: none;
}

nav.desktop-nav ul.submenu li:hover {
  background-color: rgba(131, 131, 131, 0.6);
}

nav.desktop-nav li.dropdown:hover > ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav.desktop-nav li.dropdown {
  display: flex;
  align-items: center;
  
}

nav.desktop-nav li:hover {
  border-radius: 5px;
}

nav.desktop-nav ul.submenu li a,
nav.desktop-nav ul.submenu li span {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 0px rgba(3, 7, 18, 0.02), 0px 0px 1px rgba(3, 7, 18, 0.03),
    0px 1px 2px rgba(3, 7, 18, 0.05), 0px 2px 4px rgba(3, 7, 18, 0.06),
    0px 3px 6px rgba(3, 7, 18, 0.08), 0px 4px 9px rgba(3, 7, 18, 0.1),
    0px 5px 12px rgba(3, 7, 18, 0.11), 0px 6px 15px rgba(3, 7, 18, 0.13),
    0px 8px 19px rgba(3, 7, 18, 0.14), 0px 10px 24px rgba(3, 7, 18, 0.16);
}
.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slideshow .slide.active {
  opacity: 1;
}
.slideshow-text {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  line-height: 0.8;
}
.main-site {
  flex: 1;
  max-width: 60%;
  margin: 20px auto;
  font-size: 20px !important;
  z-index: 1;
  position: relative;
}
.content {
  background: #fff;
  border-radius: 10px;
  line-height: 1.745rem;
  padding: 20px;
  padding-top: 2px !important;
  min-width: 600px;
}
.menu-container {
  display: none !important;
}
.slideshow .slide-label {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 15;
}
.slideshow .slide.active + .slide-label {
  opacity: 1;
}
.text-center {
  text-align: center;
}
.line-height {
  line-height: 22px;
}
.font-size {
  font-size: 16px;
}
.main-site h1:first-of-type {
  text-shadow: 4px 4px 7px rgba(0, 0, 0, 0.67);
}
footer {
  position: relative; /* Neu! Wichtig, damit absolute Elemente sich hieran orientieren */
  color: white;
  width: 100%;
  bottom: 0;
  height: 200px; /* Sollte zur Bildhöhe passen */
}
footer img {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  z-index: 0; /* Bilder liegen unten */
}
.footer-text {
  position: absolute;
  top: 68%; /* mittig vertikal */
  margin-left: 34%; /* mittig horizontal */
  transform: translate(-50%, -50%);
  z-index: 10; /* Text liegt über den Bildern */
  color: white !important;
  font-weight: 350;
  font-size: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
}
.footer-mobile {
  display: none;
}
.mt-100 {
  margin-top: 100px;
}
.roboto {
  font-family: "Roboto" !important;
}
.number-font {
  font-family: "roboto" !important;
}

@media (max-width: 460px) {
  .main-site {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 ; /* Optional, etwas Rand links/rechts */
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    
  }

  .content {
    
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 879px) {
  header .logo {
    display: flex;
    align-items: center;
    font-size: 17px;
    margin-right: 5px;
    color: white;
  }

  .menu-container {
    display: flex !important;
    justify-content: flex-end;
  }
  .visitor-count {
    margin-left: 10px;
  }
  header .menu-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
  }
  .menu-label {
    color: white;
    font-size: 18px;
    cursor: pointer;
  }
  .menu-toggle {
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
  }
  .desktop-nav {
    display: none !important;
  }
  .slideshow div {
    width: 50%;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 40px;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1200;
    position: relative;
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
  }
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #222;
    padding-top: 60px;
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
  }
  .mobile-nav.active {
    right: 0;
  }
  .mobile-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-nav .menu li {
    border-bottom: 1px solid #333;
  }
  .mobile-nav .menu li a,
  .mobile-nav .dropdown > span {
    display: block;
    padding: 16px 20px;
    font-size: 18px;
    color: #eee;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .mobile-nav .menu li a:hover,
  .mobile-nav .dropdown > span:hover {
    background-color: #444;
    color: #fff;
  }
  .mobile-nav .dropdown > span::after {
    content: "▼";
    float: right;
    transition: transform 0.3s;
  }
  .mobile-nav .dropdown > span.open::after {
    transform: rotate(180deg);
  }
  .mobile-nav .submenu {
    max-height: 0;
    overflow: hidden;
    background: #111;
    transition: max-height 0.3s ease; 
  }
  .mobile-nav .submenu.open {
    max-height: 500px;
  }
  .mobile-nav .submenu li a {
    padding: 14px 40px;
    font-size: 16px;
    color: #ddd;
  }
  .mobile-nav .submenu li a:hover {
    background: #333;
    color: #fff;
  }
  .slideshow {
    height: 300px;
  }
  .slideshow-text {
    width: 90%;
    padding: 15px;
    font-size: 14px;
  }
  .slideshow .slide-label {
    text-align: right;
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }
  
  .content {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin-top: 10px;
}

  footer {
    display: none;
  }
  .footer-mobile {
    display: block;
  }
}
@media (max-width: 1080px) and (min-width: 914px) {
  header {
    padding: 0 15px;
  }
  header .logo {
    margin-right: 30px;
  }
  nav.desktop-nav ul.menu > li {
    margin: 0 5px;
  }
  nav.desktop-nav ul.menu > li > a {
    padding: 0 10px;
    line-height: 60px;
  }
}
@media (max-width: 913px) and (min-width: 880px) {
  header {
    padding: 0 15px;
  }
  header .logo {
    margin-right: 20px;
  }
  nav.desktop-nav ul.menu > li {
    margin: 0 3px;
  }
  nav.desktop-nav ul.menu > li > a {
    padding: 0 7px;
    line-height: 60px;
  }
}

@media (max-width: 520px) and (min-width: 0px) {
  header {
    padding: 0 15px;
  }
  header .logo {
    margin-right: 5px;
  }
  nav.desktop-nav ul.menu > li {
    margin: 0 5px;
  }
  nav.desktop-nav ul.menu > li > a {
    padding: 0 50px;
    line-height: 60px;
  }

  .mobile-nav .visitor-count {
    display: inline !important;   /* ersetzt das display:none durch inline */
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
}
}
