/* 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; }

/* Nachrichten vom Team */
.msg-box { margin-top: 1.2rem; background: #fff; border-radius: 20px; padding: 1rem 1.1rem; box-shadow: 0 10px 24px -18px rgba(17,34,63,.5); }
.msg-box h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.msg { position: relative; max-width: 88%; padding: .6rem .8rem 1.1rem; border-radius: 16px; margin-bottom: .5rem; font-weight: 600; line-height: 1.35; }
.msg small { position: absolute; right: .7rem; bottom: .25rem; font-size: .7rem; font-weight: 600; opacity: .6; }
.msg-staff { background: #EEF3FE; color: #11223F; border-top-left-radius: 4px; }
.msg-guest { margin-left: auto; background: var(--brand, #0B8F5E); color: var(--on-brand, #fff); border-top-right-radius: 4px; }
.msg-replies { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.reply-chip { font: inherit; font-weight: 700; font-size: .9rem; padding: .5rem .8rem; border-radius: 999px; border: 2px solid var(--brand, #0B8F5E); background: #fff; color: var(--brand, #0B8F5E); cursor: pointer; }
.reply-chip:disabled { opacity: .5; }

/* iPhone: Anleitung „Zum Home-Bildschirm“ */
.btn-ico{width:20px;height:20px;vertical-align:-4px;margin-right:8px}
body.no-scroll{overflow:hidden}
.ios-guide{position:fixed;inset:0;z-index:100;background:rgba(10,21,48,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:flex-end;justify-content:center;animation:ig-fade .25s ease}
.ios-guide[hidden]{display:none}
.ios-guide-sheet{width:100%;max-width:520px;background:#fff;color:#11223F;border-radius:26px 26px 0 0;padding:26px 22px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px -20px rgba(10,21,48,.5);animation:ig-up .35s cubic-bezier(.2,.8,.2,1);max-height:92vh;overflow-y:auto}
.ios-guide-bell{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#1557F0,#0AA6C9 55%,#13C27A);color:#fff;display:grid;place-items:center;margin-bottom:12px}
.ios-guide-bell svg{width:30px;height:30px}
.ios-guide h2{font-size:1.45rem;letter-spacing:-.02em;margin:0 0 6px}
.ios-guide .sub{color:#4A5B78;margin:0 0 16px;line-height:1.45}
.ios-steps{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:10px}
.ios-steps li{display:flex;gap:12px;align-items:flex-start;background:#F3F5F9;border-radius:16px;padding:13px 14px}
.ios-n{flex:0 0 28px;height:28px;border-radius:50%;background:#0A1530;color:#fff;font-weight:800;display:grid;place-items:center;font-size:.95rem}
.ios-steps b{font-size:1.02rem}
.ios-steps small{display:block;color:#4A5B78;margin-top:3px;line-height:1.4;font-size:.9rem}
.ios-ico{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#fff;border:1px solid #DCE3EE;color:#1557F0;vertical-align:middle;margin-left:4px}
.ios-ico svg{width:19px;height:19px}
.ios-ico-sm{width:24px;height:24px;border-radius:7px;margin:0 2px}
.ios-ico-sm svg{width:15px;height:15px}
.ios-guide .button{width:100%}
.ios-guide .linkish{display:block;width:100%;text-align:center;margin-top:12px;background:none;border:0;font:inherit;font-weight:700;color:#4A5B78}
.ios-guide-arrow{display:flex;flex-direction:column;align-items:center;color:#1557F0;margin-top:14px;animation:ig-bounce 1.2s ease-in-out infinite;pointer-events:none}
.ios-guide-arrow svg{width:34px;height:34px}
.ios-guide-arrow span{font-size:1.6rem;font-weight:900;line-height:1}
@keyframes ig-fade{from{opacity:0}to{opacity:1}}
@keyframes ig-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes ig-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(7px)}}
@media (prefers-reduced-motion: reduce){.ios-guide,.ios-guide-sheet,.ios-guide-arrow{animation:none}}

/* Große Aufforderung: Benachrichtigungen einschalten */
.push-hero{position:relative;margin-top:16px;padding:18px 18px 16px;border-radius:22px;background:#fff;border:2px solid transparent;background-image:linear-gradient(#fff,#fff),linear-gradient(110deg,#1557F0,#0AA6C9 55%,#13C27A);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:0 18px 40px -22px rgba(21,87,240,.55);animation:ph-in .45s cubic-bezier(.2,.8,.2,1)}
.push-hero[hidden]{display:none}
.ph-top{display:flex;gap:14px;align-items:flex-start}
.ph-icon{position:relative;flex:0 0 52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#1557F0,#0AA6C9 55%,#13C27A);color:#fff;display:grid;place-items:center}
.ph-icon svg{width:27px;height:27px;animation:ph-ring 2.6s ease-in-out infinite;transform-origin:50% 15%}
.ph-icon i{position:absolute;top:-4px;right:-4px;width:14px;height:14px;border-radius:50%;background:#E5484D;border:2.5px solid #fff}
.push-hero h2{font-size:1.2rem;margin:2px 0 4px;letter-spacing:-.015em}
.push-hero p{margin:0;color:#4A5B78;line-height:1.45}
.ph-btn{width:100%;margin-top:14px;font-size:1.05rem;padding-top:15px;padding-bottom:15px}
.ph-small{text-align:center;font-size:.82rem;margin-top:8px!important;color:#7C8AA3!important}
.push-sticky{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:50;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 10px 10px 14px;border-radius:16px;background:#0A1530;color:#fff;box-shadow:0 14px 34px -12px rgba(10,21,48,.6);animation:ph-up .3s ease;max-width:520px;margin:0 auto}
.push-sticky[hidden]{display:none}
.push-sticky span{display:flex;align-items:center;gap:8px;font-weight:700;font-size:.95rem;flex:1;min-width:0}
.push-sticky span svg{width:20px;height:20px;color:#5CF0B4}
.push-sticky button{flex:0 0 auto;font:inherit;font-weight:800;border:0;border-radius:11px;padding:10px 14px;color:#fff;background:linear-gradient(110deg,#1557F0,#0AA6C9 55%,#13C27A);cursor:pointer;white-space:nowrap}
@keyframes ph-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes ph-up{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes ph-ring{0%,70%,100%{transform:rotate(0)}75%{transform:rotate(14deg)}80%{transform:rotate(-12deg)}85%{transform:rotate(9deg)}90%{transform:rotate(-6deg)}95%{transform:rotate(3deg)}}
@media (prefers-reduced-motion: reduce){.push-hero,.push-sticky,.ph-icon svg{animation:none}}
