/* Cosmie – App (Gäste und Betriebe) */
html, body { height: 100%; }
body { background: #E9E7F1; overscroll-behavior-y: none; }
.shell { max-width: 460px; margin: 0 auto; min-height: 100%; background: var(--creme); position: relative; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(15,18,34,.04), 0 30px 80px rgba(15,18,34,.08); }
@media (min-width: 520px) { body { padding: 24px 0; } .shell { min-height: calc(100vh - 48px); border-radius: 36px; overflow: hidden; } }
.screen { flex: 1; padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 96px); display: flex; flex-direction: column; gap: 16px; animation: einblenden .22s ease; }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.kopf h1 { font-size: 32px; font-weight: 800; letter-spacing: -.045em; }
.kopf-btns { display: flex; gap: 8px; }
.rund { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linie); background: #fff; display: grid; place-items: center; position: relative; flex: none; color: var(--nacht); text-decoration: none; }
.rund svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rund .punkt { position: absolute; top: 6px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--koralle); border: 2px solid #fff; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--violett); background: none; border: 0; padding: 8px 0; text-decoration: none; }
.unter { font-size: 14px; color: var(--text-3); }

/* Tab-Leiste */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-top: 1px solid var(--linie); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px); z-index: 50; }
@media (min-width: 520px) { .tabs { bottom: 24px; border-radius: 0 0 36px 36px; } }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text-4); text-decoration: none; padding: 6px 0; border-radius: 12px; position: relative; }
.tabs a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.is-active { color: var(--violett); }
.tabs a .zahl { position: absolute; top: 2px; left: 56%; background: var(--koralle); color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 6px; }

/* Suche & Chips */
.suchfeld { position: relative; }
.suchfeld input { padding: 13px 14px 13px 42px; border-radius: 14px; background: #fff; }
.suchfeld svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--text-4); fill: none; stroke-width: 2; }
.chipreihe { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.chipreihe::-webkit-scrollbar { display: none; }

/* Gestapelte Karten */
.stapel { display: flex; flex-direction: column; }
.stapel .s-karte { position: relative; display: block; text-decoration: none; transition: transform .2s ease; }
.stapel .s-karte:not(:last-child) { height: 74px; }
.stapel .s-karte:hover, .stapel .s-karte:focus-visible { transform: translateY(-6px); }
.stapel .s-karte:last-child { margin-bottom: 8px; }
.s-karte .pass { box-shadow: 0 -2px 10px rgba(15,18,34,.08), 0 10px 28px rgba(15,18,34,.12); }
.banner { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--linie); border-radius: 18px; padding: 12px 14px; text-decoration: none; color: inherit; }
.banner i { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.banner span { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.banner b { display: block; font-size: 14px; }
.banner em { font-style: normal; font-size: 12px; color: var(--text-4); align-self: flex-start; }

/* Listen */
.liste { background: #fff; border: 1px solid var(--linie); border-radius: 20px; overflow: hidden; }
.eintrag { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--linie); text-decoration: none; color: inherit; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.eintrag:first-child { border-top: 0; }
.eintrag .tile { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.eintrag .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eintrag .txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .txt small { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .rechts { flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--violett); }
.abschnitt { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; margin-top: 4px; }

/* Deals */
.deal { background: #fff; border: 1px solid var(--linie); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.deal-bild { height: 112px; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; position: relative; overflow: hidden; }
.deal-bild svg.deko { position: absolute; right: -40px; top: -40px; width: 200px; opacity: .25; }
.deal-bild .rabatt { position: relative; background: #fff; color: var(--nacht); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 5px 10px; }
.deal-bild .mono { position: relative; font-weight: 800; font-size: 13px; opacity: .9; }
.deal-text { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.deal-text b { font-size: 16px; letter-spacing: -.01em; }
.deal-text small { font-size: 13px; color: var(--text-3); }
.deal-preis { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.deal-preis strong { font-size: 20px; letter-spacing: -.02em; }
.deal-preis s { font-size: 13px; color: var(--text-4); }

.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #EDEBF3; border-radius: 14px; padding: 4px; gap: 4px; }
.segment button { border: 0; background: transparent; border-radius: 10px; padding: 9px 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.segment button.is-active { background: #fff; color: var(--nacht); box-shadow: 0 1px 3px rgba(15,18,34,.1); }

/* Detail */
.detail-pass .pass-qr { width: 168px; padding: 10px; }
.fakten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fakten div { background: #fff; border: 1px solid var(--linie); border-radius: 16px; padding: 12px 14px; }
.fakten span { display: block; font-size: 12px; color: var(--text-3); }
.fakten b { font-size: 17px; letter-spacing: -.02em; }
.wallet-btn { background: #000; color: #fff; border-radius: 12px; padding: 13px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 15px; border: 0; width: 100%; }
.wallet-btn .w { width: 26px; height: 19px; border-radius: 4px; background: linear-gradient(180deg, #34C3F2 0 25%, #FDBA2C 25% 50%, #3DD27E 50% 75%, #FF5C5C 75%); }
.gutschein-ticket { background: #fff; border: 1px solid var(--linie); border-radius: 24px; overflow: hidden; }
.gutschein-ticket .oben { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.gutschein-ticket .riss { height: 0; border-top: 2px dashed var(--linie-2); margin: 0 18px; position: relative; }
.gutschein-ticket .riss::before, .gutschein-ticket .riss::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--creme); }
.gutschein-ticket .riss::before { left: -30px; } .gutschein-ticket .riss::after { right: -30px; }
.gutschein-ticket .unten { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gutschein-ticket .qr { width: 190px; }
.code { font-size: 22px; font-weight: 800; letter-spacing: .12em; }

/* Start */
.start { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 28px) 22px calc(env(safe-area-inset-bottom) + 28px); background: var(--violett); color: #fff; position: relative; overflow: hidden; min-height: 100vh; }
@media (min-width: 520px) { .start { min-height: calc(100vh - 48px); } }
.start .logo { font-size: 30px; color: #fff; }
.start h1 { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.05em; position: relative; }
.start p { font-size: 17px; line-height: 1.5; color: #E6E0FF; position: relative; }
.wahl { position: relative; display: flex; flex-direction: column; gap: 10px; }
.wahl button { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; border-radius: 20px; padding: 16px; background: #fff; color: var(--nacht); }
.wahl button.dunkel { background: rgba(255,255,255,.14); color: #fff; }
.wahl button i { flex: 0 0 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-style: normal; font-size: 20px; background: var(--violett-zart); }
.wahl button.dunkel i { background: rgba(255,255,255,.16); }
.wahl b { display: block; font-size: 16px; }
.wahl small { font-size: 13px; opacity: .75; }

/* Bottom Sheet: Modals in der App kommen von unten */
.modal-bg { align-items: flex-end; padding: 0; }
.modal { width: 100%; max-width: 460px; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: hoch .25s cubic-bezier(.2,.9,.3,1); }
@keyframes hoch { from { transform: translateY(40px); opacity: .5; } }
.zahlart { display: flex; align-items: center; gap: 12px; border: 1px solid var(--linie-2); border-radius: 14px; padding: 14px; background: #fff; width: 100%; text-align: left; font-weight: 600; }
.zahlart.is-active { border-color: var(--violett); box-shadow: 0 0 0 3px rgba(91,61,245,.12); }
.zahlart .logo-z { width: 44px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }

/* Betrieb */
.betrieb-kopf { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--linie); border-radius: 16px; padding: 10px 12px; }
.betrieb-kopf .mono { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.scan-flaeche { background: var(--nacht); border-radius: 26px; aspect-ratio: 1; position: relative; overflow: hidden; display: grid; place-items: center; color: #A9ACC4; text-align: center; }
.scan-flaeche video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-flaeche .rahmen { position: absolute; inset: 18%; border: 3px solid #fff; border-radius: 26px; box-shadow: 0 0 0 999px rgba(15,18,34,.35); }
.scan-flaeche .info { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 24px; font-size: 14px; }
.vorlagen { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
.vorlagen::-webkit-scrollbar { display: none; }
.auto-zeile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-top: 1px solid var(--linie); }
.auto-zeile:first-child { border-top: 0; }
.auto-zeile .ic { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; }
.auto-zeile .txt { flex: 1; min-width: 0; }
.auto-zeile .txt b { font-size: 15px; display: block; }
.auto-zeile .txt small { font-size: 13px; color: var(--text-3); line-height: 1.4; display: block; margin-top: 3px; }
.leer-zustand { text-align: center; padding: 40px 20px; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
.leer-zustand svg { width: 80px; opacity: .9; }

.ziel-info { background: var(--violett-zart); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--text-2); }
.ziel-info b { color: var(--violett); }
.deal-bild svg.deko.motiv { width: 150px; right: -18px; top: -22px; opacity: .3; transform: rotate(-12deg); }
