:root {
  --gold: #c9a227;
  --gold-dunkel: #9c7d1a;
  --creme: #fdf6e3;
  --tinte: #3a2f1a;
  --karte-bg: #ffffff;
  --schatten: 0 10px 30px rgba(60, 45, 10, 0.15);
  --rot: #b5495b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--tinte);
  background: linear-gradient(160deg, #fdf6e3 0%, #f6e6b4 45%, #f0d68a 100%);
}

.screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.screen.aktiv {
  display: flex;
}

.karte {
  background: var(--karte-bg);
  border-radius: 20px;
  box-shadow: var(--schatten);
  border: 2px solid var(--gold);
  padding: 36px 40px;
  max-width: 760px;
  width: 100%;
}

#screen-bingo .karte {
  max-width: 1100px;
}

.start-karte {
  text-align: center;
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 8px 0;
  color: var(--gold-dunkel);
  text-shadow: 1px 1px 0 #fff;
}

h2 {
  margin-top: 0;
  color: var(--gold-dunkel);
}

.untertitel {
  font-size: 1.1rem;
  margin: 8px 0 20px 0;
}

.alter-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 10px 24px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.knopf-reihe {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.knopf {
  background: #fff;
  border: 2px solid var(--gold);
  color: var(--gold-dunkel);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.knopf:hover {
  background: #fbeec4;
  transform: translateY(-2px);
}

.knopf-primaer {
  background: var(--gold);
  color: #fff;
}

.knopf-primaer:hover {
  background: var(--gold-dunkel);
}

.knopf-gefahr {
  border-color: var(--rot);
  color: var(--rot);
}

.knopf-gefahr:hover {
  background: #fbe2e6;
}

.hinweis {
  color: #6b5d3a;
  font-size: 0.95rem;
}

.team-eingabe {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.team-eingabe input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e6d9a8;
  font-size: 1rem;
}

.team-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-liste li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fbf6e2;
  border-left: 6px solid var(--gold);
}

.team-entfernen {
  background: none;
  border: none;
  color: var(--rot);
  font-size: 1.2rem;
  cursor: pointer;
}

.spiel-kachel-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.spiel-kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fbf6e2;
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 24px 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tinte);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.spiel-kachel:hover {
  background: #fbeec4;
  transform: translateY(-3px);
}

.kachel-icon {
  font-size: 2.2rem;
}

.spiel-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fortschritt {
  color: #8a7a4a;
  font-weight: 600;
}

.frage-text {
  font-size: 1.3rem;
  margin: 20px 0;
  font-weight: 600;
}

.antworten-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.antworten-raster-zwei {
  grid-template-columns: repeat(2, 1fr);
}

.antwort-knopf {
  background: #fbf6e2;
  border: 2px solid #e6d9a8;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
}

.antwort-knopf:hover {
  background: #fbeec4;
}

.antwort-knopf.richtig {
  background: #d9f2d9;
  border-color: #4a7c59;
}

.antwort-knopf.falsch {
  background: #f7d9dd;
  border-color: var(--rot);
}

.aufloesung {
  background: #fbf6e2;
  border-left: 6px solid var(--gold);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.versteckt {
  display: none !important;
}

.punkte-vergabe {
  margin-bottom: 16px;
}

.punkte-vergabe p {
  margin: 0 0 8px 0;
  color: #6b5d3a;
}

.punkte-team-knopf {
  background: #fff;
  border: 2px solid;
  border-radius: 10px;
  padding: 8px 14px;
  margin: 4px;
  cursor: pointer;
  font-weight: 600;
}

.foto-anzeige {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.foto-anzeige img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 14px;
  border: 4px solid var(--gold);
  object-fit: contain;
  background: #f4ecd0;
}

.foto-anzeige img.foto-tippbar {
  cursor: crosshair;
}

.foto-marker {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 4px solid #4a7c59;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.foto-marker-tipp {
  border-color: var(--rot);
}

.foto-marker-tipp.richtig {
  border-color: #4a7c59;
}

.bingo-karten-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 16px 0;
}

.bingo-karte {
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 12px;
  page-break-inside: avoid;
}

.bingo-karte h3 {
  text-align: center;
  margin: 0 0 10px 0;
  color: var(--gold-dunkel);
}

.bingo-feld {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.bingo-feld div {
  border: 1px solid #e6d9a8;
  font-size: 0.7rem;
  padding: 6px 3px;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.bingo-aufruf-anzeige {
  background: var(--gold);
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  margin: 20px 0;
}

.bingo-aufgerufene-liste {
  margin-top: 16px;
  color: #6b5d3a;
  font-size: 0.95rem;
}

.bestenliste {
  padding-left: 0;
  list-style: none;
  counter-reset: rang;
}

.bestenliste li {
  counter-increment: rang;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fbf6e2;
  border-left: 8px solid var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
}

.bestenliste li::before {
  content: counter(rang) ".";
  margin-right: 12px;
  color: var(--gold-dunkel);
}

.bestenliste-punkte {
  background: var(--gold);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .karte { padding: 24px 20px; }
  h1 { font-size: 1.8rem; }
  .spiel-kachel-raster { grid-template-columns: 1fr; }
  .antworten-raster { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; }
  .screen { min-height: auto; }
  .knopf-reihe, h2, .hinweis { display: none; }
}
