@import url('https://fonts.googleapis.com/css2?family=Andika&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Andika', sans-serif;
}

/* Body und Hintergrund */
body {
  background: linear-gradient(135deg, #FFFDE7, #E0F7FA);
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* padding-bottom: 2rem; */
}

/* Header */
header {
  background-color: #FFB74D;
  color: #FFFFFF;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

header p {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* Main-Bereich und Überschrift */
main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

main h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #F06292;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Abenteuerliste als flexibles Wrapping-Layout */
.adventure-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
  margin: 0 auto;
}

/* Karte für jedes Abenteuer: mindestens 300px, flexibel */
.adventure-card {
  background-color: #FFFFFF;
  border: 2px solid #FFCC80;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;

  /* Flex-Einstellungen: mindestens 300px breit, wächst bei Platz */
  flex: 1 1 300px;
  max-width: 300px;
}

.adventure-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Thumbnail-Wrapper */
.adventure-card .thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  background-color: #FFE0B2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.adventure-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 4px solid #FFCC80;
  border-radius: 0 0 16px 16px;
}

/* Stern-Symbol über dem Bild */
.adventure-card .thumbnail-wrapper span {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2.4rem;
  color: #FFD54F;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Inhalt der Karte */
.adventure-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.adventure-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: #E91E63;
  text-align: center;
}

.adventure-desc {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #666666;
  text-align: center;
}

/* Button */
.adventure-button {
  text-align: center;
  margin-top: auto;
}

.adventure-button a {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: #4DB6AC;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.15s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.adventure-button a:hover {
  background-color: #009688;
  transform: scale(1.05);
}

/* Bei sehr schmalen Bildschirmen (unter 500px) jeweils volle Breite */
@media (max-width: 500px) {
  .adventure-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* Szene-Karte */
.scene-card {
  background-color: #FFFBF0;
  border: 2px solid #FFCA28;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  max-width: 700px;
  margin: 2rem auto;
}

.scene-card p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #333333;
  text-align: justify;
}

/* Choices-Buttons */
.choices {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.choices li {
  text-align: center;
}

.choice-button {
  display: inline-block;
  background-color: #4DB6AC;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 1.8rem;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.choice-button:hover {
  background-color: #009688;
  transform: scale(1.02);
}

/* Ende-Message */
.end-message {
  text-align: center;
  font-size: 1.4rem;
  color: #E91E63;
  margin-top: 2rem;
}

.end-link {
  text-align: center;
  margin-top: 1rem;
}

.end-link a {
  display: inline-block;
  background-color: #E91E63;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 1.8rem;
  border-radius: 16px;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.end-link a:hover {
  background-color: #C2185B;
  transform: scale(1.02);
}

/* Footer */
footer {
  background-color: #FFE082;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-size: 1rem;
  color: #333333;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

/* Szene-Karte: volle Breite auf kleinen Bildschirmen */
.scene-card {
  width: 90%;
  max-width: 700px;
  margin: 2rem auto;
}

/* Buttons auf kleinen Bildschirmen: Block-Layout */
.choice-button,
.end-link a,
.adventure-button a {
  display: inline-block;
  min-width: 120px;
}

/* Responsive: unter 600px immer volle Breite */
@media (max-width: 600px) {
  /* Szene-Karte wird fast bildschirmbreit */
  .scene-card {
    width: 100%;
    margin: 1rem 0.5rem;
    padding: 1rem;
  }
  .scene-card p {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  /* Entscheidungen als große, breite Buttons */
  .choices {
    gap: 0.5rem;
  }
  .choice-button,
  .end-link a {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
  }
  /* Kopfzeile und Überschrift anpassen */
  header h1 {
    font-size: 2.2rem;
  }
  header p,
  main h2 {
    font-size: 1.4rem;
  }
}

/* Header auf mobilen Endgeräten vereinfachen */
@media (max-width: 600px) {
  header {
    padding: 1rem;                /* weniger Innenabstand */
    text-align: center;
  }
  header p {
    display: none;                /* Unterüberschrift ausblenden */
  }
  header h1 {
    font-size: 1.8rem;            /* kleinere Hauptüberschrift */
    margin-bottom: 0;             /* nach unten weniger Abstand */
  }
}