:root {
  --schwarz: #0b0707;
  --dunkel: #1a0f0f;
  --blut: #b3001b;
  --blut-hell: #ff2e4d;
  --knochen: #e8dcc8;
  --grau: #8a7f76;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--schwarz);
  color: var(--knochen);
  font-family: "Special Elite", "Courier New", monospace;
  line-height: 1.6;
}
h1, h2 {
  font-family: "Creepster", "Impact", fantasy;
  font-weight: normal;
  letter-spacing: 2px;
  color: var(--blut-hell);
  text-shadow: 0 0 12px rgba(255, 0, 40, .6), 0 4px 0 #3a0008;
  margin: 0 0 .5em;
}
section { padding: 70px 20px; max-width: 1000px; margin: 0 auto; }

/* ---------- Startseite ---------- */
#start {
  max-width: none;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(11,7,7,.55) 0%, rgba(11,7,7,.95) 70%),
    url("../bilder/auge-aufgeschnitten.jpg") center / cover no-repeat;
  position: relative;
}
#start h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: 1; animation: flackern 4s infinite; }
#start p { font-size: 1.2rem; max-width: 600px; color: var(--knochen); }
.hinweis {
  border: 2px dashed var(--blut); padding: 2px 8px; color: var(--grau); font-size: .9rem;
}
@keyframes flackern {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .3; } 94% { opacity: 1; } 96% { opacity: .5; } 97% { opacity: 1; }
}

/* Das Auge, das dem Mauszeiger folgt */
#glotzauge { width: 180px; height: 180px; margin: 30px 0; cursor: pointer; }
#glotzauge .lid { transform-origin: 90px 90px; transition: transform .12s; }

.runter {
  position: absolute; bottom: 25px; color: var(--blut-hell); text-decoration: none;
  font-size: 2rem; animation: tropfen 2s infinite;
}
@keyframes tropfen { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ---------- Teile des Auges ---------- */
.teile { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 750px) { .teile { grid-template-columns: 1fr; } }
#schnitt { width: 100%; height: auto; }
#schnitt .teil { cursor: pointer; transition: filter .2s; }
#schnitt .teil:hover, #schnitt .teil.aktiv { filter: drop-shadow(0 0 8px var(--blut-hell)) brightness(1.4); }
#schnitt text { font-family: "Special Elite", monospace; font-size: 13px; fill: #b8ada2; pointer-events: none; }
.infobox {
  background: var(--dunkel); border: 1px solid #3a1a1a; border-left: 5px solid var(--blut);
  padding: 20px 24px; min-height: 180px;
  box-shadow: 0 0 30px rgba(179, 0, 27, .15);
}
.infobox h3 { font-family: "Creepster", fantasy; font-weight: normal; font-size: 2rem; color: var(--blut-hell); margin: 0 0 .3em; }

/* ---------- Quiz ---------- */
.quiz { background: var(--dunkel); border: 1px solid #3a1a1a; padding: 30px; text-align: center; }
.quiz .frage { font-size: 1.3rem; margin-bottom: 20px; }
.quiz button {
  font: inherit; font-size: 1.05rem; color: var(--knochen);
  background: #2a1414; border: 2px solid var(--blut); padding: 10px 18px; margin: 6px;
  cursor: pointer; transition: background .2s, transform .1s;
}
.quiz button:hover { background: var(--blut); transform: scale(1.04); }
.quiz button:disabled { cursor: default; transform: none; opacity: .6; }
.quiz .richtig { background: #1f5c1f !important; border-color: #3fbf3f; opacity: 1 !important; }
.quiz .falsch  { background: var(--blut) !important; opacity: 1 !important; }
.quiz .rueckmeldung { min-height: 1.6em; margin-top: 15px; font-size: 1.15rem; }
.quiz .punkte { color: var(--grau); margin-top: 10px; }

#eintragen { margin-top: 20px; border-top: 1px dashed #3a1a1a; padding-top: 20px; }
#eintragen input[type=text] {
  font: inherit; font-size: 1.05rem; background: #0b0707; color: var(--knochen);
  border: 2px solid var(--blut); padding: 10px 12px; width: min(100%, 260px);
}
#eintragen .honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formfehler { color: var(--blut-hell); min-height: 1.4em; margin-top: 8px; }

.siegerliste { background: var(--dunkel); border: 1px solid #3a1a1a; padding: 10px 20px; overflow-x: auto; }
.siegerliste table { width: 100%; border-collapse: collapse; }
.siegerliste th { font-family: "Creepster", fantasy; font-weight: normal; color: var(--blut-hell); font-size: 1.3rem; text-align: left; padding: 8px; }
.siegerliste td { padding: 8px; border-top: 1px solid #2a1414; }
.siegerliste tr.ich td { color: #fff; background: rgba(179, 0, 27, .3); }
.siegerliste td:first-child { width: 4em; }

footer { text-align: center; color: var(--grau); padding: 40px 20px; font-size: .9rem; }
footer strong { color: var(--blut-hell); }
footer a { color: var(--grau); }
