/* Grundlegende Stile */
:root {
  --primary-color: #0075BB;
  --secondary-color: #5EB4E5;
  --gradient: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --spacing: 20px;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
  display: flex;
  justify-content: center;
}

.logo-oben-rechts {
  position: absolute;
  top: var(--spacing);
  right: var(--spacing);
  width: 150px;
  /* oder beliebig anpassen */
  height: auto;
  z-index: 1000;
  /* Damit es über anderen Elementen liegt */
}


form {
  max-width: 600px;
  /* Maximale Breite des Quiz */
  width: 100%;
  /* Breite auf 100% setzen */
  background-color: white;
  /* Hintergrundfarbe für das Quiz */
  padding: var(--spacing) calc(var(--spacing) * 2) var(--spacing) var(--spacing);
  /* Innenabstand */
  border-radius: var(--border-radius);
  /* Abgerundete Ecken */
  box-shadow: var(--box-shadow);
  /* Schatten für Tiefe */
  position: relative;
  /* Für die Positionierung des Titels */
}

h1 {
  color: var(--primary-color);
  text-align: center;
  position: absolute;
  top: var(--spacing);
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px var(--spacing);
  width: 100%;
  box-sizing: border-box;
}

.frage {
  margin-bottom: var(--spacing);
  padding-bottom: var(--spacing);
  /* Innenabstand unten */
  border-bottom: 1px solid #ccc;
  /* Trennlinie */
}

label {
  display: block;
  margin: 5px 0;
}

button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px var(--spacing);
  cursor: pointer;
  width: 100%;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

button:hover {
  background: linear-gradient(to right, var(--primary-color), #004d7a);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Popup Styling */
.popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  /* Flexbox für perfekte Zentrierung */
  display: none;
  /* Startet versteckt */
  justify-content: center;
  align-items: center;
}

.popup-inhalt {
  background-color: white;
  padding: calc(var(--spacing) * 1.25);
  border-radius: var(--border-radius);
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  /* Entferne den alten margin und füge Box-Shadow hinzu */
  margin: 0;
  box-shadow: var(--box-shadow);
  /* Verhindere, dass der Inhalt über die Grenzen geht */
  box-sizing: border-box;
  /* Stelle sicher, dass der Inhalt nicht zu nah am Rand ist */
  position: relative;
}

#ergebnis {
  color: var(--primary-color);
  margin-bottom: var(--spacing);
  font-size: 18px;
  text-align: center;
}

#ergebnisDetails {
  list-style: none;
  padding: 0;
}

#ergebnisDetails li {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8fbfd;
  border-radius: 4px;
  /* Entferne den alten border falls vorhanden */
  border: none;
  /* Füge Gradient-Border mit Padding-Trick hinzu */
  position: relative;
  background: linear-gradient(#f8fbfd, #f8fbfd) padding-box,
    linear-gradient(to right, var(--secondary-color), var(--primary-color)) border-box;
  border: 2px solid transparent;
}

#ergebnisDetails li:hover {
  /* Leichter Hover-Effekt */
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(to right, var(--primary-color), var(--secondary-color)) border-box;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.fragen-text {
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  /* Füge einen subtilen unteren Border hinzu */
  border-bottom: 1px solid rgba(94, 180, 229, 0.2);
}

.antwort-info {
  margin-left: 20px;
  padding: 8px;
  /* Leichter Hintergrund für besseren Kontrast */
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
}

.benutzer-antwort {
  color: #e74c3c;
  margin-top: 5px;
}

.richtige-antwort {
  color: #2ecc71;
  margin-top: 5px;
}

#popup button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 4px;
  display: block;
  margin: 20px auto 0;
}

#popup button:hover {
  background-color: var(--primary-color);
}

.behaelter {
  display: flex;
  justify-content: space-between;
}

.kategorie {
  width: 30%;
  padding: 10px;
  border: 2px dashed #ccc;
  background-color: white;
  min-height: 200px;
  transition: all 0.3s ease;
  position: relative;
}

.kategorie.drag-over {
  border-color: var(--primary-color);
  background-color: rgba(94, 180, 229, 0.1);
  transform: scale(1.02);
}

.kategorie.drag-over::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-image: url('img/bluesea_logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.tier {
  margin: 5px;
  padding: 10px;
  border: 1px solid var(--secondary-color);
  background-color: #e7f3fe;
  cursor: move;
  transition: all 0.2s ease;
  user-select: none;
}

.tier:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.versteckt {
  display: none;
  /* Versteckt das Element */
}


.seiten-fuss {
  clear: both;
  width: 100%;
  background: var(--gradient);
  text-align: center;
  padding: 10px;
  margin-top: calc(var(--spacing) * 2);
  font-size: 10pt;
  color: white;
  box-sizing: border-box;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/*Grafiken float Effekt*/
.schwebend_1,
.schwebend_2,
.schwebend_3,
.schwebend_4,
.schwebend_5,
.schwebend_6,
.schwebend_7,
.schwebend_M1,
.schwebend_M2,
.schwebend_M3,
.schwebend_M4,
.schwebend_M5,
.schwebend_M6,
.schwebend_M7 {
  position: fixed;
  z-index: -1;
  width: auto;
  height: auto;
  max-width: 8%;
  /* Kleinere Basisgröße für alle Grafiken */
}

/* Wasser-Grafiken - extra klein */
.schwebend_1,
.schwebend_2,
.schwebend_3,
.schwebend_4,
.schwebend_5,
.schwebend_6,
.schwebend_7 {
  max-width: 2%;
  /* Noch kleinere Größe für Wassertropfen */
}

/* Wasser-Grafiken Positionen */
.schwebend_1 {
  left: 5%;
  top: 15%;
}

.schwebend_2 {
  right: 8%;
  top: 25%;
}

.schwebend_3 {
  left: 12%;
  top: 45%;
}

.schwebend_4 {
  right: 22%;
  top: 70%;
}

.schwebend_5 {
  left: 18%;
  bottom: 20%;
}

.schwebend_6 {
  right: 10%;
  bottom: 35%;
}

.schwebend_7 {
  left: 25%;
  top: 85%;
}

/* Muschel-Grafiken - etwas größer als Wassertropfen */
.schwebend_M1 {
  max-width: 7%;
  right: 15%;
  top: 10%;
}

.schwebend_M2 {
  max-width: 7%;
  left: 15%;
  top: 15%;
}

.schwebend_M3 {
  max-width: 7%;
  right: 6%;
  top: 75%;
}

.schwebend_M4 {
  max-width: 7%;
  left: 5%;
  bottom: 10%;
}

.schwebend_M5 {
  max-width: 7%;
  right: 20%;
  top: 40%;
}

.schwebend_M6 {
  max-width: 7%;
  left: 20%;
  bottom: 40%;
}


/* Animation für schwebenden Effekt */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Anwenden der Animation auf alle schwebenden Elemente */
[class^="schwebend_"] {
  animation: float 6s ease-in-out infinite;
}

/* Verzögerung für verschiedene Elemente */
.schwebend_1,
.schwebend_M1 {
  animation-delay: 0s;
}

.schwebend_2,
.schwebend_M2 {
  animation-delay: 1s;
}

.schwebend_3,
.schwebend_M3 {
  animation-delay: 2s;
}

.schwebend_4,
.schwebend_M4 {
  animation-delay: 3s;
}

.schwebend_5,
.schwebend_M5 {
  animation-delay: 4s;
}

.schwebend_6,
.schwebend_M6 {
  animation-delay: 5s;
}

.schwebend_7,
.schwebend_M7 {
  animation-delay: 6s;
}

/* Responsive Anpassungen */
@media screen and (max-width: 768px) {
  .behaelter {
    flex-wrap: wrap;
  }

  .kategorie {
    width: 100%;
    margin-bottom: 10px;
  }

  form {
    padding: 10px;
  }

  h1 {
    font-size: 24px;
  }
}

@media screen and (max-width: 480px) {
  .bewertung-icon {
    font-size: 48px;
  }

  .bewertung-box h3 {
    font-size: 20px;
  }

  .ergebnis-text {
    font-size: 16px;
  }
}

/* Media Queries für Responsive Design */

@media screen and (max-width: 480px) {
  body {
    margin: 5px;
  }

  form {
    padding: 10px;
  }

  h1 {
    font-size: 20px;
  }

  .behaelter {
    flex-direction: column;
    /* Kategorien untereinander */
  }

  .kategorie {
    width: 100%;
    /* Volle Breite */
    margin-bottom: 10px;
    min-height: 120px;
    /* Kleinere Höhe */
  }

  .frage img {
    max-width: 100%;
    /* Bilder skalieren */
    height: auto;
  }

  select,
  input[type="text"],
  input[type="date"],
  input[type="number"] {
    width: 100%;
    /* Formularelemente volle Breite */
    box-sizing: border-box;
  }

  /* Optimierung für Drag&Drop */
  #tiere {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .tier {
    width: 45%;
    /* 2 Tiere pro Zeile */
    box-sizing: border-box;
    text-align: center;
  }
}

/* Styling for range input (slider) */
input[type="range"] {
  width: 100%;
  margin: 10px 0;
  background: transparent;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary-color);
  margin-top: -5px;
  cursor: pointer;
}

/* Graduation marks */
.schieberegler-container {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.markierungen {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.markierung {
  position: relative;
  width: 2px;
  height: 10px;
  background-color: var(--primary-color);
}

.markierung::after {
  content: attr(data-value);
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--primary-color);
}

.wert-anzeige {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: var(--primary-color);
}

/* Styling für Eingabefelder */
input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: calc(100% - 20px);
  padding: 8px 10px;
  margin: 5px 10px;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  background-color: #f8fbfd;
  color: var(--primary-color);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

/* Focus-Zustand */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  background-color: #ffffff;
}

/* Hover-Zustand */
input[type="text"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
  background-color: #ffffff;
}

/* Select-Dropdown speziell */
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--secondary-color) 50%),
    linear-gradient(135deg, var(--secondary-color) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

/* Textarea Anpassung */
textarea {
  min-height: 80px;
  resize: vertical;
}

/* Styling für den Benutzernamen-Text */
.benutzername-beschriftung {
  font-weight: bold;
  color: #000000;
  font-size: 18px;
  margin: 15px 0 8px 0;
  letter-spacing: 0.5px;
  display: block;
}

.fragen-titel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--primary-color);
}

.ergebnis-icon {
  font-size: 20px;
  margin-left: 10px;
}

.antwort-bereich {
  margin-top: 10px;
  padding-left: 15px;
}

/* Styling für die Bewertungsbox */
.bewertung-box {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: var(--spacing);
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing) * 1.25);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.bewertung-icon {
  font-size: 64px;
  margin: 0 auto 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.bewertung-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.bewertung-box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.ergebnis-text {
  text-align: center;
  color: var(--primary-color);
  font-size: 18px;
  margin: var(--spacing) 0;
  padding: 15px;
  background-color: rgba(94, 180, 229, 0.1);
  border-radius: var(--border-radius);
}