/* Mainsite V4
   Idee: ruhige, tintenblaue Arbeitsfläche; Farbe kommt nur von den Sammlungen und Tags
   (jede bekommt ihren eigenen Farbton, wie die Knoten in der Login-Animation). */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --line: #dde2ea;
  --ink: #141a22;
  --muted: #5d6877;
  --accent: #1d6fb8;
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --err: #b4322f;
  --shadow: 0 1px 2px rgba(20, 26, 34, .06), 0 4px 16px rgba(20, 26, 34, .05);
  --tone-l: 42%;     /* Helligkeit der Farbtöne */
  --tone-bg: 94%;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --r: 10px;
  --side-w: 260px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d11; --surface: #13171d; --surface-2: #1a1f27; --line: #262c36;
    --ink: #e7eaef; --muted: #8d97a5; --accent: #7cc4ff; --accent-ink: #06121d;
    --ok: #5ccf94; --err: #ff8a80; --shadow: none; --tone-l: 66%; --tone-bg: 18%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d11; --surface: #13171d; --surface-2: #1a1f27; --line: #262c36;
  --ink: #e7eaef; --muted: #8d97a5; --accent: #7cc4ff; --accent-ink: #06121d;
  --ok: #5ccf94; --err: #ff8a80; --shadow: none; --tone-l: 66%; --tone-bg: 18%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(24px, 3vw, 32px); }
h2 { font-size: 18px; }
code { font: 13px var(--mono); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); margin: 0; }
small { color: var(--muted); font-size: 12.5px; }

/* ---------- Bausteine ---------- */
.brand { display: inline-flex; line-height: 0; }
.brand:hover { text-decoration: none; }
.logo { height: 44px; width: auto; display: block; }
:root { --logo-site: #ededed; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --logo-site: #1b1f26; } }
:root[data-theme="light"] { --logo-site: #1b1f26; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 14px var(--body);
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 60%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 10%, transparent); }
.btn.wide { width: 100%; padding: 11px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; border-radius: 6px; }

.field { display: grid; gap: 5px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend, .field > label:first-child { font-size: 13px; font-weight: 500; color: var(--ink); padding: 0; }
.field > span small, .field > label small { font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], textarea, select {
  font: 15px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[type="color"] { width: 64px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 3px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.hint { display: block; }
.stack { display: grid; gap: 14px; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h) 70% var(--tone-l)); flex: none; }
.dot.big { width: 14px; height: 14px; vertical-align: middle; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: hsl(var(--h) 60% var(--tone-bg)); color: hsl(var(--h) 65% var(--tone-l)); font: 600 15px var(--mono); }
.avatar-letter { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: hsl(var(--h) 55% var(--tone-bg)); color: hsl(var(--h) 65% var(--tone-l)); font: 600 13px var(--body); }
.avatar-letter.big, .avatar-big { width: 88px; height: 88px; font-size: 34px; border-radius: 50%; object-fit: cover; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 3px 10px; border-radius: 999px;
  color: hsl(var(--h) 60% var(--tone-l)); background: hsl(var(--h) 60% var(--tone-bg)); border: 1px solid transparent; }
.tag small { color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }
.tag:hover { text-decoration: none; border-color: hsl(var(--h) 60% var(--tone-l) / .4); }
.tag.on { background: hsl(var(--h) 60% var(--tone-l)); color: var(--surface); }
.tag.small { font-size: 12px; padding: 1px 8px; }
.tag.clear { --h: 220; background: transparent; color: var(--muted); border-color: var(--line); }
.new-pill { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); padding: 1px 7px; border-radius: 999px; }

.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.flash.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.flash.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); background: color-mix(in srgb, var(--err) 9%, var(--surface)); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel.danger h2 { color: var(--err); }
.panel.narrow { max-width: 420px; margin: 40px auto; }
.section-title { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 30px 0 12px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.lead { font-size: 16.5px; margin: 8px 0; max-width: 62ch; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty h2 { color: var(--ink); }
.empty p { margin: 0; max-width: 52ch; }


.main { padding: 30px clamp(16px, 4vw, 44px) 60px; display: grid; gap: 18px; align-content: start; max-width: 1240px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title { display: grid; gap: 4px; min-width: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.add-panel { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.add-form { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row .grow { flex: 1 1 240px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check > span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; }
.chip-check input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-weight: 500; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 1 1 300px; }
.search input { padding-left: 14px; }
.sort { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.sort a { padding: 7px 12px; font-size: 13.5px; color: var(--muted); }
.sort a + a { border-left: 1px solid var(--line); }
.sort a.on { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.sort a:hover { text-decoration: none; color: var(--ink); }

/* ---------- Karten ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); min-width: 0; transition: border-color .15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card.is-new { border-color: var(--accent); }
.card-link { display: flex; gap: 11px; align-items: center; color: var(--ink); min-width: 0; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card-title { color: var(--accent); }
.card-text { display: grid; min-width: 0; }
.card-title { font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-host { font: 12.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-desc { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.card-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.card-meta form { display: inline; }
.has-note { font: 11px var(--mono); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; }
.icon-link { font-size: 13px; }
.saved { color: var(--ok); }

/* ---------- Sammlungen ---------- */
.coll-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.coll a { display: grid; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); height: 100%; }
.coll a:hover { text-decoration: none; border-color: hsl(var(--h) 60% var(--tone-l) / .6); }
.coll-hub { width: 30px; height: 30px; border-radius: 50%; margin-bottom: 8px; border: 1.5px solid hsl(var(--h) 70% var(--tone-l));
  background: hsl(var(--h) 55% var(--tone-bg)); box-shadow: 0 0 0 6px hsl(var(--h) 70% var(--tone-l) / .12); }
.coll-hub.big { width: 56px; height: 56px; box-shadow: 0 0 0 10px hsl(var(--h) 70% var(--tone-l) / .12); }
.coll-hub.small { width: 22px; height: 22px; margin: 2px 0 0; box-shadow: 0 0 0 4px hsl(var(--h) 70% var(--tone-l) / .12); }
.coll-name { font: 700 17px var(--display); }
.coll-meta { font-size: 13px; color: var(--muted); }
.vis-label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.vis-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.vis-option { cursor: pointer; }
.vis-option input { position: absolute; opacity: 0; pointer-events: none; }
.vis-option > span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.vis-option b { font-size: 14px; }
.vis-option input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.vis-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.password-field { display: grid; gap: 6px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack-col { display: grid; gap: 18px; min-width: 0; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.row-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-text { display: grid; flex: 1; min-width: 0; }
.row-text a { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.share-line { margin: -6px 0 0; overflow-x: auto; }
.share-line code { background: var(--surface-2); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.picker summary { cursor: pointer; font-weight: 500; color: var(--accent); padding: 4px 0; }
.picker form { display: grid; gap: 10px; margin-top: 10px; }
.picker-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.picker-list li { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.picker-list li:last-child { border-bottom: 0; }

/* ---------- Feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed-item { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.feed-item.is-new { border-color: hsl(var(--h) 60% var(--tone-l) / .7); }
.feed-body { min-width: 0; display: grid; gap: 8px; flex: 1; }
.feed-line { margin: 0; }
.feed-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed-links li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.feed-links .mark { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.feed-links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.feed-links small { white-space: nowrap; }
.feed-links .more a { color: var(--accent); font-size: 13.5px; padding-left: 33px; }

/* ---------- Öffentliche Seiten ---------- */
.public-wrap { min-height: 100vh; background-color: var(--owner-color, var(--bg)); background-image: linear-gradient(color-mix(in srgb, var(--bg) 82%, transparent), var(--bg) 420px), var(--owner-bg, none); background-size: cover; background-attachment: fixed; }
.public-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px clamp(16px, 4vw, 44px); flex-wrap: wrap; }
.public-top nav { display: flex; gap: 8px; }
.public-main { max-width: 1100px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 44px) 60px; display: grid; gap: 22px; }
.coll-hero { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.coll-hero > div { flex: 1 1 320px; min-width: 0; }
.coll-hero-actions { display: flex; gap: 8px; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head > div { flex: 1 1 260px; }

/* ---------- Login-Bühne ---------- */
body.guest { background: #05070a; color: #e7eaef; min-height: 100vh; overflow-x: hidden; color-scheme: dark;
  --surface: rgba(19, 23, 29, .84); --line: rgba(255,255,255,.1); --ink: #e7eaef; --muted: #9aa3b0; --accent: #7cc4ff; --accent-ink: #06121d; --err: #ff8a80; --ok: #5ccf94; }
.stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.stage-toggle { position: fixed; left: 14px; bottom: 14px; z-index: 3; font: 12px var(--mono); color: #9aa3b0; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.guest-card { position: relative; z-index: 2; width: min(380px, calc(100% - 32px)); margin: max(8vh, 40px) auto 40px; padding: 28px 26px; border-radius: 14px;
  background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); display: grid; gap: 16px; }
.guest-card h1 { font-size: 24px; }
.guest-card input { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.12); color: #e7eaef; }
.guest-card .logo { height: 54px; }
.guest-card .brand { --logo-site: #ededed; }
.guest-links { margin: 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Fehlerseite ---------- */
.error-box { max-width: 520px; margin: 12vh auto; padding: 0 20px; display: grid; gap: 14px; }
.error-code { font: 700 72px var(--display); color: var(--accent); margin: 0; line-height: 1; }
.trace { font: 12px var(--mono); white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: 8px; overflow-x: auto; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Startseite: Suche, Kacheln, Nachladen ---------- */
.main { position: relative; z-index: 1; }

.launcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.launcher input[type="search"] { font-size: 17px; padding: 13px 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.launcher-web { font: 500 14px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.launcher-web:hover { border-color: var(--accent); }
.launcher-hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
kbd { font: 11.5px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); color: var(--ink); }

.mini-title { font: 600 11.5px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.frequent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.frequent-list a { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.frequent-list a:hover { text-decoration: none; border-color: var(--accent); }
.frequent-list .mark { width: 24px; height: 24px; border-radius: 50%; font-size: 11.5px; }
.frequent-list span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-head.compact { align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg a { padding: 7px 11px; font-size: 13px; color: var(--muted); }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.seg a:hover { text-decoration: none; color: var(--ink); }

.active-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.tile { position: relative; min-width: 0; }
.tile-link { display: flex; align-items: center; gap: 10px; padding: 8px 34px 8px 8px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-width: 0; height: 100%; }
.tile-link:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tile-link .mark { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.tile-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile-edit { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--muted); opacity: 0; }
.tile:hover .tile-edit, .tile-edit:focus-visible { opacity: 1; }
.tile-edit:hover { background: var(--surface-2); color: var(--ink); }
@media (hover: none) { .tile-edit { opacity: .6; } }
.tiles li.is-first .tile-link, .cards li.is-first { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.more { display: flex; justify-content: center; padding: 8px 0 20px; }
.more.loading .btn { opacity: .6; pointer-events: none; }

.dup-groups { display: grid; gap: 14px; }
.danger-text { color: var(--err); }


/* ---------- App-Gerüst: Kopfzeile + ein-/ausklappbare Seitenleiste ---------- */
:root { --top-h: 64px; }
.app-bg { position: fixed; inset: 0; background-size: cover; background-position: center; z-index: 0; pointer-events: none; }
.app-bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 58%, transparent); }

.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(10px, 2vw, 22px); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .logo { height: 42px; }
.topnav { display: flex; gap: 4px; margin-left: 12px; min-width: 0; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.topnav a:hover { background: var(--surface-2); text-decoration: none; }
.topnav a.on { background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.topnav .count { margin-left: 0; }
.usermenu { margin-left: auto; position: relative; }
.usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary img, .usermenu .avatar-letter { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; font-size: 15px; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 6px; display: grid; }
.usermenu-panel a, .usermenu-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); font: 14px var(--body); background: none; border: 0; cursor: pointer; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--surface-2); text-decoration: none; }
.usermenu-name { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; display: grid; }

.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; transition: grid-template-columns .2s; }
body.side-closed .shell { grid-template-columns: 0 minmax(0, 1fr); }
.side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--line); padding: 14px 12px 30px; display: flex; flex-direction: column; gap: 10px; }
body.side-closed .side { visibility: hidden; padding: 0; border: 0; overflow: hidden; }
.side-toggle { flex: none; }
.side-backdrop { display: none; }

.side-group { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.side-group:last-child { border-bottom: 0; }
.side-group summary { list-style: none; cursor: pointer; padding: 6px 4px; border-radius: 6px; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary:hover { background: var(--surface-2); }
.side-group h2 { display: flex; align-items: baseline; gap: 7px; font: 600 11.5px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.side-group h2::before { content: "▸"; font-size: 10px; transition: transform .15s; display: inline-block; }
.side-group[open] h2::before { transform: rotate(90deg); }
.side-group h2 small { font-size: 11px; letter-spacing: 0; }
.side-group ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.side-group a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: var(--ink); font-size: 14px; min-width: 0; }
.side-group a:hover { background: var(--surface-2); text-decoration: none; }
.side-group a.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); font-weight: 600; }
.side-group .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group .label small { margin-left: 3px; }
.side-empty { font-size: 13px; color: var(--muted); padding: 4px 10px; margin: 0; }
.count { margin-left: auto; font: 600 11.5px var(--mono); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.vis { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.vis-public { background: var(--muted); }
.vis-private { border-style: dotted; }

.side-tags .tag-filter { margin: 6px 0 4px; padding: 6px 10px; font-size: 13px; }
/* Buchstaben-Trenner: Kästchen mit dem Buchstaben, Tags darunter eingerückt */
.tag-letter h3 { margin: 12px 0 2px; padding: 4px 4px; display: flex; align-items: center; gap: 10px; }
.tag-letter h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag-letter .tl { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px;
  font: 700 15px var(--display); color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.tag-letter ul { margin: 0 0 4px 17px; padding-left: 6px; border-left: 1px solid var(--line); }
.side-tags .n { margin-left: auto; font-variant-numeric: tabular-nums; }

.main { padding: 26px clamp(16px, 3vw, 40px) 60px; display: grid; gap: 18px; align-content: start; max-width: 1500px; width: 100%; margin: 0 auto; }
.tiles .tile-link, .cards .card, .panel, .feed-item, .coll a { background: color-mix(in srgb, var(--surface) 92%, transparent); }

@media (max-width: 900px) {
  :root { --top-h: 58px; }
  .hide-sm { display: none; }
  .topnav { margin-left: 0; }
  .topnav a { padding: 7px 9px; font-size: 14px; }
  .topbar .logo { height: 34px; }
  .shell, body.side-closed .shell { grid-template-columns: minmax(0, 1fr); }
  /* Mobil: Seitenleiste als ausfahrende Schublade, standardmässig zu */
  .side { position: fixed; left: 0; top: var(--top-h); bottom: 0; height: auto; width: min(300px, 85vw); z-index: 30;
    transform: translateX(-100%); transition: transform .2s; visibility: visible; background: var(--surface); }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: var(--top-h) 0 0 0; z-index: 25; background: rgba(0,0,0,.4); }
  body.side-closed .side { padding: 14px 12px 30px; }
  .launcher { grid-template-columns: minmax(0, 1fr); }
  .launcher-hint { display: none; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
  .frequent-list li:nth-child(n+7) { display: none; }
}
@media (max-width: 480px) {
  .brand { display: none; }
}

/* Login-Bühne über dem Standard-Hintergrund */
body.guest { background: #05070a url("img/background.jpg") center / cover fixed; }
body.guest::before { content: ""; position: fixed; inset: 0; background: rgba(5, 7, 10, .62); z-index: 0; }
.stage { z-index: 1; }

/* ---------- Suche in der Kopfzeile ---------- */
.topsearch { flex: 1 1 360px; max-width: 760px; margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.topsearch input[type="search"] { flex: 1; min-width: 0; padding: 9px 12px 9px 36px; border-radius: 10px; font-size: 15px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border-color: var(--line); }
.topsearch-icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.topsearch-web { display: inline-flex; align-items: center; gap: 7px; flex: none; font: 500 14px var(--body); color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.topsearch-web:hover { border-color: var(--accent); }
.usermenu { margin-left: 4px; }
.search-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }

/* Info-Knopf auf den Kacheln */
.tile-info { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tile-info:hover, .tile-info:focus-visible { background: var(--accent); color: var(--accent-ink); }
.tile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Info-Fenster */
.info-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.info-dialog::backdrop { background: rgba(5, 7, 10, .55); backdrop-filter: blur(2px); }
.info-body { padding: 20px 22px 18px; display: grid; gap: 14px; }
.info-head { display: flex; gap: 12px; align-items: flex-start; }
.info-head .mark { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
.info-title-wrap { flex: 1; min-width: 0; display: grid; gap: 2px; }
.info-title-wrap h2 { font-size: 20px; }
.info-url { font: 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.info-close { margin: -6px -8px 0 0; color: var(--muted); }
.info-desc { margin: 0; color: var(--ink); line-height: 1.55; }
.info-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 14px; }
.info-facts dt { color: var(--muted); }
.info-facts dd { margin: 0; }
.info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; }
.chip-link small { margin-left: 2px; }
.info-notes { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
.info-notes summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.info-notes p { margin: 8px 0 2px; white-space: normal; }
.info-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.info-delete { margin-left: auto; }

@media (max-width: 900px) {
  :root { --top-h: 110px; }
  .topbar { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .topsearch { order: 10; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .topsearch-web span { display: none; }
  .usermenu { margin-left: auto; }
  .search-hint { display: none; }
}
@media (max-width: 480px) {
  .topbar { column-gap: 4px; }
  .topnav a { padding: 6px 7px; font-size: 13px; }
}

/* ---------- Tags verwalten ---------- */
.side-manage { display: inline-block; font-size: 12.5px; margin: 2px 10px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sugg { flex-wrap: wrap; gap: 10px; }
.sugg-pair { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; flex-wrap: wrap; }
.sugg .arrow { color: var(--muted); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.bulk-bar.active { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.bulk-bar .grow { flex: 1 1 220px; }
.tag-table-filter { max-width: 320px; }
.tag-table { list-style: none; margin: 0; padding: 0; display: grid; }
.tag-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tag-row:last-child { border-bottom: 0; }
.tag-row input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.tag-rename { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tag-rename input { max-width: 340px; padding: 6px 10px; font-size: 14px; background: transparent; border-color: transparent; }
.tag-rename input:hover { border-color: var(--line); }
.tag-rename input:focus { background: var(--surface); }
.tag-rename .link-btn { visibility: hidden; }
.tag-rename:focus-within .link-btn, .tag-row:hover .tag-rename .link-btn { visibility: visible; }
.tag-count { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.small-print { font-size: 13px; }
@media (max-width: 600px) { .tag-row { flex-wrap: wrap; } .tag-rename { flex-basis: calc(100% - 60px); } }

/* ---------- Aufräumen / Link-Prüfung ---------- */
.usermenu summary { position: relative; }
.menu-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--err); border: 2px solid var(--surface); z-index: 1; }
.usermenu-panel a .count { float: right; margin-top: 1px; }
.count.danger { background: var(--err); color: #fff; }
.tile.is-dead .tile-link, .card.is-dead { border-color: color-mix(in srgb, var(--err) 55%, var(--line)); border-style: dashed; }
.tile.is-dead .tile-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 60%, transparent); }
.tile.is-unsure .tile-link::after, .tile.is-dead .tile-link::after { content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #d08a1c; }
.tile.is-dead .tile-link::after { background: var(--err); }
.broken-mark { font: 600 10.5px var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--err); }
.check-dead strong, .check-unsure strong { color: var(--err); }
.check-panel { gap: 16px; }
.check-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { display: grid; min-width: 96px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; }
.stat strong { font: 600 24px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.stat.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.check-run { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.check-run p { margin: 0; flex: 1 1 260px; }
.check-run progress { flex: 1 1 200px; height: 8px; accent-color: var(--accent); }
.small-print { font-size: 12.5px; margin: 0; }
.empty.slim { padding: 24px; }
.check-all { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.cleanup-row { align-items: flex-start; flex-wrap: wrap; }
.cleanup-row > input { margin-top: 8px; }
.cleanup-row .row-text { gap: 2px; flex: 1 1 300px; }
.cleanup-row .row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cleanup-row .row-url { font: 12.5px var(--mono); color: var(--muted) !important; font-weight: 400 !important; }
.moved-to { font: 12.5px var(--mono); color: var(--ok); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moved-to a { color: var(--ok) !important; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: flex-end; }
.row-actions form { display: contents; }
.fails { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: middle; }
.fails i { width: 8px; height: 8px; border-radius: 2px; background: var(--line); }
.fails i.on { background: var(--err); }

/* Tag-Vorschläge beim Eingeben */
.tag-suggest { position: relative; display: grid; }
.tag-suggest-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 360px; }
.tag-suggest-list li { padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--muted); }
.tag-suggest-list li strong { color: var(--ink); font-weight: 600; }
.tag-suggest-list li:hover, .tag-suggest-list li.on { background: var(--surface-2); color: var(--ink); }

/* Formulare im Fenster */
.form-dialog, .info-dialog:has(form.add-form) { width: min(680px, calc(100vw - 32px)); }
.info-dialog .add-form textarea { resize: vertical; }
.form-back { margin-left: auto; }

/* Favicons */
.mark.mark-img { background: #fff; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding: 4px; overflow: hidden; }
.mark.mark-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile-link .mark.mark-img { padding: 4px; }
.info-head .mark.mark-img { padding: 6px; }
.url-row { display: flex; gap: 10px; align-items: center; }
.url-row input { flex: 1; min-width: 0; }
.url-fav { flex: none; width: 40px; height: 40px; border-radius: 9px; background: #fff; border: 1px solid var(--line); padding: 6px; display: grid; place-items: center; }
.url-fav img { width: 100%; height: 100%; object-fit: contain; }
.hint.busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%;
  border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bearbeiten: neu von der Seite holen */
.refetch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.refetch-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.refetch .hint { flex-basis: 100%; }
.chip-btn { font: 500 13px var(--body); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-btn.strong { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent); }
.chip-btn:disabled { opacity: .5; cursor: wait; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 55%, transparent); } to { box-shadow: 0 0 0 3px transparent; } }

/* ---------- Bildschirmschoner ---------- */
.ss-overlay { position: fixed; inset: 0; z-index: 2147483000; background: #000; cursor: none; }
.ss-overlay iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.switch input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit input { width: 90px; }
.input-unit small { color: var(--muted); font-size: 13px; }
.ss-settings select { min-width: 220px; }
.ss-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ss-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; align-content: start; background: var(--surface); }
.ss-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ss-card.own { border-style: dashed; }
.ss-card p { margin: 0; font-size: 13.5px; }
.ss-card-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; }
.ss-card-actions form { display: contents; }
.ss-badge { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.ss-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ss-steps li { line-height: 1.5; }
.ss-steps .form-actions { margin-top: 6px; align-items: center; }
.ss-template pre { max-height: 320px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; }
.ss-template summary { cursor: pointer; color: var(--accent); font-size: 14px; margin-top: 6px; }
.ss-editor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .ss-editor { grid-template-columns: 1fr; } }
textarea.code { font: 12.5px/1.5 var(--mono); tab-size: 2; white-space: pre; }
.ss-preview { aspect-ratio: 16 / 10; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ss-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.hint.error { color: var(--err); }

/* Konto-Menü: hebt sich deutlich vom Hintergrund ab (dunkelgrau mit hellem Rahmen im dunklen Modus) */
:root { --menu-bg: #ffffff; --menu-border: #9aa4b2; --menu-hover: #eef1f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --menu-bg: #2b3039; --menu-border: rgba(255, 255, 255, .7); --menu-hover: #3a414c; } }
:root[data-theme="dark"] { --menu-bg: #2b3039; --menu-border: rgba(255, 255, 255, .7); --menu-hover: #3a414c; }
.usermenu-panel { background: var(--menu-bg); border: 1px solid var(--menu-border); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); z-index: 60; }
.usermenu-panel a:hover, .usermenu-panel button:hover, .usermenu-panel a:focus-visible, .usermenu-panel button:focus-visible { background: var(--menu-hover); }
.usermenu-name { border-bottom-color: color-mix(in srgb, var(--menu-border) 45%, transparent); }
html.ss-active, html.ss-active body { overflow: hidden !important; scrollbar-width: none; }
html.ss-active::-webkit-scrollbar, html.ss-active body::-webkit-scrollbar { display: none; }

/* Browser-Erweiterung: Tokens */
.token-new { border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.token-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.token-row code { flex: 1 1 260px; font: 13px var(--mono); padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.token-create { display: flex; gap: 8px; flex-wrap: wrap; }
.token-create input { flex: 1 1 200px; }

/* Links aus dem Browser speichern */
.save-way { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.save-way h3 { margin: 0; font-size: 15px; }
.badge-rec { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--ok); margin-left: 6px; }
.bookmarklet-row { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.bookmarklet { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #e30613; color: #fff !important; font-weight: 700; cursor: grab; text-decoration: none !important; box-shadow: 0 2px 8px rgba(227, 6, 19, .35); }
.bookmarklet:active { cursor: grabbing; }
#bm-code { font-size: 11px; max-height: 80px; overflow: auto; }
/* Kleines Schnell-Fenster */
body.quick { background: var(--bg); }
.quick-main { max-width: 560px; margin: 0 auto; padding: 16px 18px 22px; display: grid; gap: 12px; }
.quick-head { display: flex; align-items: center; gap: 12px; }
.quick-head h1 { font-size: 20px; margin: 0; }
.quick-logo svg { height: 30px; width: auto; display: block; }
.quick-note { margin: 0; padding: 9px 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--ok) 55%, var(--line)); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); font-size: 14px; }
.quick-done { text-align: center; justify-items: center; padding-top: 50px; }
.quick-check { font-size: 54px; color: var(--ok); margin: 0; line-height: 1; }

/* Bestätigungs-Fenster (statt Browser-Meldung) */
.confirm-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--menu-border, var(--line)); border-radius: 14px;
  background: var(--menu-bg, var(--surface)); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.confirm-dialog::backdrop { background: rgba(5, 7, 10, .55); backdrop-filter: blur(2px); }
.confirm-body { padding: 22px 22px 18px; display: grid; gap: 10px; justify-items: start; }
.confirm-body h2 { margin: 0; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.confirm-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.confirm-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--body);
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.confirm-icon.danger { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; width: 100%; margin-top: 8px; }
.btn.danger-solid { background: #c62828; border-color: #c62828; color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); }
.confirm-copy { width: 100%; font: 13px var(--mono); }

/* Werkzeuge */
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card { height: 100%; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tool-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.tool-card strong { font-size: 16px; }
.tool-card .muted { font-size: 13.5px; line-height: 1.45; }
.tool-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; margin-bottom: 4px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tool-state { margin-top: 6px; font: 600 12px var(--body); color: var(--muted); }
.tool-state.on { color: var(--ok); }
.tool-state.warn { color: var(--err); }
.tools-narrow { max-width: 860px; }

/* Handy: Eingabefelder mindestens 16 px, sonst zoomt iPhone beim Antippen hinein */
@media (max-width: 700px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], textarea, select,
  .topsearch input[type="search"] { font-size: 16px; }
  .search-hint { display: none; }
  .info-actions .btn, .form-actions .btn { min-height: 42px; }
}

/* Tags in Sammlungen */
.coll-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.coll-tag { display: inline-flex; align-items: center; gap: 2px; }
.icon-btn.small { width: 24px; height: 24px; font-size: 16px; line-height: 1; color: var(--muted); }
.icon-btn.small:hover { color: var(--err); }
.via-tag { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.item-take { margin-left: auto; display: inline-flex; align-items: center; }
.item-take form { display: inline; }

/* Sammlung: Tag-Links per Häkchen teilen */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.share-bar > span { flex: 1 1 220px; font-size: 13.5px; }
.share-bar input[type="search"] { flex: 1 1 160px; max-width: 240px; padding: 6px 10px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.share-check { width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
.coll-list li.is-hidden .row-text, .coll-list li.is-hidden .mark { opacity: .45; }
.coll-list li.is-hidden .row-text a { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hidden-note { display: none; color: var(--err); }
.coll-list li.is-hidden .hidden-note { display: inline; }

/* ---------- Öffentliche Startseite (Besucher) ----------
   Oben läuft die Login-Bühne (Links docken an Sammlungen an) als Hintergrund des ersten Bildschirms;
   der Rest der Seite schiebt sich auf ruhigem, dunklem Grund darüber. */
body.landing { --tone-l: 66%; --tone-bg: 18%; font-size: 16px; }
.land-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px clamp(16px, 4vw, 48px); }
.land-top .brand { display: inline-flex; --logo-site: #ededed; }
.land-top .logo { height: 46px; }
.land-top nav { display: flex; align-items: center; gap: 18px; }
.land-link { color: #e7eaef; font-weight: 500; }
.land-link:hover { color: var(--accent); }
.btn.big { padding: 12px 20px; font-size: 16px; border-radius: 10px; }

.land-hero { position: relative; z-index: 2; min-height: calc(100svh - 82px); display: grid; align-items: center; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px); padding: 4vh clamp(16px, 4vw, 48px) 12vh; max-width: 1240px; margin: 0 auto; }
.land-pitch h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
/* Ruhiger Grund hinter dem Text, damit die Animation nicht über die Schrift läuft */
body.landing::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 10, .9) 0%, rgba(5, 7, 10, .78) 42%, rgba(5, 7, 10, .2) 72%, rgba(5, 7, 10, .35) 100%); }
.land-top, .land-hero, .land-body { z-index: 3; }
.land-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #c9d0da; max-width: 54ch; margin: 22px 0 0; }
.land-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 30px 0 0; }
.land-login { padding: 26px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; gap: 14px; scroll-margin-top: 20px; }
.land-login h2 { font-size: 20px; }
.land-login input { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.12); color: #e7eaef; }
.land-hero .stage-toggle { position: absolute; }

.land-body { position: relative; z-index: 2;
  /* Abtauchen: oben schimmert der Eisberg noch durch, nach unten wird das Wasser immer tiefer */
  background: linear-gradient(180deg, rgba(8, 34, 54, .62) 0, rgba(7, 30, 49, .94) 340px, #071d30 700px, #06192a 1300px, #04111e 2400px, #020910 100%); }
.waterline { position: absolute; left: 0; right: 0; top: -40px; width: 100%; height: 41px; display: block; pointer-events: none; }
.waterline .wl-fill { fill: rgba(8, 34, 54, .62); }
.waterline .wl-line { fill: none; stroke: rgba(150, 210, 255, .35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.land-body > :not(.deep-layer):not(.waterline) { position: relative; z-index: 1; }
.land-intro { max-width: 1080px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.015em; color: #d6e6f5 !important; text-wrap: balance; }
.land-body > .land-intro + section { padding-top: 48px; }

/* Aufsteigende Lesezeichen (assets/landing.js). --d = Nähe: 0 tief hinten (klein, dunkel, unscharf), 1 ganz nah */
.deep-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubble { position: absolute; top: 0; will-change: transform; animation: sway 8s ease-in-out infinite alternate; }
.bubble-in { display: grid; place-items: center; width: calc(14px + 30px * var(--d)); height: calc(14px + 30px * var(--d));
  border-radius: calc(4px + 6px * var(--d)); font: 700 calc(8px + 13px * var(--d)) var(--display);
  color: hsl(var(--h) 30% calc(62% + 25% * var(--d)));
  background: hsl(var(--h) calc(25% + 30% * var(--d)) calc(13% + 21% * var(--d)));
  box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 70% / calc(.06 + .14 * var(--d)));
  opacity: calc(.38 + .5 * var(--d)); filter: blur(calc((1 - var(--d)) * 1.8px)); }
.bubble.is-chip .bubble-in { width: auto; height: auto; padding: 4px 10px 4px 22px; position: relative; border-radius: 6px;
  font: 12px var(--mono); color: #a9c4dc; background: rgba(6, 22, 36, .72); box-shadow: none; border: 1px solid rgba(150, 210, 255, .14); }
.bubble.is-chip .bubble-in::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: hsl(var(--h) 55% 50%); }
@keyframes sway { from { margin-left: -12px; } to { margin-left: 12px; } }
.bubble.at-edge { animation: none; }   /* am Handy: am Rand stehen lassen, nicht in den Text schaukeln */
/* kleine Luftblasen */
.air { position: absolute; bottom: 100%; left: var(--ax, 50%); width: var(--as, 5px); height: var(--as, 5px); border-radius: 50%;
  border: 1px solid rgba(190, 228, 255, calc(.25 + .4 * var(--d, .6))); background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), transparent 60%);
  opacity: 0; animation: air 4s ease-in infinite; animation-delay: var(--a, 0s); }
@keyframes air {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(6px, -70px) scale(1.1); opacity: 0; }
}

/* ---------- Meeresgrund: Lesezeichen-Tafeln im Schlick ---------- */
.seabed { position: relative; margin-top: clamp(40px, 7vw, 90px); }
.seabed-scene { position: relative; height: clamp(300px, 30vw, 400px); overflow: hidden; }
.ray { position: absolute; top: 0; left: var(--x); width: 90px; height: 100%; transform: rotate(14deg); transform-origin: top;
  background: linear-gradient(180deg, transparent 0, rgba(150, 210, 255, .07) 40%, transparent 85%); filter: blur(10px); }
.mud { position: absolute; left: 0; width: 100%; display: block; }
.mud-back { bottom: 40px; height: 130px; }
.mud-back path { fill: #10181a; }
.mud-front { bottom: 0; height: 90px; z-index: 3; }
.mud-front path { fill: #14130f; }
.sign { position: absolute; left: var(--x); bottom: calc(46px + 70px * (1 - var(--d))); z-index: 2; display: grid; justify-items: center;
  transform: translateX(-50%) rotate(var(--r)) scale(calc(.62 + .38 * var(--d))); transform-origin: 50% 100%;
  filter: brightness(calc(.45 + .55 * var(--d))) saturate(calc(.5 + .5 * var(--d))); }
.sign-board { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 6px; max-width: 220px; text-align: left;
  background: linear-gradient(180deg, #4b3c2b, #382b1f); border: 1px solid #1d150e;
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .12), inset 0 -10px 18px rgba(30, 60, 40, .35), 0 6px 14px rgba(0,0,0,.35); }
.sign-board b { display: block; color: #f0e4cf; font: 600 14px/1.25 var(--display); }
.sign-board small { display: block; color: #bfae92; font: 11.5px var(--mono); }
.sign-fav { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font: 700 13px var(--display); color: #fff;
  background: hsl(var(--h) 55% 40%); }
.sign-post { width: 9px; height: 110px; margin-top: -2px; background: linear-gradient(90deg, #2c2218, #46362a 50%, #2c2218); border-radius: 2px; }
.sign .air { bottom: 70%; }
.sign.is-dead .sign-board { background: linear-gradient(180deg, #3d3329, #2b241d); }
.sign.is-dead .sign-board b { text-decoration: line-through; text-decoration-color: rgba(255, 138, 128, .7); }
.sign.is-dead .sign-board small { color: #ff8a80; }
.weed { position: absolute; left: var(--x); bottom: 30px; width: calc(40px * var(--s)); height: calc(150px * var(--s)); z-index: 2; overflow: visible;
  transform-origin: 50% 100%; animation: weed 6s ease-in-out infinite alternate; }
.weed path { fill: none; stroke: #1f4a3a; stroke-width: 6; stroke-linecap: round; }
@keyframes weed { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.seabed .land-foot { position: relative; z-index: 3; margin: 0; max-width: none; background: #14130f; color: #9b9384;
  padding: 18px clamp(16px, 4vw, 48px) 36px; justify-content: center; }
.seabed .land-foot a { color: #b8ae9c; }
@media (max-width: 700px) {
  .sign.hide-sm { display: none; }
  .sign { left: var(--xs, var(--x)); }
  .sign-board { max-width: 160px; padding: 8px 10px 8px 8px; }
  .sign-board b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .bubble, .air, .weed { animation: none; } .air { display: none; } }
.land-body > section { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) clamp(16px, 4vw, 48px) 0; }
.land-body h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; }
.land-body p { color: #b7c0cc; }

.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid rgba(150, 210, 255, .08); }
.feat:nth-of-type(even) .feat-text { order: 2; }
.feat h3 { font-family: var(--display); font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.015em; margin: 0 0 10px; }
.feat p { margin: 0; max-width: 46ch; line-height: 1.6; }
kbd { font: 12.5px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #e7eaef; }

/* Kleine Nachbauten der echten Oberfläche – zeigen, wie es aussieht, statt es zu behaupten */
.feat-demo { display: grid; gap: 10px; padding: 22px; border-radius: 14px; background: rgba(12, 22, 33, .78); border: 1px solid rgba(150, 210, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.demo-input { font: 14px var(--mono); color: #c9d0da; padding: 10px 12px; border-radius: 9px; background: #0b0d11; border: 1px solid #2f3642; }
.demo-search::before { content: "⌕ "; color: #8d97a5; }
.demo-caret { display: inline-block; width: 1.5px; height: 1.05em; background: #7cc4ff; vertical-align: -2px; margin-left: 1px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: #1a1f27; }
.demo-card b, .demo-results b { display: block; color: #e7eaef; font-weight: 600; }
.demo-card small { display: block; color: #8d97a5; margin-top: 2px; }
.demo-fav { flex: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: hsl(var(--h) 72% 48%); }
.demo-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.demo-results li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 9px; background: #1a1f27; }
.demo-results li b { display: inline; margin-right: auto; }
.demo-tag { font-size: 12.5px; padding: 1px 8px; border-radius: 99px; color: hsl(var(--h) 70% 72%); background: hsl(var(--h) 60% 50% / .14); }
.demo-fails { display: inline-flex; gap: 3px; }
.demo-fails i { width: 9px; height: 9px; border-radius: 2px; background: #2f3642; }
.demo-fails i.on { background: #ff8a80; }
.demo-moved { color: #7cc4ff; }
.demo-hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 28px 18px; }
.demo-hub { display: grid; justify-items: center; text-align: center; gap: 4px; }
.demo-hub::before { content: ""; width: 46px; height: 46px; border-radius: 50%; border: 2px solid hsl(var(--h) 70% 66%);
  background: hsl(var(--h) 70% 66% / .12); margin-bottom: 6px; }
.demo-hub.is-new::before { box-shadow: 0 0 0 8px hsl(var(--h) 70% 66% / .14); }
.demo-hub b { color: #e7eaef; font-size: 14px; }
.demo-hub small { color: #8d97a5; font-size: 12.5px; }

.land-extras { list-style: none; margin: 0; padding: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: #b7c0cc; }
.land-extras b { color: #e7eaef; }

.land-coll-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.land-coll-list a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(12, 22, 33, .78); border: 1px solid rgba(150, 210, 255, .14);
  color: #e7eaef; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.land-coll-list a:hover { text-decoration: none; border-color: hsl(var(--h) 70% 66% / .6); }
.land-coll-list .coll-hub { margin: 0; flex: none; }
.land-coll-list small { display: block; color: #8d97a5; }

.land-faq h2 { margin-bottom: 18px; }
.land-faq details { border-bottom: 1px solid rgba(255,255,255,.08); }
.land-faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 18px; color: #e7eaef; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq summary::after { content: "+"; color: #8d97a5; font-weight: 400; }
.land-faq details[open] summary::after { content: "–"; }
.land-faq details p { margin: 0 0 20px; max-width: 70ch; line-height: 1.65; }

.land-final { text-align: left; }
.land-foot { max-width: 1080px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px) 40px; display: flex; gap: 20px; flex-wrap: wrap;
  color: #8d97a5; font-size: 14px; }
.land-foot a { color: #8d97a5; }

@media (max-width: 860px) {
  .land-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2vh; padding-bottom: 56px; }
  body.landing::after { background: rgba(5, 7, 10, .72); }
  .feat { grid-template-columns: 1fr; }
  .feat:nth-of-type(even) .feat-text { order: 0; }
  .land-extras { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .land-top nav { gap: 12px; }
  .land-top .logo { height: 40px; }
  .land-top .btn { padding: 8px 12px; }
  .demo-hubs { grid-template-columns: 1fr 1fr 1fr; padding: 20px 8px; }
}
@media (prefers-reduced-motion: reduce) { .demo-caret { animation: none; } }

/* ---------- Rechtliches ---------- */
.legal { max-width: 70ch; margin: 0 auto 40px; display: grid; gap: 4px; line-height: 1.65; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin-top: 22px; }
.legal h3 { font-size: 15.5px; margin-top: 10px; font-family: var(--display); }
.legal p { margin: 4px 0; }
.legal-missing { padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--err); color: var(--err); }
.legal-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.guest-legal, .public-legal { position: relative; z-index: 2; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 0 0 28px; font-size: 13px; }
.guest-legal a { color: #9aa3b0; }
.public-legal a { color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.export-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* Startseite: Für Teams, Schulen und Vereine */
.land-teams-lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 60ch; margin: 14px 0 0; }
.teams-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 36px; }
.teams-demo { padding: 20px; border-radius: 14px; background: rgba(12, 22, 33, .78); border: 1px solid rgba(150, 210, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 12px; }
.teams-head { display: flex; align-items: center; gap: 12px; }
.teams-head b { display: block; color: #e7eaef; font-family: var(--display); font-size: 17px; }
.teams-head small { color: #8d97a5; }
.demo-hub-dot { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid hsl(var(--h) 70% 66%); background: hsl(var(--h) 70% 66% / .12);
  box-shadow: 0 0 0 7px hsl(var(--h) 70% 66% / .1); }
.teams-new { margin-left: auto; font-size: 12.5px; padding: 3px 9px; border-radius: 99px; color: #06121d; background: #7cc4ff; font-weight: 600; }
.demo-fav.sm { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.demo-results li.is-fresh { box-shadow: inset 3px 0 0 #7cc4ff; }
.teams-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.teams-cases h3 { font-family: var(--display); font-size: clamp(18px, 1.8vw, 21px); margin: 0 0 6px; letter-spacing: -0.01em; }
.teams-cases p { margin: 0; line-height: 1.6; max-width: 56ch; }
.land-teams .land-cta { margin-top: 32px; }
@media (max-width: 860px) { .teams-grid { grid-template-columns: 1fr; } .teams-cases { order: -1; } }

/* Startseite: 30 Jahre */
.land-since { margin: 22px 0 0; font-size: 14.5px; }
.land-since a { color: #9fc7e6; border-bottom: 1px solid rgba(159, 199, 230, .35); }
.land-since a:hover { text-decoration: none; color: #cfe6f7; }
.land-history { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.history-num { margin: 0; font: 700 clamp(120px, 20vw, 260px)/.8 var(--display); letter-spacing: -0.04em;
  color: rgba(150, 210, 255, .07); -webkit-text-stroke: 2px rgba(150, 210, 255, .6); }
.land-history p { max-width: 60ch; line-height: 1.65; }
.land-history h2 + p { margin-top: 14px; }
.land-history strong { color: #e7eaef; }
@media (max-width: 700px) { .land-history { grid-template-columns: 1fr; gap: 6px; } .history-num { font-size: 120px; } }

/* Einstellungen: Vorschau von Profil- und Hintergrundbild */
.profile-preview { display: grid; gap: 6px; }
.pv-label { font-size: 13px; font-weight: 600; }
.pv-card { position: relative; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  display: flex; align-items: flex-end; gap: 12px; padding: 14px 16px;
  background-color: var(--pv-color, var(--bg));
  background-image: linear-gradient(transparent 30%, color-mix(in srgb, var(--pv-color, var(--bg)) 85%, transparent)), var(--pv-bg, none);
  background-size: cover; background-position: center; }
.pv-avatar, .pv-letter { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.35); font-size: 26px; }
.pv-name { color: #fff; font: 600 17px var(--display); text-shadow: 0 1px 6px rgba(0,0,0,.6); padding-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Zuschneiden des Profilbilds */
.crop-dialog { width: min(420px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--menu-border, var(--line)); border-radius: 14px;
  background: var(--menu-bg, var(--surface)); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.crop-dialog::backdrop { background: rgba(5, 7, 10, .65); backdrop-filter: blur(2px); }
.crop-body { padding: 20px 20px 16px; display: grid; gap: 12px; }
.crop-body h2 { margin: 0; font-size: 18px; }
.crop-body p { margin: 0; font-size: 14px; }
.crop-stage { --s: min(340px, calc(100vw - 66px)); position: relative; width: var(--s); height: var(--s); justify-self: center;
  overflow: hidden; border-radius: 10px; background: #000; touch-action: none; cursor: grab; user-select: none; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 18px; }
.crop-zoom input { flex: 1; accent-color: var(--accent); }

/* E-Mail- und Telefon-Links: Symbol statt Favicon */
.mark.mark-sym { font: 400 18px var(--body); }

/* Einladungen, Blockieren, Melden */
.side-invites h2 { padding: 6px 4px; color: var(--accent); }
.side-invites h2::before { content: "✉"; font-size: 11px; transform: none !important; }
.side-invites .count { font-size: 10.5px; }
.invites { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.invites h2 { display: flex; align-items: center; gap: 8px; }
.invites h2 .count { margin-left: 0; }
.invite-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.invite-row:last-child { border-bottom: 0; }
.invite-row .coll-hub { width: 34px; height: 34px; flex: none; }
.invite-row .row-text { flex: 1 1 220px; }
.invite-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-actions form { margin: 0; }
.sub-title { margin: 16px 0 4px; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.report-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.report-btn:hover { color: var(--err); }
.report-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.report-dialog textarea { width: 100%; }
.profile-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.coll-hero-actions .report-btn { margin-top: 6px; }
.admin-report { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-report:last-child { border-bottom: 0; }
.admin-report .row-actions { justify-content: flex-start; }
.reason-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }

/* Gemeinsame Sammlungen (Mitgestalter) */
.editor-badge { color: var(--accent); font-weight: 600; }
.added-by { color: var(--muted); }
.added-by a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.card-by { margin: -2px 0 0; font-size: 12.5px; color: var(--muted); }
.chip-check.shared small { color: var(--muted); font-weight: 400; }
.editor-box { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); margin-bottom: 16px; }
.editor-box h2 { color: var(--accent); }
.delete-note { margin: 0; font-size: 14px; }
.delete-handover { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; margin: 0; }
.delete-handover legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.coll-foreign { margin: 2px 0 6px; font-size: 14px; color: var(--accent); }

/* Verwaltung */
.admin-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-tabs a { padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.admin-tabs a:hover { text-decoration: none; color: var(--ink); }
.admin-tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.admin-tabs .count { margin-left: 0; }
.admin-stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.admin-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.admin-stats li > b, .admin-stats li > a, .admin-stats li > span { display: block; }
.admin-stats li > b, .admin-stats li > a > b { font: 700 24px var(--display); padding: 12px 14px 0; display: block; }
.admin-stats li span { display: block; padding: 0 14px 12px; color: var(--muted); font-size: 13px; }
.admin-stats li > a { color: inherit; }
.admin-stats li > a:hover { text-decoration: none; background: var(--surface-2); border-radius: 12px; }
.admin-stats li.warn { border-color: color-mix(in srgb, #d08a1c 55%, var(--line)); }
.admin-stats li.alert { border-color: color-mix(in srgb, var(--err) 60%, var(--line)); }
.admin-stats li.alert b { color: var(--err); }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-filter input[type=search] { flex: 1 1 240px; }
.admin-filter select { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.admin-users { list-style: none; margin: 8px 0 0; padding: 0; }
.admin-user { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-user:last-child { border-bottom: 0; }
.admin-user.is-suspended .admin-user-name > a { text-decoration: line-through; }
.admin-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; font-size: 15px; }
.admin-user-main { flex: 1 1 320px; min-width: 0; display: grid; gap: 3px; }
.admin-user-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.admin-user-name .muted { font-weight: 400; }
.admin-user-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-user-actions form { margin: 0; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge-admin { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.badge-warn { background: color-mix(in srgb, #d08a1c 18%, transparent); color: #d08a1c; }
.badge-danger { background: color-mix(in srgb, var(--err) 16%, transparent); color: var(--err); }
.admin-delete summary { list-style: none; cursor: pointer; }
.admin-delete summary::-webkit-details-marker { display: none; }
.admin-delete-form { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid color-mix(in srgb, var(--err) 40%, var(--line)); border-radius: 10px; max-width: 280px; }
.admin-pages { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.admin-filter input[type=search] { width: auto; min-width: 0; }
.admin-filter select { width: auto; flex: 0 0 auto; }

/* Sprache DE | EN */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font: 600 12.5px var(--mono); }
.lang-switch > * { padding: 3px 7px; border-radius: 6px; color: var(--muted); }
.lang-switch .on { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.lang-switch a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.lang-switch > * + *::before { content: none; }

/* Nach dem Speichern: zurück zum bearbeiteten Eintrag, kurz hervorgehoben */
.card[id], .tile[id], .tag-row[id] { scroll-margin-top: calc(var(--top-h, 56px) + 24px); }
.just-saved { animation: just-saved 2.4s ease-out; }
@keyframes just-saved { 0%, 40% { box-shadow: 0 0 0 3px var(--accent, #e8a33d); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* Sprachumschalter: Plätze */
.land-top .lang-switch > * { color: #b9c1cc; }
.land-top .lang-switch .on { color: #e7eaef; }
.public-top nav { align-items: center; }
.guest-lang { position: fixed; top: 12px; right: 14px; z-index: 3; }
.guest-lang .lang-switch > * { color: #9aa3b0; }
.guest-lang .lang-switch .on { color: #e7eaef; }
.usermenu-lang { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 10px; color: var(--muted); font-size: 14px; }
.usermenu-panel .usermenu-lang a { display: inline; width: auto; padding: 3px 7px; font: 600 12.5px var(--mono); color: var(--muted); }
.land-en-hint { position: relative; z-index: 3; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); max-width: 1240px; font-size: 14px; }
.land-en-hint a { color: #e7eaef; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .land-top nav { gap: 10px; } .land-top .lang-switch > * { padding: 3px 5px; } }

/* Design-Umschalter Hell / Dunkel / Automatisch */
.theme-switch { display: inline-flex; align-items: center; gap: 2px; }
.theme-switch button { all: unset; cursor: pointer; width: 26px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); font-size: 14px; line-height: 1; }
.theme-switch button:hover { color: var(--ink); background: var(--surface-2); }
.theme-switch button.on { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.usermenu-panel .theme-switch button { display: grid; width: 28px; height: 26px; padding: 0; text-align: center; color: var(--muted); }
.usermenu-panel .theme-switch button.on { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.theme-switch svg { display: block; }

/* Mehrfachauswahl */
body.selecting [data-results] li[data-id] { position: relative; cursor: pointer; }
body.selecting [data-results] li[data-id] > a, body.selecting [data-results] li[data-id] .card-link { pointer-events: none; }
body.selecting [data-results] li[data-id]::before { content: ""; position: absolute; z-index: 2; top: 50%; left: 8px; transform: translateY(-50%); width: 18px; height: 18px;
  border-radius: 5px; border: 2px solid var(--muted); background: var(--surface); }
body.selecting .cards li[data-id]::before { top: 12px; left: auto; right: 12px; transform: none; }
body.selecting .tiles li[data-id] .tile-link { padding-left: 36px; }
body.selecting [data-results] li.picked::before { border-color: var(--accent); background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
body.selecting [data-results] li.picked .tile-link, body.selecting [data-results] li.picked.card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-tags { display: none; font-size: 11.5px; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.selecting .tile-tags { display: block; }
body.selecting [data-results] li [data-info] { position: absolute; z-index: 3; }
.select-bar { position: sticky; bottom: 12px; z-index: 15; margin: 16px 0 0; padding: 12px 14px; display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.select-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.select-row .select-close { margin-left: auto; }
.select-hint { font-size: 12.5px; }
.select-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.select-group input, .select-group select { min-width: 150px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: 14px var(--body); }
.select-actions .btn { padding: 7px 12px; }
.select-actions .btn.danger { margin-left: auto; }
[data-select-toggle][aria-pressed="true"]:not(.icon-btn) { border-color: var(--accent); color: var(--accent); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.key-hint { margin-left: 4px; font: 600 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
@media (max-width: 640px) { .select-hint { display: none; } .select-actions .btn.danger { margin-left: 0; } }
body.selecting [data-results] { user-select: none; -webkit-user-select: none; }
.select-group { flex-wrap: nowrap; }
.select-group input, .select-group select { width: auto; flex: 0 1 200px; min-width: 120px; }
@media (max-width: 760px) { .select-group { flex-wrap: wrap; } .select-group input, .select-group select { flex: 1 1 100%; } }

/* Vorschau vor Sammel-Aktionen */
.confirm-dialog.confirm-wide { width: min(560px, calc(100vw - 32px)); }
.confirm-groups { width: 100%; display: grid; gap: 12px; max-height: min(50vh, 420px); overflow-y: auto; }
.confirm-group h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.confirm-group ul { margin: 0; padding: 8px 10px 8px 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13.5px; line-height: 1.5; }
.confirm-group li { overflow-wrap: anywhere; }
.confirm-group.muted h3, .confirm-group.muted ul { color: var(--muted); }
.confirm-actions .btn:disabled { opacity: .45; cursor: not-allowed; }

/* Mögliche Doppelte: «Keine Doppelten» */
.dup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dup-head h2 { margin: 0; }
.dup-head .btn { padding: 6px 12px; font-size: 13.5px; }
.dup-foot { margin: 18px 0 0; font-size: 14px; }

/* Personen mit Zugriff: kleine Knöpfe statt Textlinks */
.member-actions { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.member-actions form { margin: 0; }
.btn.small.danger-text { color: var(--err); }
.btn.small.danger-text:hover { background: color-mix(in srgb, var(--err) 10%, transparent); border-color: color-mix(in srgb, var(--err) 50%, var(--line)); }
.row-item:has(.member-actions) { flex-wrap: wrap; row-gap: 6px; }
.row-item:has(.member-actions) .row-text { flex: 1 1 0; min-width: 0; }
.member-actions { margin-left: 0; width: 100%; padding-left: 45px; justify-content: flex-start; }

/* Aussehen der Sammlungsseite */
.look-group { border: 0; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.look-group legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.look-group small.muted { display: block; font-size: 12.5px; }
.look-sub { display: none; margin: 4px 0 6px 26px; padding: 10px 12px; border-left: 2px solid var(--line); gap: 10px; }
.look-group:has(input[value="custom"]:checked) .look-sub[data-for~="custom"],
.look-group:has(input[name="bg_mode"][value="image"]:checked) .look-sub[data-for~="image"],
.look-group:has(input[name="bg_mode"][value="color"]:checked) .look-sub[data-for~="color"] { display: grid; }
.look-logo { max-height: 48px; max-width: 160px; border-radius: 6px; background: var(--surface-2); padding: 4px; }
.look-bg { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; }
.look-color input[type="color"] { width: 64px; height: 34px; padding: 2px; }
.coll-by { display: flex; align-items: center; gap: 8px; }
.coll-by-img { max-height: 28px; max-width: 140px; object-fit: contain; }
.coll-by-img.round { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.coll-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); padding: 6px; flex: 0 0 auto; }
.coll-by { justify-content: flex-start; }
.look-group:has(input[name="pub_icon_mode"][value="custom"]:checked) .look-sub[data-for~="custom"],
.look-group:has(input[name="pub_title_mode"][value="custom"]:checked) .look-sub[data-for~="custom"],
.look-group:has(input[name="pub_bg_mode"][value="image"]:checked) .look-sub[data-for~="image"],
.look-group:has(input[name="pub_bg_mode"][value="color"]:checked) .look-sub[data-for~="color"] { display: grid; }
.public-face { display: grid; gap: 12px; margin: 8px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.public-face .sub-title { margin: 0; }
.public-icon { border-radius: 16px; object-fit: contain; background: color-mix(in srgb, var(--surface-2) 70%, transparent); padding: 6px; }
.coll-card-logo { display: block; height: 34px; max-width: 120px; object-fit: contain; margin-bottom: 8px; }
.coll-back { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 14px; }
.coll-back a { color: var(--muted); }
.coll-back a:hover { color: var(--ink); }
.coll-back a + a::before { content: "·"; margin-right: 18px; color: var(--line); }
.coll-back-who { opacity: .75; }

/* Kopf der öffentlichen Seiten auf den Sammlungen (Icon + Titel, zurück zum Profil) */
.public-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.public-head-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 6px 12px 6px 6px; border-radius: 14px; }
.public-head-link:hover { text-decoration: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.public-head-icon { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); padding: 3px; }
.public-head-icon.round { border-radius: 50%; object-fit: cover; padding: 0; }
.public-head-title { font: 700 22px/1.2 var(--display); }
.public-head-all { font-size: 13px; color: var(--muted); }
.public-head-link:hover .public-head-all { color: var(--ink); }
.public-head-plain { font-size: 14px; color: var(--muted); }
.public-head-mine { margin-left: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .public-head-title { font-size: 18px; } .public-head-icon { width: 40px; height: 40px; } }

/* Lesezeichen importieren */
.import-stats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.import-stats strong { font-size: 18px; margin-right: 4px; }
.import-stats .ok strong { color: var(--ok); }
.import-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.import-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.import-guide { border-bottom: 1px solid var(--line); padding: 8px 0; }
.import-guide summary { cursor: pointer; font-weight: 600; }
.import-guide ol { margin: 8px 0 4px; padding-left: 22px; color: var(--muted); line-height: 1.6; }
.import-preview { scroll-margin-top: 80px; border-color: var(--accent); }

/* Ratgeber-Seiten (Pocket-Alternative, Lesezeichen importieren) */
.guide { max-width: 760px; margin: 0 auto 40px; display: grid; gap: 22px; line-height: 1.65; }
.guide-hero { padding: 26px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 14px; }
.guide-hero h1 { margin: 4px 0 10px; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 14px; }
.guide > section { padding: 0 6px; scroll-margin-top: 20px; }
.guide h2 { font-size: 22px; margin: 0 0 8px; }
.guide ul, .guide ol { padding-left: 22px; margin: 6px 0; display: grid; gap: 6px; }
.guide-steps li::marker { font-weight: 700; color: var(--accent); }
.guide code { font: 13px var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.guide-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq p { margin: 8px 0 2px; color: var(--muted); }
.guide-end { padding: 22px 26px !important; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid var(--line); border-radius: 14px; }
/* Öffentliche Kopfzeile auf dem Handy: umbrechen statt abschneiden */
@media (max-width: 600px) {
  .public-top nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .public-top nav .btn { padding: 7px 11px; font-size: 13.5px; }
  .public-top .theme-switch { order: 9; }
}
@media (max-width: 480px) { .public-top .brand { display: inline-flex; } .public-top .logo { height: 36px; } }

/* Tags als Kärtchen im Bearbeiten-Formular (wie in der Info-Ansicht), × entfernt einen Tag */
.tag-chips { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px;
  padding: 5px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: text; }
.tag-chips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.tag-chips .tag-chip { padding: 2px 4px 2px 10px; gap: 2px; font-size: 13.5px; }
.tag-chips .tag-x { border: 0; background: none; color: inherit; font: 16px/1 var(--body); width: 20px; height: 20px; padding: 0;
  border-radius: 50%; cursor: pointer; opacity: .65; display: grid; place-items: center; }
.tag-chips .tag-x:hover, .tag-chips .tag-x:focus-visible { opacity: 1; background: hsl(var(--h) 60% var(--tone-l) / .18); outline: none; }
.tag-chips input.tag-chips-input { flex: 1 1 90px; min-width: 90px; width: auto; border: 0; padding: 4px 2px; background: transparent; box-shadow: none; }
.tag-chips input.tag-chips-input:focus { box-shadow: none; }
