/* ============================ */ /* GLOBAL & RESET STYLES */ /* ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #111;
}
.hidden {
	display: none;
}

/* Overlay Styling */
#device-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.75); /* halbtransparent */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

#device-overlay .overlay-content {
  background-color: #fff;
  padding: 40px 60px;
  border-radius: 15px;
  max-width: 600px;
  font-family: Arial, sans-serif;
  color: #333;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

#device-overlay h1 {
  margin-bottom: 20px;
  font-size: 32px;
  color: #ff6600;
}

#device-overlay p {
  font-size: 20px;
  line-height: 1.5;
}

	
	/* ============================ */ /* PAGE LAYOUT */ /* ============================ */
.interaktivePage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  gap: 30px;
}
/* ============================ */ /* HEADER */ /* ============================ */
.global-header {
  text-align: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
/* ================= SIDEBAR ================= */

 .sidebar {
	 text-align: left;
    position: fixed;
    top: 25%;
    right: 0;
    transform: translateY(-50%);
    width: 275px;
    padding: 10px;
    z-index: 10;
	 font-size: 24px;
	 border-radius: 16px;
	 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .section-text.active {
    font-weight: bold;
  }
.material-icons{
	font-size: 24px;
}

/* ================= GAME BOARDS ================= */
.game-board {
  background: #fff;
  border-radius: 16px;
  padding: 30px 35px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  display: inline-block;
  transition: box-shadow 0.5s ease;
}
.game-board.solved {
  box-shadow: 0 0 60px 8px rgba(50, 200, 50, 0.5);
}
/* ============================ */ /* PUZZLE STYLES */ /* ============================ */ #board {
  position: relative;
  width: 360px;
  height: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.tile {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  cursor: pointer;
  background-image: url('img/Profilbild.png');
  background-size: 360px 360px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: top 0.2s ease, left 0.2s ease, transform 0.2s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.tile.empty {
  background: none;
  cursor: default;
  box-shadow: none;
}
#board.solved {
  box-shadow: 0 0 60px 8px rgba(50, 200, 50, 0.5);
	transition: box-shadow 0.5s ease;
}

/* Puzzle Neu*/

.tile .hint-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 28px;
  color: #FFFFFF;
  opacity: 0.9;
  pointer-events: none;
  transform: translate(-50%, -50%);
}



/* ============================ */ /* BUTTONS */ /* ============================ */
.actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions button {
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: #111;
  color: #fff;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.actions button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
button#skipBtn.solved {
  background: #28a745;
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}
button#skipBtn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
} /* ============================ */ /* LEBENSLAUF / DRAG & DROP */ /* ============================ */
#cv-game {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
}
.cv-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 2px solid #111;
  border-radius: 12px;
  background: #f9f9f9;
  min-height: 500px;
  width: 330px;
}
.cv-slot,
.cv-block {
  width: 300px;
  height: 75px;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed #aaa;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.cv-slot.filled {
  border-style: solid;
  border-color: #28a745;
  background: #f6f6f6;
}
.cv-block {
  background: #f5f5f5;
  border: 2px solid #111;
  cursor: grab;
  margin: 10px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.cv-slot.wrong {
  border-color: #dc3545; /* rot */
  background-color: #f8d7da; /* leichtes rot */
  transition:
    background 0.3s,
    border-color 0.3s;
} /* ================= MEMORY ================= */
.memory-board {
  background: #fff;
  border-radius: 16px;
  padding: 30px 35px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.08);
} /* Optional: leichtes Highlight bei Erfolg */
.memory-board.solved {
  box-shadow: 0 0 60px 8px rgba(50, 200, 50, 0.5);
  transition: box-shadow 0.5s ease;
}
.memory-wrapper {
  display: flex;
  gap: 40px;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 90px);
  grid-template-rows: repeat(4, 90px);
  gap: 14px;
}
.memory-card {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  perspective: 600px; /* für Flip */
  position: relative;
}
.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}
.memory-card.open .card-inner,
.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-front img,
.card-back img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.card-front {
  border-style: solid;
}

.card-back {
  transform: rotateY(180deg);
}
.memory-done {
  position: relative;
  width: 200px; /* Platz für links + rechts */
  height: 160px;
  margin-top: 20px;
}
.memory-done .matched {
  cursor: default;
  pointer-events: none;
}
.memory-stack {
  position: relative;
  width: 60px;
  height: 60px;
}
.memory-stacked {
  position: absolute;
  width: 70px;
  height: 70px;
  transition:
    transform 0.3s ease,
    opacity 0.4s ease;
  cursor: default;
}
.memory-hidden {
  visibility: hidden; /* Karte ist unsichtbar */
  pointer-events: none; /* Karte nicht mehr klickbar */
}
.memory-board.solved {
  box-shadow: 0 0 60px 8px rgba(40, 167, 69, 0.45);
  border-radius: 20px;
  transition: box-shadow 0.4s ease;
}

/* === Flipbook === */

.flipbook {
  height: 80vh;
  width: 65vw;
}

.flipbook .page {
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.flipbook .hard {
  background: #eeeeee;
  color: white;
  font-weight: bold;
  border: none;
}
.page img {
  width: 90%;
  object-fit: contain;
}
.hard img {
  width: 100%;
  object-fit: contain;
}
.shadow {
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.strich {
  border-left: 3px solid rgba(0, 0, 0, 0.5);
}
/* Footer */
.fixed-footer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 9999;
}

/* Footer-Links als Buttons */
.fixed-footer .footer-btn {
  padding: 10px 20px;
  border-radius: 999px;       /* volle runde Ecken wie deine Buttons */
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: #111;           /* gleiche Farbe wie deine Buttons */
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt */
.fixed-footer .footer-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.impressum {
  max-width: 800px;
  padding: 0 20px;
  line-height: 1.6;
}

.impressum h2 {
  margin-top: 1rem;
}
.impressum h3 {
  margin-top: 2rem;
}

.impressum a {
  color: inherit;
  text-decoration: underline;
}

.impressum p:last-of-type {
  margin-bottom: 2rem;
}



@keyframes cardDrop {
  0% {
    transform: translateY(-30px) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translateY(10px) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}