@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-VariableFont_wdth\,wght.ttf");
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans", "Arial", sans-serif;
  line-height: 1.3;
}

/* Farbvariablen für Dark Mode */

:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --accent-color: #66FF66;
}

[data-theme="dark"] {
  --background-color: #000000;
  --text-color: #ffffff;
  --accent-color: #66FF66;
  /* bleibt gleich */
}

/* Dark Mode Button */

#darkmode-toggle {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  padding: 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#darkmode-toggle:hover {
  background-color: var(--text-color);
  color: var(--background-color);
  transform: scale(1.1);
}

/* Dark Mode Logo */



/* ----------------- Allgemeine Styles ------------------ */

body {
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0 40px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-weight: 200;
}

p {
  margin-bottom: 20px;
}

/* Navigation */

header {
  background-color: var(--background-color);
  padding: 20px !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-page {
  text-decoration: underline;
  font-weight: 400;
  text-underline-offset: 2px;
  text-decoration-thickness: 5%;
  color: var(--accent-color);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  padding: 8px 16px;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 5%;
  color: var(--accent-color);
}

/* Kreis, der dem Cursor folgt */

.cursor-circle {
  width: 100px;
  height: 100px;
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  /* Verhindert, dass der Kreis Events blockiert */
  mix-blend-mode: difference;
  /* Für die Farb-Invertierung */
  background: var(--background-color);
  /* Die invertierende Farbe */
  display: none;
  /* Standardmäßig ausgeblendet */
  z-index: 10;
}

/* Typografie und Deko-Linien */

strong {
  font-weight: 400;
}

h1 {
  font-weight: 200;
  font-style: italic;
  font-size: 72px;
  margin: 0;
}

h2 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  /* Fließtext bold */
}

h3 {
  color: var(--text-color);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  text-align: center;
  margin-bottom: 0px;
  /* Zentrierte Zitate */
}

h4 {
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 0px;
  text-align: left;
  /* Headlines mit Linie drunter */
}

hr {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.line_black {
  padding: 3px;
  background: var(--text-color);
  width: 60px;
  margin-bottom: 20px;
}

.line_white {
  padding: 3px;
  background: var(--background-color);
  width: 60px;
  margin-bottom: 20px;
}

p.zitat-unterschrift {
  text-align: center;
}

.text_in_box {
  padding: 50px 50px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--background-color);
  background-color: var(--text-color);
}

/* Links */

a[href="about.html"] {
  text-decoration: none;
}

.links {
  text-decoration: underline;
  text-decoration-thickness: 3%;
  text-underline-offset: 2px;
  color: var(--text-color);
}

.links:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 3%;
  color: var(--accent-color);
}

/* Logos und Bilder */

.logo-img {
  height: 24px;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .logo-img {
  filter: invert(1) brightness(2);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.logosize {
  max-width: 100%;
  height: auto;
}

[data-theme="dark"] .logosize {
  filter: invert(1) brightness(2);
}

.header-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  background-size: cover;
  position: relative;
}

/* Bild-Slider */

img.bild {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.carousel {
  padding-bottom: 30px;
}

.carousel-inner {
  font-family: "Noto Sans", sans-serif;
  line-height: 1.3;
  margin: 0 auto;
}

.carousel-item img {
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  background-color: var(--accent-color);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
}

/* Kontaktseite */

.gif_hase {
  margin-left: 350px;
  position: relative;
  top: 20px;
  width: 15%;
  height: auto;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.responsive-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 10px auto;
}

.responsive-form input[type="text"],
.responsive-form input[type="email"],
.responsive-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid var(--text-color);
  border-radius: 4px;
}

.responsive-form textarea {
  min-height: 100px;
}

.responsive-form input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: var(--accent-color);
  color: var(--background-color);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.responsive-form input[type="submit"]:hover {
  background-color: var(--text-color);
}

/* Buttons */

.button {
  background-color: var(--accent-color);
  color: var(--text-color) !important;
  border-radius: 4px;
  padding: 10px 20px;
  min-width: 250px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  border: none;
  margin: 5px auto;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--text-color);
  color: var(--background-color) !important;
  border: 1px;
  border-color: var(--accent-color);
}

.audio-container {
  text-align: center;
  margin: 10px auto;
  margin-bottom: 30px;
  width: 100%;
  max-width: 400px;
}

/* Pulsierende Animation für #playAudioButton */

@keyframes pulse {
  0% {
    background-color: var(--background-color);
  }

  50% {
    background-color: var(--accent-color);
  }

  100% {
    background-color: var(--background-color);
  }
}

#playAudioButton {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  padding: 10px 20px;
  width: 100%;
  min-width: 250px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#playAudioButton:hover {
  color: var(--text-color);
  background-color: var(--background-color);
  border-color: none;
  animation: none;
}

/* Hintergrund Datenschutzseite und Impressum */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.datenschutz .background-circle,
.impressum .background-circle {
  position: fixed;
  top: 200px;
  left: 200px;
  z-index: -1;
  animation: fadeIn 2s ease-out;
}

/* Footer */

.footer {
  display: flex;
  font-size: 16px;
  width: fit-content;
}

.footer div {
  margin-right: 40px;
  margin-bottom: 40px;
  width: 100%;
}

.back-to-top {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
}

.back-to-top:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 3%;
  color: var(--accent-color);
}

/* ------------- Breakpoints ------------------ */

/* Breakpoint: Tablets */
@media only screen and (max-width: 1040px) {
  body {
    font-size: 16px;
  }

  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .cursor-circle {
    display: none;
  }

  .logosize {
    max-height: 80px;
    /* für kleinere Logos */
  }

  .footer div {
    margin-bottom: 10px;
  }

}

/* Breakpoint: Small Tablets and Large Phones */
@media only screen and (max-width: 768px) {

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .cursor-circle {
    display: none;
  }

  body {
    font-size: 16px;
    margin-right: 40px;
    margin-left: 40px;
    color: var(--text-color);
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .logo-img {
    margin-bottom: 0px;
  }

  .gif_hase {
    display: block;
    position: absolute;
    margin: 30px 0px 0px 30px;
    top: 200;
    left: 15;
    width: 20%;
    height: auto;
    z-index: 100;
  }

  .footer {
    display: block;
  }

}

/* Breakpoint: Phones */
@media only screen and (max-width: 490px) {

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cursor-circle {
    display: none;
  }

  body {
    font-size: 16px;
    margin-right: 20px;
    margin-left: 20px;
    color: var(--text-color);
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .logo-img {
    margin-bottom: 0px;
  }

  img {
    width: 100%;
    height: auto;
  }

  .gif_hase {
    width: 20vw;
    position: fixed;
    top: 0;
    left: 20%;
    transform: translate(-50%, -50%);
  }

  h3 {
    font-weight: 700;
    font-style: italic;
    font-size: 24px;
    text-align: center;
    margin-bottom: 0px;
    /* Zentrierte Zitate */
  }

  .form-container {
    padding: 0px 10px 30px 10px;
  }

  .responsive-form {
    padding: 0px;
    margin-bottom: 0;
  }

  .responsive-form input[type="text"],
  .responsive-form input[type="email"],
  .responsive-form textarea {
    margin: 0;
  }

  .button,
  .responsive-form input[type="submit"] {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    margin: 0;
  }

  #playAudioButton {
    font-size: 14px;
    padding: 10px;
    width: 100%;
    margin: 0;
  }

  h4 {
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0px;
    text-align: left;
    /* Headlines mit Linie drunter */
  }

  .footer {
    display: block;
  }

}