* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* ---------- Hintergrundvideo ---------- */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -1;
}

/* ---------- Motiv ganz oben ---------- */
header {
  padding: 70px 20px 0;
}

.motiv {
  display: block;
  width: 90%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.buttons {
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  max-width: 80vw;
  height: 60px;
  margin: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  font-family: 'Libre Caslon Condensed', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 3px;
  border-radius: 0;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: #6b1814;
  border-color: #6b1814;
}

/* ---------- About ---------- */
main {
  padding-bottom: 40px;
}

.about {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Libre Caslon Condensed', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  text-shadow: 0 0 8px #000;
}

.about h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.about p {
  font-weight: 400;
}

/* ---------- Enter-Screen (Fehlerfenster) ---------- */
#enter-screen {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* Verblasstes Hintergrundbild */
#enter-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/enter-bg.jpg") center 30% / cover no-repeat;
  opacity: 0.3;
  z-index: -1;
}

/* Motiv oben, das Fenster bleibt in der Mitte */
.enter-motiv {
  position: absolute;
  top: clamp(16px, 5vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 420px;
  max-height: 24vh;
  height: auto;
  object-fit: contain;
}

.dialog {
  width: min(420px, 90vw);
  background: #ece9d8;
  border: 3px solid #0054e3;
  border-radius: 9px 9px 3px 3px;
  font-family: Tahoma, Arial, sans-serif;
  color: #000;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: linear-gradient(180deg, #3d8bff 0%, #0a5be8 12%, #0054e3 80%, #0a46c4 100%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
}

.dialog-x {
  width: 22px;
  height: 22px;
  background: #d9472b;
  border: 1px solid #fff;
  border-radius: 3px;
  font: bold 13px/20px Arial, sans-serif;
  text-align: center;
}

.dialog-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 22px 14px;
  text-align: left;
}

.dialog-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6a5a, #c4241a 70%);
  border: 2px solid #8a1a12;
  color: #fff;
  font: bold 24px/34px Arial, sans-serif;
  text-align: center;
}

.question {
  margin: 0;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.3;
  color: #000;
}

.flag {
  width: 24px;
  height: 16px;
  margin-left: 6px;
  vertical-align: -2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.answers {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 18px;
}

.answer {
  width: 86px;
  height: 26px;
  background: linear-gradient(180deg, #fff, #ece9d8 85%, #d6d0c0);
  border: 1px solid #003c74;
  border-radius: 3px;
  color: #000;
  font: 14px Tahoma, Arial, sans-serif;
  cursor: pointer;
}

.answer:hover {
  box-shadow: inset 0 0 0 2px #f6c46a;
}

.answer:active {
  background: #d6d0c0;
}

/* Handy: größere Buttons zum Antippen */
@media (hover: none) {
  .answer {
    width: 100px;
    height: 38px;
    font-size: 16px;
  }
}

/* Handy quer: alles etwas kleiner, damit das Motiv frei bleibt */
@media (max-height: 520px) {
  .enter-motiv {
    top: 8px;
    max-height: 22vh;
  }

  .dialog {
    transform: scale(0.8);
  }
}

/* ---------- Steuerung oben links ---------- */
#controls {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.2s;
}

#controls:hover {
  opacity: 1;
}

#controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

#volume {
  width: 80px;
  accent-color: #e60000;
}

/* ---------- Social-Icons oben rechts ---------- */
#socials {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
}

#socials a {
  color: #fff;
  display: block;
  line-height: 0;
  transition: color 0.2s;
}

#socials a:hover {
  color: #e60000;
}

#socials svg {
  width: 38px;
  height: 38px;
}

/* ---------- Mobile ---------- */

/* Touch-Geräte: Lautstärkeregler ausblenden (iPhones ignorieren ihn ohnehin),
   Play- und Mute-Button größer, damit man sie mit dem Finger trifft */
@media (hover: none) {
  #volume {
    display: none;
  }

  #controls button {
    padding: 10px;
    font-size: 1.3rem;
  }
}

/* Kleine Handys: Social-Icons kompakter, damit sie nicht an die Steuerung stoßen */
@media (max-width: 480px) {
  #socials {
    gap: 14px;
    right: 12px;
  }

  #socials svg {
    width: 30px;
    height: 30px;
  }
}

/* ---------- Live-Chart ---------- */
.chart {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.chart iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

@media (max-width: 480px) {
  .chart iframe {
    height: 480px;
  }
}

/* ---------- Ausklapp-Menü "What is Chinese?" ---------- */
.about summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 3px;
  list-style: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.about summary::-webkit-details-marker {
  display: none;
}

.about summary::after {
  content: "\25BE";
  transition: transform 0.2s;
}

.about details[open] summary::after {
  transform: rotate(180deg);
}

.about summary:hover {
  background: #6b1814;
  border-color: #6b1814;
}

.about-text {
  padding-top: 20px;
}