/* =====================================================================
   Lesezeichen-Manager – Stylesheet (keine externen Abhängigkeiten)
   ===================================================================== */

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --border: #e2e5ea;
    --text: #1a1d23;
    --text-2: #5b6270;
    --accent: #2f6fed;
    --accent-hover: #1f5ad4;
    --accent-soft: #e6eefd;
    --danger: #d23b3b;
    --danger-soft: #fdecec;
    --warn: #b7791f;
    --warn-soft: #fdf4e3;
    --success: #23855a;
    --success-soft: #e5f5ed;
    --fav: #f2a900;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
    --radius: 10px;
    --radius-sm: 6px;
    --topbar-h: 56px;
    --sidebar-w: 272px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #111317;
        --surface: #1a1d23;
        --surface-2: #23272f;
        --border: #2e333c;
        --text: #e7e9ee;
        --text-2: #9aa2b1;
        --accent: #6b9bff;
        --accent-hover: #8cb2ff;
        --accent-soft: #1f2a42;
        --danger: #f07070;
        --danger-soft: #3a1f22;
        --warn: #e3b25c;
        --warn-soft: #382c17;
        --success: #5fcf98;
        --success-soft: #17322a;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-2: #23272f;
    --border: #2e333c;
    --text: #e7e9ee;
    --text-2: #9aa2b1;
    --accent: #6b9bff;
    --accent-hover: #8cb2ff;
    --accent-soft: #1f2a42;
    --danger: #f07070;
    --danger-soft: #3a1f22;
    --warn: #e3b25c;
    --warn-soft: #382c17;
    --success: #5fcf98;
    --success-soft: #17322a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.5 var(--font);
    color: var(--text);
    background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0; }
h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1rem; margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
.sprite { display: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pad { padding: .25rem .75rem; }
[hidden] { display: none !important; }

/* ---------- Formulare ---------- */
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=date], select, textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .55rem .7rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 4rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; cursor: pointer; }
label.check input { margin-top: .25rem; accent-color: var(--accent); }
.input-group { display: flex; gap: .5rem; }
.input-group input { flex: 1; min-width: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    font: inherit; font-weight: 500; font-size: .9rem;
    padding: .5rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: .3rem .6rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-google { background: var(--surface); }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--text-2);
    cursor: pointer;
    list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn-sm { width: 26px; height: 26px; }
.icon-btn-sm .i { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.icon-btn.fav.on { color: var(--fav); }
.icon-btn.fav.on .i { fill: var(--fav); }
.icon-btn.pub.on { color: var(--success); }

/* ---------- Layout ---------- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: .75rem;
    padding: 0 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-icon { color: var(--accent); fill: var(--accent); stroke: var(--accent); width: 22px; height: 22px; }
.brand-lg { font-size: 1.3rem; justify-content: center; margin-bottom: 1.5rem; }
.sidebar-toggle { display: none; }

.search { flex: 1; max-width: 640px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.search > .i { position: absolute; left: .7rem; color: var(--text-2); pointer-events: none; }
.search input { padding-left: 2.3rem; padding-right: 2.2rem; background: var(--surface-2); border-color: transparent; }
.search input:focus { background: var(--surface); }
.kbd-hint { position: absolute; right: .6rem; color: var(--text-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 .35rem; font-size: .75rem; }
.topbar-actions { display: flex; align-items: center; gap: .35rem; }

.theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .theme-icon-dark { display: none; }
    :root[data-theme="system"] .theme-icon-light { display: inline; }
}

.menu { position: relative; }
.menu > summary { list-style: none; }
.avatar { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 50%; }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 240px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem; z-index: 50;
}
.menu-head { padding: .5rem .6rem .6rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; display: flex; flex-direction: column; }
.menu-head small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.menu-panel a, .menu-panel button {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .5rem .6rem; border: 0; background: none; font: inherit; color: var(--text);
    border-radius: var(--radius-sm); cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); text-decoration: none; }

.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
    width: var(--sidebar-w); flex: none;
    position: sticky; top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    padding: .75rem .5rem 2rem;
    border-right: 1px solid var(--border);
    background: var(--surface);
}
.main { flex: 1; min-width: 0; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; max-width: 1200px; }
.backdrop { display: none; }

.nav-section { margin-bottom: 1.1rem; }
.nav-heading { display: flex; align-items: center; justify-content: space-between; padding: .25rem .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.nav-heading a { text-transform: none; letter-spacing: 0; font-weight: 500; }
.nav-link, .tree-row a {
    display: flex; align-items: center; gap: .6rem;
    padding: .42rem .75rem; border-radius: var(--radius-sm);
    color: var(--text); font-size: .92rem;
}
.nav-link:hover, .tree-row a:hover { background: var(--surface-2); text-decoration: none; }
.nav-link.active, .tree-row.active a { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link > span:first-of-type, .tree-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-size: .75rem; color: var(--text-2); font-weight: 500; }
.count-warn { color: var(--warn); font-weight: 700; }

.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-left: 1rem; }
.tree-item.collapsed > .tree { display: none; }
.tree-row { display: flex; align-items: center; border-radius: var(--radius-sm); }
.tree-row a { flex: 1; min-width: 0; padding-left: .25rem; }
.tree-toggle { width: 22px; height: 22px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; flex: none; }
.tree-toggle .i { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .15s; }
.tree-item.collapsed > .tree-row .tree-toggle .i { transform: rotate(0); }
.tree-spacer { width: 22px; flex: none; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .35rem; padding: .25rem .75rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .8rem; }
.tag:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.tag.active { background: var(--accent); color: #fff; }
.tag small { opacity: .7; }
.tag-sm { font-size: .75rem; padding: .05rem .45rem; }

/* Drag & Drop */
.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-soft) !important; }
.dragging { opacity: .45; }
.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.drop-after { box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: .25rem; font-size: .85rem; color: var(--text-2); margin-bottom: .25rem; flex-wrap: wrap; }
.breadcrumb .i { width: 14px; height: 14px; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.segmented button { border: 0; background: var(--surface); padding: .4rem .55rem; color: var(--text-2); cursor: pointer; display: inline-flex; }
.segmented button.active { background: var(--accent-soft); color: var(--accent); }

.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.filters summary { padding: .65rem 1rem; cursor: pointer; display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9rem; color: var(--text-2); }
.clear-filters { margin-left: auto; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; padding: 0 1rem 1rem; align-items: end; }
.filter-fav { padding-bottom: .55rem; }

.subfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.subfolder { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 500; }
.subfolder:hover { border-color: var(--accent); text-decoration: none; }
.subfolder span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subfolder .i { color: var(--accent); }

/* ---------- Lesezeichen-Liste ---------- */
.bookmarks { list-style: none; margin: 0; padding: 0; }
.bm { position: relative; display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; transition: border-color .15s, box-shadow .15s; }
.bm:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.bm.is-dead .bm-title { color: var(--text-2); text-decoration: line-through; }
.view-list { display: flex; flex-direction: column; gap: .5rem; }
.bm-select { position: absolute; top: .5rem; left: .5rem; z-index: 2; opacity: 0; transition: opacity .15s; }
.bm:hover .bm-select, .bm-select:has(:checked), .has-selection .bm-select { opacity: 1; }
.bm-select input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.bm-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 1.91 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.bm-thumb:hover { text-decoration: none; }
.bm-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-body { flex: 1; min-width: 0; }
.bm-title-row { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.favicon { width: 16px; height: 16px; flex: none; border-radius: 3px; }
.bm-title { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-url { font-size: .8rem; color: var(--success); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem; }
.bm-path { color: var(--text-2); }
.bm-desc, .bm-notes { margin: .3rem 0 0; font-size: .87rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-notes { border-left: 3px solid var(--fav); padding-left: .5rem; font-style: italic; }
.bm-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .45rem; font-size: .78rem; }
.bm-actions { display: flex; gap: .1rem; flex: none; }
.bm-actions .icon-btn:not(.fav.on):not(.pub.on) { opacity: .55; }
.bm:hover .bm-actions .icon-btn { opacity: 1; }
.sortable .bm { cursor: grab; }

.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.view-grid .bm { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.view-grid .bm-thumb { width: 100%; border-radius: 0; }
.view-grid .bm-body { padding: .75rem .85rem .5rem; width: 100%; }
.view-grid .bm-actions { padding: 0 .5rem .5rem; align-self: flex-end; }
.view-grid .bm-select { opacity: 1; background: var(--surface); border-radius: 4px; padding: 2px; line-height: 0; }

.badge { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge:not([class*="badge-"]) { background: var(--surface-2); color: var(--text-2); }
.menu-badge { margin-left: auto; }
.avatar { position: relative; }
.avatar-dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }

/* ---------- Öffentliche Seite ---------- */
.public-topbar { justify-content: flex-end; }
.public-main { max-width: 1040px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; }
.public-hero { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1.25rem; }
.public-hero h1 { font-size: 1.7rem; }
.public-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.public-search { position: relative; display: flex; align-items: center; margin-bottom: 1rem; }
.public-search > .i { position: absolute; left: .75rem; color: var(--text-2); pointer-events: none; }
.public-search input { padding: .7rem .8rem .7rem 2.4rem; font-size: 1rem; }
.public-filters { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.public-tags { padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .85rem; }
.chip .i { width: 15px; height: 15px; color: var(--accent); }
.chip small { color: var(--text-2); }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.active .i, .chip.active small { color: #fff; }
.public-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.public-hint .i { width: 16px; height: 16px; margin-right: .2rem; }
.public-hint a { overflow-wrap: anywhere; }
.input-prefix { display: inline-flex; align-items: center; padding: 0 .6rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); font-size: .85rem; font-weight: 400; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.check-row { gap: 1.5rem; align-items: flex-start; }

/* ---------- Adminbereich ---------- */
.admin-pending { margin-bottom: 1rem; border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.pending-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.pending-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .65rem .8rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.pending-info { display: flex; flex-direction: column; min-width: 0; }
.pending-info strong { overflow-wrap: anywhere; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.admin-toolbar input, .admin-toolbar select { width: auto; padding: .35rem .55rem; font-size: .88rem; }
.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.table-wrap .table { min-width: 640px; }
.table td .badge { margin-left: .3rem; }
.table td:nth-child(2) .badge { margin-left: 0; }
.admin-actions { margin-top: 1rem; }
.admin-delete { border: 1px solid var(--danger); border-radius: var(--radius-sm); padding: 1rem; }
.admin-delete h3 { color: var(--danger); }

.bulkbar {
    position: sticky; top: calc(var(--topbar-h) + .5rem); z-index: 20;
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius);
    padding: .6rem .8rem; margin-bottom: .75rem; box-shadow: var(--shadow-lg);
}
.bulkbar select, .bulkbar input { width: auto; padding: .3rem .5rem; font-size: .85rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }

.empty { text-align: center; padding: 3.5rem 1rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty > .i { width: 44px; height: 44px; color: var(--text-2); opacity: .5; margin-bottom: .5rem; }
.empty h2 { justify-content: center; margin-bottom: .25rem; }
.row-center { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Karten, Formulare ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-end { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.align-start { align-items: start; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.preview { position: sticky; top: calc(var(--topbar-h) + 1rem); display: flex; flex-direction: column; gap: .7rem; }
.preview-image { aspect-ratio: 1.91 / 1; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; }
.preview-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-image.is-empty img { display: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; font-size: .82rem; margin: 0; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; }
.settings { display: grid; gap: 1rem; max-width: 760px; }
.segmented-form { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.code-block { display: block; padding: .55rem .75rem; background: var(--surface-2); border-radius: var(--radius-sm); overflow-x: auto; }
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.6rem 1rem; text-align: center; align-items: center; cursor: pointer; color: var(--text-2); font-weight: 400; }
.dropzone.drop-target, .dropzone:hover { border-color: var(--accent); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .i { width: 28px; height: 28px; }
.help summary { cursor: pointer; font-size: .9rem; color: var(--accent); }
.help dl { font-size: .85rem; }
.help dt { font-weight: 600; margin-top: .5rem; }
.help dd { margin: 0; color: var(--text-2); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .55rem .5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.table .num { text-align: right; }
.table .input-group input { padding: .3rem .5rem; }
.prose { max-width: 760px; line-height: 1.65; }
.prose h2 { margin: 1.5rem 0 .5rem; }

/* ---------- Meldungen ---------- */
.alert { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-warning { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.stack-sm { flex-direction: column; align-items: stretch; }
.alert-close { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; opacity: .7; }
.toast {
    position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
    background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-sm);
    font-size: .9rem; box-shadow: var(--shadow-lg); transition: transform .25s, visibility .25s; z-index: 100; max-width: calc(100vw - 2rem);
    visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

.dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; width: min(460px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(10, 12, 16, .45); }

/* ---------- Gastseiten ---------- */
.guest-main { max-width: 440px; margin: 0 auto; padding: 3rem 1rem; }
.guest-main:has(.prose) { max-width: 820px; }
.auth-card { display: flex; flex-direction: column; gap: 1rem; }
.auth-card h1 { font-size: 1.35rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--text-2); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.guest-footer { text-align: center; margin-top: 1.5rem; font-size: .85rem; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--accent); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .form-layout { grid-template-columns: 1fr; }
    .preview { position: static; }
}
@media (max-width: 860px) {
    .sidebar-toggle { display: inline-flex; }
    .sidebar {
        position: fixed; left: 0; top: var(--topbar-h); bottom: 0; z-index: 40;
        transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg);
        height: auto;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .backdrop { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0, 0, 0, .35); z-index: 35; }
    .kbd-hint { display: none; }
}
@media (max-width: 640px) {
    .topbar { gap: .4rem; padding: 0 .5rem; }
    .brand span, .hide-sm { display: none; }
    .main { padding: 1rem 1rem 3rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .bm { gap: .65rem; padding: .65rem; }
    .view-list .bm-thumb { display: none; }
    .view-list .bm { flex-wrap: wrap; }
    .view-list .bm-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: .35rem; }
    .bm-select { opacity: 1; position: static; padding-top: .1rem; }
    .view-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .view-grid .bm-thumb { aspect-ratio: 2.6 / 1; }
    .view-grid .bm-select { position: absolute; }
    .bulkbar { top: calc(var(--topbar-h) + .25rem); }
    h1 { font-size: 1.3rem; }
}
@media (max-width: 420px) {
    .view-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Auswahl-Checkbox: in der Liste fester Platz am Zeilenanfang (keine Vorschau-Kachel mehr nötig) */
.view-list .bm-select { position: static; padding-top: .15rem; }
.view-grid .bm:not(:has(.bm-thumb)) .bm-select { position: static; padding: .6rem .85rem 0; background: none; }
.view-grid .bm:not(:has(.bm-thumb)) .bm-body { padding-top: .35rem; }

/* ---------- Profilbilder ---------- */
.avatar { overflow: visible; }
.avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
img.public-avatar { width: 64px; height: 64px; object-fit: cover; background: var(--surface-2); border: 2px solid var(--surface); box-shadow: var(--shadow); }
.public-hero .public-avatar { width: 64px; height: 64px; }
.avatar-edit { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.avatar-preview { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit .grow { flex: 1; min-width: 220px; }
.avatar-edit input[type=file] { font: inherit; font-size: .85rem; max-width: 100%; }
.admin-title { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.admin-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* Ordner-Hinweis in der Linkkachel */
.folder-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem; color: var(--accent); background: var(--accent-soft); max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-chip .i { width: 13px; height: 13px; flex: none; }
.folder-chip:hover { text-decoration: none; filter: brightness(.95); }

/* Linkprüfung (Bereich „Tote Links“) */
.linkcheck-panel { margin-bottom: 1rem; }
.linkcheck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.linkcheck-head select { width: auto; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s; }
.linkcheck-progress .small { margin: .5rem 0 0; }

/* Duplikate */
.dup-notice { margin: 0; }
.dup-list { margin: .25rem 0; padding-left: 1.2rem; }
.dup-group { margin-bottom: 1rem; }
.dup-group-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dup-url { overflow-wrap: anywhere; font-size: .92rem; }
.dup-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dup-items li { display: flex; align-items: flex-start; gap: .5rem; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dup-items li:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.dup-choice { flex: 1; min-width: 0; }
.dup-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.dup-info .bm-meta { margin-top: 0; }

.radio-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem .8rem; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.radio-group legend { font-weight: 500; font-size: .9rem; padding: 0 .3rem; }

/* Tresor (verschlüsselte Zugangsdaten) */
.vault-box { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .6rem .9rem .9rem; margin: 0; min-width: 0; }
.vault-box legend { font-weight: 500; padding: 0 .3rem; display: inline-flex; align-items: center; gap: .35rem; }
.vault-box .row { flex-wrap: wrap; }
.vault-box input[data-vault-field], .vault-dialog input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.vault-btn { color: var(--accent); }
.vault-dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; width: min(480px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.vault-dialog::backdrop { background: rgba(10, 12, 16, .45); }
.vault-dialog h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: .4rem; }
.vault-dialog label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.vault-notes { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .7rem; margin: .3rem 0 0; font-size: .9rem; }
.vault-error { color: var(--danger); min-height: 1.2em; margin: 0; }
.inline-label { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; align-self: flex-start; text-align: left; gap: .6rem; flex-wrap: wrap; font-size: .9rem; }
.inline-label select { width: auto; }

/* Einladungen */
.invite-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.invite-form label { flex: 1 1 180px; }
.invite-form label:nth-of-type(2) { flex: 0 0 140px; }
.invite-code-big { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 600; letter-spacing: .08em; color: var(--text); }
.invite-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.invite-table td .badge { margin-left: 0; }
.invite-table td.row-end { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; }
.invite-table .invite-copy { display: inline-flex; }
.invite-table tr:not(.invite-open) code { color: var(--text-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-2) 50%, transparent); }
.invite-table tr.invite-used code { text-decoration: none; }
.nowrap { white-space: nowrap; }

/* Hinweis unter der Kopfzeile der öffentlichen Seite */
.public-hero:has(+ .public-note) { margin-bottom: .6rem; }
.public-note { margin: 0 0 1.25rem; padding-top: .55rem; border-top: 1px solid var(--border); font-size: .78rem; letter-spacing: .02em; color: var(--text-2); }

/* Anleitung iPad & iPhone */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.guide-steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; line-height: 1.5; }
.guide-steps li::marker { color: var(--accent); font-weight: 600; }
.guide-result { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.guide-result ol { margin: .4rem 0 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.guide-result code { word-break: break-all; }
.guide-var { display: inline-block; margin-left: .15rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; }

/* Maskierte Eingabe ohne type="password" (verhindert Login-Autofill im Lesezeichen-Formular) */
.masked { -webkit-text-security: disc; text-security: disc; }

/* Updates */
.update-db { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.migration-list, .backup-list, .file-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.backup-list { list-style: none; padding-left: 0; }
.backup-list a { display: inline-flex; align-items: center; gap: .35rem; }
.file-list { max-height: 320px; overflow: auto; list-style: none; padding-left: 0; }
.file-list code { word-break: break-all; }
.fl-new code { color: var(--success); }
.fl-delete code { color: var(--danger); text-decoration: line-through; }
.update-notes { white-space: normal; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.update-actions { justify-content: space-between; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.update-install { flex-wrap: wrap; gap: .6rem; align-items: center; }
.update-install .inline-label input, .updates .inline-label input { width: auto; min-width: 200px; }
.updates details.card { padding: .9rem 1.1rem; }

/* Eigene Seite (angemeldeter Inhaber) */
.btn-preview { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); color: var(--warn); }
.badge-private { display: inline-flex; align-items: center; gap: .25rem; }
.badge-private .i { width: .85em; height: .85em; }

/* Angemeldet bleiben */
.remember-check { font-weight: 400; }
.browser-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.browser-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.browser-list li:last-child { border-bottom: 0; }

/* Gemeinsame Startseite */
.mini-av { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 700; object-fit: cover; }
.active-filters .chip { gap: .35rem; }
.mini-av-0 { background: #2f6fed; } .mini-av-1 { background: #c2410c; } .mini-av-2 { background: #15803d; } .mini-av-3 { background: #7c3aed; }
.mini-av-4 { background: #be123c; } .mini-av-5 { background: #0e7490; } .mini-av-6 { background: #a16207; } .mini-av-7 { background: #475569; }
.bm-owners .bm-owner + .bm-owner { margin-left: .35rem; }
.bm-owners { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.bm-owner { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--text-2); }
.bm-owner:hover { color: var(--accent); text-decoration: none; }
.bm-admin { display: inline; margin: 0; }
.bm-admin .icon-btn { width: 26px; height: 26px; opacity: .45; }
.bm-admin .icon-btn:hover { opacity: 1; color: var(--danger); }
.active-filters { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: -.2rem 0 .7rem; }
.active-filters .chip .i:last-child { width: .8em; height: .8em; }

/* Startseite: wer hat das Lesezeichen gespeichert? */
.owners { margin-left: auto; position: relative; z-index: 3; }
.owners[open] { z-index: 30; }
.bm:has(details.owners[open]) { overflow: visible; z-index: 30; }
.owners-btn { list-style: none; display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .12rem .5rem .12rem .2rem; font-size: .8rem; color: var(--text-2); cursor: pointer; user-select: none; }
.owners-btn::-webkit-details-marker { display: none; }
.owners-btn:hover, .owners[open] .owners-btn { border-color: var(--accent); color: var(--text); }
.avstack { display: inline-flex; }
.avstack .mini-av { box-shadow: 0 0 0 2px var(--surface); margin-left: -6px; }
.avstack .mini-av:first-child { margin-left: 0; }
.owners-more { font-weight: 600; color: var(--text); }
.owners-pop { position: absolute; right: 0; top: calc(100% + 6px); width: min(340px, calc(100vw - 2.5rem)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .55rem .7rem; }
.owners-head { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: .3rem; }
.owners-pop ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.owners-pop li { display: flex; align-items: center; gap: .5rem; padding: .32rem 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.owners-pop li:last-child { border-bottom: 0; }
.owners-pop .pop-user { display: inline-flex; align-items: center; gap: .35rem; min-width: 7.5rem; color: var(--text); }
.owners-pop li .muted { margin-left: auto; font-size: .75rem; white-space: nowrap; }
.result-info { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sort-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.sort-switch a { padding: .12rem .65rem; color: var(--text-2); font-size: .8rem; }
.sort-switch a.active { background: var(--accent); color: #fff; }
.sort-switch a:hover { text-decoration: none; }
.bm-meta > .bm-owner { margin-left: auto; }

/* Startseite: Header (Variante A – typografisch) */
.home-hero { padding: 2.2rem 0 1.4rem; }
.home-hero.is-compact { padding: 1.1rem 0 .9rem; }
.home-eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.home-title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; margin: .4rem 0 .7rem; font-weight: 750; }
.home-title em { font-style: normal; color: var(--accent); }
.home-lead { font-size: 1.06rem; color: var(--text-2); max-width: 40rem; margin: 0 0 1.4rem; line-height: 1.55; }
.home-search { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); max-width: 44rem; transition: border-color .15s, box-shadow .15s; }
.home-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.home-search > .i { color: var(--text-2); flex: none; }
.home-search input[type=search] { border: 0; background: none; box-shadow: none; padding: 0; font-size: 1.02rem; flex: 1; min-width: 0; outline: none; color: var(--text); }
.home-search kbd { font-size: .75rem; border: 1px solid var(--border); border-radius: 6px; padding: .05rem .4rem; color: var(--text-2); font-family: inherit; }
.home-stats { display: flex; gap: .5rem 1.3rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .85rem; color: var(--text-2); align-items: center; }
.home-stats b { color: var(--text); font-weight: 650; }
.home-people { display: inline-flex; align-items: center; gap: .45rem; }
.home-people .mini-av { width: 22px; height: 22px; font-size: .66rem; }
.home-people .avstack .mini-av { box-shadow: 0 0 0 2px var(--bg); }

/* Header: Varianten (Verwaltung → Startseite) */
.home-hero.align-center { text-align: center; }
.home-hero.align-center .home-lead, .home-hero.align-center .home-search { margin-left: auto; margin-right: auto; }
.home-hero.align-center .home-stats { justify-content: center; }
.home-hero.size-m .home-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.home-hero.size-s .home-title { font-size: clamp(1.35rem, 2.8vw, 1.7rem); }
.home-hero.bg-soft, .home-hero.bg-gradient { padding-left: clamp(1.1rem, 3vw, 2.2rem); padding-right: clamp(1.1rem, 3vw, 2.2rem); border-radius: 20px; margin-top: 1rem; margin-bottom: 1.1rem; }
.home-hero.bg-soft { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); }
.home-hero.bg-gradient { background: linear-gradient(135deg, #1e3a8a 0%, #2f6fed 55%, #38bdf8 100%); color: #fff; }
.home-hero.bg-gradient .home-eyebrow, .home-hero.bg-gradient .home-title em { color: #bfe3ff; }
.home-hero.bg-gradient .home-lead, .home-hero.bg-gradient .home-stats { color: rgba(255,255,255,.85); }
.home-hero.bg-gradient .home-stats b { color: #fff; }
.home-hero.bg-gradient .home-people .avstack .mini-av { box-shadow: 0 0 0 2px #2f6fed; }
.home-hero.is-compact.bg-soft, .home-hero.is-compact.bg-gradient { padding-top: 1rem; padding-bottom: 1rem; }
.home-hero-text[hidden], .home-hero [hidden] { display: none !important; }
.home-search-ph { flex: 1; color: var(--text-2); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Editor */
.hero-editor-layout { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 1.25rem; align-items: start; }
.hero-editor fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .9rem .9rem; margin: 0; min-width: 0; }
.hero-editor legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.hero-editor .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.switch-row { padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.hero-preview-wrap { position: sticky; top: calc(var(--topbar-h) + 1rem); display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.hero-preview-frame { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.4rem .4rem; overflow: hidden; }
.hero-preview-frame .home-hero:not(.bg-soft):not(.bg-gradient) { padding-top: 1.4rem; }
.hero-reset { align-self: flex-end; }
@media (max-width: 1000px) {
    .hero-editor-layout { grid-template-columns: 1fr; }
    .hero-preview-wrap { position: static; order: -1; }
}
@media (max-width: 520px) { .hero-editor .grid-3, .check-grid { grid-template-columns: 1fr; } }
.hero-editor fieldset.is-muted { opacity: .5; }

/* Header auf den Nutzerseiten (ohne Unterzeile, Suche, Kennzahlen) */
.home-hero.is-profile { padding-top: 1.6rem; padding-bottom: .4rem; }
.home-hero.is-profile .home-title { margin-bottom: 0; }
.home-hero.is-profile.bg-soft, .home-hero.is-profile.bg-gradient { padding-top: 1.4rem; padding-bottom: 1.4rem; margin-bottom: 1.2rem; }
.home-hero.is-profile + .public-hero { margin-top: 1.1rem; }
a.home-hero.is-profile { display: block; color: inherit; text-decoration: none; }
a.home-hero.is-profile:hover .home-title { opacity: .85; }

/* Gefilterte Startseite: Weg zurück */
.back-start { display: inline-flex; align-items: center; gap: .25rem; font-weight: 500; margin-right: .2rem; }
.back-start .i { transform: rotate(180deg); width: .9em; height: .9em; }
.home-hero.is-profile + .public-hero, .home-hero.is-profile + .home-hero { margin-top: 1rem; }
.public-hero h1 a { color: inherit; }

/* Gekürzte Beschreibung/Notiz aufklappen (1.2.5) */
.bm-notes { white-space: pre-line; }
.bm-more { display: inline-flex; align-items: center; gap: .2rem; margin: .25rem 0 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer; }
.bm-more::after { content: "▾"; font-size: .75em; }
.bm-more:hover { text-decoration: underline; }
.bm-more[hidden] { display: none; }
.bm-text.is-open .bm-desc, .bm-text.is-open .bm-notes { display: block; -webkit-line-clamp: unset; overflow: visible; }
.bm-text.is-open .bm-notes { max-height: 18rem; overflow-y: auto; overscroll-behavior: contain; }
.bm-text.is-open .bm-more::after { content: "▴"; }
.view-grid .bm.is-expanded, .view-grid .bm.row-hold { align-self: start; }
.view-grid .bm.is-expanded { box-shadow: var(--shadow, 0 4px 14px rgba(0,0,0,.08)); }
