/* haltdeinmaul.jetzt – ein Abstand (--s), ein Radius (--r), eine Button-Art. */

/* Fredoka kommt von Google Fonts, aber nur nach Einwilligung (consent.js). Davor: runde Systemschrift. */

:root {
  --bg: #0d0d0f;
  --surface: #17171b;
  --line: #2b2b33;
  --text: #f5f5ef;
  --muted: #9b9ba6;
  --accent: #c8ff2e;
  --on-accent: #0d0d0f;
  --error: #ff6b8b;
  --pink: #ee4ff0;
  --s: 20px;
  --r: 20px;
  --h: 60px;
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, rgb(200 255 46 / .10), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 110%, rgb(160 90 255 / .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 500 1.0625rem/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s);
  display: flex;
  flex-direction: column;
  gap: var(--s);
}
.wrap.wide { max-width: 760px; }
main.wrap { flex: 1; padding-top: calc(var(--s) * 3); }

h1, h2, p, blockquote { margin: 0; }
a { color: inherit; }
.accent { color: var(--accent); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: var(--s); }
.logo {
  font-weight: 700;
  font-size: clamp(2rem, 10.5vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
}
.typed-line { display: block; min-height: 1.05em; color: var(--accent); white-space: nowrap; }
.domain { display: block; }
.caret {
  display: inline-block;
  width: .08em;
  height: .9em;
  margin-left: .04em;
  vertical-align: -.08em;
  background: var(--accent);
  border-radius: 1em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.big {
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 3.6rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.lead { font-size: 1.25rem; color: var(--text); }
.punch { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: .15em; }
.title { font-size: 1.5rem; font-weight: 700; overflow-wrap: anywhere; }

/* Bausteine */
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: var(--s);
}
.stack { display: flex; flex-direction: column; gap: var(--s); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s); }
.row:has(> [hidden]) > :not([hidden]) { grid-column: 1 / -1; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s); }
.steps .card { display: flex; flex-direction: column; gap: var(--s); }
.num {
  display: grid;
  place-items: center;
  width: var(--h);
  height: var(--h);
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.5rem;
}
.notice { border-color: var(--accent); }

.label { font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hint { color: var(--muted); font-size: .9375rem; }
.hint.error { color: var(--error); }
.hint.error:empty { display: none; }
.hint .ok { color: var(--accent); }
.hint .bad { color: var(--error); }
.link { all: unset; color: var(--text); text-decoration: underline; cursor: pointer; }
.link.suggest { color: var(--accent); font-weight: 700; text-underline-offset: .15em; }

/* Ein Button für alles */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--h);
  padding: 0 var(--s);
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 1.125rem/1.1 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 0 0 0 rgb(200 255 46 / 0);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgb(200 255 46 / .6); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn.live { background: var(--error); color: var(--text); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Felder */
.field {
  width: 100%;
  min-height: var(--h);
  padding: 0 var(--s);
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field:focus-within, .field:focus { border-color: var(--accent); outline: none; }
textarea.field { padding: var(--s); resize: vertical; min-height: calc(var(--h) * 2); }
.name-field { display: flex; align-items: center; }
.name-field input {
  flex: 1;
  min-width: 0;
  height: calc(var(--h) - 4px);
  border: 0;
  background: none;
  color: var(--accent);
  font: 700 1.25rem var(--font);
  outline: none;
}
.suffix { color: var(--muted); white-space: nowrap; }
.share { display: flex; align-items: center; overflow-wrap: anywhere; padding: var(--s); color: var(--accent); }

/* Video */
.stage, .player {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 2px solid var(--line);
  background: #000;
}
.stage video, .player video { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.stage video.mirror { transform: scaleX(-1); }
.timer {
  position: absolute;
  top: var(--s);
  right: var(--s);
  min-width: var(--h);
  height: var(--h);
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--error);
  font-weight: 700;
  font-size: 1.5rem;
}
.player .btn { position: absolute; left: var(--s); right: var(--s); bottom: var(--s); width: auto; }
.message { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 700; line-height: 1.25; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Checkboxen: gleicher Radius wie alles andere, darum rund */
.check { display: flex; align-items: flex-start; gap: var(--s); cursor: pointer; }
.check input {
  appearance: none;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--bg) center / 70% no-repeat;
  cursor: pointer;
}
.check input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230d0d0f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:disabled { opacity: .5; cursor: default; }
.check a { color: var(--accent); }

/* 10-Minuten-Timer */
.hold { border-color: var(--accent); color: var(--text); font-weight: 700; }
.hold .clock { color: var(--accent); font-variant-numeric: tabular-nums; }
.hold.over { border-color: var(--error); }
.hold.over .clock { color: var(--error); }

/* Consent-Banner */
.consent {
  position: fixed;
  z-index: 10;
  left: var(--s);
  right: var(--s);
  bottom: var(--s);
  max-width: 720px;
  max-height: calc(100vh - 2 * var(--s));
  overflow: auto;
  margin: 0 auto;
  border-color: var(--accent);
  box-shadow: 0 20px 60px -10px rgb(0 0 0 / .8);
}
.consent a { color: var(--accent); }

/* Aktions-Sticker (Stern mit 24 Zacken, dreht sich langsam), nur solange eine Aktion läuft */
.burst {
  position: fixed;
  right: var(--s);
  bottom: var(--s);
  z-index: 5;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  text-decoration: none;
  transition: transform .2s ease;
}
.burst:hover { transform: scale(1.06); }
.burst svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: burst-spin 90s linear infinite;
  filter: drop-shadow(0 10px 28px rgb(238 79 240 / .45));
}
.burst polygon { fill: var(--pink); }
.burst span {
  position: relative;
  text-align: center;
  font-weight: 700;
  line-height: 1.05;
  transform: rotate(-10deg);
}
.burst small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.burst b { display: block; font-size: 1.12rem; }
@keyframes burst-spin { to { transform: rotate(360deg); } }
body:has(.burst) .footer { padding-bottom: 150px; } /* Stern verdeckt sonst die Footer-Links */
#promo { scroll-margin-top: var(--s); }

/* Rechtstexte */
.prose { display: flex; flex-direction: column; gap: var(--s); }
.prose h2 { font-size: 1.125rem; font-weight: 700; color: var(--accent); }
.prose h2:not(:first-child) { margin-top: var(--s); }
.prose p { color: var(--text); }

.footer { flex-direction: row; flex-wrap: wrap; color: var(--muted); }
.footer a, .footer .link { color: var(--muted); text-decoration: none; }
.footer a:hover, .footer .link:hover { color: var(--text); }

@media (max-width: 560px) {
  :root { --s: 16px; }
  .row, .row3, .steps { grid-template-columns: 1fr; }
  .steps .card { flex-direction: row; align-items: center; }
  .num { flex: none; }
  .suffix { font-size: .9375rem; }
  .burst { width: 104px; height: 104px; }
  .burst b { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .burst svg { animation: none; }
  .btn { transition: none; }
}
