*{box-sizing:border-box} :root{font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#203b35;background:#f5f2e9;font-synthesis:none;--green:#203b35;--mint:#cce9b1;--orange:#ffbb72}body{margin:0}button{font:inherit;color:inherit;cursor:pointer;border:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #e88334;outline-offset:3px}button:active{transform:scale(.97)}button{transition:transform .13s,background .15s}#app{max-width:650px;margin:auto;padding:18px 18px calc(24px + env(safe-area-inset-bottom));min-height:100dvh}header{display:flex;align-items:center;justify-content:space-between;margin:5px 0 22px}header small,.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:800;text-transform:uppercase;color:#63776a}h1{font-size:29px;letter-spacing:-1.3px;margin:2px 0}h2{font-size:24px;letter-spacing:-.7px;margin:18px 0 12px}p{line-height:1.5} .sound{background:#fff;border-radius:50%;width:48px;height:48px;font-size:21px}nav{display:flex;background:#e5e7db;padding:5px;border-radius:19px;gap:5px;margin-bottom:20px}nav button{flex:1;padding:14px 5px;background:transparent;border-radius:14px;font-weight:750}nav .active{background:var(--green);color:#fff}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.table{background:white;border-radius:22px;text-align:left;padding:16px;min-height:148px;position:relative;border:2px solid transparent;display:flex;flex-direction:column;justify-content:space-between}.table.occupied{background:var(--mint)}.table.selected{border-color:var(--green)}.table strong{font-size:20px}.table .amount{font-size:23px;font-weight:800;letter-spacing:-.8px}.table small{font-size:13px;color:#52665a}.table-icon{font-size:24px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#acb7ad;margin-right:5px}.occupied .dot{background:#287744}.display{background:var(--green);color:#fff;border-radius:24px;padding:19px 22px;margin:14px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.display small{color:#cce9b1;font-weight:650}.display strong{font-size:clamp(32px,8vw,48px);letter-spacing:-2px;font-variant-numeric:tabular-nums}.row{display:flex;align-items:center;gap:12px;background:#fff;border-radius:17px;margin:8px 0;padding:8px;min-height:68px;touch-action:pan-y}.row .add{display:flex;align-items:center;gap:12px;flex:1;text-align:left;background:transparent;padding:0;min-width:0;min-height:52px}.food{width:50px;height:50px;display:grid;place-items:center;background:#f6efe0;border-radius:13px;font-size:30px;flex-shrink:0}.label{flex:1;font-weight:750}.price{font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}.qty{background:var(--mint);padding:5px 9px;border-radius:10px;font-weight:800}.minus{background:#f3eae2;border-radius:12px;width:44px;height:44px;font-size:23px}.primary,.secondary{width:100%;padding:16px;border-radius:16px;font-weight:800;font-size:17px;margin:6px 0;min-height:55px}.primary{background:var(--green);color:white}.secondary{background:white;border:1px solid #d6d9ce}.back{background:transparent;font-weight:750;padding:8px 0}.pay{background:var(--mint);color:var(--green)}.empty{padding:28px;background:#fff;border-radius:18px;text-align:center;color:#63776a}.note{font-size:13px;color:#63776a;text-align:center}.setup{max-width:440px;margin:28px auto}.setup img{width:88px;border-radius:24px}.setup section{background:white;border-radius:20px;padding:18px;margin:16px 0}.setup ol{padding-left:24px;line-height:1.7}.success{text-align:center;padding:50px 10px}.check{font-size:90px;color:#267345;animation:pop .4s ease-out}.success h1{font-size:42px}.flash{animation:pop .22s ease-out}@keyframes pop{0%{transform:scale(.9)}65%{transform:scale(1.04)}100%{transform:scale(1)}}dialog{width:min(92%,440px);border:0;border-radius:25px;padding:22px;color:var(--green)}dialog::backdrop{background:#203b35aa}dialog video{width:100%;border-radius:16px;background:#182b26;max-height:42vh}dialog button{display:block;width:100%;padding:14px;margin-top:10px;border-radius:12px;background:#e5e7db;font-weight:700}#manual{background:var(--mint)}.bottom{position:sticky;bottom:0;background:#f5f2e9;padding:6px 0 env(safe-area-inset-bottom)}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* 0.2: Restaurantname und Karten-Scanner */
header>div{min-width:0}.restaurant-title{font:inherit;letter-spacing:inherit;background:none;text-align:left;padding:0;overflow-wrap:anywhere}.restaurant-title span{font-size:.55em;color:#63776a;vertical-align:middle}.sound{flex-shrink:0}.name-setup{text-align:center;margin: max(28px,10vh) auto 0}.name-setup section{text-align:left}.name-setup label{display:block;font-size:13px;font-weight:750;margin-bottom:8px}.name-setup input{font:inherit;font-size:18px;width:100%;min-height:56px;border:1px solid #d6d9ce;background:#f5f2e9;color:var(--green);border-radius:14px;padding:12px;margin-bottom:10px}.name-setup input:focus{outline:2px solid #267345;outline-offset:2px}
#scan{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#101c18;color:white;overflow:hidden}#scan video{position:absolute;inset:0;width:100%;height:100%;max-height:none;border-radius:0;object-fit:cover}#scan .scan-top{position:absolute;top:0;left:0;right:0;text-align:center;padding:calc(16px + env(safe-area-inset-top)) 16px 24px;background:linear-gradient(#000b,transparent)}#scan .scan-top h2{margin:0;font-size:26px}#scan .scan-top p{margin:5px 0;font-size:13px}#scan .scan-center{position:absolute;top:47%;left:50%;width:85%;max-width:min(420px,65vh);transform:translate(-50%,-50%);text-align:center}#scan .scan-frame{aspect-ratio:85.6/54;border:3px dashed white;border-radius:16px;box-shadow:0 0 0 150vmax #0003}#scanstatus{position:relative;background:#101c18df;padding:9px 12px;border-radius:12px;font-size:16px;margin:14px auto 0}#scan .scan-bottom{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:440px;padding:12px 18px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#101c18b0)}#scan button{min-height:48px;color:var(--green)}#scan #cancel{background:#203b35ed;color:white;border:1px solid #ffffff55}@media(max-height:450px){#scan .scan-top{padding:8px}#scan .scan-top h2{font-size:18px}#scan .scan-top p{display:none}#scan .scan-center{top:42%;max-width:38vh}#scanstatus{font-size:12px;padding:5px;margin:4px 0}#scan .scan-bottom{display:flex;gap:8px;padding:5px;max-width:540px}#scan button{font-size:13px;padding:8px;min-height:36px}}

/* 0.3: Spielüberraschungen */
.optional{font-weight:400;color:#63776a}#play-event{max-height:calc(100dvh - 32px);overflow:auto;text-align:center;padding:24px;border-radius:25px;box-shadow:0 12px 65px #203b3533}#play-event[open]{animation:pop .22s ease-out}#play-event h2{margin:8px 0;font-size:27px;overflow-wrap:anywhere}#play-event p{margin:10px 0}#play-event .event-icon{font-size:52px;line-height:1.2}#play-event .primary{background:var(--green);color:white}#play-event .event-math{font-size:42px;letter-spacing:-1px;font-weight:850;margin:14px 0}#play-event .event-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#play-event .event-answers button{background:var(--mint);font-weight:850;font-size:27px;min-height:62px;margin:0;padding:10px 4px}#play-event .event-tables{grid-template-columns:repeat(2,minmax(0,1fr))}#play-event .event-tables button{font-size:18px}#play-event .event-tables small{display:block;font-size:12px;font-weight:600}#play-event button:disabled{opacity:.4;cursor:default}#play-event .event-stars{font-size:clamp(28px,9vw,44px);color:#b86b17;letter-spacing:.08em}#play-event .event-fries{font-size:clamp(22px,7vw,32px);margin:15px 0}#play-event .event-feedback{color:#63776a;min-height:1.5em}#play-event .event-skip,#play-event .event-pause{background:transparent;color:#52665a;font-size:14px;font-weight:600;padding:10px;margin:4px 0}#play-event .event-pause{font-size:12px;text-decoration:underline}

/* 0.4: Restaurantpost, Tisch-Navigation und Telefon */
.mail-button{position:relative;display:grid;place-items:center;background:white;border-radius:50%;width:48px;height:48px;flex-shrink:0;margin-left:10px}.mail-dot{position:absolute;right:-3px;top:-3px;background:#c93d36;color:white;border:2px solid #f5f2e9;border-radius:99px;min-width:21px;height:21px;padding:0 4px;font-size:11px;font-weight:850;display:grid;place-items:center}.mail-arrival{animation:mail-arrival .6s ease-in-out 3}@keyframes mail-arrival{0%,100%{transform:scale(1)}40%{transform:scale(1.13) rotate(-7deg)}70%{transform:scale(1.04) rotate(6deg)}}.app-footer{display:flex;align-items:center;gap:12px;margin-top:14px}.app-footer .note{flex:1;text-align:left;margin:0}.app-footer .sound{width:44px;height:44px;font-size:19px}#mail{width:min(94%,550px);max-height:calc(100dvh - 32px);overflow:auto;background:#f5f2e9;padding:20px} .mail-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.mail-header h2{margin:0}.mail-header button{width:44px;height:44px;border-radius:50%;font-size:26px;margin:0;padding:0;background:white}.mail-sub{font-size:14px;color:#63776a}.mail-list{display:grid;gap:8px}#mail .mail-row{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;text-align:left;background:white;padding:13px;margin:0;min-height:76px}.mail-row span:nth-child(2){min-width:0}.mail-row small,.mail-row strong{display:block;overflow-wrap:anywhere}.mail-row small{font-size:12px;color:#63776a}.mail-row strong{font-size:16px;margin-top:4px}.mail-row.unread{box-shadow:inset 4px 0 #267345;background:#e8f2db!important}.mail-icon{font-size:28px;text-align:center}#mail .back{background:transparent;width:auto;padding:12px 0;text-align:left}.mail-letter{background:#fff;border-radius:18px;padding:17px;overflow-wrap:anywhere}.mail-letter>small{color:#63776a;font-weight:700}.mail-letter h2{font-size:23px;margin:8px 0 14px}.newspaper{border:1px solid #d6d9ce;padding:13px;background:#fbf8ef}.newspaper small{font-weight:850;letter-spacing:.06em;border-bottom:2px solid var(--green);display:block;padding-bottom:9px}.paper-icon{font-size:31px;text-align:center;background:#cce9b1;padding:12px;margin-top:10px}.newspaper h2{font-family:Georgia,serif}.mail-stars{font-size:clamp(25px,8vw,42px);color:#b86b17;letter-spacing:.06em;text-align:center}#play-event.phone-event{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;background:#203b35;color:white;padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));box-shadow:none}#play-event.phone-event[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}#play-event.phone-event .event-icon{font-size:78px;animation:mail-arrival .6s ease-in-out 3}#play-event.phone-event button{max-width:380px}#play-event.phone-event .answer-call{background:#cce9b1;color:#203b35}#play-event.phone-event .decline-call{background:#a83232;color:white}#play-event.phone-event .event-skip{display:none}#play-event.phone-event .event-pause{color:#e1e7dc}
#app:has(> .app-footer){display:flex;flex-direction:column}.app-footer{margin-top:auto;padding-top:14px}#app>header,#app>nav,#app>.row,#app>.grid,#app>.display,#app>.bottom{flex-shrink:0}
/* 0.5: navigation, discreet sound control and play telephone */
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-actions .mail-button{margin-left:0}.phone-button{display:grid;place-items:center;background:#fff;border-radius:50%;width:48px;height:48px;flex-shrink:0}.table-back{align-self:flex-start;text-align:left;min-height:42px;margin:-12px 0 4px}.app-footer .sound{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;height:auto;min-height:44px;padding:8px 0 8px 8px;background:transparent;border-radius:0;font-size:13px;color:#52665a;white-space:nowrap}.app-footer .sound svg{flex-shrink:0}#phone{width:min(94%,550px);max-height:calc(100dvh - 32px);overflow:auto;background:#f5f2e9;padding:20px}#phone .phone-contacts{display:grid;gap:8px}#phone .phone-contacts button{display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:12px;background:white;text-align:left;padding:12px;margin:0;min-height:76px}#phone .contact-icon{font-size:34px;text-align:center}#phone .phone-contacts strong,#phone .phone-contacts small{display:block}#phone .phone-contacts small{font-size:13px;font-weight:500;color:#63776a;margin-top:4px}#phone .contact-dial{color:#267345;font-size:23px}#phone.phone-full{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;background:#203b35;color:white;padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));text-align:center}#phone.phone-full[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}#phone .phone-avatar{font-size:84px;line-height:1.3}#phone .ringing{animation:mail-arrival .6s ease-in-out 3}#phone.phone-full h2{font-size:29px;margin:4px 0}#phone.phone-full p{margin:8px 0 18px;max-width:420px}#phone .call-caption{font-size:20px;background:#ffffff14;padding:18px;border-radius:18px}#phone.phone-full button{max-width:380px;min-height:52px}#phone .pickup{background:#cce9b1;color:#203b35}#phone .hangup{background:#a83232;color:white}#phone .replay{background:#ffffff1e;color:white}#phone .phone-tables{display:grid;grid-template-columns:1fr 1fr;gap:8px}#phone .phone-tables button{background:var(--mint);margin:0}#phone .phone-tables small{display:block;font-size:12px;margin-top:5px}#phone button:disabled{opacity:.4}@media(max-width:360px){.header-actions{gap:5px}.phone-button,.header-actions .mail-button{width:42px;height:42px}header h1{font-size:25px}}

/* 0.6: ruhiger Kopfbereich mit voller Namensbreite */
header.restaurant-header{display:block;margin:5px 0 24px}.header-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.header-top small{letter-spacing:.11em;line-height:1.35}.restaurant-header h1{font-size:clamp(29px,7.7vw,42px);line-height:1.12;letter-spacing:-.045em;margin:0}.restaurant-header .restaurant-title{display:block;width:100%;padding:2px 0 4px;line-height:inherit;overflow-wrap:anywhere}.restaurant-header .restaurant-title:active{transform:none;opacity:.75}.mail-header h2{min-width:0;overflow-wrap:anywhere;font-size:clamp(21px,5.5vw,26px)}.mail-header button{flex-shrink:0}

/* Produktillustrationen */
.food:has(img){background:transparent}
.food img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.paper-icon img{width:64px;height:64px;object-fit:contain;vertical-align:middle;margin:0 3px}

/* 0.8: Tischillustration und kompakter Footer */
.table-icon{display:block;width:66px;height:58px;line-height:0;margin-bottom:4px}.table-icon img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.app-footer .note{white-space:nowrap}

/* 0.9: Tischansicht, Installation und Rechtliches */
.table{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);align-items:center;gap:6px;justify-content:initial;min-height:148px;padding:14px}
.table-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.table .amount{font-size:clamp(16px,4.1vw,23px);white-space:nowrap;letter-spacing:-.055em}
.table-icon{width:100%;height:auto;aspect-ratio:1.05;max-width:140px;justify-self:end;margin:0}
.table-icon img{width:100%;height:100%;object-fit:contain}
@media(max-width:440px){.table{padding:10px;gap:3px;min-height:124px;grid-template-columns:minmax(0,1.05fr) minmax(0,.85fr)}.table strong{font-size:17px}.table small{font-size:11px}.table .dot{width:7px;height:7px;margin-right:3px}}
@media(max-width:350px){.table{padding:8px}.table strong{font-size:15px}.table .amount{font-size:15px}.table small{font-size:10px}}
.install-intro{text-align:center}.install-intro img{display:block;width:104px;height:104px;margin:0 auto 14px}.install-intro h1{margin:0}.install-intro h2{margin:12px 0 6px}.install-intro p{margin:6px 0 18px}
.legal-footer{text-align:center;margin:4px 0 0;color:#63776a;font-size:12px;line-height:1.5}.legal-links{display:flex;align-items:center;justify-content:center;gap:8px}.legal-links button{font-size:12px;min-height:36px;padding:4px;background:none;color:#52665a;text-decoration:underline;text-underline-offset:2px}.legal-footer>a{color:#63776a;text-decoration:none}.setup .legal-footer{margin:20px 0 0}.legal-dialog{max-height:85dvh;overflow:auto}.legal-dialog h2{margin-top:0}.legal-section h3{font-size:16px;margin:16px 0 5px}.legal-section p{white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin:0}.legal-dialog>.primary{width:100%;margin-top:16px;background:var(--green);color:white}

/* 0.10: reduzierte Tischkarten und unabhängiger Spielscanner */
.table{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;overflow:hidden;border:0;min-height:0;text-align:left;border-radius:20px}
.table .table-heading{display:block;width:100%;padding:10px 13px;background:var(--green);color:white;font-size:clamp(18px,5vw,23px);line-height:1.2;letter-spacing:-.025em}
.table-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(30px,.68fr);align-items:center;gap:4px;padding:13px;min-height:93px;width:100%}
.table-info{gap:5px}.table .amount{font-size:clamp(19px,4.9vw,27px);letter-spacing:-.055em;line-height:1.1}.table small{font-size:clamp(13px,3.5vw,16px);font-weight:650;white-space:nowrap}.table .dot{width:8px;height:8px;margin-right:4px}
.table-icon{width:100%;max-width:94px;aspect-ratio:1;justify-self:end;color:#547568}.table-icon svg{display:block;width:100%;height:100%}.occupied .table-icon{color:#28664b}
nav button{display:flex;align-items:center;justify-content:center;gap:7px;--icon-bg:#e5e7db}nav .active{--icon-bg:var(--green)}nav svg,.pay svg{width:23px;height:23px;flex-shrink:0}.pay{display:flex;align-items:center;justify-content:center;gap:8px}
.free-scan-button{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:var(--mint);border-radius:50%}.free-scan-button svg{width:26px;height:26px}
#card-result{text-align:center}#card-result .card-play-icon{width:110px;margin:12px auto 16px;animation:pop .35s ease-out}#card-result .primary{background:var(--green);color:white}
@media(max-width:380px){.table .table-heading{padding:10px}.table-body{padding:10px;grid-template-columns:minmax(0,1fr) minmax(25px,.45fr)}.table .amount{font-size:18px}.table small{font-size:13px}.header-actions{gap:5px}.free-scan-button,.phone-button,.header-actions .mail-button{width:42px;height:42px}}
@media(max-width:340px){.table-body{padding:8px;grid-template-columns:minmax(0,1fr) 29px}.table .amount{font-size:17px}.table small{font-size:12px}.table .dot{width:6px;margin-right:3px}}

/* 0.11: klassische Sprechblase im Telefonat */
#phone .call-bubble{position:relative;width:100%;max-width:380px;margin:12px auto 16px;flex-shrink:0;text-align:left;background:#fffdf5;color:var(--green);border-radius:20px;padding:18px 20px;box-shadow:0 6px 20px #10261e24}
#phone .call-bubble::before{content:"";position:absolute;top:-13px;left:calc(50% - 12px);width:24px;height:20px;background:#fffdf5;clip-path:polygon(50% 0,100% 100%,0 100%)}
#phone.phone-full .call-bubble .call-caption{font-size:clamp(18px,5vw,22px);font-weight:550;line-height:1.45;margin:0;padding:0;background:none;border-radius:0;overflow-wrap:anywhere}

/* 0.12 – RestoKids: packaging palette; scoped contrast for light surfaces */
:root{--green:#063f32;--mint:#d8f45c;--cream:#faf4e5;--muted-light:#d0e4d9;background:var(--green);color:var(--green);--display-font:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif}
#app{color:var(--cream);padding-top:max(18px,env(safe-area-inset-top))}
.restaurant-header{margin-bottom:24px}
.header-top small{color:var(--muted-light);font-size:10px;letter-spacing:.10em}
.restaurant-header h1{font-family:var(--display-font);font-size:clamp(38px,10vw,60px);font-weight:900;letter-spacing:-.055em;line-height:1.12}
.restaurant-header .restaurant-title{color:white;font-weight:inherit;letter-spacing:inherit}
.restaurant-header .resto-prefix,.restaurant-header .resto-name{font-size:1em;vertical-align:baseline;color:white}
.restaurant-header .resto-name{color:var(--mint)}
#app>h2,.setup h1,.setup h2,.success h1,.success h2{font-family:var(--display-font);font-weight:850}
#app>.eyebrow{color:var(--muted-light)}
.header-actions button{color:var(--green);background:var(--cream)}
.header-actions .free-scan-button{background:var(--mint)}
.mail-dot{border-color:var(--green)}
.grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.table,.table.occupied{padding:16px;min-height:144px;gap:7px;color:var(--green);border-radius:21px;box-shadow:0 3px 0 #002b2255}
.table{background:var(--cream)}.table.occupied{background:var(--mint)}
.table .table-heading{background:none;color:var(--green);padding:0;font-family:var(--display-font);font-weight:850;font-size:clamp(19px,5.5vw,25px);line-height:1.2}
.table-body{display:block;min-height:0;padding:0;flex:1;width:100%;align-content:center}
.table-info{gap:5px}
.table .amount{font-size:clamp(23px,6vw,33px);font-weight:850;letter-spacing:-.045em;line-height:1.1;font-variant-numeric:tabular-nums}
.table small{font-size:clamp(13px,3.7vw,16px);color:#456345;white-space:nowrap;font-weight:650}
.table-icon{display:none}.table .dot{background:#789184}.occupied .dot{background:#267345}
#app>.row,#app>.empty,#app>.display,#app>nav,.setup section{color:var(--green)}
#app>.row,#app>.empty,.setup section{background:var(--cream)}
#app>.row{box-shadow:0 2px 0 #002b2233}
#app>.row .add{color:var(--green)}
#app>.display{background:var(--cream);border:0;color:var(--green)}
#app>.display small{color:#456345}
#app>nav{background:#e0ead8}nav .active{background:var(--mint);color:var(--green);--icon-bg:var(--mint)}
nav button{--icon-bg:#e0ead8}
#app>.back{color:var(--cream)}
#app .bottom{background:var(--green)}
#app .primary{background:var(--mint);color:var(--green)}
#app .secondary{background:var(--cream);color:var(--green)}
#app .app-footer .note,#app .app-footer .sound,#app .legal-footer,#app .legal-links button,#app .legal-footer>a{color:var(--muted-light)}
.setup section .note{color:#52665a}.setup section .secondary{border:1px solid #b4c6ad}
.name-setup input{background:#fffdf7;color:var(--green)}
.success .check{color:var(--mint)}
#phone.phone-full,#play-event.phone-event{background:var(--green)}
#phone .pickup,#play-event.phone-event .answer-call{background:var(--mint);color:var(--green)}
#mail .mail-row.unread{background:#eaf5d0!important}
#mail,#phone:not(.phone-full),#play-event:not(.phone-event),#legal,#card-result{background:var(--cream);color:var(--green)}
@media(max-width:360px){.table,.table.occupied{padding:12px;min-height:130px}.table .amount{font-size:clamp(20px,6.2vw,24px)}.header-top small{font-size:9px;letter-spacing:.06em}}

/* 0.13 – Tischkarten und dezente rechtliche Links */
.table:not(.occupied){background:rgba(250,244,229,.78)}
.table .table-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
.table-cutlery{display:block;width:23px;height:23px;flex:0 0 23px;opacity:.8}
.table-cutlery svg{display:block;width:100%;height:100%}
.table .amount{font-size:clamp(26px,7vw,37px)}
#app .legal-footer,#app .legal-links button,#app .legal-footer>a{color:#92b3a4;text-decoration:none}
@media(max-width:360px){.table .amount{font-size:clamp(22px,7.1vw,26px)}.table-cutlery{width:19px;height:19px;flex-basis:19px}}

/* 0.14 – Hinzufügen-Symbol direkt am Artikelnamen */
.row .order-label{display:flex;align-items:center;gap:6px;min-width:0}
.row .order-plus{display:block;width:16px;height:16px;flex:0 0 16px}

/* 0.15 – Bestellabschluss erst nach dem ersten Artikel */
.bottom.finish-reveal{animation:finishReveal .28s ease-out both}
@keyframes finishReveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

/* 0.17 – Bildaufgaben in der Kassenpanne */
#play-event .event-picture-choice{display:grid;place-items:center;min-height:76px;padding:6px}
#play-event .event-picture-choice img{display:block;width:100%;height:clamp(52px,17vw,90px);object-fit:contain}
#play-event .event-count-food{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-width:280px;margin:12px auto 18px}
#play-event .event-count-food img{display:block;width:100%;height:clamp(44px,15vw,72px);object-fit:contain}

/* 0.18 – Claim direkt am Restaurant-Schriftzug */
.restaurant-header .restaurant-claim{margin:0;color:var(--muted-light);font-size:clamp(14px,3.8vw,17px);font-weight:650;line-height:1.25;letter-spacing:0}
#app>header:has(.restaurant-claim){margin-bottom:10px}

/* 0.20 – freie Spielbeträge in der Kassenansicht */
#app .free-amount-button{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:1px solid #a1c6b6;color:var(--cream);min-height:48px;padding:10px;margin-top:12px;font-size:16px}
.free-amount-button span{font-size:22px;line-height:1}
#app .free-amount-row .free-amount-icon svg{width:30px;height:30px}
#free-amount{background:var(--cream);color:var(--green);max-height:calc(100dvh - 24px);padding:clamp(14px,5vw,22px)}
#free-amount h2{text-align:center;margin:0 0 12px}
#free-amount .free-amount-display{background:var(--mint);border-radius:16px;padding:14px 12px;text-align:right;font-size:clamp(30px,9vw,45px);font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.035em;line-height:1.15}
#free-amount .free-amount-hint{font-size:13px;text-align:center;margin:6px 0 12px;color:#456345}
#free-amount .free-amount-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#free-amount .free-amount-keys button{margin:0;background:#e0ead8;min-height:49px;padding:8px;font-size:25px;font-weight:800;line-height:1.2}
#free-amount .free-amount-keys button[data-free=C],#free-amount .free-amount-keys button[data-free=back]{font-size:21px;background:#e8e2d4}
#free-amount>.primary{background:var(--mint);color:var(--green);margin:14px 0 0}
#free-amount>.primary:disabled{opacity:.48;cursor:default}
#free-amount>.secondary{background:transparent;color:var(--green);border:0;margin:4px 0 0;min-height:44px}

/* Menüs als zusätzliche Angebote */
#app>.row.offer-row{box-shadow:inset 0 0 0 2px #d8f45c,0 2px 0 #002b2233;}
.row.offer-row .label>span{overflow-wrap:anywhere;}

/* 0.23 – dezenter Downloadhinweis auf der Tischübersicht */
#app .print-materials-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:fit-content;max-width:100%;min-height:44px;margin:0 auto;padding:4px 0;text-align:center;text-decoration:none;color:var(--mint);line-height:1.35;-webkit-tap-highlight-color:transparent}
.print-materials-title{display:flex;align-items:center;justify-content:center;gap:7px;font-size:clamp(13px,3.9vw,15px);font-weight:650}
.print-materials-title svg{display:block;width:18px;height:18px;flex:0 0 18px}
.print-materials-link:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:4px}

/* 0.24 – Abstand zu den Tischen und dezentes Info-Symbol */
#app>.print-materials-area{flex:0 0 auto;display:flex;align-items:center;justify-content:center;padding:8px 0 0}
#app:has(>.print-materials-area)>.app-footer{flex:1 0 auto;margin-top:0;padding:32px 0 10px}
#app .app-footer .note{display:flex;align-items:center;gap:5px}
#app .app-footer .note svg{flex:0 0 18px;display:block}

.article-scan-button{display:flex;align-items:center;justify-content:center;gap:9px;margin:0}.article-scan-button svg{width:22px;height:22px}#scanstatus.article-confirmed{background:#d8f45c;color:#063f32;font-weight:700}

/* 0.27 – Erfolgszeichen im bestehenden Vollbildscanner */
#scan .scan-frame{position:relative}
#article-scan-check{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:var(--mint);font-size:clamp(48px,23vw,90px);line-height:1;text-shadow:0 2px 12px #063f32,0 0 25px #063f32}
#article-scan-check[hidden]{display:none}

/* Artikel-Scan: Anleitung im Kopf, Rückmeldung und Summe getrennt. */
#scan.article-mode #scanstatus{white-space:pre-line}
#scan #article-scan-hint[hidden]{display:none}
@media(max-height:450px){#scan.article-mode #article-scan-hint:not([hidden]){display:block;font-size:12px;margin:2px 0}}

/* 0.31 – freiwillige Installationshilfe mit einheitlichen Symbolen */
#app>.install-link{display:flex;align-items:center;justify-content:center;gap:6px;align-self:center;flex-shrink:0;min-height:44px;padding:8px 12px;margin:0 auto;background:none;color:var(--muted-light);font-size:13px;font-weight:500;line-height:1.35;border-radius:8px}
.install-link svg{width:17px;height:17px;flex-shrink:0}
#app:has(>.install-link)>.print-materials-area{padding-top:6px}
.install-link:focus-visible,.install-close:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.install-setup{position:relative;margin:8px auto 0;padding:12px 0 0;color:var(--cream)}
.install-setup .install-close{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;padding:10px;border-radius:50%;background:transparent;color:var(--muted-light)}
.install-close svg{width:23px;height:23px}
.install-setup .install-intro{padding:8px 16px 0}
.install-setup .install-intro img{width:76px;height:76px;border-radius:20px;margin:0 auto 12px}
.install-setup .install-intro h1{font-size:36px;line-height:1.1;color:white;letter-spacing:-.055em}
.install-brand-kids{color:var(--mint)}
.install-setup .install-intro h2{font-size:23px;margin:10px 0 6px;line-height:1.2}
.install-setup .install-intro p{font-size:14px;color:var(--muted-light);margin:6px 0 20px}
.install-setup .install-steps{list-style:none;padding:0;margin:0 0 14px;border-top:1px solid #ffffff30}
.install-steps li{display:flex;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid #ffffff30;line-height:1.4}
.install-step-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;background:#ffffff12;border-radius:13px;color:var(--mint)}
.install-step-icon svg{width:26px;height:26px}
.install-steps li>div{min-width:0}
.install-steps strong{display:block;font-size:15px;color:white;font-weight:750}
.install-steps p{font-size:13px;line-height:1.4;color:var(--muted-light);margin:3px 0 0}
.install-storage-note{font-size:12px;line-height:1.45;color:var(--muted-light);text-align:center;margin:6px 8px 0}
.install-setup .legal-footer{margin-top:8px}

/* Rückkehr zur zentralen Spielwelten-Auswahl */
#app>.worlds-link{display:flex;align-items:center;justify-content:center;align-self:center;flex-shrink:0;min-height:44px;padding:8px 12px;margin:0 auto;background:none;color:var(--muted-light);font-size:13px;font-weight:600;line-height:1.35;border-radius:8px}
.worlds-link:focus-visible{outline:2px solid var(--mint);outline-offset:2px}

/* Dezenter Rückweg in der Installationshilfe */
#app .install-worlds-link{display:block;width:fit-content;max-width:100%;margin:0 auto 6px;padding:8px 12px;min-height:44px;background:transparent;color:var(--muted-light);font-size:13px;font-weight:600;line-height:1.35;text-decoration:underline;text-underline-offset:3px;border-radius:8px}
#app .install-worlds-link:focus-visible{outline:2px solid var(--mint);outline-offset:2px}

/* Einmalige Spielvorbereitung */
.preparation-setup{text-align:center;margin: max(16px,5vh) auto 0}
.preparation-setup>h1{font-size:clamp(26px,7vw,34px);line-height:1.15;margin:12px 0 8px}
.preparation-setup>p{color:var(--muted-light);margin:0 0 18px;font-size:15px;line-height:1.5}
.preparation-list{display:grid;gap:10px;text-align:left;margin:16px 0}
.preparation-list label{display:flex;align-items:center;gap:13px;border:1px solid #ffffff30;border-radius:16px;padding:14px;background:#ffffff0b;min-height:60px;font-size:16px;font-weight:650;line-height:1.4;cursor:pointer}
.preparation-list label:has(input:checked){border-color:var(--mint);background:#ffffff12}
.preparation-list input{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:var(--mint);cursor:pointer}
.preparation-list input:focus-visible{outline:2px solid var(--mint);outline-offset:3px}

/* Charakterporträts und plastische Sprechblasen */
#phone .contact-icon{display:grid;place-items:center;width:55px;height:55px;line-height:1}
#phone .contact-icon img{display:block;width:55px;height:55px;object-fit:cover;border-radius:13px;box-shadow:0 2px 6px #0002}
#phone .phone-avatar{flex-shrink:0;display:grid;place-items:center}
#phone .phone-avatar img{display:block;width:clamp(100px,36vw,162px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:25%;border:3px solid #fff9e9;box-shadow:0 5px 0 #0002,0 12px 25px #0003}
#phone.phone-full[open]{overflow-y:auto;justify-content:safe center}
#phone.phone-full h2,#phone.phone-full button{flex-shrink:0}
#phone .call-bubble{background:linear-gradient(180deg,#fffdf6,#fff0d9);border-radius:24px;padding:20px 22px;box-shadow:0 5px 0 #d9c4a4,0 12px 24px #0003,inset 0 1px 0 #fff;border:1px solid #fff7e6;margin:14px auto 20px}
#phone .call-bubble::before{background:#fffdf6;top:-15px;height:22px;width:28px;left:calc(50% - 14px)}
#phone.phone-full .call-bubble .call-caption{font-size:clamp(18px,4.7vw,22px);line-height:1.45;font-weight:600}
@media(max-height:650px){#phone.phone-full[open]{justify-content:flex-start;gap:6px;padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:calc(16px + env(safe-area-inset-bottom))}#phone .phone-avatar img{width:clamp(82px,23vh,120px)}#phone .call-bubble{padding:14px 18px;margin:10px auto 14px}#phone.phone-full .call-bubble .call-caption{font-size:18px}}
