/* ===== Web 1.0 Geburtstags-Style – reines CSS, kein JavaScript ===== */

body {
  margin: 0;
  padding: 0 10px 30px;
  background: #000022 url("bilder/feuerwerk.svg") repeat;
  color: #ffff00;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  text-align: center;
}

/* Laufschrift */
.laufschrift {
  background: #0000ff;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  padding: 6px 0;
  border-top: 3px ridge #c0c0c0;
  border-bottom: 3px ridge #c0c0c0;
  margin: 0 -10px;
}

/* Überschrift in Regenbogenfarben */
.regenbogen {
  font-size: clamp(36px, 7vw, 72px);
  margin: 25px 0 5px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #ffffff);
  animation: regenbogen 3s linear infinite;
}
@keyframes regenbogen { to { background-position: 200% center; } }

/* Das gute alte <blink> */
.blinken {
  font-size: 28px;
  font-weight: bold;
  color: #ff00ff;
  text-shadow: 2px 2px #000;
  animation: blinken 1s steps(1) infinite;
}
@keyframes blinken { 50% { visibility: hidden; } }

/* Bühne mit Foto, Pfeilen und Torten */
.buehne {
  margin: 20px auto;
  border-collapse: collapse;
}
.buehne td { vertical-align: middle; padding: 5px; }

.torten img { display: block; width: 120px; margin: 10px auto; }

.pfeil { width: 150px; }
.pfeil-links  { animation: stupsen-links 0.8s ease-in-out infinite; }
.pfeil-rechts { animation: stupsen-rechts 0.8s ease-in-out infinite; }
@keyframes stupsen-links  { 0%,100% { transform: translateX(0); }               50% { transform: translateX(18px); } }
@keyframes stupsen-rechts { 0%,100% { transform: scaleX(-1) translateX(0); }    50% { transform: scaleX(-1) translateX(18px); } }

.rahmen {
  display: inline-block;
  padding: 10px;
  border: 8px ridge #ffcc00;
  background: repeating-linear-gradient(45deg, #ff0066 0 10px, #ffff00 10px 20px, #00ccff 20px 30px);
  box-shadow: 0 0 25px 8px #ff00ff;
}
.foto {
  display: block;
  width: 240px;
  height: auto;
  border: 4px inset #c0c0c0;
}
.unterschrift {
  color: #00ff00;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 2px 2px #000;
  display: inline-block;
  background: #000;
  padding: 4px 12px;
  border: 2px dashed #00ff00;
}

/* Animierte Torten */
.wackeln { animation: wackeln 1.2s ease-in-out infinite; }
.huepfen { animation: huepfen 0.9s ease-in-out infinite; }
@keyframes wackeln { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes huepfen { 0%,100% { transform: translateY(0); }  50% { transform: translateY(-15px); } }

/* Regenbogen-Trennlinie */
.regenbogen-linie {
  border: 0;
  height: 8px;
  max-width: 800px;
  margin: 30px auto;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta);
}

/* Infobox im Windows-95-Look */
.infobox {
  max-width: 600px;
  margin: 0 auto 30px;
  background: #c0c0c0;
  color: #000;
  border: 4px outset #ffffff;
  padding: 0 15px 15px;
}
.infobox h2 {
  margin: 0 -15px 15px;
  padding: 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 20px;
  text-align: left;
}
.fakten { width: 100%; border-collapse: collapse; background: #fff; }
.fakten th, .fakten td { border: 2px inset #808080; padding: 8px; text-align: left; }
.fakten th { background: #ffff99; color: #cc0000; width: 35%; }
.zusage { margin-top: 15px; font-weight: bold; }
.zusage a { color: #0000ee; font-size: 20px; }
.zusage a:visited { color: #551a8b; }
.zusage a:hover { color: #ff0000; background: #ffff00; }

.torte-klein { width: 60px; margin: 0 6px; }
.torte-klein:nth-child(odd) { animation: huepfen 1s ease-in-out infinite; }

/* Fußzeile */
.fusszeile { margin-top: 20px; color: #ffffff; }
.baustelle {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #000 0 15px, #ffcc00 15px 30px);
  color: #fff;
  font-weight: bold;
  padding: 8px 20px;
  text-shadow: 2px 2px #000, -2px -2px #000;
}
.zaehler {
  font-family: "Courier New", monospace;
  background: #000;
  color: #00ff00;
  padding: 2px 6px;
  border: 2px inset #808080;
  letter-spacing: 3px;
}
.klein { font-size: 12px; color: #aaaaaa; }

/* Kleine Bildschirme: Bühne untereinander */
@media (max-width: 800px) {
  .buehne, .buehne tbody, .buehne tr, .buehne td { display: block; }
  .torten { display: flex !important; justify-content: center; }
  .torten img { width: 80px; margin: 0 10px; }
  .pfeil { width: 90px; }
  .pfeil-links  { animation-name: stupsen-runter; }
  .pfeil-rechts { animation-name: stupsen-hoch; }
  @keyframes stupsen-runter { 0%,100% { transform: rotate(90deg) translateX(0); }  50% { transform: rotate(90deg) translateX(12px); } }
  @keyframes stupsen-hoch   { 0%,100% { transform: rotate(-90deg) translateX(0); } 50% { transform: rotate(-90deg) translateX(12px); } }
  .foto { width: 200px; }
}
