/* ==========================
   SPIELE – GRUNDLAYOUT
========================== */

/* Brettspiel-Hauptcontainer */
.brettspiel {
  background: #fef9e6;
  border: 2px solid #b28d57;
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem;
  display: flex;
  gap: 1rem;
  background-image: url('/assets/img/spielbrettstruktur.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Linker Bereich */
.arbeitsbereich {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 200px;
  border: 2px solid #a8875a;
  border-radius: 10px;
  padding: 1rem;
  box-sizing: border-box;
  margin-right: 1rem;
}

/* Polaroid + Infoblock untereinander */
.arbeitsbereich-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Polaroid (Container) */
.polaroid {
  position: relative;
  width: 180px;
}

/* Platzierung eines Referenzbildes */
#reference {
  position: absolute;
  top: 73%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 55%;
  height: auto;
  pointer-events: none;
}

/* Rechter Bereich: Spielfeld */
.spielfeld {
  position: relative;
  border: 2px solid #a8875a;
  border-radius: 8px;
  background-repeat: repeat;
  background-size: contain;
  padding: 1rem;
  flex: 1;
  min-height: 350px;
}

/* Infoblock (rechts unter Polaroid) */
.infoblock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 180px;
  width: 100%;
  max-width: 180px;
}

.infoblock .infoteil {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#feedbackImage {
  max-height: 48px;
  width: auto;
  height: auto;
}

#feedbackText {
  font-size: 0.9rem;
  text-align: center;
  margin: 0.2rem 0;
}

.tatze-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#nextRound {
  all: unset;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.3rem;
}

/* ==========================
   SPIELE – MOBILE LAYOUT
========================== */
@media (max-width: 768px) {

  main {
    padding: 0.5em;
    flex: 1;
  }

  body.brauni h2 {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #593727;
    text-decoration: none;
  }

  .brettspiel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 3px;
    margin: 0 !important;
    gap: 0.5rem;
    box-sizing: border-box;
  }

  .arbeitsbereich {
    flex: 0 1 auto;
    width: 100%;
    margin: 1px;
    padding: 3px;
    box-sizing: border-box;
  }

  .arbeitsbereich-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    position: relative;
  }

  .polaroid {
    position: relative;
    width: 180px;
  }

  .infoblock {
    position: relative;
    width: 40%;
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .infoblock .infoteil {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #feedbackImage {
    max-height: 42px;
    width: auto;
  }

  #feedbackText {
    font-size: 0.9rem;
    text-align: center;
    margin: 0.2rem 0;
  }

  #reference {
    top: 71%;
    width: 60%;
  }

  #startbereich {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
  }

  .tatze-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: auto;
    padding: 0;
    margin: 0;
  }

  #nextRound {
    all: unset;
    cursor: pointer;
    display: inline-block;
    transform: scale(0.9);
    margin: 0;
    padding: 0;
  }

  .spielfeld {
    flex: 0 1 auto;
    width: 100%;
    margin: 1px;
    padding: 3px;
    box-sizing: border-box;
  }
}


/* ==========================
   AUSMALBILDER (vorläufig nur gespeichert)
========================== 

.ausmalbild-container {
  position: relative;
  display: inline-block;
  margin: 0.5rem;
}

.ausmalbild-bild {
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.ausmalbild-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  font-family: 'Andika', sans-serif;
  font-weight: bold;
  color: #4b2c16;
}

.ausmalbild-container:hover .ausmalbild-hover {
  display: flex;
}

.ausmalbild-container:hover .ausmalbild-bild {
  transform: scale(1.02);
}
*/