:root {
  --nacht: #0b0a1f;
  --nacht-2: #16133a;
  --violett: #2a2160;
  --gold: #f3d9a4;
  --gold-hell: #fff3d6;
  --rose: #e8a6c8;
  --text: #ece8ff;
  --text-leise: #b4add6;
  --linie: rgba(243, 217, 164, .22);
  --karte: rgba(22, 19, 58, .62);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  background: radial-gradient(120% 80% at 50% 0%, #2b2266 0%, var(--nacht-2) 38%, var(--nacht) 75%) fixed, var(--nacht);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
#himmel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.kopf, main, .fuss { position: relative; z-index: 1; }
a { color: var(--gold); }
a:hover { color: var(--gold-hell); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.kopf { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem clamp(1.25rem, 4vw, 3rem); }
.marke { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-hell); text-decoration: none; letter-spacing: .02em; }
.marke-stern { color: var(--gold); }
.kopf nav { display: flex; gap: 1.5rem; }
.kopf nav a { color: var(--text-leise); text-decoration: none; font-size: .95rem; }
.kopf nav a:hover { color: var(--gold-hell); }
@media (max-width: 560px) { .kopf nav a:first-child { display: none; } }

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(3rem, 8vw, 6rem) 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--gold-hell); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.2rem); letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
.vorzeile { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--rose); margin: 0 0 1rem; }

/* Bühne */
.buehne { text-align: center; padding-top: clamp(2rem, 6vw, 4rem); }
.einleitung { max-width: 38rem; margin: 1.5rem auto 0; color: var(--text-leise); font-size: 1.15rem; }
.gespraech { margin-top: clamp(2.5rem, 6vw, 3.5rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.kugel {
  --pegel: 0; position: relative; width: clamp(200px, 46vw, 248px); aspect-ratio: 1; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: transparent; color: var(--nacht); display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.kugel-kern {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e6 0%, var(--gold) 38%, #c98bb3 78%, #6b4fa8 100%);
  box-shadow: 0 0 calc(40px + var(--pegel) * 80px) rgba(243, 217, 164, calc(.35 + var(--pegel) * .5)), inset 0 -10px 30px rgba(43, 34, 102, .35);
  transform: scale(calc(1 + var(--pegel) * .09)); transition: transform .08s linear, box-shadow .08s linear;
}
.kugel-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--linie); }
.kugel-ring::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(243, 217, 164, .18); animation: kreisen 60s linear infinite; }
.kugel-text { position: relative; font-family: var(--serif); font-size: 1.25rem; max-width: 70%; line-height: 1.2; color: #2a1f4f; }
.kugel:hover .kugel-kern { filter: brightness(1.06); }
.gespraech[data-zustand="bereit"] .kugel-kern { animation: atmen 5s ease-in-out infinite; }
.gespraech[data-zustand="verbinde"] .kugel-ring { animation: pulsring 1.4s ease-out infinite; }
.gespraech[data-zustand="aktiv"] .kugel-text { opacity: 0; }
.gespraech[data-zustand="aus"] .kugel { cursor: default; filter: saturate(.4) brightness(.8); }
@keyframes atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes kreisen { to { transform: rotate(360deg); } }
@keyframes pulsring { 0% { box-shadow: 0 0 0 0 rgba(243, 217, 164, .45); } 100% { box-shadow: 0 0 0 28px rgba(243, 217, 164, 0); } }

.zustand { min-height: 1.6em; margin: .25rem 0 0; color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.untertitel { min-height: 3.2em; max-width: 34rem; margin: 0; color: var(--text); font-size: 1.05rem; opacity: .9; }
.steuerung { display: flex; align-items: center; gap: 1rem; min-height: 2.75rem; }
.restzeit { font-variant-numeric: tabular-nums; color: var(--text-leise); letter-spacing: .05em; }
.hinweis { font-size: .85rem; color: var(--text-leise); margin: 0; max-width: 30rem; }

.knopf, .knopf-leise {
  font: inherit; font-size: 1rem; border-radius: 999px; padding: .7rem 1.4rem; cursor: pointer; min-height: 44px;
}
.knopf { background: var(--gold); color: var(--nacht); border: 0; font-weight: 600; }
.knopf:hover { background: var(--gold-hell); }
.knopf:disabled { opacity: .6; cursor: default; }
.knopf-leise { background: transparent; color: var(--gold-hell); border: 1px solid var(--linie); }
.knopf-leise:hover { border-color: var(--gold); }

/* Horoskop */
.horoskop { text-align: center; }
.stand { color: var(--text-leise); margin: -.25rem 0 2rem; }
.zeichen-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; max-width: 760px; margin: 0 auto; }
@media (max-width: 680px) { .zeichen-raster { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .zeichen-raster { grid-template-columns: repeat(3, 1fr); } }
.zeichen {
  font: inherit; background: var(--karte); border: 1px solid var(--linie); color: var(--text); border-radius: 16px;
  padding: .9rem .25rem .7rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  transition: border-color .2s, transform .2s, background .2s; backdrop-filter: blur(6px);
}
.zeichen:hover { border-color: var(--gold); transform: translateY(-2px); }
.zeichen[aria-pressed="true"] { border-color: var(--gold); background: rgba(243, 217, 164, .12); }
.zeichen-symbol { font-size: 1.7rem; color: var(--gold); line-height: 1; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", var(--serif); }
.zeichen-name { font-size: .85rem; }
.horoskop-karte {
  max-width: 640px; margin: 2rem auto 0; text-align: left; background: var(--karte); border: 1px solid var(--linie);
  border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.2rem); backdrop-filter: blur(8px);
}
.horoskop-karte header { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.karte-symbol { font-size: 2.2rem; color: var(--gold); }
.horoskop-karte h3 { font-size: 1.8rem; }
.karte-text p { margin: 0 0 .9rem; }
.karte-text strong { color: var(--gold); font-weight: 600; }
.horoskop-karte .knopf { margin-top: .5rem; }
.botschaft { max-width: 36rem; margin: 2.5rem auto 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text-leise); }

/* Gut zu wissen */
.sicher { max-width: 760px; margin: 0 auto; }
.punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.punkte li { padding-left: 1.6rem; position: relative; color: var(--text-leise); }
.punkte li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.punkte strong { color: var(--text); font-weight: 600; }
.punkte.klein { margin-top: 1.25rem; gap: .5rem; }

/* Unternehmen */
.unternehmen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; border-top: 1px solid var(--linie); }
@media (max-width: 860px) { .unternehmen { grid-template-columns: 1fr; } }
.unternehmen-text p { color: var(--text-leise); }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 520px) { .formular { grid-template-columns: 1fr; } }
.formular label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--text-leise); }
.formular .breit { grid-column: 1 / -1; }
.formular input, .formular textarea {
  font: inherit; color: var(--text); background: rgba(11, 10, 31, .6); border: 1px solid var(--linie); border-radius: 12px; padding: .7rem .85rem; min-height: 44px;
}
.formular input:focus, .formular textarea:focus { border-color: var(--gold); outline: none; }
.formular .einwilligung { flex-direction: row; align-items: flex-start; gap: .6rem; }
.formular .einwilligung input { min-height: 0; margin-top: .3rem; accent-color: var(--gold); }
.frei { opacity: .7; }
.falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-meldung { margin: 0; min-height: 1.4em; color: var(--gold); }

.fuss { text-align: center; padding: 3rem 1.25rem 4rem; color: var(--text-leise); font-size: .9rem; border-top: 1px solid var(--linie); }
.fuss p { margin: .3rem 0; }

/* Rechtstexte */
.recht { max-width: 760px; margin: 0 auto; padding: 2rem 0 4rem; }
.recht h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 2rem; }
.recht h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.recht p, .recht li { color: var(--text-leise); }
.recht dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; color: var(--text-leise); }
.recht dt { color: var(--text); }
.recht dd { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
