@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    /*border: 1px solid #fff !important;*/
}

:root {
    color-scheme: light dark;
  }

body {
    color: light-dark(#000, #efefec);
    background-color: light-dark(#efedea, #000);
    font-size: 16px;
    margin: 30px;
    max-width: 75%;
}

section {
    min-height: 48vh;
    margin-bottom: 48px;
    border-bottom: 1px solid #fff;
    position: relative;
}

footer {
    margin-top: 20px;
}

footer p {
    font-size: 0.8em;
    color: lightdark(#000, #fff);
}

h1, h2, h3, h4, h5, h6 {
    color: lightdark(#000, #fff);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

h3, h4 {
  margin-top: 10px;
  margin-bottom: 15px;
}

p {
    line-height: 1.4;
    hyphens: auto;
}

a {
  color: inherit;
  text-decoration: underline; /* Optional: entfernt die Unterstreichung */
}

.carousel {
  font-size: 2rem;
  font-style: bold;
  text-align: left;
  max-width: 600px;
  position: absolute;
  bottom: 24px;
  animation: pulse 4s ease-in-out infinite;
}

.carousel.paused {
  animation-play-state: paused;
}

#impressumText {
  margin-top: 10px;
  line-height: 1.4;
  max-width: 300px;
}
footer button {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.gdprcss p {
  margin-bottom:15px;
}

.gdprcss ul {
  margin-left: 50px;
  margin-bottom: 15px;
}

@keyframes pulse {
  0%   { opacity: 0; }
  45%  { opacity: 1; }
  55%  { opacity: 1; }
  100% { opacity: 0; }
}

@media screen and (max-width: 420px) {
    body {
        margin: clamp(10px, 5vw, 20px);
    }

    section {
        min-height: 33vh;
        max-width: 100%;
        margin-bottom: 30px;
        hyphens: auto;
    }

    #carousel {
        bottom: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
      background-color: #000;
      color: #efefec;
    }
  
    h1, h2 {
      color: #fff;
    }

    #carousel {
      color: #a9a9a9;
    }
  }
  
  @media (prefers-color-scheme: light) {
    body {
      background-color: #efedea;
      color: #000;
    }

    section {
        border-bottom: 1px solid #000;
    }
  
    h1, h2 {
      color: #000;
    }

    #carousel {
      color: #000;
    }
  }
  