/* Zuhause – Bausteine der Module (Haus, Wetter, Start, Admin) */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px !important; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }

/* Segment-Tabs */
.segments {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4);
}
.segments::-webkit-scrollbar { display: none; }
.segments a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--card); color: var(--mut);
  text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.segments a.active { background: var(--acc-soft); color: var(--acc); }

/* Wetter */
.wx-icon { font-size: 3.2rem; line-height: 1; }
.hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.hours.scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.hours.scroll .hour { flex: 0 0 76px; }
.hour { background: var(--card-2); border-radius: var(--r-inner); padding: 8px 4px; text-align: center; }
.hour-ico { font-size: 1.6rem; line-height: 1.3; }
.hour .rain { color: var(--rain); min-height: 1.2em; }
.spark { width: 100%; height: 56px; display: block; margin-top: var(--sp-2); }

/* Kurzlisten auf Start */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-list li { overflow: hidden; text-overflow: ellipsis; }
.mini-list small { display: block; color: var(--mut); font-size: var(--fs-note); }

/* Müll */
.waste-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.waste-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-inner); }
.waste-row.warn { background: var(--warn-soft); }
.waste-row.bad { background: var(--bad-soft); }
.waste-row .when { text-align: right; font-weight: 650; white-space: nowrap; }
.waste-row .when small { display: block; color: var(--mut); font-weight: 400; font-size: var(--fs-label); }
.bin { width: 14px; height: 18px; border-radius: 3px 3px 4px 4px; flex: none; position: relative; }
.bin::before { content: ""; position: absolute; left: -2px; right: -2px; top: -4px; height: 3px; border-radius: 2px; background: inherit; }

/* Einkauf */
.add-row { padding: 8px; gap: 8px; }
.add-row input { flex: 1; min-width: 0; min-height: var(--touch); padding: 10px 12px; border-radius: var(--r-inner); background: var(--bg); border: 1px solid var(--line); font-size: 16px; outline: none; }
.add-row input:focus { border-color: var(--acc); }
.add-row .btn { font-size: 1.4rem; min-width: 52px; }
.shop-item { display: flex; align-items: center; }
.shop-item .list-item { flex: 1; }
.check-box {
  width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--acc-txt);
}
.shop-item.done .check-box { background: var(--ok); border-color: var(--ok); }
.shop-item.done .grow { color: var(--mut); text-decoration: line-through; }
.icon-btn.del { color: var(--mut); font-size: 1rem; margin-right: 6px; }
.icon-btn.del:active { color: var(--bad); }

/* Chips zum Antippen */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line); color: var(--mut);
  font-weight: 600; cursor: pointer;
}
.chip-btn.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }

/* Notizen */
.note-card { border-left: 3px solid var(--acc); }
.note-text { white-space: pre-wrap; word-break: break-word; }
.card textarea { width: 100%; min-height: 88px; padding: 10px 12px; border-radius: var(--r-inner); background: var(--bg); color: var(--txt); border: 1px solid var(--line); font-size: 16px; outline: none; resize: vertical; }
.card textarea:focus { border-color: var(--acc); }

/* Fotos */
.upload { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: var(--sp-5) var(--sp-4); border: 2px dashed var(--line); background: transparent; cursor: pointer; }
.upload:active { background: var(--card); }
.progress { position: relative; height: 34px; margin-top: var(--sp-3); border-radius: var(--r-inner); background: var(--card); overflow: hidden; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--acc-soft); transition: width .2s; }
.progress span { position: relative; display: block; line-height: 34px; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ph { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--card); cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-full { width: 100%; max-height: 65dvh; object-fit: contain; border-radius: var(--r-inner); background: #000; }

/* Admin */
.link-row { margin-bottom: 8px; }
.link-row input, .card .input { width: 100%; min-height: var(--touch); padding: 10px 12px; border-radius: var(--r-inner); background: var(--bg); color: var(--txt); border: 1px solid var(--line); font-size: 16px; }

/* Quest-Kachel auf Start */
.quest-tile h2 { color: var(--q-acc); }
.quest-bar { height: 10px; background: #080d1b; border-radius: var(--r-pill); overflow: hidden; margin: 6px 0 10px; }
.quest-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--q-acc), var(--q-green)); }

/* Quest-Vorschläge */
.suggest-card { border: 1px solid #8b7cff55; }
.suggest-card h2 { color: var(--q-acc); }
.suggest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.suggest-item { display: flex; align-items: center; gap: 10px; }
.suggest-item small { display: block; color: var(--mut); font-size: var(--fs-note); margin-top: 2px; }
.suggest-ico { font-size: 1.6rem; flex: none; }

/* Diashow-Kachel auf Start */
.photo-tile { padding: 0; overflow: hidden; position: relative; }
.slide-box { position: relative; height: clamp(220px, 42vw, 340px); background: #000; overflow: hidden; }
.slide-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide-layer.show { opacity: 1; }
.slide-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.45); }
.slide-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-tile-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(15, 23, 42, .75); font-size: .85rem; font-weight: 600; }

/* Ideen */
.prompt-box { width: 100%; min-height: 320px; margin-top: 10px; line-height: 1.45; resize: vertical; white-space: pre-wrap; }

/* Schnellwahl im Einkauf */
.quick-box { margin-bottom: var(--sp-3); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: calc(3 * 52px); overflow-y: auto; }
.quick-chip { min-height: var(--touch); padding: 0 16px; font-size: .95rem; color: var(--txt); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.quick-chip:active:not([disabled]) { background: var(--acc-soft); border-color: var(--acc); }
.quick-chip[disabled] { opacity: .4; cursor: default; }
.link-btn { background: none; border: 0; color: var(--mut); font: inherit; font-size: var(--fs-note); text-decoration: underline; padding: 8px 2px; min-height: var(--touch); cursor: pointer; }

/* Wochenrückblick */
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1.1rem; }
.review-tile { border: 1px solid #8b7cff55; }
.review-tile h2 { color: var(--q-acc); }
.review-tile .q-xp, .rv-head .q-xp { color: var(--q-gold); font-weight: 800; }

/* Anpassen (P12) */
.cz-item { gap: 4px; padding-right: 6px; }
.cz-item.off .cz-check { opacity: .5; }
.cz-check { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.cz-check input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; }
.cz-item .icon-btn { width: 40px; height: 40px; font-size: 1.1rem; }
.cz-item .icon-btn[disabled] { opacity: .25; }
.cz-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cz-bar span { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; font-size: .8rem; }
.start-edit { display: block; padding: var(--sp-3) 0; text-decoration: none; }
.card .row.between > .chip { white-space: nowrap; flex: none; }

/* Erinnerungen (P14) */
.rm-row { display: block; }
.rm-row.due { box-shadow: inset 3px 0 0 var(--bad); }
.rm-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--sp-3) var(--sp-3) 56px; }
.rm-chips, .rm-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-kinds { margin-bottom: var(--sp-3); }
.rm-chips .chip, .rm-kinds .chip { border: 0; cursor: pointer; font: inherit; font-size: .85rem; padding: 6px 10px; }
.rm-due { border: 1px solid var(--bad); background: linear-gradient(0deg, var(--bad-soft), var(--bad-soft)), var(--card); }
.rm-due h2 { color: var(--bad); }
.rm-due .rm-item + .rm-item { border-top: 1px solid #33415588; margin-top: var(--sp-2); padding-top: var(--sp-2); }
.rm-due .rm-acts { padding: 6px 0 0; }
.fab {
  position: fixed; z-index: 25; right: calc(16px + var(--safe-right)); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--acc); color: var(--acc-txt); font-size: 1.8rem; line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.fab:active { transform: scale(.95); }
@media (min-width: 900px) { .fab { right: calc(50% - 380px + 16px); } }

/* Changelog (P15) */
.cl-entry summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-entry summary::-webkit-details-marker { display: none; }
.cl-entry.current { border: 1px solid var(--ok); }
.cl-items { margin: var(--sp-2) 0 0; padding-left: 20px; }
.cl-items li { margin: 4px 0; line-height: 1.4; }
.cl-new { border: 1px solid var(--acc); }
.cl-new .btn { margin-top: var(--sp-2); }
