/* ---------------------------- G R U N D L E G E N D E S - D E S I G N ----------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  color: #f2f2f2;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", serif;
}

/* ----------------------- A N I M A T I O N S ----------------------- */
.decision-btn {
  transition: flex-basis 0.5s ease, background-color 0.2s;
  overflow: hidden;
}
.btn-percent {
  transition: color 0.3s;
}

.weiter {
  transition: 0.5s ease;
}
.btn-percent {
  transition: color 0.3s;
}

.question-container.answered .btn-percent {
  opacity: 1;
}

/* ----------------------- E I N B L E N D U N G ----------------------- */
.question-container {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.question-container.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Weiter-Button soft */
.weiter {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.question-container.answered .weiter {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------- H E A D E R  --------------------------------------------*/
header {
  width: 100%;
  padding: 15px 30px;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

header .title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .title h1 {
  font-size: 2rem;
}

header .title p {
  font-style: italic;
  color: #333;
}

header a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1rem;
}

header img {
  height: 40px;
}

/* --------------------------------------- M A I N - C O N T E N T ---------------------------------------*/
main {
  width: 100%;
  max-width: 900px;
  padding: 20px;
}

/* ----------------------- H E R O - & - E N D C A R D - S E C T I O N -----------------------*/
#hero,
#endcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 50px 0;
}

#hero h2,
#endcard h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#hero p,
#endcard p {
  max-width: 700px;
  margin-bottom: 15px;
}

.hero-subtext {
  font-style: italic;
  color: #ccc;
  margin-bottom: 30px;
}

.com-btn,
#restart {
  background-color: #444;
  color: #f2f2f2;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
  margin-top: 2rem;
}

.com-btn:hover,
#restart:hover {
  background-color: #666;
}

#beginn { 
    position: relative; 
    z-index: 9999 !important; 
    pointer-events: all !important; 
}

#endcard {
  display: none;
}

/* ----------------------- D E C O R A T I O N ----------------------- */
.decorated-section {
  position: relative;
  overflow: hidden;
}

.section-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.section-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ----------- D E C O R   I C O N S -----------*/
.decor {
  position: absolute;
  opacity: 0.15;
  transform: rotate(var(--rot));
}

.icon-1 {
  top: 20%;
  left: 22%;
  width: 60px;
  --rot: -12deg;
}

.icon-2 {
  top: 25%;
  right: 10%;
  width: 70px;
  --rot: 12deg;
}

.icon-3 {
  bottom: 18%;
  right: 18%;
  width: 55px;
  --rot: -5deg;
}

.icon-4 {
  bottom: 12%;
  left: 10%;
  width: 80px;
  opacity: 0.25;
  transform: rotate(-25deg);
}

/* ----------------------- D I L E M M A - S E C T I O N ----------------------- */
.question-container {
  display: none; /* nur aktuelle Frage sichtbar */
  margin-bottom: 40px;
  flex-direction: column;
  align-items: center;
}

.dilemma-text {
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
}

/* Kategorie (Rechtlich / Moralisch) */
.category-label {
  text-align: center;
  font-weight: bold;
  color: #ccc;
  margin-bottom: 8px;
}

/* Buttons Container */
.decision-buttons {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-bottom: 20px;
}

/* Entscheidung-Button */
.decision-btn {
  flex: 1 1 45%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #444;
  color: #f2f2f2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  font-size: 1rem;
}

.decision-btn:hover {
  background-color: #555;
}

/* Ausgewählter Button */
.decision-btn.selected {
  background-color: #888;
  color: #111;
}

/* Prozentanzeige im Button */
.btn-percent {
  font-weight: bold;
  color: #f2f2f2;
  display: none;
}

/* Weiter Button */
.weiter {
  background-color: #333;
  color: #f2f2f2;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 50px;
  font-size: 1.05rem;
}

.weiter:hover {
  background-color: #555;
}

/* ----------------------- F O O T E R ----------------------- */
footer {
  text-align: center;
  margin-top: 0;
  padding: 15px;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid #333;
}

/* ----------------------- R E S P O N S I V E ----------------------- */
@media (max-width: 600px) {
  .decision-buttons {
    flex-direction: column;
  }

  .decision-btn {
    flex: 1 1 100%;
  }
}
