* { box-sizing: border-box; }

html, body { height: 100vh; }
html { overflow: hidden; }

body {
  margin: 0; display: flex; flex-direction: column;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Color Emoji", sans-serif;
  color: #e2e8f0; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1e293b 0%, #0f172a 60%, #020617 100%);
}

#banner {
  flex-shrink: 0; display: grid; align-items: center;
  padding: .45rem .9rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#banner .claim, #banner .satz { grid-area: 1 / 1; }
#banner .claim {
  min-width: 0; text-align: center; line-height: 1.35;
  font-size: clamp(.7rem, 2.3vw, .84rem); color: #94a3b8;
  transition: opacity .6s ease;
}
#banner .satz {
  min-width: 0; text-align: center; line-height: 1.35;
  font-size: clamp(.82rem, 3vw, 1rem); color: #cbd5e1;
  opacity: 0; transition: opacity .3s ease;

  min-height: 1.35em;
}

body.claim-weg #banner .satz.da { opacity: 1; }
#banner .satz b { color: #f1f5f9; }
#banner a { color: #60a5fa; text-decoration: none; font-weight: 600; }
#banner a:hover { text-decoration: underline; }

body.claim-weg #banner .claim { opacity: 0; pointer-events: none; }

#banner .lauf {
  grid-area: 1 / 1; position: relative; overflow: hidden;
  height: 1.35em; pointer-events: none; display: none;
}
#banner .lauf.an { display: block; }
#banner .lauf-text {
  position: absolute; top: 0; left: 0; white-space: nowrap;
  will-change: transform; color: #e2e8f0;
}
#banner .lauf-text b { color: #fbbf24; }

#banner .lauf.an ~ .satz, #banner .satz:has(~ .lauf.an) { opacity: 0; }

button.btn {
  background: rgba(255,255,255,.08); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  padding: .4rem .7rem; font-size: 1rem; cursor: pointer;
  font-family: inherit; min-height: 40px; flex-shrink: 0;
}
button.btn:active { background: rgba(255,255,255,.2); }
button.btn-gross {
  background: #2563eb; border-color: #3b82f6; color: #fff;
  font-size: 1.05rem; font-weight: 600; padding: .8rem 1.4rem;
  width: 100%; min-height: 52px;
}

main { flex: 1; display: flex; min-height: 0; }
#saeule { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#buehne {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: clamp(.4rem, 2vh, 1.2rem);
  padding: .6rem; min-width: 0; min-height: 0; overflow: hidden;
}

#panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 15500;
  width: min(400px, 92vw); max-height: min(86dvh, 720px);
  padding: 1rem 1.1rem; border-radius: 14px;
  background: linear-gradient(165deg, #241a10 0%, #12100c 70%);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 0 100vmax rgba(2, 6, 23, .65), 0 20px 60px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: .6rem; overflow-y: auto;
  overscroll-behavior: contain;
}
body.silber #panel {
  border-color: rgba(226, 232, 240, .85);
  box-shadow: 0 0 0 100vmax rgba(2, 6, 23, .65), 0 0 16px rgba(226, 232, 240, .35),
              0 20px 60px rgba(0, 0, 0, .6);
}
.panel-titel {
  color: #fbbf24; font-size: 1.05rem; letter-spacing: .04em; font-weight: 700;
}
body.silber .panel-titel { color: #f1f5f9; text-shadow: 0 0 8px rgba(226, 232, 240, .5); }
body:not(.panel-auf) #panel { display: none; }

label.feld { display: block; font-size: .78rem; color: #94a3b8; margin-bottom: .2rem; }
input[type=text], input[type=number], textarea {
  width: 100%; background: rgba(0,0,0,.3); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  padding: .55rem .65rem; font-size: 1rem; font-family: inherit;
}
#panel input:focus-visible { outline: none; border-color: rgba(251, 191, 36, .75); }
body.silber #panel input:focus-visible { border-color: rgba(226, 232, 240, .75); }
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.reihe { display: flex; gap: .4rem; flex-wrap: wrap; }
.schalter {
  display: flex; align-items: center; gap: .55rem; font-size: .92rem;
  min-height: 36px; border-radius: 8px; padding: 0 .35rem;
}
.schalter:hover { background: rgba(251, 191, 36, .07); }
.schalter input {
  width: 20px; height: 20px; flex-shrink: 0;
  accent-color: #fbbf24;
}
body.silber .schalter input { accent-color: #e2e8f0; }
.trenner {
  height: 1px; margin: .2rem 0;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0),
              rgba(251, 191, 36, .4), rgba(251, 191, 36, 0));
}
body.silber .trenner {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0),
              rgba(226, 232, 240, .4), rgba(226, 232, 240, 0));
}
#hinweis { font-size: .82rem; color: #fbbf24; min-height: 1.2em; word-break: break-all; }
.zahl { color: #60a5fa; font-weight: 600; }

#konfetti-canvas {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  display: none;
}

#fuss {
  flex-shrink: 0; position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center;
  padding: .3rem .5rem; min-width: 0; overflow: hidden;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
}
#fuss .mitte {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; flex-wrap: nowrap; white-space: nowrap; min-width: 0;
}
#fuss .rand { display: flex; align-items: center; gap: .25rem; min-width: 0; }
#fuss .rand.rechts { justify-content: flex-end; }

#fuss button {
  background: none; border: none; padding: .2rem .45rem;
  font-family: inherit; font-size: .82rem; color: #94a3b8;
  cursor: pointer; min-height: 40px;
  display: inline-flex; align-items: center;
}
#fuss button:hover { color: #e2e8f0; text-decoration: underline; }

#fuss [data-rolle="panel"] { font-size: 1.1rem; min-width: 40px; justify-content: center; text-decoration: none;
  transition: filter .2s ease, transform .25s ease; }
#fuss [data-rolle="panel"]:hover {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, .8)); transform: rotate(40deg);
}
#fuss button[hidden], #fuss .punkt[hidden] { display: none; }
#fuss .punkt { color: #475569; }

#fuss .sym {
  font-size: 1.15rem; line-height: 1; color: #94a3b8; text-decoration: none;
  padding: .2rem .35rem; min-height: 40px; min-width: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
#fuss .sym:hover { color: #e2e8f0; text-decoration: none; }
#fuss .copy { font-size: .78rem; color: #64748b; }

.jeton-paar { display: inline-flex; align-items: center; gap: .25rem; }
.jeton {
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  color: #64748b;
  background: radial-gradient(circle at 50% 35%, #1e293b, #0b1220);
  border: 2px dashed rgba(148, 163, 184, .35);
  box-shadow: 0 2px 0 rgba(0,0,0,.5);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.jeton:hover { color: #e2e8f0; border-color: rgba(251, 191, 36, .5); }
.jeton:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }

.jeton.an {
  color: #fde68a; border-style: solid; border-color: #fbbf24;
  background: radial-gradient(circle at 50% 35%, #2a1c05, #120a02);
  box-shadow: 0 0 12px rgba(251,191,36,.35), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(-1px);
  cursor: default;
}

.jeton-gross { gap: .4rem; }
.jeton-gross .jeton { width: 52px; height: 52px; font-size: .85rem; border-width: 3px; }
@media (prefers-reduced-motion: reduce) {
  .jeton { transition: none; }
  .jeton.an { transform: none; }
}

#fuss .jeton {
  padding: 0; min-height: 40px; width: 40px; height: 40px;
  font-size: .68rem; color: #64748b; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1e293b, #0b1220);
  border: 2px dashed rgba(148, 163, 184, .35);
  text-decoration: none;
}
#fuss .jeton:hover { color: #e2e8f0; border-color: rgba(251, 191, 36, .5); text-decoration: none; }
#fuss .jeton.an {
  color: #fde68a; border-style: solid; border-color: #fbbf24;
  background: radial-gradient(circle at 50% 35%, #2a1c05, #120a02);
}

@media (max-width: 820px) {
  #fuss .lang, #fuss-version { display: none; }
}
@media (max-width: 600px) {
  #fuss .jeton-paar { display: none; }
}
@media (max-width: 430px) {
  #fuss .copy-jahr { display: none; }
}

#impressum, #wer {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(2,6,23,.75); display: flex;
  align-items: center; justify-content: center; padding: 1rem;
}
#impressum[hidden], #wer[hidden] { display: none; }

#wer .wer-foto {
  float: right; width: 120px; height: 120px; border-radius: 50%;
  margin: 0 0 .6rem .9rem; object-fit: cover;
  border: 2px solid rgba(251, 191, 36, .55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
#wer h3 { clear: right; }
.imp-karte {
  position: relative; max-width: 460px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  background: #0f172a; color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
  padding: 1.4rem 1.5rem 1.6rem; line-height: 1.55; font-size: .92rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.imp-karte h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.imp-karte h3 { font-size: .88rem; margin: 1.1rem 0 .25rem; color: #94a3b8; }

.imp-karte p  { margin: 0 0 .5rem; }
.imp-karte p:last-child { margin-bottom: 0; }
.imp-karte b  { color: #f1f5f9; }
.imp-karte a  { color: #60a5fa; }
.imp-zu { position: absolute; top: .6rem; right: .6rem; padding: .3rem .6rem; }
