/* Überschrift handschriftl. */
@font-face {
  font-family: "dancing script";
  src: url("fonts/DancingScript-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Handschrift */
@font-face {
  font-family: "kalam";
  src: url("fonts/Kalam-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* body Text */
@font-face {
  font-family: "belgrano";
  src: url("fonts/Belgrano-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/*einfach nur Roboto ;-) */
@font-face {
  font-family: "roboto";
  src: url("fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* footer */
@font-face {
  font-family: "cairo";
  src: url("fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* Überschriften */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "kalam", sans-serif;
}

h1 {
  font-size: 3rem;
  color: #d9c16e;
  margin: 5rem 3rem;
  text-align: center;
  text-shadow: black 0.5em 0.5em 2em;
}

h2 {
  font-size: 2rem;
  color: #d9c16e;
  margin: 2rem;
  text-align: center;
  text-shadow: black 0.5rem 0.5rem 2rem;
}

h3 {
  font-size: 2rem;
  margin: 2rem;
  text-align: center;
  text-shadow: black 0.5rem 0.5rem 2rem;
}

h4 {
  font-size: 2rem;
  margin-top: 3rem;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; /* Abstand zwischen den Spalten */
}

.column {
  flex: 1;
  text-align: center;
  padding: 0rem; /* Abstand innerhalb der Spalte */
  border: 0px solid #ddd;
}

.center-text {
  text-align: center;
}

.center-text a {
  color: #d9c16e;
  text-decoration: none;
}
/*allg - over all*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

.margin-left-right {
  margin: 0rem 16rem;
}

body {
  background: radial-gradient(circle, #333 0%, #111 100%);
  font-family: "Courier New", Courier, monospace, sans-serif;
  font-size: 1.4rem;
  color: #ddd;
  text-shadow: 1rem 1rem 2rem #333;
}

body.menu-open {
  overflow: hidden;
} /* kein Scrollen, wenn Menü offen */

main {
  margin-top: 11rem;
  min-height: 20rem;
  padding: 3rem;
  text-align: center;
}

.logo img {
  max-height: 10rem;
}

.backgroundKids img {
  width: 100%;
  height: auto;
}

.backgroundFlag {
  display: flex;
  justify-content: center;
  align-items: center;
}

.backgroundFlag img {
  width: 75%;
  height: auto;
}

.btn {
  background-color: #d9c16e;
  color: black;
  border-radius: 10rem;
  padding: 1rem 4rem;
  min-width: 10rem;
  border: none;
  margin-bottom: 1rem;
  font-size: 1rem;

  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #c7a732;
}

input {
  min-height: 3rem;
  min-width: 10rem;
  border-radius: 5px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}

ul {
  list-style: none;
}

.navbar h2 {
  width: 50%;
  white-space: nowrap;
}

ul.nav-links {
  width: 25%;
  white-space: nowrap;
}

nav.navbar {
  position: fixed;
  top: 0;
  z-index: 1003;
  background-image: linear-gradient(#333, #222);
  min-height: 7rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 3px solid #d9c16e;
}

.nav-links {
  list-style: none;
  font-family: "kalam", sans-serif;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  z-index: 1001;
}

.nav-links li {
  position: relative;
  margin: 1rem;
}

.nav-links a {
  color: #d9c16e;
  text-decoration: none;
  font-size: 1.7rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #333;
  background-color: #d9c16e;
  border-radius: 1rem;
  text-decoration: underline;
  font-weight: bold;
  transition-duration: 1s;
}

/* Dropdown-Menü (Desktop) */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #d9c16e;
  list-style: none;
  border-radius: 1rem;
  padding: 0;
  min-width: 13rem;
  z-index: 1000;
  text-align: center;
  white-space: nowrap;
}

.nav-links .dropdown li {
  padding: 0;
}

.nav-links .dropdown li a {
  color: #333;
  text-decoration: none;
  font-size: 1.7rem;
  display: block;
  padding: 1rem 1rem;
}

.nav-links .dropdown li a:hover {
  background-color: #333;
  color: #d9c16e;
  border-radius: 1rem;
}

.nav-links li:hover > .dropdown {
  display: block;
} /* Dropdown sichtbar machen beim Hover (Desktop) */

/* Hamburger-Menü für mobile Geräte */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 3.3rem;
  height: 2.3rem;

  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  border-radius: 5px;
  display: block;
  width: 100%;
  height: 100%;
  background: #d9c16e;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
} /* Overlay-Stil Hintergrundabdunkelung */

body.menu-open .overlay {
  display: block;
} /* Overlay sichtbar machen, wenn das Menü geöffnet ist */

/*Deutsch*/
#vocabularyList {
  list-style-type: none; /* Entferne die Standard-Aufzählungszeichen */
  margin: 0;
  padding: 0;
  width: 80%; /* Optionale Breitenbegrenzung */
  margin: 2rem auto; /* Zentriere die Liste */
  font-size: 1.2rem; /* Schriftgröße anpassen */
  color: #d9c16e; /* Farbe für den Text */
  background-color: #222; /* Hintergrundfarbe */
  border: 1px solid #d9c16e; /* Rahmenfarbe */
  border-radius: 8px; /* Abgerundete Ecken */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Schatten für Tiefe */
}

#vocabularyList li {
  padding: 1rem;
  border-bottom: 0px solid #d9c16e;
}

#vocabularyList li:last-child {
  border-bottom: none; /* Entferne die Linie beim letzten Element */
}

#vocabularyList li:hover {
  border: 1px solid #d9c16e;
  color: #fff;
  cursor: pointer;
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
}

/*Mathe*/
#task-container {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #d9c16e;
  border-radius: 8px;
  width: 80%;
  max-width: 40rem;
  background-color: #222;
}

#question {
  font-size: 2rem;
  margin: 1rem;
}

#userAnswer {
  font-size: 1rem;
  max-width: 80%;
  margin: 1rem auto;
}

#feedback {
  margin: 1rem auto;
  font-weight: bold;
}

/* --- Menü-Spacer --- */
.menu-spacer-gold {
  height: 2px;
  background-color: #d9c16e;
  margin-bottom: 2rem;
  z-index: 1003;
}

/* footer */

footer {
  margin-top: 0rem;
}

.footer-spacer-gold {
  height: 2px;
  background-color: #d9c16e;
}

.footer-container {
  font-size: 1.5rem;
  background-image: linear-gradient(#444, #333);
  padding: 4rem 10rem 4rem 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "cairo", sans-serif;
}

.footer-copyright {
  color: #d9c16e;
  margin: 3rem;
  text-shadow: black -2rem 1rem 2rem;
}

/*
  .upperCase:hover {
  text-transform: uppercase;
  font-weight: bold;
}
*/

.footer-links a {
  color: #d9c16e;
  margin: 2rem;
  text-decoration: none;
  text-shadow: black 2rem 1rem 2rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* mobile Ansicht */
@media (max-width: 1200px) {
  .row {
    align-items: center;
  }

  .column {
    max-width: 100%;
  }

  iframe {
    width: 100%;
  }

  .margin-left-right {
    margin: 0 1rem;
  }

  #vocabularyList {
    width: 100%; /* Volle Breite auf kleineren Bildschirmen */
    font-size: 1rem; /* Kleinere Schriftgröße */
  }

  #vocabularyList li {
    padding: 0.8rem; /* Weniger Abstand */
  }

  .navbar {
    position: sticky;
    top: 0;
    width: 100%;
  }

  .logo {
    display: none;
  }

  .navbar h2 {
    font-size: 1.2rem;
  }

  ul.nav-links {
    width: 100%;
    white-space: nowrap;
  }

  .nav-links {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    top: 7rem;
    right: 0;
    list-style-type: none;
    background-color: #333;
    transform: translateX(100%);
    opacity: 0;
    z-index: 1001;
  }

  .nav-links.show {
    transform: translateX(0);
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
  }

  .nav-links li {
    text-align: center;
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
    z-index: 1004;
  }
  .hamburger span {
    display: block;
    margin: 4px;
    background: #d9c16e;
    transition: transform 0.5s ease, opacity 0.25s ease;
  }

  /*
  Wenn Hamburgerklasse aktiv (Menü offen)
  -> Linien bilden ein "X"
  */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
  }

  .nav-links .dropdown {
    display: none;
    flex-direction: column;
    background-color: #333;
    color: #d9c16e;
    position: static;
  }

  .nav-links li .dropdown li a {
    color: #ddd;
  }

  .nav-links li .dropdown-show {
    display: flex;
  }

  .nav-links li .dropdown-show li {
    text-align: center;
  }

  .nav-links li .dropdown-show li a {
    color: #ddd;
    text-decoration: none;
  }

  .nav-links li .dropdown-show li a:hover {
    color: #d9c16e;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    order: 1;
    margin-bottom: 1rem;
  }

  .footer-copyright {
    order: 2;
    margin: 0;
  }

  .footer-copyright .name {
    white-space: nowrap;
  }

  .footer-copyright .rights {
    white-space: nowrap;
  }

  .footer-links a {
    display: inline-block;
    margin: 0 1rem;
  }
}
