/* Coach fragen (coach-chat.js), Wochenbericht vom Coach (coach-weekly.js), Tagesform-Anpassung (tagesform.js).
   Nur Farb-Variablen aus styles.css/dark.css, dadurch hell und dunkel ohne eigene Dunkel-Regeln. Keine Animationen, kein seitliches Scrollen bei 360 px. */
.cc-entry p,.cw-card p,.cc-sheet p,.tf-sheet p,.tf-sheet li{overflow-wrap:anywhere}
.cc-entry .helper-text{margin:8px 0 12px}
.cc-entry .button{min-height:48px;width:100%}
.cc-sheet{display:grid;gap:10px;min-width:0}
.cc-note{font-size:12.5px;line-height:1.5;color:var(--muted)}
.cc-list{display:grid;gap:8px;max-height:min(42vh,360px);overflow-y:auto;overflow-x:hidden;padding:2px;overscroll-behavior:contain}
.cc-msg{max-width:92%;border-radius:14px;padding:9px 12px;background:var(--paper2,#f3f1ec);color:var(--ink);min-width:0}
.cc-msg p{font-size:14px;line-height:1.5;margin:2px 0 0}
.cc-who{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--muted)}
.cc-me{justify-self:end;background:var(--soft,#fff0e9)}
.cc-coach{justify-self:start}
.cc-warn{border:2px solid var(--accent,#f3432f)}
.cc-wait p,.cc-fail p{color:var(--muted)}
.cc-empty{padding:6px 2px}
.cc-status{min-height:1.4em;font-size:13px;color:var(--muted)}
.cc-status:empty,.cc-sheet .form-error:empty{display:none}
.cc-chips{display:flex;flex-wrap:wrap;gap:8px}
.cc-chips[hidden]{display:none}
.cc-chip{border:1px solid var(--line,#e9e8e2);background:var(--paper,#fff);color:var(--ink);border-radius:99px;padding:9px 13px;min-height:44px;font-size:13px;text-align:left;max-width:100%}
.cc-form{display:grid;gap:8px}
.cc-label{font-size:13px}
.cc-form textarea{width:100%;border:1px solid var(--line,#d7d8d1);border-radius:12px;background:var(--paper,#fff);color:var(--ink);padding:11px 12px;resize:vertical;min-height:84px;font-size:16px}
.cc-form textarea:disabled{opacity:.6}
.cc-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.cc-row small{color:var(--muted);font-size:12px}
.cc-row .button{min-height:48px;min-width:140px}
.cw-card .cw-text{margin-top:8px;font-size:15px;line-height:1.55}
.cw-card h3{margin-top:12px;font-size:15px}
.tf-lead{font-size:15px;margin-bottom:8px}
.tf-lines{margin:0 0 10px;padding-left:18px;display:grid;gap:6px;font-size:14px;line-height:1.5}
.tf-est{font-size:13px;font-weight:650;margin-bottom:10px}
.tf-fold{margin-bottom:12px}
.tf-fold summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;font-weight:650}
.tf-rows{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.tf-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line,#e9e8e2);font-size:14px;min-width:0}
.tf-row small{color:var(--muted);text-align:right;flex:none;max-width:48%}
.tf-removed .tf-name{color:var(--muted)}
.tf-actions{display:grid;gap:10px;margin:12px 0 8px}
.tf-actions .button{min-height:48px;width:100%;justify-content:center}
@media (max-width:400px){.cc-msg{max-width:100%}.cc-row .button{width:100%}}

/* Coach auf Heute als eine Zeile */
button.cc-entry{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:14px 16px;text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.cc-entry-ico{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--soft);color:var(--accent)}
.cc-entry-ico svg{width:22px;height:22px}
.cc-entry-txt{flex:1;min-width:0;display:grid;gap:2px}.cc-entry-txt strong{font-size:16px}.cc-entry-txt small{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-entry-go{flex:none;width:18px;height:18px;color:var(--muted)}

/* Abo-Stufen (tier.js): Schloss-Badge, gesperrte Karten, Hinweis-Sheet */
.tier-lock{display:inline-flex;align-items:center;gap:4px;flex:none;border:1px solid var(--line,#e9e8e2);background:var(--soft,#fff0e9);color:var(--accent-dark,#bb2e1e);border-radius:99px;padding:2px 8px;min-height:22px;font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.2;vertical-align:middle;cursor:pointer}
.tier-lock svg{width:12px;height:12px}
.tier-lock.static{cursor:inherit}
.button .tier-lock{margin-left:6px}
.tier-card,.cp-entry,.cp-quick{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line,#e9e8e2);color:var(--ink);min-height:64px;cursor:pointer;font:inherit}
.tier-card-ico{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--soft,#fff0e9);color:var(--accent,#f3432f)}
.tier-card-ico svg{width:20px;height:20px}
.tier-card-txt{display:grid;gap:2px;min-width:0;flex:1}
.tier-card-txt strong{font-size:14px}
.tier-card-txt small{font-size:12.5px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.tier-sheet{display:grid;gap:12px;min-width:0}
.tier-sheet p,.tier-sheet li{overflow-wrap:anywhere}
.tier-lead{font-size:15px;line-height:1.5}
.tier-offer{border:1px solid var(--line,#e9e8e2);border-radius:14px;padding:12px 14px;background:var(--paper2,#f3f1ec)}
.tier-offer ul{margin:8px 0 0;padding-left:18px;display:grid;gap:4px;font-size:13.5px;line-height:1.45}
.tier-trial{font-size:13px;font-weight:700;color:var(--accent-dark,#bb2e1e)}
.tier-trial-card{display:flex;align-items:center;gap:10px;padding:12px 14px}
.tier-trial-card span:last-child{display:grid;gap:1px}
.tier-trial-card small{color:var(--muted);font-size:12px}

/* Regel-Coach (rules-ui.js) */
.rc-list{margin:6px 0 0;padding-left:18px;display:grid;gap:4px;font-size:13px;line-height:1.45}
.rc-list .warn{color:var(--accent-dark,#bb2e1e)}
.rc-hint .promo-actions{flex-wrap:wrap}
.rc-block{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px}
.rc-block strong{font-size:14px}
.rc-bigline{font-size:15px;margin:2px 0 8px}
.rc-goal{display:grid;gap:6px;padding:12px 0;border-top:1px solid var(--line,#e9e8e2)}
.rc-goal:first-of-type{border-top:0;padding-top:4px}
.rc-goal-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rc-goal .button{justify-self:start}
.rc-steps summary{min-height:36px;display:flex;align-items:center;cursor:pointer;font-size:13px;font-weight:650}
.rc-steps ol,.rc-steps-list{margin:0 0 6px;padding-left:20px;display:grid;gap:3px;font-size:13px}
.rc-ok{background:var(--sage,#e8eee5)}
.rc-warn{background:var(--soft,#fff0e9)}
.rc-bad{background:var(--soft,#fff0e9);color:var(--accent-dark,#bb2e1e)}
.bar i.over{background:var(--accent-dark,#bb2e1e)}
.rules-plan h4{font-size:13.5px;margin:14px 0 4px}
.rules-plan .cc-chips{margin-top:8px}
.rc-chip{min-height:44px}
.rc-chip.on{background:var(--accent,#f3432f);border-color:var(--accent,#f3432f);color:#fff}
.rc-teaser{margin-bottom:12px}

/* Pro-Coach (coach-pro.js) */
.cp-sheet{display:grid;gap:12px;min-width:0}
.cp-sheet p,.cp-sheet li{overflow-wrap:anywhere}
.cp-sheet select,.cp-sheet input:not([type=checkbox]):not([type=file]){width:100%;min-height:44px}
.cp-privacy{font-size:13px;line-height:1.5;border:1px solid var(--line,#e9e8e2);border-radius:12px;padding:10px 12px;background:var(--paper2,#f3f1ec)}
.cp-consent{align-items:flex-start}
.cp-result{display:grid;gap:8px;margin-top:4px}
.cp-result h3{font-size:15px}
.cp-list,.cp-lines,.cp-mem-list{margin:0;padding-left:18px;display:grid;gap:5px;font-size:13.5px;line-height:1.5}
.cp-lines,.cp-mem-list{list-style:none;padding-left:0}
.cp-lines li{display:grid;gap:1px;border-top:1px solid var(--line,#e9e8e2);padding-top:6px}
.cp-lines li:first-child{border-top:0;padding-top:0}
.cp-lines small{color:var(--muted)}
.cp-mem-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line,#e9e8e2);padding:8px 0}
.cp-warn{color:var(--accent-dark,#bb2e1e);font-size:13.5px}
.cp-fc-link{justify-content:flex-start;margin-top:10px}
.cp-shop{margin-top:8px}
/* Pro-Coach: drei Hauptkacheln, Technik-Check-Auswahl, Körper-Check, Ernährungsanalyse */
.cp-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cp-tiles.two{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px}
.cp-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:132px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.cp-tile:hover{border-color:var(--accent)}.cp-tile strong{font-size:15px;line-height:1.25}.cp-tile small{font-size:12px;line-height:1.4;color:var(--muted)}
.cp-tile-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--soft);color:var(--accent)}
.cp-more{margin:18px 0 6px;font-size:13px;color:var(--muted);font-weight:650}
.cp-step{display:flex;align-items:center;gap:8px;margin:14px 0 6px;font-weight:700}.cp-step b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px}
.cp-fc-chosen{display:flex;align-items:center;gap:10px;padding:8px;border:1px dashed var(--line);border-radius:12px}.cp-fc-chosen small{display:block;font-size:11px;color:var(--muted)}.cp-fc-chosen strong{font-size:14px}
.cp-search{margin:10px 0 8px}.cp-sub{margin:6px 0;font-size:12px;color:var(--muted);font-weight:650}
.cp-ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;max-height:340px;overflow-y:auto;padding:2px}
.cp-ex{display:flex;flex-direction:column;gap:5px;padding:5px;border:2px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.cp-ex.on{border-color:var(--accent);background:var(--soft)}.cp-ex-name{font-size:12px;line-height:1.25;font-weight:600}
.cp-ex-img{display:grid;place-items:center;width:100%;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:#fff;color:var(--muted);font-weight:800}
.cp-fc-chosen .cp-ex-img{width:64px;flex:0 0 64px}.cp-ex-img img{width:100%;height:100%;object-fit:cover}
.cp-shots{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.cp-shot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:120px;padding:12px;border:2px dashed var(--line);border-radius:14px;text-align:center;cursor:pointer;font-weight:600}
.cp-shot.on{border-style:solid;border-color:#5b8a4f;background:var(--sage)}.cp-shot small{font-weight:400;color:var(--muted);font-size:12px}
.cp-shot-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--soft);color:var(--accent)}
.cp-kf{display:flex;flex-direction:column;padding:10px 12px;border-radius:12px;background:var(--soft)}.cp-kf strong{font-size:24px;font-family:var(--display)}.cp-kf span{font-size:12px;color:var(--muted)}
.cp-note{display:inline-block;width:fit-content;padding:3px 10px;border-radius:20px;font-weight:700;font-size:13px}.cp-note.good{background:#dcefd6;color:#2f5a25}.cp-note.ok{background:#fff1cc;color:#7a5a00}.cp-note.low{background:#ffe0da;color:#a3261a}
.cp-bar{display:grid;grid-template-columns:96px 1fr auto;align-items:center;gap:8px;font-size:12px}.cp-bar i{height:8px;border-radius:6px;background:var(--line);overflow:hidden}.cp-bar b{display:block;height:100%;background:var(--accent);border-radius:6px}.cp-bar small{color:var(--muted);white-space:nowrap}
@media(max-width:650px){.cp-tiles{grid-template-columns:1fr}.cp-tile{min-height:0;flex-direction:row;align-items:center;flex-wrap:wrap}.cp-tile small{flex-basis:100%}.cp-tiles.two{grid-template-columns:1fr}.cp-ex-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cp-bar{grid-template-columns:80px 1fr auto}}
/* Coach fragen: Hinweis als Kasten, Leerzustand mit Symbol, Ideen nebeneinander */
.cc-note{display:flex;gap:10px;align-items:flex-start;margin:0;padding:11px 12px;border-radius:12px;background:var(--soft)}.cc-note svg{flex:none;width:18px;height:18px;color:var(--accent);margin-top:1px}
.cc-empty{display:flex;gap:12px;align-items:center;padding:14px;border:1.5px dashed var(--line);border-radius:14px}.cc-empty svg{flex:none;width:26px;height:26px;color:var(--accent)}
.cc-chips:not([hidden]){display:flex;flex-wrap:wrap;gap:6px}
