/* the fonts of the card page, served from the theme */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/gcafe/fonts/marcellus-v14-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/wp-content/themes/gcafe/fonts/alegreya-v41-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/gcafe/fonts/alegreya-v41-latin-italic.woff2') format('woff2');
}

:root {
  /* Layout: eine Winternacht über dem Wendelstein – Kopf, Deckwahl, Kartenfächer; die gezogene Karte dreht sich im Vordergrund um */
  --tiefe: #080a18;
  --nacht: #131834;
  --gold: #d8b45c;
  --gold-hell: #f1dc9e;
  --schnee: #eef0f8;
  --nebel: #a3a9cc;
  --font-display: "Marcellus", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--tiefe);
  color: var(--schnee);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#himmel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 18px 150px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  line-height: 1.05;
  margin: 0.25em 0 0.35em;
  color: var(--gold-hell);
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(216, 180, 92, 0.35);
}
.intro {
  margin: 0;
  color: var(--nebel);
  max-width: 36ch;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
legend {
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--gold);
}
.deckwahl input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.deckwahl label span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(216, 180, 92, 0.45);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--schnee);
  background: rgba(19, 24, 52, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.deckwahl input:checked + span {
  background: var(--gold);
  color: var(--tiefe);
  border-color: var(--gold);
}
.deckwahl input:focus-visible + span {
  outline: 2px solid var(--gold-hell);
  outline-offset: 3px;
}

.deckwahl[hidden] { display: none; }
.unterwahl label span { font-size: 0.9rem; padding: 7px 14px; }

.deckinfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}
.decktitel {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--gold-hell);
  text-wrap: balance;
}
.deckunter {
  margin: 0;
  color: var(--nebel);
  font-style: italic;
}

.namensfeld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.namensfeld label {
  font-size: 0.95rem;
  color: var(--gold);
}
.namensfeld input {
  font: inherit;
  color: var(--schnee);
  background: rgba(19, 24, 52, 0.7);
  border: 1px solid rgba(163, 169, 204, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 320px;
}
.namensfeld input::placeholder { color: rgba(163, 169, 204, 0.7); }
.namensfeld input:focus-visible {
  outline: 2px solid var(--gold-hell);
  outline-offset: 2px;
}
.hinweis {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nebel);
}

.ziehen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.anleitung {
  margin: 0;
  text-align: center;
  font-style: italic;
  color: var(--schnee);
  max-width: 32ch;
  text-wrap: balance;
}
.faecher {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 215px;
}
.fkarte {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 84px;
  height: 130px;
  margin-left: -42px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  transform-origin: 50% 160%;
  transform: rotate(var(--w)) translateY(0);
  transition: transform 0.25s ease, opacity 0.3s ease;
}
.fkarte:hover,
.fkarte:focus-visible {
  transform: rotate(var(--w)) translateY(-18px);
}
.fkarte:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
.fkarte.gezogen {
  transform: rotate(var(--w)) translateY(-60px);
  opacity: 0;
}

.ruecken {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 45%, rgba(216, 180, 92, 0.18), transparent 60%),
    linear-gradient(160deg, #1b2150, var(--nacht) 55%, var(--tiefe));
  border: 1.5px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 0 4px var(--nacht), inset 0 0 0 5px rgba(216, 180, 92, 0.5);
  display: grid;
  place-items: center;
}
.ruecken svg {
  width: 88%;
  height: auto;
  color: var(--gold);
}

.leise {
  font: inherit;
  font-size: 0.95rem;
  color: var(--gold-hell);
  background: transparent;
  border: 1px solid rgba(216, 180, 92, 0.45);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}
.leise:hover { background: rgba(216, 180, 92, 0.12); }
.leise:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }

.letzte {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--nebel);
}
.letzte button {
  font: inherit;
  color: var(--gold-hell);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--nebel);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
footer strong {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gold);
  font-size: 1rem;
}

/* Eingang mit Codewort */
body.verschlossen main { visibility: hidden; }
.tor {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  overflow-y: auto;
}
.tor[hidden] { display: none; }
.tor-inhalt {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin: auto;
}
.tor-mandala {
  width: 170px;
  height: auto;
  color: var(--gold);
  filter: drop-shadow(0 0 18px rgba(216, 180, 92, 0.35));
  margin-bottom: 6px;
}
.tor-titel {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--gold-hell);
}
.tor-text { margin: 0 0 8px; color: var(--nebel); }
.tor-label { font-size: 0.9rem; color: var(--gold); }
.tor input {
  font: inherit;
  width: 100%;
  text-align: center;
  color: var(--schnee);
  background: rgba(19, 24, 52, 0.75);
  border: 1px solid rgba(216, 180, 92, 0.5);
  border-radius: 10px;
  padding: 11px 14px;
}
.tor input:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; }
/* the code word stands fixed in front, only the number is typed */
.tor-feld {
  display: flex;
  align-items: baseline;
  width: 100%;
  background: rgba(19, 24, 52, 0.75);
  border: 1px solid rgba(216, 180, 92, 0.5);
  border-radius: 10px;
}
.tor-feld:focus-within { outline: 2px solid var(--gold-hell); outline-offset: 2px; }
.tor-wort { padding: 11px 4px 11px 18px; color: var(--gold-hell); white-space: nowrap; }
.tor-feld input { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding-left: 6px; }
.tor-feld input:focus-visible { outline: none; }
.tor-knopf {
  font: inherit;
  margin-top: 4px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--tiefe);
  cursor: pointer;
}
.tor-knopf:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
.tor-hinweis { margin: 4px 0 0; min-height: 1.5em; font-size: 0.95rem; color: var(--gold-hell); }

/* Die gezogene Karte */
.schleier {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(8, 10, 24, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.schleier[hidden] { display: none; }
.dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: auto;
}
.kartenhalter { perspective: 1400px; }
.kartenhalter.auftauchen { animation: auftauchen 0.75s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.kartenhalter.auftauchen .seite.ruecken { animation: leuchten 2s ease-in-out both; }
@keyframes auftauchen {
  from { transform: scale(0.5) translateY(60px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes leuchten {
  0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 0 4px var(--nacht), inset 0 0 0 5px rgba(216, 180, 92, 0.5); }
  55% { box-shadow: 0 0 70px rgba(241, 220, 158, 0.55), inset 0 0 0 4px var(--nacht), inset 0 0 0 5px rgba(241, 220, 158, 0.9); }
}
.dialog-aktionen { transition: opacity 0.6s ease; }
.dialog.wartet .dialog-aktionen { opacity: 0; pointer-events: none; }

.grosskarte {
  position: relative;
  width: min(320px, 86vw);
  aspect-ratio: 5 / 8;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 1.9s cubic-bezier(0.45, 0, 0.2, 1);
}
.grosskarte.offen { transform: rotateY(180deg); }
.seite {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.seite.ruecken svg { width: 84%; }
.vorderseite {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 24%, rgba(241, 220, 158, 0.28), transparent 45%),
    linear-gradient(175deg, #262c63, #171c40 60%, #10132c);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 50px rgba(216, 180, 92, 0.3), inset 0 0 0 6px #171c40, inset 0 0 0 7px rgba(216, 180, 92, 0.55);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}
.kdeck {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.motiv {
  width: 24%;
  height: auto;
  margin: auto 0 6px;
  padding-top: 12px;
  color: var(--gold-hell);
  filter: drop-shadow(0 0 10px rgba(241, 220, 158, 0.45));
}
.vorderseite h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 7.5vw, 2rem);
  line-height: 1.1;
  margin: 4px 0 2px;
  color: var(--gold-hell);
  text-wrap: balance;
}
.kwort {
  margin: 0;
  font-style: italic;
  color: var(--gold);
}
.kwort:empty { display: none; }
.ktext {
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--schnee);
  text-wrap: pretty;
}
.kfuer {
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--nebel);
}
.dialog-aktionen {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .fkarte, .grosskarte, .deckwahl label span { transition: none; }
  .kartenhalter.auftauchen, .kartenhalter.auftauchen .seite.ruecken { animation: none; }
}

footer a { color: var(--nebel); text-underline-offset: 3px; }
footer a:hover { color: var(--gold-hell); }
.zurueck { margin-top: 6px; }

/* Silvester-Legung: zwölf Monatskarten im Raster, die Quintessenz groß darunter */
.silvester { display: none; }
body.modus-silvester .silvester {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
body.modus-silvester .ziehen { display: none; }
.sv-ziehen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sv-ziehen[hidden], .sv-kopf[hidden], .sv-lesung[hidden], #sv-neu[hidden] { display: none; }
.sv-schritt {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-hell);
  text-align: center;
  min-height: 1.5em;
}
.sv-kopf {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}
.sv-legung {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}
.sv-platz { min-width: 0; }
.sv-platz--quintessenz {
  grid-column: 2 / span 2;
  margin-top: 8px;
}
.sv-karte, .sv-leer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--schnee);
  font: inherit;
  text-align: center;
}
.sv-karte { cursor: pointer; }
.sv-karte img {
  width: 100%;
  aspect-ratio: 560 / 950;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  background: var(--nacht);
}
.sv-karte:hover img { box-shadow: 0 0 22px rgba(241, 220, 158, 0.45); }
.sv-karte:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; border-radius: 6px; }
.sv-leer::after {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 560 / 950;
  border-radius: 6px;
  border: 1px dashed rgba(216, 180, 92, 0.35);
  order: 2;
}
.sv-platz--als-naechstes .sv-leer::after {
  border-style: solid;
  border-color: var(--gold-hell);
  box-shadow: 0 0 16px rgba(241, 220, 158, 0.35);
}
.sv-monat {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  order: 1;
}
.sv-name {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--nebel);
  order: 3;
}
.sv-karte img { order: 2; }
.sv-platz--quintessenz .sv-monat { font-size: 0.85rem; color: var(--gold-hell); }
.sv-platz--quintessenz .sv-name { font-size: 0.95rem; color: var(--schnee); }
.sv-platz--quintessenz .sv-karte img,
.sv-platz--quintessenz .sv-leer::after {
  box-shadow: 0 0 30px rgba(241, 220, 158, 0.4);
}
.sv-karte--neu img { animation: sv-auftauchen 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes sv-auftauchen {
  from { transform: scale(0.6) rotateY(90deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.sv-lesung {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sv-eintrag p { margin: 0; }
.sv-eintrag-kopf { color: var(--gold-hell); }
.sv-eintrag-monat {
  font-family: var(--font-display);
  color: var(--gold);
}
.sv-eintrag-name { font-style: italic; }
.sv-eintrag-text { color: var(--schnee); font-size: 0.98rem; }
.sv-eintrag--quintessenz {
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 180, 92, 0.5);
  border-radius: 12px;
  background: rgba(19, 24, 52, 0.6);
}
.sv-quelle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--nebel);
}

/* die einzelne Karte groß, mit ihrem Text */
.sv-dialog { max-width: 420px; }
.sv-gross {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(160deg, #1b2150, var(--nacht) 55%, var(--tiefe));
  box-shadow: 0 0 60px rgba(241, 220, 158, 0.25);
}
.sv-gross img {
  width: min(190px, 50vw);
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--gold);
}
.sv-gross-text { text-align: center; }
.sv-gross-text .kdeck { margin: 0; }
.sv-gross-text h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--gold-hell);
}

@media (max-width: 380px) {
  .sv-legung { grid-template-columns: repeat(3, 1fr); }
  .sv-platz--quintessenz { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-karte--neu img { animation: none; }
}

.sv-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
#sv-speichern[hidden] { display: none; }

/* Sonjas magischer Rauhnachtszirkel: Tor, Begrüßung und Downloads aus dem Seiteninhalt */
body.verschlossen {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(44, 70, 150, 0.45), transparent 70%),
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.6), transparent),
    var(--tiefe);
}
.tor-titel { font-size: 1.9rem; line-height: 1.15; text-wrap: balance; }

.zirkel-inhalt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zirkel-inhalt:empty { display: none; }
.zirkel-inhalt > * { margin: 0; }
.zirkel-inhalt h2,
.zirkel-titel {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--gold-hell);
}
.zirkel-inhalt h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold);
}
.zirkel-inhalt ul, .zirkel-inhalt ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.zirkel-inhalt a, .zirkel-link a { color: var(--gold-hell); text-underline-offset: 3px; }
.zirkel-platzhalter {
  padding: 12px 14px;
  border: 1px dashed rgba(216, 180, 92, 0.5);
  border-radius: 10px;
  color: var(--nebel);
  font-style: italic;
}
.zirkel-link { display: none; margin: 0; }
body.fokus .zirkel-inhalt,
body.fokus .zirkel-titel { display: none; }
body.fokus .zirkel-link { display: block; }
.zirkel-radixe {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.zirkel-radixe figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.zirkel-radixe img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(216, 180, 92, 0.6);
}
.zirkel-radixe figcaption { font-size: 0.85rem; text-align: center; color: var(--nebel); }

/* Auswahl der zwölf Nächte: kurze Chips, die heutige Nacht leuchtet */
.deckwahl .nachtwahl span { min-width: 46px; text-align: center; padding-inline: 10px; }
.deckwahl .nachtwahl.heute span { box-shadow: 0 0 0 2px var(--gold-hell), 0 0 14px rgba(241, 220, 158, 0.5); }
.nachtstatus {
  margin: 0 0 4px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--nebel);
  max-width: 34ch;
  text-wrap: balance;
}
.nachtstatus[hidden], #faecher[hidden], #mischen[hidden], .ziehen .anleitung[hidden] { display: none; }

/* das Mandala am Eingang dreht sich langsam um die Fee, die Fee selbst bleibt stehen */
.tor-mandala-ring {
  transform-origin: 50px 50px;
  animation: mandala-drehen 60s linear infinite;
}
@keyframes mandala-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .tor-mandala-ring { animation: none; }
}

/* Innenbereich festlich: Überschriften mittig mit Sternen-Verzierung, Begrüßung als Brief, Nächte als Kärtchen */
.zirkel-inhalt { gap: 16px; }
.zirkel-inhalt > h2,
.zirkel-brief h2,
.zirkel-titel {
  margin: 28px 0 0;
  text-align: center;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 22px rgba(216, 180, 92, 0.35);
}
.zirkel-inhalt > h2::after,
.zirkel-brief h2::after,
.zirkel-titel::after {
  content: "✦";
  display: block;
  margin: 8px auto 0;
  width: 140px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--gold);
  background: linear-gradient(90deg, transparent, rgba(216, 180, 92, 0.7) 30%, transparent 46%, transparent 54%, rgba(216, 180, 92, 0.7) 70%, transparent) center / 100% 1px no-repeat;
}
.zirkel-inhalt > p { text-align: center; }

.zirkel-brief {
  position: relative;
  padding: 6px 22px 24px;
  border: 1px solid rgba(216, 180, 92, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 180, 92, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(27, 33, 80, 0.85), rgba(13, 17, 41, 0.9));
  box-shadow: 0 0 40px rgba(241, 220, 158, 0.12), inset 0 0 0 4px rgba(13, 17, 41, 0.6), inset 0 0 0 5px rgba(216, 180, 92, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zirkel-brief p { margin: 0; font-size: 1.05rem; line-height: 1.6; text-wrap: pretty; }
.zirkel-brief p:first-of-type { font-size: 1.15rem; color: var(--gold-hell); }
.zirkel-gruss {
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  color: var(--gold) !important;
  margin-top: 4px !important;
}

.zirkel-inhalt .zirkel-naechte {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.zirkel-naechte li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 12px 12px 12px 10px;
  border: 1px solid rgba(216, 180, 92, 0.35);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(27, 33, 80, 0.75), rgba(13, 17, 41, 0.85));
}
.zirkel-naechte svg {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(241, 220, 158, 0.35));
}
.zirkel-nacht-nr {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold);
}
.zirkel-nacht-thema {
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--schnee);
}
.zirkel-naechte li.heute {
  border-color: var(--gold-hell);
  box-shadow: 0 0 18px rgba(241, 220, 158, 0.35);
}
.zirkel-naechte li.heute .zirkel-nacht-nr::after {
  content: " heute";
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-hell);
}
.zirkel-inhalt > h2 + p { color: var(--nebel); font-style: italic; }
@media (max-width: 360px) {
  .zirkel-inhalt .zirkel-naechte { grid-template-columns: 1fr; }
}

/* Radixe zum Aufklappen, für die Astrologie-Schüler */
.zirkel-aufklapp {
  margin-top: 20px;
  border: 1px solid rgba(216, 180, 92, 0.45);
  border-radius: 14px;
  background: rgba(19, 24, 52, 0.55);
}
.zirkel-aufklapp summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zirkel-aufklapp summary::-webkit-details-marker { display: none; }
.zirkel-aufklapp summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.zirkel-aufklapp[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.zirkel-aufklapp summary:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; border-radius: 14px; }
.zirkel-aufklapp-titel { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-hell); }
.zirkel-aufklapp-unter { font-size: 0.95rem; font-style: normal; color: var(--nebel); }
.zirkel-aufklapp > p { margin: 0; padding: 0 16px 12px; color: var(--nebel); font-size: 0.92rem; }
.zirkel-aufklapp .zirkel-radixe { padding: 0 16px 16px; }

/* Kopfzeile „Rauhnächte 2026/27“ gut lesbar */
header .eyebrow { font-size: 1rem; letter-spacing: 0.22em; }

/* Am Computer: der Zirkel nutzt die Breite, das Kartenziehen bleibt mittig in Kartenbreite */
@media (min-width: 900px) {
  main { max-width: 1040px; padding-inline: 32px; gap: 28px; }
  header { text-align: center; }
  header .eyebrow { font-size: 1.15rem; }
  header h1 { font-size: 4rem; }
  header .intro { max-width: none; font-size: 1.2rem; }
  .zirkel-brief { width: 100%; max-width: 780px; margin: 0 auto; padding: 10px 48px 30px; }
  .zirkel-brief p { font-size: 1.15rem; }
  .zirkel-brief p:first-of-type { font-size: 1.3rem; }
  .zirkel-inhalt > h2, .zirkel-brief h2, .zirkel-titel { font-size: 2.2rem; }
  .zirkel-inhalt .zirkel-naechte { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .zirkel-naechte li { padding: 16px; }
  .zirkel-naechte svg { width: 46px; height: 46px; }
  .zirkel-nacht-thema { font-size: 1rem; }
  .zirkel-radixe { grid-template-columns: repeat(4, 1fr); }
  .zirkel-link { text-align: center; }
  .deckwahl, .deckinfo, .namensfeld, .ziehen {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }
  .deckwahl { justify-content: center; max-width: 860px; }
  .deckwahl legend { text-align: center; }
  body.modus-silvester .silvester { width: 100%; max-width: 820px; margin-inline: auto; }
  footer { margin-top: 20px; }
}

/* alles mittig, auf dem Handy wie am Computer */
header { text-align: center; }
header .intro { margin-inline: auto; }
.deckwahl { justify-content: center; }
.deckwahl legend { text-align: center; }
.deckinfo, .sv-kopf {
  align-items: center;
  text-align: center;
  padding-left: 0;
  border-left: 0;
}
.deckinfo::after, .sv-kopf::after {
  content: "";
  width: 120px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.namensfeld { align-items: center; text-align: center; }
.namensfeld input { width: 100%; text-align: center; }

/*------------------------------------*\
    FEENZAUBER
    playful touches: Sonja's signature, gold and fairy orange, cards
    scattered like on a table, a floating fairy and fairy dust that rises
    on every tap
\*------------------------------------*/
:root {
  --rose: #f3d9a4;
  --fee: #ec8a42;
}

/* headings upright and bold with a rosé-gold gradient */
.zirkel-inhalt > h2,
.zirkel-brief h2,
.zirkel-titel,
.zirkel-aufklapp-titel,
.tor-titel {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, var(--rose), var(--gold-hell) 50%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.zirkel-inhalt > h2, .zirkel-brief h2, .zirkel-titel { font-size: 2.1rem; }
.zirkel-inhalt > h2::after, .zirkel-brief h2::after, .zirkel-titel::after {
  content: "✦ ✧ ✦";
  letter-spacing: 0.4em;
  color: var(--rose);
  -webkit-text-fill-color: var(--rose);
  background: none;
  width: auto;
}
.tor-titel { font-size: 2.1rem; line-height: 1.15; }
.zirkel-aufklapp-titel { font-size: 1.5rem; }

/* Begrüßung: die Fee schwebt über dem Brief */
.zirkel-brief {
  margin-top: 26px;
  border-color: rgba(243, 217, 164, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243, 217, 164, 0.16), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(236, 138, 66, 0.12), transparent 45%),
    linear-gradient(160deg, rgba(27, 33, 80, 0.85), rgba(13, 17, 41, 0.9));
}
.zirkel-fee {
  width: 54px;
  height: auto;
  margin: -44px auto -6px;
  filter: drop-shadow(0 0 12px rgba(236, 138, 66, 0.6));
  animation: fee-schweben 5s ease-in-out infinite;
}
@keyframes fee-schweben {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
.zirkel-gruss { margin-top: 14px !important; text-align: center; }
.zirkel-gruss img {
  display: inline-block;
  width: min(230px, 62%);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(241, 220, 158, 0.25));
}

.zirkel-naechte li:nth-child(3n+1) svg { color: var(--gold); }
.zirkel-naechte li:nth-child(3n+2) svg { color: var(--rose); }
.zirkel-naechte li:nth-child(3n) svg { color: var(--fee); }
.zirkel-nacht-nr { font-family: var(--font-body); font-weight: 800; font-size: 1.4rem; }
.zirkel-naechte li.heute { border-color: var(--rose); }
@keyframes heute-leuchten {
  0%, 100% { box-shadow: 0 0 14px rgba(243, 217, 164, 0.3); }
  50% { box-shadow: 0 0 30px rgba(243, 217, 164, 0.6); }
}

/* Auswahl-Knöpfe: Rosé statt Grau, die gewählte Nacht in Gold */
.deckwahl label span { border-color: rgba(243, 217, 164, 0.45); }
.deckwahl .nachtwahl span { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; padding-block: 5px; }
.tor-knopf, #sv-speichern {
  background: linear-gradient(100deg, var(--gold), var(--fee));
  border-color: var(--fee);
}

/* Feenstaub */
.feenstaub {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  font-size: var(--g, 14px);
  line-height: 1;
  color: var(--f, var(--gold-hell));
  text-shadow: 0 0 6px currentColor;
  animation: feenstaub 1.1s ease-out forwards;
}
@keyframes feenstaub {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3) rotate(160deg); }
}

@media (prefers-reduced-motion: reduce) {
  .zirkel-fee, .zirkel-rad-fee, .zirkel-rad::before, .zirkel-naechte li.heute, .zirkel-rad-mitte.neu { animation: none; }
  .zirkel-naechte li { transition: none; }
}

/*------------------------------------*\
    RAD DER NÄCHTE
    the twelve nights in a circle like a wheel of the year, the fairy in the
    middle tells the theme of the night that was tapped
\*------------------------------------*/
.zirkel-rad {
  --d: min(560px, calc(100vw - 32px));
  --k: clamp(54px, calc(var(--d) * 0.15), 78px);
  position: relative;
  width: var(--d);
  aspect-ratio: 1;
  margin: 18px auto 34px;
}
/* a dotted golden orbit that turns slowly */
.zirkel-rad::before {
  content: "";
  position: absolute;
  inset: calc(var(--k) / 2);
  border-radius: 50%;
  border: 1px dashed rgba(216, 180, 92, 0.45);
  box-shadow: 0 0 40px rgba(241, 220, 158, 0.08), inset 0 0 60px rgba(241, 220, 158, 0.06);
  animation: mandala-drehen 180s linear infinite;
}
.zirkel-inhalt .zirkel-naechte.als-rad {
  display: block;
  position: absolute;
  inset: 0;
}
.zirkel-naechte.als-rad li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--k);
  height: var(--k);
  margin: calc(var(--k) / -2) 0 0 calc(var(--k) / -2);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 92, 0.5);
  background: radial-gradient(circle at 50% 35%, rgba(39, 47, 110, 0.95), rgba(13, 17, 41, 0.95));
  cursor: pointer;
  transform: rotate(var(--w)) translateY(calc(var(--d) / -2 + var(--k) / 2)) rotate(calc(var(--w) * -1));
  transition: scale 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.zirkel-naechte.als-rad li:hover,
.zirkel-naechte.als-rad li:focus-visible { scale: 1.1; outline: none; border-color: var(--gold-hell); }
.zirkel-naechte.als-rad li.gewaehlt {
  scale: 1.14;
  border-color: var(--gold-hell);
  box-shadow: 0 0 22px rgba(241, 220, 158, 0.5);
}
.zirkel-naechte.als-rad li.heute { animation: heute-leuchten 3s ease-in-out infinite; }
.zirkel-naechte.als-rad svg { width: 46%; height: 46%; grid-row: auto; }
.zirkel-naechte.als-rad .zirkel-nacht-nr { font-size: calc(var(--k) * 0.22); line-height: 1; }
.zirkel-naechte.als-rad li.heute .zirkel-nacht-nr::after { content: none; }
.zirkel-naechte.als-rad .zirkel-nacht-thema {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.zirkel-rad-mitte {
  position: absolute;
  inset: calc(var(--k) + 26px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6%;
  text-align: center;
  background: radial-gradient(circle, rgba(39, 47, 110, 0.55), rgba(13, 17, 41, 0) 70%);
}
.zirkel-rad-fee {
  width: clamp(30px, calc(var(--d) * 0.09), 50px);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(236, 138, 66, 0.6));
  animation: fee-schweben 5s ease-in-out infinite;
}
.zirkel-rad-nr {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.zirkel-rad-thema {
  font-weight: 700;
  font-size: clamp(1rem, calc(var(--d) * 0.038), 1.35rem);
  line-height: 1.3;
  color: var(--gold-hell);
  text-wrap: balance;
}
.zirkel-rad-mitte.neu .zirkel-rad-nr,
.zirkel-rad-mitte.neu .zirkel-rad-thema { animation: rad-auftauchen 0.45s ease-out; }
@keyframes rad-auftauchen {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zirkel-rad-mitte.neu .zirkel-rad-nr, .zirkel-rad-mitte.neu .zirkel-rad-thema { animation: none; }
}

/* the welcome letter is round: a soft oval on a phone, a full moon on a large screen */
.zirkel-brief {
  border-radius: 50% / 22%;
  padding: 34px 30px 46px;
}
.zirkel-brief .zirkel-fee { margin: -70px auto 0; }
@media (min-width: 900px) {
  .zirkel-brief {
    width: 720px;
    max-width: none;
    aspect-ratio: 1;
    margin: 40px auto 10px;
    padding: 70px 112px 80px;
    border-radius: 50%;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 60px rgba(241, 220, 158, 0.16), inset 0 0 0 6px rgba(13, 17, 41, 0.6), inset 0 0 0 7px rgba(216, 180, 92, 0.25);
  }
  .zirkel-brief .zirkel-fee { margin: 0 auto -4px; }
  .zirkel-brief p { font-size: 1.08rem; }
  .zirkel-brief p:first-of-type { font-size: 1.2rem; }
}

/* a golden full-moon rim with a soft halo around the welcome letter */
.zirkel-brief {
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 5px rgba(13, 17, 41, 0.7),
    0 0 0 6px rgba(241, 220, 158, 0.45),
    0 0 30px 8px rgba(241, 220, 158, 0.28),
    0 0 90px 24px rgba(216, 180, 92, 0.18),
    inset 0 0 40px rgba(241, 220, 158, 0.16);
  animation: mond-glimmen 6s ease-in-out infinite;
}
@keyframes mond-glimmen {
  0%, 100% { border-color: var(--gold); }
  50% { border-color: var(--gold-hell); }
}
@media (prefers-reduced-motion: reduce) {
  .zirkel-brief { animation: none; }
}

/* the fold-out heading for the radix charts sits in the middle */
.zirkel-aufklapp summary {
  align-items: center;
  text-align: center;
  padding-inline: 44px;
}
.zirkel-aufklapp > p { text-align: center; }

/* each night on the wheel carries the date it begins */
.zirkel-rad { --k: clamp(58px, calc(var(--d) * 0.155), 82px); }
.zirkel-naechte.als-rad svg { width: 38%; height: 38%; }
.zirkel-naechte.als-rad .zirkel-nacht-datum {
  font-size: calc(var(--k) * 0.16);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--schnee);
  opacity: 0.85;
}
.zirkel-rad-datum {
  font-size: 0.9rem;
  color: var(--nebel);
}

/*------------------------------------*\
    STERNENHIMMEL DER BOTSCHAFTEN
    each approved message is a star; a tapped star tells its words in a
    bubble, and below the sky one can leave a star of one's own
\*------------------------------------*/
.botschaften { display: flex; flex-direction: column; gap: 16px; text-align: center; }
body.fokus .botschaften { display: none; }
.botschaften-intro { margin: 0 auto; max-width: 34em; color: var(--nebel); }
.botschaften-himmel {
  position: relative;
  height: clamp(260px, 42vw, 380px);
  border-radius: 50% / 30%;
  border: 1px solid rgba(216, 180, 92, 0.35);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(39, 47, 110, 0.7), rgba(13, 17, 41, 0.9) 70%);
  box-shadow: 0 0 40px rgba(241, 220, 158, 0.1), inset 0 0 60px rgba(8, 10, 24, 0.8);
  overflow: hidden;
}
.botschaft-stern {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(26px * var(--s));
  height: calc(26px * var(--s));
  margin: calc(-13px * var(--s)) 0 0 calc(-13px * var(--s));
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-hell);
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(241, 220, 158, 0.8));
  animation: botschaft-funkeln 3.6s ease-in-out var(--v) infinite;
  transition: scale 0.2s ease;
}
.botschaft-stern svg { width: 100%; height: 100%; fill: currentColor; }
.botschaft-stern:hover, .botschaft-stern:focus-visible { scale: 1.35; outline: none; color: #fff; }
.botschaft-stern.aktiv { color: var(--fee); scale: 1.4; }
@keyframes botschaft-funkeln {
  0%, 100% { opacity: 0.65; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(20deg); }
}
.botschaften-leer {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  color: var(--nebel);
  font-size: 1.1rem;
}
.botschaft-blase {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(86%, 420px);
  max-height: 86%;
  overflow: auto;
  padding: 22px 26px 18px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(13, 17, 41, 0.96);
  box-shadow: 0 0 30px rgba(241, 220, 158, 0.3);
  animation: rad-auftauchen 0.35s ease-out;
  z-index: 2;
}
.botschaft-blase[hidden] { display: none; }
.botschaft-text { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--schnee); white-space: pre-line; }
.botschaft-von { margin: 10px 0 0; color: var(--gold); font-weight: 700; }
.botschaft-von::before { content: "✦ "; }
.botschaft-zu {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: none;
  color: var(--nebel);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.botschaft-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 8px auto 0;
  text-align: left;
}
.botschaft-form h3 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-hell);
}
.botschaft-form label { color: var(--gold); font-size: 0.95rem; }
.botschaft-form label span { color: var(--nebel); }
.botschaft-form input[type="text"],
.botschaft-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(216, 180, 92, 0.45);
  border-radius: 10px;
  background: rgba(13, 17, 41, 0.85);
  color: var(--schnee);
  font: inherit;
  font-size: 1rem;
}
.botschaft-form textarea { resize: vertical; min-height: 110px; }
.botschaft-form input:focus, .botschaft-form textarea:focus { outline: 2px solid var(--gold-hell); outline-offset: 1px; }
.botschaft-form .tor-knopf { align-self: center; margin-top: 6px; }
.botschaft-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.botschaft-hinweis { margin: 4px 0 0; font-size: 0.88rem; color: var(--nebel); text-align: center; }
.botschaft-meldung {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--fee);
  color: var(--schnee);
  text-align: center;
}
.botschaft-meldung--danke { border-color: var(--gold); color: var(--gold-hell); }
@media (prefers-reduced-motion: reduce) {
  .botschaft-stern, .botschaft-blase { animation: none; }
}

/* the stars stay inside the oval on their own, so a long message may reach beyond its edge */
.botschaften-himmel { overflow: visible; }
.botschaft-blase { width: min(92%, 440px); max-height: min(70vh, 480px); }
.botschaft-einladung { margin: 0 0 6px; text-align: center; color: var(--schnee); line-height: 1.55; text-wrap: pretty; }
.botschaft-hinweis a { color: var(--gold-hell); text-underline-offset: 3px; }
.botschaft-form .botschaft-einverstanden {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  color: var(--schnee);
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}
.botschaft-einverstanden input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }

/*------------------------------------*\
    DIE 13 WÜNSCHE
    thirteen folded slips beside a fire bowl; a chosen slip flies into the
    flames, burns and rises as smoke
\*------------------------------------*/
.wuensche { display: flex; flex-direction: column; gap: 14px; text-align: center; }
body.fokus .wuensche { display: none; }
.wuensche-intro { margin: 0 auto; max-width: 36em; line-height: 1.6; text-wrap: pretty; }
.wuensche-intro + .wuensche-intro { color: var(--gold-hell); }

.wuensche-schreiben { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 620px; margin: 6px auto 0; }
.wuensche-schreiben[hidden], .wuensche-ritual[hidden] { display: none; }
.wunschliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wunschliste li { display: flex; align-items: center; gap: 10px; }
.wunsch-nr { flex: none; width: 2.2em; text-align: right; font-weight: 800; color: var(--gold); }
.wunschliste input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(216, 180, 92, 0.4);
  border-radius: 10px;
  background: rgba(243, 233, 205, 0.06);
  color: var(--schnee);
  font: inherit;
  font-size: 1rem;
}
.wunschliste input:focus { outline: 2px solid var(--gold-hell); outline-offset: 1px; }
.wuensche-schreiben .tor-knopf { align-self: center; }
.wuensche-meldung { margin: 0; min-height: 1.3em; color: var(--fee); }
.wuensche-hinweis { margin: 0; font-size: 0.9rem; color: var(--nebel); }

.wuensche-ritual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wuensche-status { margin: 0; max-width: 32em; color: var(--gold-hell); font-size: 1.08rem; line-height: 1.5; }

/* the fire bowl: three flickering flames above a bronze bowl */
.feuerschale { position: relative; width: 140px; height: 130px; margin-top: 10px; }
.schale {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 46px;
  border-radius: 0 0 70px 70px / 0 0 46px 46px;
  background: linear-gradient(180deg, #8a5a2b, #3b2412);
  box-shadow: inset 0 6px 0 rgba(255, 210, 140, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.schale::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffb347 0%, #c0501a 55%, #4a2410 100%);
}
.flamme {
  position: absolute;
  bottom: 38px;
  left: 50%;
  width: 34px;
  height: 64px;
  margin-left: -17px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff6c8 0%, #ffd35a 26%, #ff8a1e 58%, rgba(255, 70, 10, 0) 76%);
  filter: blur(1px);
  transform-origin: 50% 100%;
  animation: flackern 1.3s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.flamme-2 { width: 26px; height: 48px; margin-left: -30px; animation-duration: 1.05s; animation-delay: -0.4s; }
.flamme-3 { width: 24px; height: 44px; margin-left: 6px; animation-duration: 1.2s; animation-delay: -0.8s; }
@keyframes flackern {
  0% { transform: scale(1, 1) skewX(-3deg); opacity: 0.9; }
  50% { transform: scale(0.92, 1.1) skewX(3deg); opacity: 1; }
  100% { transform: scale(1.05, 0.94) skewX(-1deg); opacity: 0.85; }
}
.feuerschale::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 150px;
  height: 120px;
  margin-left: -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 40, 0.35), rgba(255, 150, 40, 0) 65%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.7;
}
.feuerschale.lodert::before { transform: scale(1.6); opacity: 1; }
.feuerschale.lodert .flamme { height: 96px; width: 46px; margin-left: -23px; transition: all 0.4s ease; }
.feuerschale.lodert .flamme-2 { height: 72px; width: 34px; margin-left: -40px; }
.feuerschale.lodert .flamme-3 { height: 68px; width: 32px; margin-left: 8px; }
.rauchfahne {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 222, 240, 0.35), rgba(226, 222, 240, 0) 70%);
  animation: rauch-aufsteigen 3.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rauch-aufsteigen {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--versatz), -180px) scale(3.2); opacity: 0; }
}

/* the folded slips: cream paper with a fold and a golden seal */
.zettel-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; max-width: 640px; }
.zettel {
  position: relative;
  width: 62px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0) 49%, rgba(120, 90, 40, 0.25) 50%, rgba(0, 0, 0, 0) 51%),
    linear-gradient(180deg, #fbf3dc, #eadbb4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(150, 110, 50, 0.3);
  transform: rotate(var(--kipp, 0deg));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zettel::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font-size: 0.85rem;
  color: var(--gold);
}
.zettel:hover, .zettel:focus-visible {
  transform: rotate(0deg) translateY(-4px) scale(1.08);
  box-shadow: 0 8px 22px rgba(241, 220, 158, 0.35);
  outline: none;
}
.zettel-reihe.wartet .zettel { cursor: default; opacity: 0.75; }
.zettel-reihe.wartet .zettel:hover { transform: rotate(var(--kipp, 0deg)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
.zettel.zittern { animation: zettel-zittern 0.4s ease; }
@keyframes zettel-zittern {
  0%, 100% { translate: 0; }
  25% { translate: -4px; }
  75% { translate: 4px; }
}
.zettel.fliegt { position: fixed; margin: 0; z-index: 50; pointer-events: none; transform: none; }

/* the 13th wish: the last slip unfolds as a sheet of parchment before a crown of golden rays */
.dreizehnter { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.dreizehnter[hidden] { display: none; }
.dreizehnter-buehne {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-top: -20px;
}
.dreizehnter-strahlen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 236, 170, 0.55) 0%, rgba(241, 200, 110, 0.25) 30%, rgba(13, 17, 41, 0) 68%),
    repeating-conic-gradient(from 0deg, rgba(241, 220, 158, 0.28) 0deg 5deg, rgba(241, 220, 158, 0) 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%);
  mask: radial-gradient(circle, #000 35%, transparent 70%);
  animation: strahlen-drehen 40s linear infinite, strahlen-auf 1.6s ease-out both;
}
@keyframes strahlen-drehen { to { rotate: 360deg; } }
@keyframes strahlen-auf { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }
.dreizehnter-mandala {
  position: absolute;
  width: 88%;
  height: 88%;
  color: var(--gold);
  opacity: 0.55;
  filter: drop-shadow(0 0 10px rgba(241, 220, 158, 0.6));
  animation: mandala-drehen 70s linear infinite, strahlen-auf 2s ease-out both;
}
.dreizehnter-papier {
  position: relative;
  z-index: 1;
  width: 64%;
  padding: 26px 22px 24px;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #fdf6df, #f0dfae 60%, #e6cd8f);
  box-shadow:
    0 0 0 1px rgba(150, 110, 50, 0.4),
    inset 0 0 0 6px rgba(253, 246, 223, 0.6),
    inset 0 0 0 7px rgba(184, 140, 60, 0.6),
    0 0 50px rgba(255, 220, 140, 0.65),
    0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  transform-origin: 50% 50%;
  animation: papier-entfalten 1.9s cubic-bezier(.3, .7, .3, 1) both;
}
/* the folds still show faintly in the unfolded sheet */
.dreizehnter-papier::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 49.6%, rgba(120, 90, 40, 0.18) 50%, rgba(0, 0, 0, 0) 50.4%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 49.4%, rgba(120, 90, 40, 0.14) 50%, rgba(0, 0, 0, 0) 50.6%);
  pointer-events: none;
}
@keyframes papier-entfalten {
  0% { transform: scale(0.18, 0.12) rotate(-14deg); opacity: 0; }
  20% { transform: scale(0.3, 0.14) rotate(-8deg); opacity: 1; }
  50% { transform: scale(1, 0.16) rotate(-3deg); }
  80% { transform: scale(1, 1.04) rotate(-1.5deg); }
  100% { transform: scale(1, 1) rotate(-2deg); }
}
.dreizehnter-titel {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a6a1c;
}
.dreizehnter-text {
  margin: 12px 0 0;
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #1d2347;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.dreizehnter-satz {
  margin: 0;
  max-width: 30em;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--gold-hell);
  animation: rad-auftauchen 0.8s ease-out 1.8s both;
}
@media (max-width: 560px) {
  .dreizehnter-papier { width: 78%; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dreizehnter-strahlen, .dreizehnter-mandala, .dreizehnter-papier, .dreizehnter-satz { animation: none; }
}
.wuensche-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .flamme, .zettel.zittern { animation: none; }
}

/* the quiet reminder that drawn cards and folded slips live on this device */
.geraet-hinweis { margin: 4px auto 0; max-width: 30em; font-size: 0.88rem; line-height: 1.5; color: var(--nebel); text-align: center; }

/* a friendly pointer to the oracle card sets in the shop */
.orakel-hinweis { margin: 18px auto 0; max-width: 30em; font-size: 0.95rem; line-height: 1.5; color: var(--gold); text-align: center; text-wrap: pretty; }
.orakel-hinweis a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===== DREAM NOTE AND THE TWELVE MONTHS ===== */
.traum { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 14px auto 0; text-align: left; }
.traum[hidden] { display: none; }
.traum-titel { color: var(--gold-hell); font-weight: 800; font-size: 1.15rem; text-align: center; }
.traum-monat { margin: 0; color: var(--nebel); font-size: 0.95rem; text-align: center; text-wrap: pretty; }
.traum textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 180, 92, 0.45);
  border-radius: 10px;
  background: rgba(13, 17, 41, 0.85);
  color: var(--schnee);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.traum textarea:focus { outline: 2px solid var(--gold-hell); outline-offset: 1px; }
.traum-gemerkt { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: var(--gold); text-align: center; }

.jahr { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
body.fokus .jahr { display: none; }
.jahr-intro { margin: 0 auto; max-width: 36em; line-height: 1.6; text-wrap: pretty; }
.jahr-fuer { margin: 0; color: var(--gold-hell); font-weight: 800; font-size: 1.15rem; }
.jahr-fuer[hidden], #jahr-drucken[hidden] { display: none; }
.jahr-monate {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  text-align: left;
}
.jahr-monat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 180, 92, 0.4);
  border-radius: 16px;
  background: radial-gradient(circle at 85% 0%, rgba(241, 220, 158, 0.12), transparent 60%), rgba(13, 17, 41, 0.75);
}
.jahr-monat.leer { opacity: 0.6; border-style: dashed; }
.jahr-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; border-bottom: 1px solid rgba(216, 180, 92, 0.25); padding-bottom: 6px; }
.jahr-monatsname { margin: 0; font-weight: 800; font-size: 1.2rem; color: var(--gold-hell); }
.jahr-nacht { margin: 0; font-size: 0.82rem; color: var(--nebel); }
.jahr-karte { margin: 0; font-weight: 800; color: var(--gold); }
.jahr-botschaft { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.jahr-traum-titel { margin: 8px 0 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.jahr-traum { margin: 0; font-size: 0.92rem; line-height: 1.5; white-space: pre-line; }
.jahr-wartet { margin: 0; font-size: 0.9rem; color: var(--nebel); }

/* printed or saved as PDF, only the twelve months appear, dark ink on white paper */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #222 !important; }
  body > *:not(main), main > *:not(#jahr) { display: none !important; }
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  #himmel, #jahr-drucken, .jahr-monat.leer { display: none !important; }
  .jahr-intro, .jahr-botschaft, .jahr-traum { color: #222 !important; }
  .zirkel-titel, .jahr-fuer, .jahr-monatsname, .jahr-karte, .jahr-traum-titel { color: #8a6a1f !important; -webkit-text-fill-color: #8a6a1f !important; background: none !important; }
  .zirkel-titel::after { display: none; }
  .jahr-monate { grid-template-columns: 1fr 1fr; }
  .jahr-monat { background: none !important; border-color: #c9a85a; break-inside: avoid; }
  .jahr-nacht { color: #666 !important; }
}
