/* Handy-Feinschliff und modernere Karten */
.day-hero{display:grid;grid-template-columns:132px 1fr;gap:16px;align-items:center;padding:16px}
.hero-ring{position:relative;width:132px;height:132px;display:grid;place-items:center}
.hero-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.hero-ring circle{fill:none;stroke-width:8;stroke-linecap:round}.hero-ring .bg{stroke:#eeece5}.hero-ring .fg{stroke:var(--accent);transition:stroke-dashoffset .6s ease}.hero-ring .fg.over{stroke:#bb2e1e}
.hero-ring div{display:grid;text-align:center;gap:0}.hero-ring strong{font-family:var(--display);font-size:26px;letter-spacing:-1px;line-height:1.05}.hero-ring small{color:var(--muted);font-size:11.5px}
.hero-macros{display:grid;gap:11px;min-width:0}.hero-macros>div{display:grid;gap:4px}.hero-macros span{font-size:11.5px;color:var(--muted);font-weight:600}.hero-macros strong{font-size:14px;font-family:var(--display)}.hero-macros small{color:var(--muted);font-weight:500;font-size:11.5px}.hero-macros .track{height:6px}
@media(min-width:900px){.day-hero{display:none}}
@media(max-width:899px){
  .nutrition-layout{display:grid;gap:14px}
  .meal-group{background:#faf9f6;border-radius:18px;padding:12px 14px;margin:0 0 10px;border:1px solid var(--line)}
  .meal-group-heading{margin-bottom:6px}
  .meal-entry{padding:10px 0;border-top:1px solid var(--line)}
  .meal-group>.button.ghost{width:100%;justify-content:center;background:#fff;border:1px dashed #d9d6cc;margin-top:6px}
}

/* Trainingshistorie als Karten */
.hist-list{display:grid;gap:8px}
.hist-card{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:#faf9f6;text-align:left;font:inherit;color:inherit;cursor:pointer}
.hist-card:active{background:var(--soft)}
.hist-date{display:grid;place-items:center;width:48px;height:52px;border-radius:14px;background:#fff;border:1px solid var(--line);flex:none;line-height:1.1}
.hist-date strong{font-family:var(--display);font-size:19px}.hist-date small{font-size:10.5px;text-transform:uppercase;color:var(--muted);letter-spacing:.05em}
.hist-main{display:grid;gap:6px;min-width:0;flex:1}.hist-main>strong{font-size:14.5px}
.hist-chips{display:flex;gap:5px;flex-wrap:wrap}.hist-chips i{font-style:normal;font-size:11.5px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:99px;padding:2px 9px}
.hist-go{color:#b5b2a7;font-size:24px;line-height:1}
.detail-ex{padding:12px 0;border-top:1px solid var(--line)}.detail-ex:first-of-type{border-top:0}
.detail-ex-head{display:flex;gap:12px;align-items:center;margin-bottom:10px}.detail-ex-head h3{margin:0;font-size:15px}
.detail-ex-head .wk-ov-thumb{width:46px;height:46px}
.detail-sets{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.detail-set{display:grid;gap:2px;padding:9px 11px;border-radius:14px;background:#faf9f6;border:1px solid var(--line)}
.detail-set small{color:var(--muted);font-size:11px}.detail-set strong{font-family:var(--display);font-size:15px}

/* Fortschrittsfotos */
.photo-actions{display:flex;gap:6px;align-items:center}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.photo-thumb{position:relative;padding:0;border:0;border-radius:16px;overflow:hidden;aspect-ratio:3/4;background:#efede6;cursor:pointer}
.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.photo-thumb span{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 7px;font-size:10.5px;color:#fff;text-align:left;background:linear-gradient(transparent,#000a)}
.photo-full{width:100%;max-height:70dvh;object-fit:contain;border-radius:16px;background:#efede6;display:block}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cmp-col{display:grid;gap:8px;align-content:start;min-width:0}.cmp-col select{width:100%;font-size:12px}
.cmp-col img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:14px;background:#efede6}

/* Schnell hinzufügen */
.quick-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin:0 -2px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.quick-chip{flex:none;scroll-snap-align:start;display:grid;gap:1px;text-align:left;padding:9px 13px;border:1px solid var(--line);border-radius:14px;background:#faf9f6;font:inherit;color:inherit;cursor:pointer;max-width:190px}
.quick-chip strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-chip small{color:var(--muted);font-size:11.5px}
.quick-chip:active{background:var(--soft);border-color:#f3c9bd}
.meal-group>.button.secondary{width:100%;justify-content:center;margin-top:8px;white-space:normal;text-align:center}

/* Profil: Abschnitte zum Auf- und Zuklappen (Handy) */
@media(max-width:699px){
  #profile-form .form-section>legend{cursor:pointer;display:flex;align-items:center;justify-content:space-between;width:100%;padding:0;float:left}
  #profile-form .form-section>legend+*{clear:both}
  #profile-form .form-section>legend::after{content:'';width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-right:4px;transition:transform .2s}
  #profile-form .form-section.collapsed>legend::after{transform:rotate(-45deg)}
  #profile-form .form-section.collapsed>*:not(legend){display:none}
  #profile-form .form-section{padding-bottom:6px}
}


/* Android-App: gut sichtbarer Download */
.apk-banner{display:flex;align-items:center;gap:12px;margin:4px 0 18px;padding:13px 15px;border-radius:16px;background:var(--soft);border:1px solid #f3c9bd;color:var(--ink);text-decoration:none}
.apk-banner svg{width:28px;height:28px;flex:none;color:var(--accent)}
.apk-banner span{display:grid;gap:1px;min-width:0;flex:1}.apk-banner strong{font-size:14px}.apk-banner small{color:var(--muted);font-size:11.5px;line-height:1.35}
.apk-banner b{font-size:20px;color:var(--accent);flex:none}
.update-banner.promo{flex-wrap:wrap}.promo-actions{display:flex!important;flex-direction:row;gap:6px;align-items:center}
a.entry-brand{color:inherit;text-decoration:none}

/* Logo in der Kopfzeile am Handy: echter Link zur Startseite */
.top-logo{display:none}
@media(max-width:650px){.top-logo{display:inline-flex;align-items:center;color:var(--ink);font-family:var(--display);font-weight:800;font-size:19px;letter-spacing:-.045em;text-decoration:none;margin-right:2px}.top-logo .pmark{width:24px;height:24px;margin-right:7px}.breadcrumb strong::before{content:none}.breadcrumb{align-items:baseline;gap:13px}.topbar-dot{display:none}}

/* Plan-Editor */
.pe-list{display:grid;gap:8px;margin:6px 0 14px}
.pe-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:16px;background:#faf9f6}
.pe-thumb{width:48px;height:48px;border-radius:12px;overflow:hidden;flex:none;background:#faf6f0;display:grid;place-items:center}.pe-thumb>*{width:100%;height:100%;object-fit:cover}
.pe-thumb .exercise-ph{padding:3px;gap:0}.pe-thumb .exercise-ph strong{font-size:8px;line-height:1.1}.pe-thumb .exercise-ph small{display:none}
.pe-name{display:grid;gap:1px;min-width:0;flex:1}.pe-name strong{font-size:13.5px;line-height:1.25}.pe-name small{color:var(--muted);font-size:11.5px}
.pe-tools{display:flex;gap:2px;flex:none}.pe-tools .icon-button{width:34px;height:34px;display:grid;place-items:center;font-size:16px}.pe-tools .icon-button:disabled{opacity:.3}
.edited-tag{font-style:normal;color:var(--accent-dark);font-weight:650}
.plan-card-bottom .card-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

/* Notizen */
.wk-note{display:grid;gap:6px;background:#fff;border-radius:18px;padding:11px 14px;box-shadow:0 1px 2px #2024181a}
.wk-note span{font-size:11.5px;color:var(--muted);font-weight:650}
.wk-note input{border:0;background:transparent;padding:0;font-size:14px;color:var(--ink);width:100%}.wk-note input:focus{outline:none}
.wk-prev-note{margin:0;padding:10px 13px;border-radius:14px;background:var(--soft);font-size:13px;line-height:1.4;color:var(--ink)}
.wk-prev-note span{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--accent-dark);font-weight:700;margin-bottom:2px}
.detail-note{margin:8px 0 0;padding:9px 12px;border-left:3px solid var(--accent);background:#faf9f6;border-radius:0 12px 12px 0;font-size:13px;line-height:1.45;white-space:pre-wrap}
.detail-note.session{margin:0 0 12px}
#session-note-form textarea{width:100%;resize:vertical;min-height:96px}
/* Zielgewicht */
.goal-body{display:flex;gap:16px;align-items:center}
.goal-ring{position:relative;width:104px;height:104px;flex:none;display:grid;place-items:center}
.goal-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.goal-ring circle{fill:none;stroke-width:9;stroke-linecap:round}.goal-ring .bg{stroke:#eeece5}.goal-ring .fg{stroke:var(--accent);transition:stroke-dashoffset .6s ease}.goal-ring .fg.done{stroke:#6b895c}
.goal-ring strong{font-family:var(--display);font-size:22px;letter-spacing:-.5px}
.goal-text{display:grid;gap:4px;min-width:0}.goal-text>strong{font-family:var(--display);font-size:20px;letter-spacing:-.4px}.goal-text p{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}.goal-text p strong{color:var(--ink)}.goal-text small{color:var(--muted);font-size:11.5px}
.goal-scale{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.goal-scale span{display:grid;gap:1px;padding:9px 11px;border-radius:14px;background:#faf9f6;border:1px solid var(--line);font-family:var(--display);font-weight:700;font-size:14px}.goal-scale small{font-family:var(--font);font-weight:500;color:var(--muted);font-size:11px}

/* Plan 2.0: Aufbau des Plans */
.plan-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0}
.plan-facts span{display:grid;gap:1px;padding:10px 12px;border-radius:14px;background:#faf9f6;border:1px solid var(--line)}
.plan-facts small{color:var(--muted);font-size:11px}.plan-facts strong{font-family:var(--display);font-size:14px;line-height:1.25}
@media(min-width:700px){.plan-facts{grid-template-columns:repeat(4,1fr)}}
.plan-summary{margin-bottom:18px}

/* Schmale Handys (320 bis 360 px): nichts darf die Seite breiter machen als den Bildschirm */
input[type=date],input[type=time],input[type=number],select{min-width:0;max-width:100%}
.daily-date{min-width:0}.daily-date input{width:100%}
@media(max-width:650px){
  .nutrition-layout>*,.content-grid>*,.profile-layout>*,.plan-grid>*,.stack>*,.card>*{min-width:0}
  .section-title{flex-wrap:wrap;gap:8px 12px}
  .section-title>.daily-date{flex:1 1 150px}
  .form-grid>*{min-width:0}
}
@media(max-width:380px){
  [class*="grid"]>*,[class*="layout"]>*{min-width:0}
  .card{overflow-wrap:anywhere}
  .stat{padding-left:12px;padding-right:12px}
  .stats-grid{gap:8px}
}
@media(max-width:420px){.daily-bottom{grid-template-columns:1fr}}
/* Dialoge am Handy: die Aktionsknöpfe (Speichern, Weiter) bleiben unten sichtbar */
@media(max-width:650px){
  dialog:not(.workout-mode) .modal-actions{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom,0px));z-index:3;margin-top:14px;padding:16px 0 calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(to bottom,#fff0,#fff 28%)}
}
@media(max-width:650px){dialog .tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;width:auto;scrollbar-width:none}dialog .tabs::-webkit-scrollbar{display:none}dialog .tabs button{flex:none}}

/* Körperbild-Regler */
.body-picker{display:grid;gap:10px;margin:10px 0 16px}
.body-stage{display:grid;place-items:center;background:linear-gradient(#f7f3ee,#efe9e2);border:1px solid var(--line);border-radius:22px;padding:12px 8px}
.body-figure{height:min(42dvh,330px);width:auto;max-width:100%;color:var(--accent)}
.body-readout{display:flex;align-items:baseline;gap:10px;justify-content:center;flex-wrap:wrap}
.body-picker .bf-value,.body-card .bf-value{font-family:var(--display);font-size:34px;letter-spacing:-1px;line-height:1}
.body-picker .bf-type,.body-card .bf-type{font-weight:700;color:var(--accent-dark)}
.bf-desc{text-align:center;margin:0;color:var(--muted);font-size:13px;line-height:1.45;min-height:2.8em}
.body-slider{display:grid;gap:6px;font-size:12.5px;color:var(--muted);font-weight:650;margin-top:4px}
.body-slider input[type=range]{width:100%;accent-color:var(--accent);height:36px;margin:0}
.body-marks{position:relative;height:16px;margin:-8px 10px 0}.body-marks span{position:absolute;transform:translateX(-50%);font-size:10.5px;color:var(--muted)}
.body-muscle{border:0;padding:0;margin:4px 0 0;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.body-muscle legend{font-size:12.5px;color:var(--muted);font-weight:650;padding:0;margin-bottom:6px;width:100%}
.pill-choice{position:relative;flex:1}.pill-choice input{position:absolute;opacity:0;inset:0;cursor:pointer}
.pill-choice span{display:block;text-align:center;padding:11px 10px;border-radius:14px;background:#f1efe9;font-weight:650;font-size:13px;border:2px solid transparent}
.pill-choice input:checked+span{background:var(--soft);border-color:var(--accent);color:var(--accent-dark)}
.pill-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.body-rec-card{display:grid;gap:4px;padding:14px;border-radius:18px;background:var(--soft);border:1px solid #f3c9bd;margin-bottom:14px}.body-rec-card strong{font-family:var(--display);font-size:18px}.body-rec-card p{margin:0;font-size:13px;color:var(--muted);line-height:1.45}
.body-card-flex{display:flex;gap:16px;align-items:center}.body-mini{flex:none;width:92px}.body-mini .body-figure{height:190px;width:auto}
.body-card-text{display:grid;gap:4px;min-width:0}.body-card-text p{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}.body-card-text small{color:var(--muted);font-size:11.5px}

/* Farben der Körperfigur */
:root{--fig-skin-a:#efcdb7;--fig-skin-b:#d9a68b;--fig-line:#b3705a;--fig-bone:#b8806a;--fig-cloth:#3a3d40}
@media (prefers-color-scheme:dark){:root{--fig-skin-a:#c99d87;--fig-skin-b:#9a7260;--fig-line:#4a3027;--fig-bone:#e9cdbf;--fig-cloth:#101112}.body-stage{background:linear-gradient(#262828,#1d1f1f)}}

/* Körperbild aus Bildern */
.fig-stack{--fig-h:min(44dvh,340px);position:relative;height:var(--fig-h);width:calc(var(--fig-h) * .7);max-width:100%}
.fig-frame{position:absolute;left:50%;top:0;height:100%;width:auto;transform:translateX(-50%);transition:opacity .18s ease;pointer-events:none;user-select:none;-webkit-user-drag:none}
.body-mini .fig-stack{--fig-h:190px}
.body-stage{padding:14px 8px 8px}
@media(prefers-reduced-motion:reduce){.fig-frame{transition:none}}

/* Körperbild-Regler: Stufen-Chips */
.body-zones{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 8px;margin:-2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.body-zones::-webkit-scrollbar{display:none}
.zone-chip{flex:none;scroll-snap-align:center;border:1px solid var(--line);background:#faf9f6;color:var(--muted);border-radius:99px;padding:7px 12px;font:inherit;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.zone-chip.on{background:var(--soft);border-color:var(--accent);color:var(--accent-dark)}
.zone-chip:active{transform:scale(.97)}
.body-muscle[hidden]{display:none}
.body-zones{position:relative;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);padding-left:14px;padding-right:14px}

@media(max-width:380px){.ai-item{grid-template-columns:minmax(0,1fr)}.ai-box,.ai-results{min-width:0}dialog{padding:20px 16px}}
/* Hinweis-Karten (Zyklus, Entlastung, App, Update): Knöpfe umbrechen statt die Seite zu verbreitern */
.update-banner{flex-wrap:wrap;min-width:0}.update-banner>div:first-child{flex:1 1 210px;min-width:0}.promo-actions{flex-wrap:wrap}.update-banner .button{max-width:100%}

/* Ernährung: Tageswechsel und Wochenübersicht */
.day-nav{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:14px}.day-nav-title{flex:1;min-width:0;display:grid;text-align:center}.day-nav-title small{color:var(--muted)}
.day-nav .icon-button{width:44px;height:44px;font-size:22px;flex:none}.day-nav .icon-button[disabled]{opacity:.35}
.week-arrows{display:flex;align-items:center;gap:6px}.week-arrows small{color:var(--muted);font-size:11.5px;white-space:nowrap}.week-arrows .icon-button{width:34px;height:34px;font-size:18px}.week-arrows .icon-button[disabled]{opacity:.35}
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:6px 0 12px}
.ws-day{display:grid;justify-items:center;gap:4px;padding:8px 2px 6px;border:1.5px solid var(--line);border-radius:14px;background:var(--paper);font:inherit;color:inherit;cursor:pointer;min-width:0}
.ws-day.is-sel{border-color:var(--accent);background:var(--soft)}.ws-day[disabled]{opacity:.4;cursor:default}
.ws-name{font-size:11px;font-weight:700;color:var(--muted)}.ws-kcal{font-size:10.5px;font-weight:650;line-height:1}
.ws-bar{position:relative;display:block;width:60%;max-width:22px;height:54px;border-radius:7px;background:var(--line);overflow:hidden}.ws-bar i{position:absolute;left:0;right:0;bottom:0;border-radius:7px;background:#b9b6ad}.ws-bar b{position:absolute;left:0;right:0;height:0;border-top:1.5px dashed var(--ink);opacity:.45}
.st-ok .ws-bar i{background:#5f9b62}.st-over .ws-bar i{background:#e0873f}.st-under .ws-bar i{background:#7aa3c9}.st-partial .ws-bar i{background:#c9c4b8}
.ws-water{width:14px;height:14px;opacity:.28}.ws-water.on{opacity:1;color:#3d8fd1}.ws-water svg{width:14px;height:14px}
.week-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.week-facts span{display:grid;gap:2px;padding:10px 12px;border-radius:14px;background:var(--bg);font-size:11.5px;color:var(--muted)}.week-facts strong{font-size:16px;color:var(--ink)}
@media(max-width:360px){.week-arrows small{display:none}.ws-kcal{font-size:9.5px}}

/* Nahrungsergänzung, Nährwert-Erklärungen, Schnelleingabe */
.nutrient-links{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}.nutrient-links .button{flex:none}
.supp-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}.supp-check{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:1.5px solid var(--line);border-radius:14px;background:var(--paper);font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:52px}
.supp-check small{display:block;color:var(--muted)}.supp-box{flex:none;width:26px;height:26px;border-radius:8px;border:2px solid var(--muted);display:grid;place-items:center}.supp-check.on{background:var(--soft);border-color:var(--accent)}.supp-check.on .supp-box{background:var(--accent);border-color:var(--accent)}.supp-check.on .supp-box::after{content:'✓';color:#fff;font-weight:800;font-size:15px;line-height:1}
.supp-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.supp-row small{display:block;color:var(--muted)}.supp-actions{display:flex;gap:4px;flex:none}
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.chip-button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:99px;padding:8px 13px;font:inherit;font-size:13px;cursor:pointer;min-height:38px}
.nutrient-now{display:grid;gap:2px;margin-bottom:8px}.nutrient-now strong{font-size:30px;font-family:var(--display)}.nutrient-now span{color:var(--muted);font-size:13px}.nutrient-detail h3{margin:16px 0 4px;font-size:15px}.nutrient-detail p{margin:0;line-height:1.55}
.source-list{list-style:none;margin:6px 0 0;padding:0}.source-list li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line)}.source-list span{min-width:0;overflow-wrap:anywhere}

/* Ernährung: zwei ruhige Spalten, jede Spalte läuft für sich */
.nutrition-main{display:grid;gap:14px;align-content:start;min-width:0}.nutrition-layout>.stack{align-content:start;align-self:start}.nutrition-layout{align-items:start}
@media(min-width:901px){.nutrition-main{gap:22px}.nutrition-layout>.stack{position:sticky;top:78px}}

/* Lange Schnellauswahl darf die Seite nie breiter machen */
.nut-cols>*,.nut-col,.quick-add,.card{min-width:0;max-width:100%}

/* Handy 320-390 px: nichts darf seitlich überlaufen (Prüfung: ops/mobile-audit in docs/integrationspruefung) */
.quick-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;padding:2px 0 4px;margin:0;scroll-snap-type:none}
.quick-chip{max-width:none;min-width:0}
.pe-row{flex-wrap:wrap}.pe-name{flex:1 1 130px}.pe-tools{margin-left:auto}
@media(max-width:380px){.pe-tools{flex-basis:100%;justify-content:flex-end;border-top:1px dashed var(--line);padding-top:6px;margin-top:2px}.pe-tools .icon-button{width:40px}}
.heat-wrap{overflow:hidden}
@media(max-width:360px){.heat-wrap .heat{grid-auto-columns:12px;grid-template-rows:repeat(7,12px);gap:3px}.heat-wrap .heat-days{grid-template-rows:repeat(7,12px);gap:3px;line-height:12px;font-size:9px}}
/* Stufen-Chips im Körperbild: alle sichtbar in mehreren Zeilen statt seitlich zu wischen */
.body-zones{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none;padding:2px;margin:0;scroll-snap-type:none}
/* Formularfelder dürfen nie breiter als ihre Karte sein (auch bei Tablet- und schmalen Desktop-Breiten) */
.form-grid>*,.card form>*{min-width:0}.card input,.card select,.card textarea{max-width:100%;box-sizing:border-box}
.card .form-grid select,.card .form-grid input{width:100%}
/* Schaltflächen in Karten passen sich der Kartenbreite an (Tablet 651 bis 800 px) */
.card .button,.card button.button{max-width:100%;box-sizing:border-box}
/* Tablet und schmale Fenster (651 bis 1000 px): neben der Seitenleiste ist für zwei Spalten zu wenig Platz, Karten stehen untereinander */
@media(min-width:651px) and (max-width:1000px){.plan-grid,.profile-layout>.stack{grid-template-columns:minmax(0,1fr)!important}}
main .stats-grid.four{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(min-width:651px) and (max-width:1000px){.content-grid>.stack:last-child{grid-template-columns:minmax(0,1fr)!important}}
.card .modal-actions{flex-wrap:wrap;max-width:100%}.card .modal-actions>*{max-width:100%}

/* Tippflächen mindestens 44 px, Toast und Update-Balken über der unteren Navigation */
.tabs button{min-height:44px}
.button.small,.button.ghost{min-height:44px}
.icon-button{min-width:44px;min-height:44px}
select{min-height:44px}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){min-height:44px}
.link-button{min-height:44px;display:inline-flex;align-items:center;padding:0 6px}
.stack-actions{flex-direction:column;align-items:stretch;flex-wrap:nowrap}.stack-actions>.button{width:100%;justify-content:center}
@media(max-width:650px){body #update-bar{bottom:calc(76px + env(safe-area-inset-bottom,0px))}body #toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}.entry-bottom a,.app-footer a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}}
.apk-empty{display:grid;gap:12px;justify-items:start}.apk-empty h3{margin:0;font-size:19px}.apk-empty .steps{margin:0;padding-left:20px;display:grid;gap:8px}.apk-empty-ico{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--accent)}.apk-empty-ico svg{width:28px;height:28px}.apk-empty .button{width:100%}
.button{min-height:44px}
dialog summary,.support-faq summary{min-height:44px;display:flex;align-items:center}
.top-logo{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
@media(max-width:650px){body:has(#update-bar) #toast{bottom:calc(150px + env(safe-area-inset-bottom,0px))}}

/* Dialoge am Handy als Blatt von unten (Vollbild-Workout bleibt ausgenommen). Keine Animation. */
@media(max-width:650px){
  dialog:not(.workout-mode){width:100%;max-width:100%;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:92vh;max-height:92dvh;padding:12px 18px calc(20px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;box-shadow:0 -10px 40px #20201826}
  dialog:not(.workout-mode)::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 14px}
  dialog:not(.workout-mode) .modal-header{margin-bottom:16px}
  dialog:not(.workout-mode) .modal-header h2{font-size:21px}
  dialog:not(.workout-mode) > .modal-actions:last-child{margin-bottom:calc(-20px - env(safe-area-inset-bottom,0px))}
}
/* Offline-Band */
.offline-bar{padding:9px 20px;background:var(--soft);color:var(--ink);border-bottom:1px solid var(--line);font-size:12px;line-height:1.4;text-align:center}
@media(max-width:650px){.top-logo{margin-right:12px}.top-logo::after{content:"";width:1px;height:18px;margin-left:12px;background:var(--line)}}
