/* ===== BODY / HINTERGRUND ===== */
body {
  margin: 0;
  font-family: 'Trebuchet MS', sans-serif;
  color: #fff;

  display: flex;
  flex-direction: column;
  min-height: 100vh; /* mindestens volle Bildschirmhöhe */
  margin: 0;

  /* Hintergrundbild mit dunklem Overlay */
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("/img/Weltraum.png") repeat center center fixed;

/*
  background: rgba(0,0,0,0.7); /* leicht transparentes Schwarz */
  background: url("/img/Weltraum.png") repeat center center fixed;
*/

  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  height: 25vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: transparent;
  position: relative;
  margin-top: -40px;  
}

/* Sterne */
.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.15;
  animation: moveStars 60s linear infinite;
  top: -50%;
  left: -50%;
  z-index: 0;
}

@keyframes moveStars {
  from { transform: translateY(0); }
  to { transform: translateY(-500px); }
}

/* Hero-Text */
.hero h1, .hero p {
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { max-width: 650px; margin: 0 auto; font-size: 1.1rem; }

/* ===== PLANETEN & RAUMSCHIFFE ===== */
.planet { position: absolute; border-radius: 50%; opacity: 0.7; z-index: 0; transition: transform 0.1s linear; }
.planet1 { width: 60px; height: 60px; background: radial-gradient(circle,#ff7f50,#ff4500); top: 10%; left: 5%; animation: rotatePlanet1 40s linear infinite; }
.planet2 { width: 50px; height: 50px; background: radial-gradient(circle,#1e90ff,#00008b); bottom: 10%; right: 8%; animation: rotatePlanet2 50s linear infinite reverse; }

@keyframes rotatePlanet1 { 0%{transform:rotate(0deg) translateX(0) rotate(0deg);} 50%{transform:rotate(180deg) translateX(5px) rotate(-180deg);} 100%{transform:rotate(360deg) translateX(0) rotate(-360deg);} }
@keyframes rotatePlanet2 { 0%{transform:rotate(0deg) translateX(0) rotate(0deg);} 50%{transform:rotate(180deg) translateX(-5px) rotate(-180deg);} 100%{transform:rotate(360deg) translateX(0) rotate(-360deg);} }

.ship { position:absolute; width:30px; height:15px; background:linear-gradient(45deg,#fff,#ccc); border-radius:50%/50%; opacity:0.9; z-index:0; transition: transform 0.1s linear;}
.ship1 { top:20%; left:-50px; animation: flyShip1 25s linear infinite; }
.ship2 { top:40%; right:-70px; animation: flyShip2 30s linear infinite; }

@keyframes flyShip1 { 0%{transform:translateX(0) rotate(0deg);} 100%{transform:translateX(120vw) rotate(360deg);} }
@keyframes flyShip2 { 0%{transform:translateX(0) rotate(0deg);} 100%{transform:translateX(-130vw) rotate(-360deg);} }


/* ===== KONSOLE ===== */

.konsole-wrapper {
  position: relative;
  width: 700px;       /* Gesamtbreite reduziert */
  max-width: 90%;     /* responsive */
  margin: 0 auto;
  perspective: 1000px;
  transform: translateY(50px); /* Optional: etwas nach unten verschieben */
}

.konsole-img {
  width: 100%;         /* passt sich Container an */
  height: auto;        /* proportional skalieren */
  display: block;
  margin: 0 auto;
}


@keyframes shine {
  0% { transform: translateX(-100%) skewX(-30deg); }
  100% { transform: translateX(100%) skewX(-30deg); }
}

/* Schatten auf der Konsole */
.konsole-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 60px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.05) 70%,
    rgba(0,0,0,0) 100%
  );
  border-radius: 50%;
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* ===== BÜCHER ===== */
.book-list {
  position: absolute;
  bottom: 65px;        /* auf der Konsole */
  width: 100%;          /* volle Breite für Zentrierung */
  max-width: 400px;     /* begrenzte Breite für die Scheibe */
  display: flex;
  justify-content: center; /* zentriert die Bücher */
  gap: 30px;             /* Abstand zwischen Büchern */
  left: 50%;             /* für absolute Zentrierung */
  transform: translateX(-50%); /* verschiebt die Flexbox genau nach Mitte */
}

.books { height: 25vh; display:flex; flex-direction:column; justify-content:center; text-align:center; padding:0 20px; background:transparent; }
.books h2 { margin-bottom:40px; color:#ffd; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

/* Bücher Grundstil */
.book {
  position: relative;
  transition: transform 0.4s ease;
  transform: rotateY(0deg) translateY(-50px);
  opacity: 0;
  animation: fallIn 0.8s forwards;
}

.book img {
  height: 280px;
  display: block;
  filter: drop-shadow(0 20px 15px rgba(0,0,0,0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Unterschiedliche Fallen Verzögerung */
.book1 { animation-delay: 0.2s; transform: rotateY(-15deg); }
.book2 { animation-delay: 0.4s; transform: rotateY(0deg); }
.book3 { animation-delay: 0.6s; transform: rotateY(15deg); }

#.book:hover { transform: translateY(-8px) translateZ(2px); }
/* Hover Effekt */
.book:hover {
  transform: rotateY(0deg) scale(1.15) translateY(-10px);
  z-index: 5;
}

.book:hover img {
  filter: drop-shadow(0 30px 25px rgba(0,0,0,0.6));
}

.book:hover::after {
  width: 100%;
  height: 35px;
  filter: blur(6px);
  opacity: 0.8;
}

/* Buch-Link */
.book a {
  text-decoration: none;
  color: #ffd;
  display: block;
  transition: color 0.3s ease;
}

.book a:hover { color: #fff; }

.book h3 { margin-bottom:10px; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

/* Perspektivische Bodenschatten */
.book::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80%;
  height: 25px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.1) 70%,
    rgba(0,0,0,0) 100%
  );
  border-radius: 50%;
  filter: blur(4px);
  z-index: -1;
  transition: all 0.4s ease;
}

/* Individuelle Perspektive */
.book1::after { transform: translateX(-50%) rotateY(-15deg) skewX(-10deg); }
.book2::after { transform: translateX(-50%) rotateY(0deg) skewX(0deg); }
.book3::after { transform: translateX(-50%) rotateY(15deg) skewX(10deg); }



/* ===== ACCORDION ===== */
.info { padding:60px 20px; max-width:800px; margin:auto; background:transparent; }

.accordion { width:100%; padding:18px; font-size:1.1rem; background:linear-gradient(45deg, rgba(28,33,90,0.8), rgba(20,24,69,0.8)); color:#fff; border:none; border-radius:15px; margin-bottom:10px; cursor:pointer; text-align:left; transition:0.3s; }

.accordion:hover { background:linear-gradient(45deg, rgba(42,47,120,0.8), rgba(26,31,96,0.8)); }

.panel { max-height:0; overflow:hidden; transition:max-height 0.4s ease; padding:0 15px; }
.panel p { padding:15px 0; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* ===== FOOTER ===== */
.footer {
  flex-shrink: 0; /* Footer schrumpft nicht */
  background: rgba(0,0,0,0.5); /* leicht transparent, dunkler Hintergrund */
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc; /* dezente Farbe */
  border-top: 1px solid rgba(255,255,255,0.1); /* feine Trennung */
}

.footer a {
  color: #a6a8ff;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Copyright separat leicht kleiner und zentral */
.footer .copyright {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #aaa;
}

/* ===== Back-Button ===== */
/* Schwebe-Animation für den Back-Button */
@keyframes floatShip {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.back-home {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 50, 0.7);
  color: #ffd;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: background 0.3s, color 0.3s;
  
  /* Animation */
  animation: floatShip 3s ease-in-out infinite;
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  transform: translateY(-2px); /* zusätzlich kleiner Lift beim Hover */
}


/* --- Cards --- */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  background-color: #f0f8ff;
  border-radius: 12px;
  padding: 15px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* passt das Bild proportional an das Div an */
}

/*
.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
*/

.card h3 {
  margin: 10px 0 5px 0;
  color: #2a7ae2;
}

.card p {
  font-size: 0.95rem;
  color: #333;
}

.card .btn-more {
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #2a7ae2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.card .btn-more:hover {
  background-color: #1e5bb8;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- Modals --- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);  
}

.modal-content {
  background-color: #f0f8ff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 120px;
  margin-top: 15px;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}


/* Button Buchreihe --------------*/

/* Container zentriert den Button */
.button-container {
  text-align: center;      /* Button zentrieren */
  margin-top: 20px;        /* Abstand zur Konsole */
  position: relative;       /* damit z-index funktioniert */
  z-index: 5;               /* über allem, falls nötig */
}

.button-container {
  bottom: 20px;     
}

.button-buchreihe {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f5c518;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
}
/* Hover: Button springt leicht, Farbverlauf heller und lebendig */
.button-buchreihe:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #ffc107, #ff6f00); /* heller und kräftiger */
}

/* Sterne immer leicht pulsierend (Glow) */
.button-buchreihe .stern {
    color: #fff;
    animation: pulse 2s infinite ease-in-out;
}

/* Stern-Glitzern beim Hover */
.button-buchreihe:hover .stern {
    color: #fff200; /* goldgelb */
    animation: sparkle 0.5s ease-in-out alternate 2;
}

/* Pulsierende Sterne dauerhaft */
@keyframes pulse {
    0%   { transform: scale(1); text-shadow: 0 0 2px #fff; }
    50%  { transform: scale(1.2); text-shadow: 0 0 6px #fff; }
    100% { transform: scale(1); text-shadow: 0 0 2px #fff; }
}

/* Glitzer-Animation beim Hover */
@keyframes sparkle {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3) rotate(20deg); }
    100% { transform: scale(1); }
}

/* ------------------ FALLEN ANIMATION ------------------ */
@keyframes fallIn {
  0% { transform: translateY(-50px); opacity: 0; }
  60% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/*---------------------*/

/* --- Responsive --- */
@media (max-width: 800px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 80%;
  }
}

@media (max-width: 768px) {
/*
  .book-list { bottom: 8%; gap: 20px; }
*/
  .book-list { bottom: 50px; }
  .book img { height: 150px; }
}

/* ===== ALLE ANDEREN LINKS ===== */
a { color:#ffd; text-decoration:none; transition: color 0.3s ease; }
a:hover { color:#fff; }

/* ===== RESPONSIVE ===== */
@media (max-width:1200px){ .hero,.books{height:auto; padding:60px 20px;} }
/*
@media (max-width:768px){ .hero h1{font-size:2rem;} .book-list{flex-direction:column; align-items:center;} }
/*
@media (max-width:768px){ .hero h1{font-size:2rem;} }
