/* Design-/Farb-Picker (Essensplaner-Bildsprache, portiert). */

.design-wrap { margin-top: 2px; }
.design-section { margin: 18px 0 10px; }
.design-section-title { font-size: var(--fs-head); font-weight: var(--fw-heavy); letter-spacing: -.01em; }
.design-section-sub { font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--text-muted); margin-top: 2px; }

.design-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0 8px; }
.design-card { position: relative; border: 1.5px solid transparent; background: rgba(var(--accent-rgb), .05); border-radius: 16px; padding: 8px 8px 12px; cursor: pointer; overflow: hidden; text-align: center; display: flex; flex-direction: column; gap: 8px; transition: border-color var(--mo-2), transform var(--mo-1) var(--ease-spring); }
.design-card:active { transform: scale(.96); }
.design-card.is-active { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.design-card-preview { display: block; border-radius: 9px; overflow: hidden; }
.design-card-header { display: block; height: 26px; }
.design-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px 8px 8px; min-height: 34px; }
.design-card-dot { width: 6px; height: 6px; border-radius: 999px; }
.design-card-line { height: 2px; border-radius: 2px; width: 75%; }
.design-card-line--short { width: 45%; }
.design-card-nav { display: block; height: 8px; }
.design-card-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.design-card-delete { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; display: grid; place-items: center; cursor: pointer; }

.design-custom-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.design-custom-btn { flex: 1 0 calc((100% - 16px) / 3); max-width: calc((100% - 16px) / 3); background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 13px 8px 11px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: transform var(--mo-1) var(--ease-spring), border-color var(--mo-2); }
.design-custom-btn:active { transform: scale(.95); }
.design-custom-icon { display: flex; align-items: center; justify-content: center; color: var(--text); opacity: .85; }
.design-custom-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .18); }
.design-custom-label { font-size: var(--fs-cap); font-weight: var(--fw-heavy); color: var(--text); letter-spacing: .02em; opacity: .9; }
.design-save-btn { width: 100%; margin-top: 18px; padding: 14px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.10); background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); color: var(--text); font-size: var(--fs-callout); font-weight: var(--fw-bold); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform var(--mo-1) var(--ease-spring); display: flex; align-items: center; justify-content: center; gap: 8px; }
.design-save-ic { display: flex; }
.design-save-btn:active { transform: scale(.98); }

/* Color-Picker Bottom-Sheet (über den Sheets, eigener z-index) */
.cp-overlay { position: fixed; inset: 0; z-index: 1600; background: rgba(0, 0, 0, .55); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); display: flex; align-items: flex-end; justify-content: center; animation: ep-fade var(--mo-3) ease; }
.cp-overlay--center { align-items: center; padding: 20px; }
.cp-overlay--design { z-index: 1550; }
@keyframes ep-fade { from { opacity: 0; } }
@keyframes ep-up { from { transform: translateY(100%); } }
.cp-box { width: 100%; max-width: 500px; max-height: 92dvh; overflow-y: auto; background: radial-gradient(130% 70% at 50% -12%, rgba(var(--accent-rgb), 0.14) 0%, transparent 56%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 26%), var(--card); border: 1px solid rgba(255, 255, 255, 0.10); border-bottom: none; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 12px 20px max(24px, env(safe-area-inset-bottom)); box-shadow: 0 -16px 50px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); animation: ep-up var(--mo-5) var(--ease-spring-soft); }
.cp-handle { display: block; width: 36px; height: 5px; background: rgba(255, 255, 255, .22); border-radius: 999px; margin: 4px auto 12px; }
.cp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cp-title { font-size: 21px; font-weight: var(--fw-heavy); letter-spacing: -.02em; background: linear-gradient(180deg, var(--text) 0%, color-mix(in srgb, var(--text) 70%, transparent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cp-close { display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; width: 34px; height: 34px; color: var(--text); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform var(--mo-1) var(--ease-spring), background var(--mo-2); }
.cp-close:active { transform: scale(.88); background: rgba(var(--accent-rgb), .2); }
.cp-slider-section { display: flex; flex-direction: column; gap: 12px; }
.cp-slider-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cp-slider-label { font-size: 11px; font-weight: var(--fw-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.cp-slider-val { font-size: 11px; font-weight: var(--fw-heavy); color: var(--text); }
.cp-range { width: 100%; -webkit-appearance: none; appearance: none; background: var(--border); border-radius: 999px; height: 4px; outline: none; }
.cp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 999px; background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.cp-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 14px 0; }
.cp-cell { aspect-ratio: 1; border: 0; border-radius: 5px; cursor: pointer; padding: 0; transition: transform var(--mo-1); }
.cp-cell:active { transform: scale(.9); }
.cp-recent-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; background: var(--card2); border-radius: 12px; }
.cp-recent-label { font-size: 11px; font-weight: var(--fw-heavy); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.cp-recent-colors { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cp-recent-dot { width: 22px; height: 22px; border-radius: 999px; cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .1); }
.cp-bottom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cp-preview { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); flex: none; }
.cp-hex { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card2); color: var(--text); font-size: 15px; font-weight: var(--fw-bold); outline: none; letter-spacing: 1px; }
.cp-hex:focus { border-color: var(--accent); }
.cp-apply { padding: 12px 20px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: var(--fs-callout); font-weight: var(--fw-bold); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb), .5); }
.cp-apply:active { transform: scale(.96); }

/* Save-Profil Modal */
.save-profile-box { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; width: 100%; max-width: 320px; box-shadow: 0 16px 60px rgba(0, 0, 0, .45); animation: cp-pop .3s var(--ease-spring); }
@keyframes cp-pop { from { transform: scale(.92); opacity: 0; } }
.save-profile-title { font-size: var(--fs-head); font-weight: var(--fw-heavy); letter-spacing: -.01em; margin-bottom: 12px; text-align: center; }
.save-profile-input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card2); color: var(--text); font-size: var(--fs-base); outline: none; }
.save-profile-input:focus { border-color: var(--accent); }
.save-row { display: flex; gap: 10px; margin-top: 16px; }
.save-row .btn-primary, .save-row .btn-secondary { flex: 1; width: auto; }

/* ─── Orte-Sheet ─── */
.place-add-head { gap: 8px; }
.place-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.place-empty { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); padding: 18px 8px; line-height: 1.5; }
.place-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.place-row-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--text-muted); }
.place-row-ic.on { background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.place-ico { display: flex; }
.place-ico svg { width: 18px; height: 18px; }
.place-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.place-row-name { font-weight: var(--fw-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-row-sub { font-size: var(--fs-cap); color: var(--text-muted); }
.place-del { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-muted); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: color var(--mo-2), background var(--mo-2); }
.place-del:active { color: var(--danger); background: rgba(var(--danger-rgb), .14); }
.place-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card2); margin-bottom: 12px; }
.place-search-ic { display: flex; color: var(--text-muted); }
.place-search-input { flex: 1; padding: 12px 0; border: 0; background: transparent; color: var(--text); font-size: var(--fs-base); outline: none; font-family: inherit; }
.place-hint { font-size: var(--fs-sm); color: var(--text-muted); padding: 2px 4px 10px; }
.place-results { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; max-height: 230px; overflow-y: auto; }
.place-result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card2); color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--mo-2); }
.place-result:active { border-color: rgba(var(--accent-rgb), .4); }
.place-result-ic { flex: none; display: flex; color: var(--text-muted); }
.place-result-label { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.35; }
.place-picked { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); padding: 6px 0 12px; line-height: 1.4; }
.place-picked-ic { flex: none; display: flex; color: var(--accent); }
.place-icon-row { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.place-icon-btn { width: 46px; height: 46px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card2); color: var(--text-muted); cursor: pointer; display: grid; place-items: center; transition: transform var(--mo-1) var(--ease-spring), border-color var(--mo-2), color var(--mo-2); }
.place-icon-btn:active { transform: scale(.92); }
.place-icon-btn.on { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.place-icon-btn svg { width: 22px; height: 22px; }
