:root {
  --gold: #B4823A;
  --gold-hell: #F1DDB0;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #030303;
  color: #fff;
  font-family: var(--serif);
  overflow: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#schlange { pointer-events: none; }

/* Der ganze Brunnen ist der Knopf zum Eintreten */
#eintreten {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#eintreten:focus-visible { outline: 1px solid rgba(241, 221, 176, 0.35); outline-offset: -12px; }

/* Die vier Ränder: das einzige Lesbare während der Reise */
.rand {
  position: fixed;
  z-index: 3;
  margin: 0;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241, 221, 176, 0.42);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.4s;
}

.rand h1 { margin: 0; font: inherit; letter-spacing: inherit; }
header.rand { pointer-events: none; }   /* ein Klick auf den Namen öffnet den Brunnen */
a.rand:hover, button.rand:hover, a.rand:focus-visible, button.rand:focus-visible { color: var(--gold-hell); outline: none; }
.rand[hidden] { display: none; }

.oben-links  { top: max(16px, env(safe-area-inset-top)); left: 20px; }
.oben-rechts { top: max(16px, env(safe-area-inset-top)); right: 20px; }
.unten-links  { bottom: max(14px, env(safe-area-inset-bottom)); left: 20px; }
.unten-rechts { bottom: max(14px, env(safe-area-inset-bottom)); right: 20px; }

/* Oben angekommen: der Ruf unter dem Ring */
#montag {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  top: 58%;   /* wird per Skript direkt unter das Logo gesetzt */
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 24px;
  text-align: center;
}

#montag[hidden] { display: none; }

/* Ein weicher dunkler Schleier, damit die Schrift vor dem Stein lesbar bleibt */
#montag::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40px 0 -50px;
  background: radial-gradient(ellipse min(520px, 70vw) 190px at 50% 50%, rgba(3, 3, 3, 0.88), rgba(3, 3, 3, 0));
}

.marke {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(214, 166, 82, 0.9);
}

.ruf {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--gold-hell);
  text-shadow: 0 0 24px rgba(180, 130, 58, 0.5);
}

.termin {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.pause {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  font-style: italic;
  color: var(--gold-hell);
}

.knopf {
  margin-top: 10px;
  padding: 12px 30px;
  border: 1px solid rgba(241, 221, 176, 0.45);
  border-radius: 999px;
  color: var(--gold-hell);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.08em;
  transition: background 0.4s, border-color 0.4s;
}

.knopf:hover, .knopf:focus-visible {
  background: rgba(180, 130, 58, 0.18);
  border-color: var(--gold-hell);
  outline: none;
}

.fein {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 221, 176, 0.45);
}

#fortschritt {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 3;
}

#fortschritt i {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(241, 221, 176, 0.35);
}

/* Handy: Name zweizeilig, feine Zeile enger */
@media (max-width: 520px) {
  .oben-links h1 span { display: block; }
  .oben-links h1 .trenner { display: none; }
  .fein { font-size: 11px; letter-spacing: 0.12em; }
  .marke { font-size: 12px; letter-spacing: 0.2em; }
}

/* Für Screenreader und Suchmaschinen lesbar, auf dem Bildschirm nicht sichtbar */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
