/* =========================================================================
   ZweisamZeit  -  freundliches, sonniges Design
   ========================================================================= */

:root {
    /* warme Grundfarben */
    --bg:          #f7ece3;
    --bg-2:        #fbf4ee;
    --surface:     #ffffff;
    --ink:         #4a2e22;
    --ink-soft:    #8a6d5e;
    --ink-faint:   #b39c8e;
    --line:        #ecdccf;
    --line-strong: #dcc4b2;

    /* Akzente */
    --coral:   #d85a30;  --coral-bg:  #faece7;  --coral-ink:  #712b13;
    --amber:   #ba7517;  --amber-bg:  #faeeda;  --amber-ink:  #633806;
    --teal:    #1d9e75;  --teal-bg:   #e1f5ee;  --teal-ink:   #04342c;
    --sun:     #f4a63c;

    /* Personenfarben */
    --blue:    #378add;  --blue-bg:   #e6f1fb;  --blue-ink:   #0c447c;
    --purple:  #7f77dd;  --purple-bg: #eeedfe;  --purple-ink: #26215c;
    --pink:    #d4537e;  --pink-bg:   #fbeaf0;  --pink-ink:   #4b1528;
    --green:   #639922;  --green-bg:  #eaf3de;  --green-ink:  #173404;
    --red:     #e24b4a;  --red-bg:    #fcebeb;  --red-ink:    #501313;
    --gray:    #888780;  --gray-bg:   #f1efe8;  --gray-ink:   #2c2c2a;

    --radius:  14px;
    --radius-lg: 20px;
    --shadow:  0 6px 20px rgba(120, 78, 50, 0.10);
    --shadow-lg: 0 18px 50px rgba(120, 78, 50, 0.22);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 100% -10%, #ffe9cf 0%, rgba(255,233,207,0) 55%),
        radial-gradient(900px 500px at -10% 110%, #ffe1d3 0%, rgba(255,225,211,0) 55%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.full { width: 100%; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(216,90,48,.28); }
.btn-primary:hover { background: #c74d27; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(138,109,94,.10); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #cf3d3c; }

.icon-btn {
    border: none; background: transparent; cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 20px; color: var(--ink-soft);
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(138,109,94,.10); }

input, textarea, select {
    font: inherit; width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg-2);
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(216,90,48,.14);
    background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: block; margin: 2px 2px 6px; }

/* ---------- Avatare / Personen ---------- */
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex: none;
}
.avatar-blue   { background: var(--blue);   color: #fff; }
.avatar-purple { background: var(--purple); color: #fff; }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }

/* =========================================================================
   Login
   ========================================================================= */
.login-screen {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px 32px;
    width: 100%; max-width: 380px;
    text-align: center;
}
.login-sun { font-size: 44px; color: var(--sun); }
.login-logo { width: 92px; height: 92px; border-radius: 50%; box-shadow: 0 8px 22px rgba(120,78,50,.20); }
.login-card h1 { font-size: 24px; margin: 12px 0 4px; color: var(--coral-ink); }
.login-sub { color: var(--ink-soft); margin: 0 0 26px; }
.login-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.person-btn {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 22px 10px; border-radius: var(--radius);
    border: 2px solid var(--line); background: var(--bg-2);
    cursor: pointer; font: inherit; font-weight: 600; color: var(--ink);
    transition: border-color .15s ease, transform .08s ease, background .15s;
}
.person-btn .avatar { width: 46px; height: 46px; font-size: 19px; }
.person-btn:hover { border-color: var(--line-strong); background: #fff; }
.person-btn:active { transform: scale(.97); }

.login-form { margin-top: 6px; text-align: left; }
.login-who { text-align: center; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.login-actions { display: flex; gap: 10px; margin-top: 14px; }
.login-actions .btn { flex: 1; }
.login-error { color: var(--red); font-size: 14px; text-align: center; margin: 12px 0 0; }

/* =========================================================================
   App-Grundgeruest
   ========================================================================= */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(251,244,238,.85);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--coral-ink); }
.brand-sun { color: var(--sun); font-size: 20px; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.chip {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1.5px solid var(--line-strong); background: var(--surface);
    color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600;
    padding: 7px 12px; border-radius: 999px; cursor: pointer;
    transition: all .15s ease;
}
.chip .chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); }
.chip.is-on { background: var(--teal-bg); color: var(--teal-ink); border-color: transparent; }
.chip.is-on .chip-dot { background: var(--teal); }

/* Tabs */
.tabbar {
    display: flex; gap: 4px; padding: 10px 12px;
    max-width: 900px; margin: 0 auto; width: 100%;
}
.tab {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: none; background: transparent; cursor: pointer;
    padding: 8px 2px; border-radius: var(--radius);
    font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-soft);
    transition: background .15s ease, color .15s ease;
}
.tab span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tab .tab-ico { font-size: 20px; }
.tab.is-active { background: var(--surface); color: var(--coral-ink); box-shadow: var(--shadow); }

.content { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 8px 16px 48px; }

/* Bereichs-Kopf */
.view-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 16px 4px 14px;
}
.view-head h2 { font-size: 22px; margin: 0; color: var(--coral-ink); }
.view-head .sub { color: var(--ink-soft); font-size: 14px; margin: 2px 0 0; }

.add-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--coral); color: #fff; border: none; cursor: pointer;
    font: inherit; font-weight: 600; font-size: 14px;
    padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(216,90,48,.28);
    transition: transform .08s ease, background .15s;
}
.add-btn:active { transform: scale(.96); }
.add-btn:hover { background: #c74d27; }
.add-btn .plus { font-size: 18px; line-height: 1; }

/* Suchleiste */
.searchbar {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1.5px solid var(--line-strong);
    border-radius: 999px; padding: 3px 14px; margin: 0 4px 16px;
    box-shadow: var(--shadow);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.searchbar:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(216,90,48,.12); }
.searchbar .search-ico { font-size: 15px; opacity: .55; flex: none; }
.searchbar input {
    border: none !important; background: transparent !important;
    box-shadow: none !important; padding: 9px 0; flex: 1;
}
.search-clear {
    border: none; background: transparent; cursor: pointer; font-size: 20px; line-height: 1;
    color: var(--ink-faint); width: 28px; height: 28px; border-radius: 50%; flex: none;
}
.search-clear:hover { background: rgba(138,109,94,.10); }

/* leerer Zustand */
.empty {
    text-align: center; color: var(--ink-soft);
    padding: 48px 20px; background: var(--surface);
    border-radius: var(--radius-lg); border: 2px dashed var(--line-strong);
    margin-top: 10px;
}
.empty .big { font-size: 40px; }
.empty p { margin: 8px 0 0; }

/* =========================================================================
   Karten (Listen / Rubriken)
   ========================================================================= */
.card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
    border-top: 4px solid var(--gray);
}
.card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.card-head.clickable { cursor: pointer; user-select: none; -webkit-user-select: none; }
.card-head.clickable:hover { background: var(--bg-2); }
.card-chevron {
    flex: none; width: 16px; text-align: center;
    font-size: 13px; color: var(--ink-faint);
    transition: color .15s ease;
}
.card-head.clickable:hover .card-chevron { color: var(--ink-soft); }
/* eingeklappt: der Kopf ist die ganze Karte, daher keine Trennlinie darunter */
.card.is-collapsed .card-head { border-bottom: none; }

.card-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.card-title { font-size: 18px; font-weight: 700; margin: 0; flex: 1; }
.card-meta { font-size: 12px; color: var(--ink-faint); }
.card-tools { display: flex; align-items: center; gap: 2px; }

/* Listen-Eintraege */
.items { list-style: none; margin: 0; padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 12px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--line);
    transition: opacity .2s ease, background .15s;
}
.item.done { opacity: .55; }
.item.done .item-text { text-decoration: line-through; color: var(--ink-faint); }
.check {
    width: 24px; height: 24px; border-radius: 8px; flex: none;
    border: 2px solid var(--line-strong); background: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; transition: all .15s ease;
}
.check.on { background: var(--teal); border-color: var(--teal); }
.item-text { flex: 1; font-size: 15px; }
.item .who, .card-head .who { flex: none; }

.divider {
    display: flex; align-items: center; gap: 10px;
    color: var(--ink-faint); font-size: 12px; margin: 4px 4px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.item-add {
    display: flex; gap: 8px; padding: 4px 12px 14px;
}
.item-add input { padding: 10px 12px; }
.item-add button {
    flex: none; border: none; cursor: pointer; background: var(--teal-bg); color: var(--teal-ink);
    border-radius: 12px; padding: 0 16px; font: inherit; font-weight: 700; font-size: 20px;
}
.item-add button:hover { background: #cdeee1; }

/* Werkzeuge pro Zeile (Unterpunkt / Bearbeiten / Löschen) */
.item-tools { display: flex; align-items: center; gap: 0; flex: none; }
.item-tools .icon-btn { width: 30px; height: 30px; font-size: 15px; }
.card-tools .icon-btn { width: 34px; height: 34px; font-size: 16px; }

/* Unterpunkte (eine Ebene) */
.subwrap { list-style: none; padding: 0; margin: 0; }
.subitems {
    list-style: none; margin: 2px 0 6px 20px; padding: 6px 0 0 12px;
    display: flex; flex-direction: column; gap: 6px;
    border-left: 2px solid var(--line);
}
.item.sub { padding: 9px 12px; background: #fff; }
.item.sub .item-text { font-size: 14px; }
.subadd { display: flex; gap: 6px; align-items: center; }
.subadd input { padding: 8px 12px; font-size: 14px; border-style: dashed; background: transparent; }
.subadd button {
    flex: none; border: none; cursor: pointer; background: var(--teal-bg); color: var(--teal-ink);
    border-radius: 10px; padding: 0 13px; font: inherit; font-weight: 700; font-size: 18px; height: 36px;
}
.subadd button:hover { background: #cdeee1; }

/* Autoren-Kennzeichnung ein/aus */
.app:not(.show-authors) .who { display: none; }

.who {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
}
.who.blue { background: var(--blue); } .who.purple { background: var(--purple); }
.who.teal { background: var(--teal); } .who.coral { background: var(--coral); }

/* =========================================================================
   Notizen
   ========================================================================= */
.notes-grid { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.note {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 14px; cursor: pointer; transition: transform .08s ease, box-shadow .15s;
}
.note:hover { box-shadow: var(--shadow); }
.note:active { transform: scale(.99); }
.note h4 { margin: 0 0 4px; font-size: 15px; }
.note p { margin: 0; font-size: 14px; color: var(--ink-soft);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.note-date { font-size: 11px; color: var(--ink-faint); }

/* =========================================================================
   Planer / Kalender
   ========================================================================= */
.cal {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 14px; margin-bottom: 18px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font-size: 18px; color: var(--coral-ink); text-transform: capitalize; }
.cal-nav { display: flex; gap: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-faint); padding: 4px 0; }
.cal-cell {
    min-height: 62px; border-radius: 10px; background: var(--bg-2);
    border: 1px solid transparent; padding: 4px; cursor: pointer;
    display: flex; flex-direction: column; gap: 2px; overflow: hidden;
    font-size: 12px;
}
.cal-cell.out { opacity: .38; }
.cal-cell.today { border-color: var(--coral); background: var(--coral-bg); }
.cal-cell:hover { border-color: var(--line-strong); }
.cal-cell.range-start { border-color: var(--teal); background: var(--teal-bg); }
.cal-num { font-weight: 700; color: var(--ink-soft); }
.cal-cell.today .cal-num { color: var(--coral); }

/* Termine im Tagesfeld */
.cal-chips { display: flex; flex-direction: column; gap: 2px; margin-top: auto; min-width: 0; }
.cal-chip {
    display: block; border-radius: 4px; padding: 1px 4px;
    font-size: 10px; font-weight: 600; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-more { font-size: 10px; font-weight: 700; color: var(--ink-faint); padding-left: 4px; }
.cal-hint {
    margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
    background: var(--teal-bg); color: var(--teal-ink);
    font-size: 13px; font-weight: 600;
}
.cal-nav .chip { font-size: 12px; padding: 6px 10px; }

/* Auf schmalen Bildschirmen bleibt nur ein farbiger Balken je Termin */
@media (max-width: 560px) {
    .cal-cell { min-height: 54px; }
    .cal-chip { font-size: 0; padding: 0; height: 5px; border-radius: 3px; background: var(--c) !important; }
    .cal-more { font-size: 9px; }
}

.events-list { display: flex; flex-direction: column; gap: 10px; }
.event {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
    padding: 12px 14px; border-left: 5px solid var(--teal);
}
.event-date {
    text-align: center; flex: none; width: 46px;
    background: var(--bg-2); border-radius: 10px; padding: 4px 0;
}
.event-date .d { font-size: 18px; font-weight: 800; line-height: 1; color: var(--coral-ink); }
.event-date .m { font-size: 10px; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.event-body { flex: 1; }
.event-body h4 { margin: 0; font-size: 15px; }
.event-body .time { font-size: 13px; color: var(--ink-soft); }
.event-body .enote { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* =========================================================================
   Puzzle
   ========================================================================= */
.puzzle-count { color: var(--ink-faint); font-size: 13px; margin: 0 4px 12px; }
.puzzle-search { margin-bottom: 12px; }
.puzzle-filters { display: flex; gap: 8px; margin: 0 4px; }
.filter-select {
    flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px;
    border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
}

.puzzle-list { display: flex; flex-direction: column; gap: 10px; }
.puzzle { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.puzzle-head {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer;
    user-select: none; -webkit-user-select: none;
}
.puzzle-head:hover { background: var(--bg-2); }
.puzzle-name { flex: 1; font-size: 16px; font-weight: 700; min-width: 0; }
.puzzle-flag {
    flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: var(--teal-bg); color: var(--teal-ink);
}
.puzzle-cam { flex: none; font-size: 14px; }

.puzzle-detail { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.detail-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row:last-of-type { border-bottom: none; }
.detail-label { flex: none; width: 108px; color: var(--ink-soft); font-weight: 600; }
.detail-value { flex: 1; min-width: 0; word-break: break-word; }
.puzzle-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.btn-soft {
    background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
    padding: 10px 14px; font-size: 14px; flex: 1; min-width: 44%;
}
.btn-soft:hover { background: #f3e6db; }
.btn-soft.danger { color: var(--red); }
.btn-soft.danger:hover { background: var(--red-bg); }

/* Ein/Aus-Schalter (z.B. "schon gepuzzelt") */
.toggle-btn {
    width: 100%; text-align: left; font: inherit; font-weight: 600; cursor: pointer;
    padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
    background: var(--bg-2); color: var(--ink-soft); transition: all .15s ease;
}
.toggle-btn.on { background: var(--teal-bg); color: var(--teal-ink); border-color: transparent; }

/* Foto-Auswahl im Formular */
.photo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-preview { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.photo-preview img { max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: contain; align-self: start; }
.photo-note { font-size: 12px; color: var(--ink-faint); }

/* Bildanzeige (Lightbox) */
.lightbox { align-items: center; }
.lightbox-inner {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 20px; max-width: 96vw; max-height: 92vh;
}
.lightbox-inner img { max-width: 92vw; max-height: 72vh; border-radius: 12px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-cap { color: #fff; font-weight: 600; font-size: 16px; text-align: center; }

/* =========================================================================
   Overlays (Pop-ups)
   ========================================================================= */
.overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(74,46,34,.42);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
    animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
    background: var(--surface); width: 100%; max-width: 460px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    animation: rise .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { transform: translateY(40px); opacity: .6; } }
.sheet-sm { max-width: 380px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sheet-emoji { font-size: 30px; }
.sheet-head h2 { margin: 0; font-size: 20px; color: var(--coral-ink); }
.sheet-sub { color: var(--ink-soft); margin: 6px 0 18px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn { flex: 1; }

.modal-body { display: flex; flex-direction: column; gap: 14px; }
.color-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    border: 3px solid transparent; transition: transform .08s ease;
}
.swatch:active { transform: scale(.9); }
.swatch.on { border-color: var(--ink); }

/* Aktions-Menü */
.menu-actions { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 16px; }
.menu-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    border: none; background: var(--bg-2); cursor: pointer; text-align: left;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
    padding: 13px 16px; border-radius: 12px;
    transition: background .15s ease, transform .08s ease;
}
.menu-item:hover { background: #f3e6db; }
.menu-item:active { transform: scale(.985); }
.menu-item .mi-ico { font-size: 18px; width: 22px; text-align: center; flex: none; }
.menu-item.danger { color: var(--red); }
.menu-item.danger:hover { background: var(--red-bg); }
.menu-item[disabled] { opacity: .38; cursor: default; }
.menu-item[disabled]:hover { background: var(--bg-2); }

.whatsnew-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto; }
.whatsnew-list li {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--bg-2); border-radius: 12px; padding: 11px 13px; font-size: 14px;
}
.whatsnew-list .wn-area { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: none; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 600; z-index: 200; box-shadow: var(--shadow-lg);
    animation: rise .2s ease;
}

/* =========================================================================
   Groessere Bildschirme
   ========================================================================= */
@media (min-width: 680px) {
    .overlay { align-items: center; padding: 24px; }
    .sheet { border-radius: var(--radius-lg); }
    @keyframes rise { from { transform: translateY(20px) scale(.98); opacity: .5; } }
    .notes-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .tab { flex-direction: row; gap: 8px; font-size: 14px; }
}
