/* Sorvida – App-Gefühl und kompakte Handy-Größen (zuletzt geladen) */
/* 20.11.2026: body mit overflow-x:hidden wurde selbst zum (nicht scrollbaren) Scroll-Bereich und schluckte am PC das Mausrad
   (overscroll-behavior verhinderte die Weitergabe an die Seite). Jetzt: clip am body, Gummiband-Sperre an html. */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden;overscroll-behavior-y:none}
body{overflow-x:clip;-webkit-tap-highlight-color:transparent;max-width:100vw}
.shell,.main,.page{max-width:100vw;min-width:0}
/* App statt Webseite: keine Textauswahl und kein Kontextmenü auf Bedienelementen */
button,a,.tab,.chip,.room,.task,.tile,.mtile,.pick,.sq,.si,.mr,.kpi,.bottom,.side,.top{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable]{-webkit-user-select:text;user-select:text}
/* Eingabefelder mindestens 16px, sonst zoomt das iPhone beim Antippen */
input,select,textarea{font-size:16px!important}

/* Drücken: eindrücken und aufblitzen */
.tapfx{position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:0;pointer-events:none;animation:tapfx .42s cubic-bezier(.22,1,.36,1)}
@keyframes tapfx{0%{opacity:.2}100%{opacity:0}}
.pressing{transform:scale(.965)!important;transition:transform .08s ease-out!important}
button,a,.room,.task,.tile,.mtile,.pick,.tab,.sq,.si,.mr,.kpi,.hb-row,.chk{transition:transform .18s cubic-bezier(.22,1,.36,1)}
.btn.primary .tapfx,.btn.dark .tapfx,.bottom .tapfx,.side .tapfx,.mchip .tapfx,.kpi.dark .tapfx{background:#fff}
@media(prefers-reduced-motion:reduce){.tapfx{animation:none}.pressing{transform:none!important}}

/* Installationshinweis */
.install{margin-top:14px;background:#fff8f0;border-color:#f0d3b8}
.install b{display:flex;gap:8px;align-items:center;color:var(--ink)}
.install b svg.i{width:18px;height:18px}

/* Vollbild-App (vom Startbildschirm gestartet) */
@media (display-mode: standalone){.demo-flag{display:none}}

/* ---------- Kompakte Größen fürs Handy ---------- */
@media (max-width: 600px){
  body{font-size:15px;line-height:1.4}
  .page{padding:12px 12px 92px}
  .top{padding:max(8px,env(safe-area-inset-top)) 12px 8px;gap:8px}
  .top .brand{font-size:19px}
  .house{font-size:11px}
  .top .bell{width:38px;height:38px}
  .me{min-height:38px;padding:3px}
  .avatar{width:32px;height:32px;font-size:12px}
  h1{font-size:24px;margin-bottom:2px}
  .sub{font-size:13px;margin-bottom:12px}
  h2,h3{font-size:14px}
  .sh{font-size:21px}
  .card{padding:12px;border-radius:14px}
  .grid,.kgrid,.dgrid,.cols,.fl-grid{gap:8px}
  .cols{margin-top:8px}
  .kpi{min-height:0;gap:3px}
  .kpi .num,.kpi.k2 .num{font-size:26px}
  .kpi.k2{min-height:92px}
  .kpi .lbl{font-size:12px}
  .kpi .muted{font-size:11.5px}
  .muted{font-size:12px}
  .btn{min-height:44px;padding:0 14px;font-size:14px;border-radius:12px}
  .btn.sm{min-height:36px;padding:0 11px;font-size:13px;border-radius:10px}
  .actions{gap:8px;margin:4px 0 12px}
  .tabs{gap:6px;padding-bottom:10px}
  .tab{min-height:36px;padding:0 12px;font-size:13px}
  .chip{font-size:11px;padding:3px 8px}
  .row{padding:9px 0;gap:10px}
  .task{min-height:50px;padding:8px 12px;gap:10px;border-radius:12px;margin-bottom:6px}
  .tick{width:26px;height:26px}
  .rooms{gap:6px}
  .room{min-height:54px;font-size:11px;border-radius:10px}
  .room b{font-size:13px}
  .rooms.named{grid-template-columns:repeat(auto-fill,minmax(98px,1fr))}
  .rooms.clean{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}
  .bottom a,.bottom button{font-size:10.5px;min-height:46px;padding:5px 2px}
  .bottom svg.i{width:21px;height:21px}
  #sheet-root .sheet{padding:8px 14px max(18px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
  .sheet-x{top:10px;right:10px;width:36px;height:36px}
  label.f{font-size:12.5px;margin:10px 0 5px}
  input.in,select.in,textarea.in{min-height:44px;padding:8px 12px;border-radius:11px}
  .chk{min-height:44px;padding:6px 12px}
  .yn span{min-height:44px}
  .mtile{min-height:54px;padding:8px 10px;gap:8px}
  .mic{width:32px;height:32px}
  .mtx b{font-size:13px}
  .fl-k b{font-size:16px}
  .ring.sm{width:44px;height:44px}.ring.sm b{width:34px;height:34px;font-size:10.5px}
  .si{min-height:42px;font-size:13.5px;padding:7px 10px}
  .slicers{top:56px;padding:6px 8px;margin-bottom:10px}
  .dash-head .btn{display:none}
  .sig-c{height:130px}
  .login{padding:16px 12px}
  .login .brand{font-size:36px}
  .pick{min-height:58px;padding:8px 12px}
  #push{top:6px}
}
/* Zeilen in Karten: Text behält mindestens 180 px, Chips und Knöpfe rutschen sonst in die nächste Zeile (Dokumente, Prüffristen) */
@media (max-width:600px){.card>.row{flex-wrap:wrap;row-gap:10px}.card>.row>.grow{flex:1 1 0;min-width:min(100%,180px)}}
