/* Farben aus dem Bild von Becky-Lu */
:root {
  --nacht: #0b1f4d;         /* tiefes Nachtblau */
  --umhang: #1f5fc4;        /* Königsblau vom Umhang */
  --umhang-hell: #3a7be0;
  --kleid: #a9d2f5;         /* Hellblau vom Kleid */
  --silber: #e9eef5;        /* Haare und Krone */
  --silber-dunkel: #b8c3d3;
  --gold: #f6d77a;          /* Sterne auf dem Umhang */
  --text: #f4f7fb;
  --schrift-titel: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --schrift-text: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--schrift-text);
  line-height: 1.6;
  background-color: var(--nacht);
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(58, 123, 224, 0.55) 0%, rgba(31, 95, 196, 0.25) 35%, transparent 70%),
    linear-gradient(180deg, #0a1a40 0%, #10306f 55%, #0b1f4d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Funkelnde Sterne im Hintergrund */
.sterne {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stern {
  position: absolute;
  width: var(--g, 3px);
  height: var(--g, 3px);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 2px rgba(246, 215, 122, 0.7);
  opacity: 0.2;
  animation: funkeln var(--d, 4s) ease-in-out var(--v, 0s) infinite;
}
@keyframes funkeln {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

/* Inhalt */
.buehne {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  text-align: center;
}

.titel {
  margin: 0 0 8px;
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-style: italic;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.1;
  color: var(--silber);
  text-shadow: 0 0 18px rgba(169, 210, 245, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}
.punkte { color: var(--gold); }

.fee {
  display: block;
  width: min(300px, 55vw);
  height: auto;
  margin: 8px auto 24px;
  filter: drop-shadow(0 0 24px rgba(169, 210, 245, 0.45));
  animation: schweben 6s ease-in-out infinite;
}
@keyframes schweben {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.stadt {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}
.stadt .tuerme { position: relative; z-index: 1; }

/* Die Fee fliegt über der Stadt (erscheint erst mit Geheimnis 7) */
.stadt .fee {
  position: absolute;
  z-index: 2;
  left: 34%;
  top: -14%;
  width: 46%;
  margin: 0;
  filter: drop-shadow(0 0 18px rgba(169, 210, 245, 0.55));
  opacity: 0;
  animation: fee-erscheinen 1.6s ease-out forwards, schweben 6s ease-in-out 1.6s infinite;
}
@keyframes fee-erscheinen {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ein Lichtlein, das hinter einem Turm hervorlugt */
.lugen {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fffbe8;
  box-shadow: 0 0 8px 3px rgba(246, 215, 122, 0.9), 0 0 22px 8px rgba(169, 210, 245, 0.45);
  opacity: 0;
  pointer-events: none;
}
.lugen.aktiv { animation: lugen 3.4s ease-in-out forwards; }
@keyframes lugen {
  0%   { opacity: 0; transform: translateX(0); }
  15%  { opacity: 1; transform: translateX(0); }
  35%  { transform: translateX(var(--weg, 22px)) translateY(-2px); }
  50%  { transform: translateX(var(--weg, 22px)) translateY(2px); }
  62%  { transform: translateX(var(--weg, 22px)) translateY(-1px); }
  85%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

/* Ein Lichtlein, das über die Seite huscht */
.irrlicht, .funke {
  position: fixed;
  z-index: 5;
  border-radius: 50%;
  pointer-events: none;
}
.irrlicht {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #fffbe8;
  box-shadow: 0 0 8px 3px rgba(246, 215, 122, 0.9), 0 0 24px 8px rgba(169, 210, 245, 0.5);
}
.funke {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--gold);
  box-shadow: 0 0 4px 1px rgba(246, 215, 122, 0.8);
  animation: verglimmen 0.9s ease-out forwards;
}
@keyframes verglimmen {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 8px)) scale(0.3); }
}

/* Glöckchen-Schalter */
.gloeckchen {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(184, 195, 211, 0.5);
  border-radius: 50%;
  background: rgba(11, 31, 77, 0.6);
  color: var(--silber-dunkel);
  cursor: pointer;
}
.gloeckchen svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.gloeckchen .an { display: none; }
.gloeckchen[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.gloeckchen[aria-pressed="true"] .an { display: block; }
.gloeckchen[aria-pressed="true"] .aus { display: none; }
.gloeckchen:hover, .gloeckchen:focus-visible { color: var(--gold); }
.gloeckchen:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Sprachknopf links neben dem Glöckchen, im gleichen Stil */
.sprache {
  position: fixed;
  top: 12px;
  right: 62px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(184, 195, 211, 0.5);
  border-radius: 50%;
  background: rgba(11, 31, 77, 0.6);
  color: var(--silber-dunkel);
  font-family: var(--schrift-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.sprache:hover, .sprache:focus-visible { color: var(--gold); border-color: var(--gold); }
.sprache:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.unsichtbar {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tuerme {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 24px auto 36px;
  filter: drop-shadow(0 0 10px rgba(246, 215, 122, 0.45));
}

/* Die acht Geheimnis-Buttons */
.geheimnisse {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.geheimnis {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 14px 10px;
  border: 2px solid var(--silber-dunkel);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--umhang-hell) 0%, var(--umhang) 60%, #174a9e 100%);
  color: var(--silber);
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.geheimnis::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9zm3 4a1.6 1.6 0 0 1 .8 3v2h-1.6v-2a1.6 1.6 0 0 1 .8-3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9zm3 4a1.6 1.6 0 0 1 .8 3v2h-1.6v-2a1.6 1.6 0 0 1 .8-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Funkeln am Schloss */
.geheimnis::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% + 6px);
  width: 14px;
  height: 14px;
  background: #fffbe8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.5 4.7 10.9 12 12-7.3 1.1-11.2 5.5-12 12-.8-6.5-4.7-10.9-12-12C7.3 10.9 11.2 6.5 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.5 4.7 10.9 12 12-7.3 1.1-11.2 5.5-12 12-.8-6.5-4.7-10.9-12-12C7.3 10.9 11.2 6.5 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
.geheimnis:hover::before, .geheimnis:focus-visible::before {
  animation: schloss-funkeln 0.9s ease-in-out;
}
.geheimnis:hover::after, .geheimnis:focus-visible::after {
  animation: stern-blitzen 0.9s ease-out;
}
@keyframes schloss-funkeln {
  0%, 100% { transform: rotate(0) scale(1); filter: none; }
  20% { transform: rotate(-12deg) scale(1.15); filter: brightness(1.4) drop-shadow(0 0 4px #f6d77a); }
  40% { transform: rotate(10deg) scale(1.15); filter: brightness(1.4) drop-shadow(0 0 4px #f6d77a); }
  60% { transform: rotate(-6deg) scale(1.08); }
  80% { transform: rotate(3deg) scale(1.02); }
}
@keyframes stern-blitzen {
  0%   { opacity: 0; transform: scale(0) rotate(0); }
  40%  { opacity: 1; transform: scale(1) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.2) rotate(90deg); }
}

.geheimnis:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 16px rgba(246, 215, 122, 0.35);
}
.geheimnis:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.geheimnis.wackeln { animation: wackeln 0.45s ease; }
@keyframes wackeln {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}

/* Geöffnete Geheimnisse: offenes Schloss, goldener Rand, warmer goldener Schimmer von innen */
.geheimnis[data-status="offen"] {
  border-color: var(--gold);
  background: linear-gradient(160deg, #5a8fe8 0%, #2f6fd6 50%, #8a7a4a 130%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(246, 215, 122, 0.3), inset 0 0 18px rgba(246, 215, 122, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.geheimnis[data-status="offen"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 10V6a5 5 0 0 0-10 0v1h2V6a3 3 0 0 1 6 0v4zM4 12a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 10V6a5 5 0 0 0-10 0v1h2V6a3 3 0 0 1 6 0v4zM4 12a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
.neu-schild {
  position: absolute;
  top: -9px;
  right: -6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--nacht);
  font-family: var(--schrift-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 10px rgba(246, 215, 122, 0.6);
}

/* Karte mit dem Geheimnis */
.karte-geheimnis {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 22px;
  background: linear-gradient(170deg, #143a85 0%, #0e2a63 55%, #0b1f4d 100%);
  color: var(--text);
  box-shadow: 0 0 40px rgba(246, 215, 122, 0.35), 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: auto;
}
.karte-geheimnis::backdrop {
  background: rgba(5, 12, 32, 0.72);
}
.karte-geheimnis[open] { animation: hereinschweben 0.6s ease-out; }
@keyframes hereinschweben {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.karte-innen {
  padding: 32px 28px 28px;
  text-align: center;
}
.karte-datum {
  margin: 0 0 4px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--silber-dunkel);
}
.karte-titel {
  margin: 0 0 20px;
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-style: italic;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  color: var(--gold);
  text-shadow: 0 0 14px rgba(246, 215, 122, 0.45);
}
.karte-bild {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(42vh, 380px);
  margin: 0 auto 20px;
  border: 2px solid rgba(246, 215, 122, 0.7);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(246, 215, 122, 0.3);
  opacity: 0;
  animation: bild-auftauchen 0.9s ease-out 0.3s forwards;
}
.karte-text p {
  margin: 0 0 10px;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--silber);
  opacity: 0;
  animation: auftauchen 0.8s ease-out forwards;
  animation-delay: var(--v, 0s);
}
.karte-text .unterschrift {
  margin-top: 14px;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(246, 215, 122, 0.4);
}

/* Zwei Bilder übereinander: das obere blendet sich langsam ein */
.bild-stapel {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.bild-stapel:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 16px; }
.bild-stapel.schnell .bild-oben { transition-duration: 1s; }
.karte-text .bild-tipp {
  margin: 0 0 16px;
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--silber-dunkel);
}
.bild-stapel .karte-bild { margin: 0; }
.bild-stapel .bild-oben {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  animation: none;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}
.bild-stapel .bild-oben.sichtbar { opacity: 1; }

/* Vergrößerbare Bilder */
.zoombar { cursor: zoom-in; transition: transform 0.2s ease; }
.zoombar:hover { transform: scale(1.02); }
.zoombar:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.bild-platz .bild-tipp { animation: none; opacity: 1; margin: 6px 0 4px; }
.lupe {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
  cursor: zoom-out;
}
.lupe::backdrop { background: rgba(5, 12, 32, 0.9); }
.lupe[open] { animation: hereinschweben 0.4s ease-out; }
.lupe img {
  display: block;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  width: auto;
  height: auto;
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(246, 215, 122, 0.35);
}
.lupe-zu {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--nacht);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lupe-zu:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Bild, das erst nach dem Text erscheint */
.bild-platz {
  overflow: hidden;
  margin-top: 14px;
}
.bild-platz .karte-bild { margin-bottom: 4px; }

/* Puzzle: Teile fliegen herein und setzen sich zusammen */
.karte-puzzle {
  opacity: 1;
  animation: none;
  overflow: visible;
  border-color: transparent;
  box-shadow: none;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}
.karte-puzzle .teil {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--x), var(--y)) rotate(var(--d));
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.7s ease;
  transition-delay: var(--v);
}
.karte-puzzle.zusammen .teil {
  transform: none;
  opacity: 1;
}
.karte-puzzle .naht {
  fill: none;
  stroke: rgba(255, 248, 220, 0.75);
  stroke-width: 2;
  transition: opacity 0.9s ease;
}
.karte-puzzle.fertig {
  overflow: hidden;
  border-color: rgba(246, 215, 122, 0.7);
  box-shadow: 0 0 18px rgba(246, 215, 122, 0.3);
}
.karte-puzzle.fertig .naht { opacity: 0; }

.karte-text .symbol {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}
@keyframes auftauchen {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* Bilder nur sanft einblenden: ein Weichzeichner, der danach stehen bleibt (auch blur(0)),
   lässt Bilder in Safari (iPhone) unscharf aussehen */
@keyframes bild-auftauchen {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.karte-schliessen {
  margin-top: 18px;
  padding: 10px 26px;
  border: 1px solid var(--silber-dunkel);
  border-radius: 999px;
  background: transparent;
  color: var(--silber);
  font-family: var(--schrift-text);
  font-size: 1rem;
  cursor: pointer;
}
.karte-schliessen:hover, .karte-schliessen:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.karte-schliessen:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Goldener Stern-Button: Erscheinungstermin (erscheint mit Geheimnis 8) */
@property --winkel {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.stern-knopf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(560px, 100%);
  margin: 26px auto 0;
  padding: 18px 22px 16px;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(160deg, #143a85 0%, #0e2a63 60%, #0b1f4d 100%) padding-box,
    conic-gradient(from var(--winkel), #f6d77a, #fff6dc 8%, rgba(246, 215, 122, 0.25) 22%, #f6d77a 40%,
                   #fff6dc 52%, rgba(246, 215, 122, 0.25) 70%, #f6d77a 88%, #fff6dc) border-box;
  color: var(--silber);
  font-family: var(--schrift-titel);
  cursor: pointer;
  box-shadow: 0 0 22px rgba(246, 215, 122, 0.45), 0 8px 26px rgba(0, 0, 0, 0.4);
  animation: rand-laufen 3.5s linear infinite, stern-pulsieren 2.4s ease-in-out infinite;
}
.stern-knopf::before, .stern-knopf::after {
  content: "✦";
  position: absolute;
  top: 50%;
  color: var(--gold);
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(246, 215, 122, 0.9);
  animation: stern-funkeln 1.6s ease-in-out infinite;
}
.stern-knopf::before { left: -14px; margin-top: -18px; }
.stern-knopf::after { right: -12px; margin-top: 2px; animation-delay: 0.8s; }
.stern-knopf-text {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(246, 215, 122, 0.5);
}
.stern-knopf-countdown {
  font-family: var(--schrift-text);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--silber);
}
.stern-knopf:hover, .stern-knopf:focus-visible {
  box-shadow: 0 0 32px rgba(246, 215, 122, 0.7), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.stern-knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
@keyframes rand-laufen { to { --winkel: 360deg; } }
@keyframes stern-pulsieren {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes stern-funkeln {
  0%, 100% { opacity: 0.3; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

/* Feuerwerk über der ganzen Seite */
.feuerwerk {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

/* Ankündigungskarte */
.karte-text .gross-datum {
  margin: 4px 0 2px;
  font-style: italic;
  font-size: 1.55rem;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(246, 215, 122, 0.5);
}
.karte-text .countdown {
  display: inline-block;
  margin: 2px 0 16px;
  padding: 4px 16px;
  border: 1px solid rgba(246, 215, 122, 0.6);
  border-radius: 999px;
  font-family: var(--schrift-text);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}
.karte-text .isbn-zeile {
  font-family: var(--schrift-text);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--kleid);
  white-space: nowrap;
}

/* Bereich „Das Buch & die Autorin“ (erscheint erst nach Geheimnis 8) */
.buch-bereich {
  max-width: 820px;
  margin: 36px auto 8px;
  padding: 28px 28px 30px;
  border: 2px solid var(--gold);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(20, 58, 133, 0.92) 0%, rgba(14, 42, 99, 0.92) 55%, rgba(11, 31, 77, 0.92) 100%);
  box-shadow: 0 0 30px rgba(246, 215, 122, 0.25), 0 14px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
  scroll-margin-top: 20px;
  animation: auftauchen 1.2s ease-out;
}
.buch-ueberschrift {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--gold);
  text-shadow: 0 0 14px rgba(246, 215, 122, 0.45);
}
.buch-inhalt {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 28px;
  align-items: start;
}
.buch-autorin-bild {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid rgba(246, 215, 122, 0.7);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(246, 215, 122, 0.3);
}
.buch-autorin {
  margin: 0 0 10px;
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--silber);
}
.buch-text p {
  margin: 0 0 14px;
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--silber);
}
/* Der Name Becky-Lu wird nie am Bindestrich getrennt */
.name { white-space: nowrap; }

.buch-text .buch-gold {
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(246, 215, 122, 0.45);
}
.buch-infos {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(184, 195, 211, 0.35);
  border-radius: 14px;
  background: rgba(11, 31, 77, 0.55);
}
.buch-cover {
  flex: none;
  width: 84px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.buch-daten { width: 100%; text-align: center; }
.buch-daten p {
  margin: 0;
  font-family: var(--schrift-titel);
  color: var(--silber);
}
.buch-links .buch-infos { margin-top: 14px; }
.buch-infos .buch-titel {
  margin: 0;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
}
.buch-infos .buch-untertitel {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}
.buch-infos .buch-isbn {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--kleid);
  user-select: all;
  white-space: nowrap;
}
/* Nur auf Englisch: kleiner Hinweis zur Sprache */
.buch-infos .buch-sprache {
  margin: 8px 0 0;
  font-family: var(--schrift-text);
  font-size: 0.82rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--silber-dunkel);
}

.buch-worum {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 215, 122, 0.35);
}
.buch-worum h3 {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
}
.buch-worum p {
  margin: 0 0 14px;
  font-family: var(--schrift-titel);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--silber);
}
.buch-worum p:last-child { margin-bottom: 0; }
.buch-text .buch-worum {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.buch-text .buch-worum h3 { text-align: left; margin-top: -4px; }

/* Schreibfeder-Button für die Infos zur Autorin */
.autorin-knopf {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 12px 24px 12px 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--umhang-hell) 0%, var(--umhang) 60%, #174a9e 100%);
  color: var(--silber);
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(246, 215, 122, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.autorin-knopf svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex: none;
}
.autorin-knopf:hover, .autorin-knopf:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 20px rgba(246, 215, 122, 0.45);
}
.autorin-knopf:hover svg, .autorin-knopf:focus-visible svg { animation: schreiben 0.9s ease-in-out; }
.autorin-knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Fotoalbum: erst geschlossener Einband, später Seiten zum Blättern */
.album {
  max-width: 820px;
  margin: 36px auto 8px;
  text-align: center;
  animation: auftauchen 1.2s ease-out;
}
.album-titel {
  margin: 0 0 18px;
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-style: italic;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  color: var(--gold);
  text-shadow: 0 0 14px rgba(246, 215, 122, 0.45);
}
.album-einband {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(250px, 70vw);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  /* Schriftzug im oberen Drittel (Abstand richtet sich nach der Breite des Einbands) */
  padding: calc(min(250px, 70vw) * 0.2 + 12px) 24px 24px;
  border-radius: 6px 14px 14px 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(0, 0, 0, 0) 14px),
    radial-gradient(circle at 30% 25%, #1d4aa8 0%, #12306f 55%, #0b1f4d 100%);
  box-shadow: inset 0 0 0 7px #0b1f4d, inset 0 0 0 9px var(--gold), inset 0 0 0 14px #0b1f4d,
              inset 0 0 0 15px rgba(246, 215, 122, 0.6), 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(246, 215, 122, 0.2);
}
/* Schriftzug „Becky-Lu“ mit weich auslaufenden Rändern */
.album-einband-bild {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, transparent 100%);
}
/* Verschluss mit kleinem Schloss am rechten Rand */
.album-schliesse {
  position: absolute;
  right: -10px;
  top: 50%;
  width: 34px;
  height: 22px;
  margin-top: -11px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f6d77a, #c9a64a);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.album-schliesse::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b1f4d;
}
/* Kleiner goldener Schlüssel an feiner Kette, hängt unter dem Schloss und pendelt sanft */
.album-schliesse { z-index: 2; }
.album-schluessel {
  position: absolute;
  z-index: 1;
  right: -9px;
  top: calc(50% + 3px);
  width: 34px;
  height: 104px;
  transform-origin: 50% 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 4px rgba(246, 215, 122, 0.45));
  animation: schluessel-pendeln 4.5s ease-in-out infinite alternate;
}
@keyframes schluessel-pendeln {
  from { transform: rotate(-7deg); }
  to { transform: rotate(7deg); }
}
.album-hinweis {
  max-width: 520px;
  margin: 22px auto 0;
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--kleid);
}
/* Aufgeschlagenes Album: am Computer Doppelseite, auf dem Handy eine Seite */
.album-buch {
  perspective: 1600px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #12306f, #0b1f4d);
  box-shadow: inset 0 0 0 2px var(--gold), 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 26px rgba(246, 215, 122, 0.2);
  touch-action: pan-y;
}
.album-blatt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-origin: center;
}
.album-blatt.vor { animation: blaettern-vor 0.55s ease-out; }
.album-blatt.zurueck { animation: blaettern-zurueck 0.55s ease-out; }
@keyframes blaettern-vor {
  0% { transform: rotateY(-14deg) translateX(30px); opacity: 0.2; }
  100% { transform: none; opacity: 1; }
}
@keyframes blaettern-zurueck {
  0% { transform: rotateY(14deg) translateX(-30px); opacity: 0.2; }
  100% { transform: none; opacity: 1; }
}
.album-seite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 16px 14px;
  min-height: 100%;
  padding: 20px 18px;
  background: linear-gradient(180deg, #f7f1e2, #ece2c9);
}
.album-seite:first-child { border-radius: 6px 0 0 6px; box-shadow: inset -14px 0 18px -12px rgba(60, 40, 10, 0.45); }
.album-seite:last-child { border-radius: 0 6px 6px 0; box-shadow: inset 14px 0 18px -12px rgba(60, 40, 10, 0.45); }
.album-seite:only-child { border-radius: 6px; box-shadow: none; }
/* Foto wie eingeklebt: weißer Rand, goldene Fotoecken */
.album-foto {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 0;
  background: #fff;
  box-shadow: 0 3px 8px rgba(60, 40, 10, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-seite .album-foto:nth-child(odd) { transform: rotate(-1.5deg); }
.album-seite .album-foto:nth-child(even) { transform: rotate(1.2deg); }
.album-foto:hover, .album-foto:focus-visible {
  transform: rotate(0) scale(1.04);
  box-shadow: 0 8px 18px rgba(60, 40, 10, 0.45), 0 0 14px rgba(246, 215, 122, 0.6);
}
.album-foto:focus-visible { outline: 3px solid var(--umhang); outline-offset: 3px; }
.album-foto::before, .album-foto::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #e5bf55 50%, transparent 50%);
}
.album-foto::before { left: -4px; top: -4px; }
.album-foto::after { right: -4px; bottom: -4px; transform: rotate(180deg); }
.album-foto img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #0b1f4d;
}
.album-foto .neu-schild { top: -10px; right: -8px; }
.album-leiste {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}
.album-leiste[hidden] { display: none; }
.album-pfeil {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--umhang-hell) 0%, var(--umhang) 60%, #174a9e 100%);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.album-pfeil:disabled { opacity: 0.35; cursor: default; }
.album-pfeil:not(:disabled):hover, .album-pfeil:focus-visible { box-shadow: 0 0 14px rgba(246, 215, 122, 0.6); }
.album-pfeil:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.album-seitenzahl {
  min-width: 9em;
  font-family: var(--schrift-text);
  font-size: 0.92rem;
  color: var(--silber);
}
.album-tipp {
  margin: 10px 0 0;
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  color: var(--silber-dunkel);
}
/* Große Ansicht eines Fotos mit dem Text dazu */
.album-lupe {
  width: min(560px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(170deg, #143a85 0%, #0e2a63 60%, #0b1f4d 100%);
  color: var(--text);
  box-shadow: 0 0 40px rgba(246, 215, 122, 0.35);
  overflow-y: auto;
}
.album-lupe::backdrop { background: rgba(5, 12, 35, 0.8); }
.album-lupe-innen { padding: 18px 20px 16px; text-align: center; }
.album-lupe img {
  display: block;
  max-width: 100%;
  max-height: 58vh;
  margin: 0 auto;
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  touch-action: pan-y;
}
.album-lupe-text { margin-top: 16px; }
.album-lupe-text p {
  margin: 0 0 8px;
  font-family: var(--schrift-titel);
  font-size: 1.08rem;
  line-height: 1.5;
}
.album-lupe-leiste {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.album-lupe-leiste .karte-schliessen { margin: 0; }

/* Knöpfe unter dem Buch-Bereich: „Über …“ und Briefkasten-Knopf nebeneinander */
.buch-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 26px;
}
.buch-knoepfe .autorin-knopf { margin: 0; }

/* Bestell-Knopf: wie der Stern-Button nachtblau mit schimmerndem Goldrand, Buch mit funkelndem Feenstaub */
.bestell-knopf {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 26px 12px 20px;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(160deg, #143a85 0%, #0e2a63 60%, #0b1f4d 100%) padding-box,
    conic-gradient(from var(--winkel), #f6d77a, #fff6dc 8%, rgba(246, 215, 122, 0.25) 22%, #f6d77a 40%,
                   #fff6dc 52%, rgba(246, 215, 122, 0.25) 70%, #f6d77a 88%, #fff6dc) border-box;
  color: var(--gold);
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-style: italic;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(246, 215, 122, 0.5);
  box-shadow: 0 0 20px rgba(246, 215, 122, 0.4), 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: rand-laufen 3.5s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bestell-knopf svg { width: 34px; height: 30px; flex: none; overflow: visible; }
.bestell-knopf .staub circle { animation: staub-funkeln 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bestell-knopf .staub circle:nth-child(2) { animation-delay: 0.3s; }
.bestell-knopf .staub circle:nth-child(3) { animation-delay: 0.6s; }
.bestell-knopf .staub circle:nth-child(4) { animation-delay: 0.9s; }
.bestell-knopf .staub circle:nth-child(5) { animation-delay: 1.2s; }
.bestell-knopf:hover, .bestell-knopf:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(246, 215, 122, 0.7), 0 10px 26px rgba(0, 0, 0, 0.45);
}
/* Beim Darüberfahren oder Antippen steigt der Feenstaub auf */
.bestell-knopf:hover .staub circle, .bestell-knopf:focus-visible .staub circle, .bestell-knopf:active .staub circle {
  animation: staub-aufsteigen 0.9s ease-out infinite;
}
.bestell-knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
/* Ab dem Erscheinungstag: Stern-Button und Bestell-Box nebeneinander (auf dem Handy untereinander) */
.stern-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px 22px;
  width: min(860px, 100%);
  margin: 26px auto 0;
}
.stern-reihe .stern-knopf { flex: 1 1 340px; width: auto; max-width: 560px; margin: 0; }
.stern-reihe .bestell-box {
  flex: 0 1 auto;
  justify-content: center;
  margin: 0;
  padding: 16px 30px 16px 24px;
  font-size: 1.3rem;
}
/* Im Buch-Bereich mittig unter Titel und ISBN */
.buch-links .bestell-knopf { display: flex; width: fit-content; margin: 18px auto 0; }
@keyframes staub-funkeln {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes staub-aufsteigen {
  0% { opacity: 1; transform: translateY(4px) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(1.4); }
}

/* Knopf mit goldenem Briefkasten (öffnet das E-Mail-Programm) */
.post-knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 12px 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--umhang-hell) 0%, var(--umhang) 60%, #174a9e 100%);
  color: var(--silber);
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(246, 215, 122, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-knopf svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.post-knopf:hover, .post-knopf:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 20px rgba(246, 215, 122, 0.45);
}
.post-knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.karte-text p.post-zeile { margin: 14px 0 6px; }
.karte-text .unterschrift .emoji { font-style: normal; }

/* Hinweis unter den Knöpfen: wann sich das nächste Geheimnis öffnet (kein Knopf, nur Info) */
.naechstes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 10px 28px 9px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: rgba(11, 31, 77, 0.55);
  box-shadow: 0 0 16px rgba(246, 215, 122, 0.25);
  text-align: center;
}
.naechstes[hidden] { display: none; }
.naechstes-text {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
}
.naechstes-termin {
  font-family: var(--schrift-text);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--silber);
}

/* Instagram-Knopf unter den Geheimnissen (erscheint mit Geheimnis 7).
   Das Symbol ist Metas offizielles Instagram-Symbol in Gold; es selbst wird nicht verändert oder bewegt. */
.instagram-platz:empty { display: none; }
.instagram-platz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}
.instagram-portraet {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 18px rgba(246, 215, 122, 0.45), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.instagram-knopf {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 26px 12px 20px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--umhang-hell) 0%, var(--umhang) 60%, #174a9e 100%);
  color: var(--silber);
  font-family: var(--schrift-titel);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(246, 215, 122, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.instagram-knopf img { width: 30px; height: 30px; flex: none; }
.instagram-text { display: flex; flex-direction: column; line-height: 1.3; }
.instagram-zeile { font-size: 1.08rem; }
.instagram-zeile + .instagram-zeile { color: var(--gold); font-style: italic; }
.instagram-konto {
  margin-top: 2px;
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--kleid);
}
.instagram-knopf:hover, .instagram-knopf:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 20px rgba(246, 215, 122, 0.45);
}
.instagram-knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@keyframes schreiben {
  0%, 100% { transform: rotate(0) translate(0, 0); }
  25% { transform: rotate(-10deg) translate(-2px, 1px); }
  50% { transform: rotate(6deg) translate(2px, -1px); }
  75% { transform: rotate(-6deg) translate(-1px, 1px); }
}

/* Längere Absätze in der Karte (Infos zur Autorin) */
.karte-text p.prosa {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.karte-text p.prosa.gold {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(246, 215, 122, 0.45);
}

.hinweis {
  min-height: 1.6em;
  margin: 24px auto 0;
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--kleid);
}

.ostsee {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 8px auto 0;
  filter: drop-shadow(0 0 8px rgba(246, 215, 122, 0.45));
}

/* Möwen gleiten sanft und schlagen leicht mit den Flügeln */
.moewe {
  animation: gleiten var(--d, 7s) ease-in-out var(--v, 0s) infinite;
}
.fluegel {
  transform-box: fill-box;
  transform-origin: center;
  animation: flattern var(--f, 1.5s) ease-in-out infinite;
}
@keyframes gleiten {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(10px, -7px); }
}
@keyframes flattern {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.7); }
}

/* Fußzeile */
.fuss {
  position: relative;
  z-index: 1;
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 0.95rem;
}
.fuss a {
  color: var(--silber-dunkel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fuss a:hover, .fuss a:focus-visible { color: var(--gold); }

/* Impressum */
.textseite {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 24px;
}
.textseite .zurueck {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--kleid);
}
.textseite .zurueck:hover, .textseite .zurueck:focus-visible { color: var(--gold); }
.textseite h1 {
  font-family: var(--schrift-titel);
  font-weight: normal;
  font-style: italic;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--silber);
  margin: 0 0 24px;
}
.textseite h2 {
  font-family: var(--schrift-titel);
  font-weight: normal;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 32px 0 8px;
}
.textseite .karte {
  background: rgba(11, 31, 77, 0.6);
  border: 1px solid rgba(184, 195, 211, 0.35);
  border-radius: 18px;
  padding: 8px 24px 24px;
}
.textseite a { color: var(--kleid); }
.textseite address { font-style: normal; }

/* Handy */
@media (max-width: 640px) {
  .buehne { padding-top: 64px; }
  .gloeckchen { top: 10px; right: 10px; width: 38px; height: 38px; padding: 8px; }
  .sprache { top: 10px; right: 54px; width: 38px; height: 38px; font-size: 0.78rem; }
  .geheimnisse { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .geheimnis { min-height: 80px; font-size: 1.05rem; }
  .textseite .karte { padding: 4px 16px 16px; }
  .karte-innen { padding: 22px 18px 18px; }
  .karte-titel { margin-bottom: 12px; }
  .karte-bild { max-height: 25vh; margin-bottom: 12px; }
  .bild-stapel { margin-bottom: 4px; }
  .stern-knopf { padding: 14px 16px 12px; border-radius: 26px; }
  .stern-knopf-text { font-size: 1.12rem; }
  .stern-knopf-countdown { font-size: 0.85rem; }
  .stern-knopf::before { left: -8px; }
  .stern-knopf::after { right: -6px; }
  .karte-text .gross-datum { font-size: 1.3rem; }
  .buch-bereich { padding: 22px 16px 20px; margin-top: 28px; }
  .buch-inhalt { grid-template-columns: 1fr; gap: 18px; }
  .buch-autorin-bild { max-width: 240px; margin: 0 auto; }
  .buch-links .buch-infos { max-width: 240px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  .buch-autorin { text-align: center; }
  .buch-text .buch-worum h3 { text-align: center; }
  .autorin-knopf { font-size: 1.05rem; padding: 10px 20px 10px 14px; }
  .post-knopf { font-size: 1.05rem; padding: 10px 20px 10px 14px; }
  .buch-knoepfe { gap: 12px; }
  .album-blatt { grid-template-columns: 1fr; }
  .album-buch { padding: 10px; }
  .album-seite { padding: 16px 14px; gap: 14px 12px; }
  .album-lupe-innen { padding: 14px 14px 12px; }
  .album-lupe img { max-height: 50vh; }
  .naechstes { margin-top: 20px; padding: 9px 20px 8px; }
  .naechstes-text { font-size: 1.05rem; }
  .naechstes-termin { font-size: 0.85rem; }
  .instagram-platz { gap: 10px; }
  .instagram-portraet { width: 72px; height: 72px; border-width: 2px; }
  .instagram-knopf { gap: 10px; padding: 10px 16px 10px 12px; }
  .instagram-knopf img { width: 26px; height: 26px; }
  .instagram-zeile { font-size: 0.98rem; }
  .karte-text p.prosa { font-size: 1.02rem; }
  .karte-text .bild-tipp { margin-bottom: 8px; font-size: 0.8rem; }
  .karte-text p { font-size: 1.1rem; margin-bottom: 6px; }
  .karte-schliessen { margin-top: 10px; }
}

/* Animationen laufen immer, auch wenn im Gerät „Bewegung reduzieren“ eingestellt ist (Katjas Wunsch, 7.11.2026) */

/* Kleineres Cover in der Ankündigungskarte */
.karte-text .karte-bild.klein { max-height: min(30vh, 260px); }

/* Nur Testvorschau (?standbild): alles sofort sichtbar, für Bilder */
.standbild .karte-text p, .standbild .karte-bild, .standbild .karte-geheimnis[open] { animation: none !important; opacity: 1 !important; }
.standbild .irrlicht, .standbild .funke, .standbild .lugen { display: none !important; }
.standbild .stadt .fee { animation: none !important; opacity: 1 !important; }
.standbild .karte-text .karte-bild { max-height: 24vh; }

/* Titel: Untertitel ab Geheimnis 8 und silberner Schimmer beim Titelwechsel */
.titel { position: relative; }
.titel-unter {
  display: block;
  margin-top: 6px;
  font-size: 0.42em;
  letter-spacing: 0.04em;
  color: var(--kleid);
  text-shadow: 0 0 12px rgba(169, 210, 245, 0.5);
}
.titel-wechsel { animation: silber-schimmer 3.2s ease-in-out; }
@keyframes silber-schimmer {
  0%   { text-shadow: 0 0 18px rgba(169, 210, 245, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4); filter: brightness(1); }
  25%  { text-shadow: 0 0 34px rgba(255, 255, 255, 0.95), 0 0 60px rgba(200, 220, 245, 0.8); filter: brightness(1.35); }
  60%  { text-shadow: 0 0 26px rgba(233, 238, 245, 0.85), 0 0 46px rgba(169, 210, 245, 0.6); filter: brightness(1.15); }
  100% { text-shadow: 0 0 18px rgba(169, 210, 245, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4); filter: brightness(1); }
}
.silberfunke {
  position: absolute;
  font-style: normal;
  font-size: calc(0.35em * var(--g, 1));
  color: #f4f7fb;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 16px rgba(169, 210, 245, 0.8);
  pointer-events: none;
  opacity: 0;
  animation: silber-funkeln 1.6s ease-out var(--v, 0s) forwards;
}
@keyframes silber-funkeln {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  35%  { opacity: 1; transform: scale(1.2) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.3) rotate(120deg) translateY(-10px); }
}
