/* WaitGo – Kundenseiten (Beitritt + Ticket) */
:root {
  --ink: #11223F; --ink-2: #4A5B78; --ink-3: #7C8AA3;
  --paper: #F3F6FA; --white: #FFFFFF; --mist: #E9EFF6; --line: #D8E0EA;
  --go: #0F9B6A; --go-deep: #0A7A53; --go-soft: #DDF3EA;
  --wait: #E99A1E; --wait-deep: #A9670A; --wait-soft: #FCEFD8;
  --stop: #C2341F; --stop-soft: #FBE6E2;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  transition: background-color .4s;
}
body.is-called { background: var(--go); }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; border-radius: 6px; }
.page { max-width: 460px; margin: 0 auto; padding: 1.25rem 1.1rem 2.5rem; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.biz { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
body.is-called .biz { color: var(--white); }
.made { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-3); font-weight: 600; text-decoration: none; }
.made svg { width: 18px; height: 18px; }
body.is-called .made { color: rgba(255,255,255,.75); }

h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 .6rem; }
.lead { color: var(--ink-2); margin: 0 0 1.5rem; }

/* Ticket-Abschnitt */
.stub {
  --notch: 15px; --cut: 58%;
  background: var(--white); border-radius: 24px; box-shadow: 0 20px 50px -24px rgba(17,34,63,.35);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
}
.stub-top { padding: 1.5rem 1.5rem 1.4rem; }
.stub-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.stub-label { font-size: .92rem; color: var(--ink-3); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.wait { background: var(--wait-soft); color: var(--wait-deep); }
.pill.go { background: var(--go-soft); color: var(--go-deep); }
.pill.stop { background: var(--stop-soft); color: var(--stop); }
.number { font-size: clamp(4.6rem, 26vw, 6.4rem); font-weight: 850; letter-spacing: -0.05em; line-height: .95; margin-top: .6rem; font-variant-numeric: tabular-nums; }
.number.small { font-size: clamp(2.2rem, 10vw, 2.8rem); letter-spacing: -0.03em; color: var(--ink-2); }
.perf { margin: 0 1.1rem; border-top: 2px dashed var(--line); }
.stub-bottom { padding: 1.4rem 1.5rem 1.6rem; border-radius: 0 0 24px 24px; transition: background-color .4s, color .4s; }
.status { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .35rem; }
.sub { color: var(--ink-2); margin: 0; }
.estimate { margin-top: .9rem; font-weight: 700; }
.estimate small { display: block; font-weight: 500; color: var(--ink-3); font-size: .85rem; }

.vcode { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--mist); border-radius: 16px; }
.vcode b { font-size: 2.6rem; letter-spacing: .16em; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.vcode span { font-size: .92rem; color: var(--ink-2); font-weight: 600; }

.room { display: block; margin-top: 1rem; font-size: clamp(2rem, 10vw, 2.6rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.05; }
.stub.called .stub-bottom { background: var(--go); color: var(--white); }
.stub.called .sub { color: rgba(255,255,255,.9); }
.stub.soon .stub-bottom { background: var(--wait-soft); }

.dots { display: flex; gap: 6px; margin-top: 1rem; }
.dots span { height: 8px; flex: 1; border-radius: 4px; background: var(--mist); }
.dots span.on { background: var(--wait); }

.note { margin: 1.2rem .25rem 0; color: var(--ink-2); font-size: .95rem; }
body.is-called .note { color: rgba(255,255,255,.9); }
.updated { font-size: .82rem; color: var(--ink-3); margin: .6rem .25rem 0; }
body.is-called .updated { color: rgba(255,255,255,.7); }
.offline { margin-top: 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--wait-soft); color: var(--wait-deep); font-weight: 600; font-size: .95rem; }

/* Formular + Buttons */
.field { display: block; margin: 0 0 1rem; }
.field span { display: block; font-weight: 700; margin-bottom: .35rem; }
.field small { color: var(--ink-3); font-weight: 500; }
.field input { width: 100%; min-height: 52px; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: var(--white); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--go); box-shadow: 0 0 0 4px rgba(15,155,106,.2); }
.button { display: flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; min-height: 58px; padding: .9rem 1.2rem; border-radius: 16px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 1.12rem; cursor: pointer; text-decoration: none; }
.button:disabled { opacity: .55; cursor: wait; }
.button-go { background: var(--go); color: var(--white); }
.button-go:hover:not(:disabled) { background: var(--go-deep); }
.button-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); min-height: 50px; font-size: 1rem; font-weight: 700; }
body.is-called .button-quiet { color: var(--white); border-color: rgba(255,255,255,.45); }
.actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
.card { background: var(--white); border-radius: 24px; padding: 1.5rem; box-shadow: 0 20px 50px -24px rgba(17,34,63,.3); }
.facts { display: flex; gap: .6rem; margin: 0 0 1.4rem; }
.fact { flex: 1; background: var(--mist); border-radius: 16px; padding: .9rem 1rem; }
.fact b { display: block; font-size: 1.9rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.fact span { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.error { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--stop-soft); color: var(--stop); font-weight: 600; }
.privacy { margin-top: auto; padding-top: 2rem; font-size: .82rem; color: var(--ink-3); text-align: center; }
.privacy a { color: inherit; }
body.is-called .privacy { color: rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce) { body, .stub-bottom { transition: none; } }
.select { width: 100%; min-height: 52px; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: var(--white); color: var(--ink); }
.field .select { display: block; }
.notify { margin-top: 1.4rem; background: var(--white); border-radius: 20px; padding: 1.3rem; box-shadow: 0 12px 30px -20px rgba(17,34,63,.3); }
.notify h2 { margin: 0 0 .2rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.notify .sub { margin-bottom: 1rem; }
.notify .field { margin-top: 1rem; }
.ok-line { margin: .6rem 0 0; font-weight: 700; color: var(--go-deep); }
.linkish { font: inherit; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 0 0 0 .3rem; }
.made .logo-mark { width: auto; height: 16px; }
.made .wordmark { font-weight: 800; }
.made .wordmark b { color: inherit; }

/* Erscheinungsbild des Betriebs */
:root { --brand: var(--go); --on-brand: #FFFFFF; }
.button-go { background: var(--brand); color: var(--on-brand); }
.button-go:hover:not(:disabled) { background: var(--brand); filter: brightness(.92); }
.biz-logo img { display: block; max-height: 44px; max-width: 200px; width: auto; }
.field input:focus { border-color: var(--brand); }
.vcode { border-left: 4px solid var(--brand); }

/* Sprache */
.lang-switch { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 2rem 0 .4rem; color: var(--muted, #4A5B78); }
.lang-switch svg { width: 18px; height: 18px; }
.lang-switch select { font: inherit; font-size: .95rem; font-weight: 600; color: inherit; background: transparent; border: 1px solid rgba(17,34,63,.15); border-radius: 10px; padding: .35rem .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] body, [dir="rtl"] .page { text-align: right; }
[dir="rtl"] .top { flex-direction: row-reverse; }
[dir="rtl"] .number, [dir="rtl"] .vcode, [dir="rtl"] input[type="tel"] { direction: ltr; unicode-bidi: isolate; }
/* Bewertung */
.review { margin-top: 1.4rem; background: #fff; border-radius: 20px; padding: 1.2rem 1.2rem 1.4rem; box-shadow: 0 10px 24px -18px rgba(17,34,63,.5); text-align: center; }
.review h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.review .button { margin-top: .6rem; }
.review .linkish { margin-top: .9rem; display: inline-block; }
.review form { margin-top: 1rem; text-align: start; }
.review textarea { width: 100%; font: inherit; border: 1px solid rgba(17,34,63,.18); border-radius: 12px; padding: .7rem; }
.geo-note { margin-top: .4rem !important; }

/* Auswahl: bei wem drankommen */
.member-pick { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.member-pick legend { font-weight: 700; margin-bottom: .5rem; }
.member-opt { position: relative; display: block; cursor: pointer; }
.member-opt input { position: absolute; opacity: 0; pointer-events: none; }
.member-opt > span { display: flex; flex-direction: column; gap: .1rem; padding: .8rem 1rem; border: 2px solid rgba(17,34,63,.14); border-radius: 14px; background: #fff; }
.member-opt small { color: #5B6880; font-size: .9rem; }
.member-opt input:checked + span { border-color: var(--brand, #0B8F5E); background: color-mix(in srgb, var(--brand, #0B8F5E) 8%, #fff); }
.member-opt input:focus-visible + span { outline: 3px solid var(--brand, #0B8F5E); outline-offset: 2px; }
.member-opt em { position: absolute; top: -9px; inset-inline-end: 12px; font-style: normal; font-size: .72rem; font-weight: 800; background: var(--brand, #0B8F5E); color: var(--on-brand, #fff); padding: .1rem .5rem; border-radius: 999px; }

/* Live-Wartezeit */
.biz-logo { max-height: 44px; max-width: 60%; }
.live-card { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 22px; padding: 1.3rem 1.4rem; margin: 1rem 0; box-shadow: 0 14px 30px -20px rgba(17,34,63,.5); }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand, #0B8F5E); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand, #0B8F5E) 50%, transparent); animation: livePulse 2s infinite; flex: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-label { margin: 0; font-weight: 700; color: #5B6880; }
.live-num { margin: 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.live-num b { font-size: 3.4rem; letter-spacing: -0.05em; line-height: 1; }
.live-num span { font-size: 1.15rem; font-weight: 700; color: #4A5B78; }
.live-state { margin: .3rem 0 0; font-weight: 600; }
.live-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.live-member { background: #fff; border-radius: 14px; padding: .7rem .9rem; display: flex; flex-direction: column; border: 2px solid transparent; }
.live-member span { color: #5B6880; font-size: .9rem; }
.live-member.shortest { border-color: var(--brand, #0B8F5E); }
.card-form { background: #fff; border-radius: 22px; padding: 1.2rem 1.3rem; margin: 1rem 0; box-shadow: 0 14px 30px -20px rgba(17,34,63,.5); }
.card-form h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.arrived-btn { margin-top: .8rem; }

/* Stempelkarte & Gastkonto */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: .7rem 0; max-width: 320px; }
.stamps span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px dashed rgba(17,34,63,.2); color: rgba(17,34,63,.15); font-size: 1.2rem; }
.stamps span.on { border: 0; background: var(--brand, #0B8F5E); color: var(--on-brand, #fff); }
.stamp-box { margin-top: 1.2rem; background: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 24px -18px rgba(17,34,63,.5); }
.stamp-box h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.stamp-due { background: var(--brand, #0B8F5E); color: var(--on-brand, #fff); border-radius: 12px; padding: .6rem .8rem; font-weight: 700; margin: .5rem 0 0; }
.h-sec { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.visit { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px solid rgba(17,34,63,.08); }
.visit span { color: #5B6880; font-size: .9rem; }
.check-line { display: flex; gap: .5rem; align-items: center; margin: .6rem 0; }
.danger-zone { margin-top: 1.5rem; }
.danger-zone summary { cursor: pointer; color: #5B6880; }
/* Angebote während der Wartezeit */
.offers { margin-top: 1.2rem; display: grid; gap: .6rem; }
.offers h2 { font-size: 1.1rem; margin: 0; }
.offer { background: #fff; border-radius: 16px; padding: .9rem 1rem; border-inline-start: 4px solid var(--brand, #0B8F5E); box-shadow: 0 10px 24px -20px rgba(17,34,63,.5); }
.offer strong { display: block; }
.offer em { font-style: normal; font-weight: 800; color: var(--brand, #0B8F5E); }
.offer p { margin: .2rem 0 0; color: #4A5B78; font-size: .95rem; }
.offer a { font-weight: 700; }
/* Dienstleistungen */
.service-opt small { display: block; color: #5B6880; }
