/* Swipa Netzwerk: Design im Stil des KINTEC Profishop */

/* Schrift: Google Sans (SIL Open Font License 1.1, /fonts/OFL-Google-Sans.txt), selbst gehostet */
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/google-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/google-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --surface-3: #efeff2;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-text: #0066cc;
  --green: #1a9f4b;
  --green-soft: rgba(29, 185, 84, 0.12);
  --orange: #c56a0c;
  --orange-soft: rgba(232, 135, 30, 0.12);
  --red: #d70040;
  --red-soft: rgba(224, 36, 94, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --radius: 16px;
  --radius-sm: 11px;
  --max: 1200px;
  --head-h: 73px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014; --surface: #1a1a20; --surface-2: #222229; --surface-3: #2a2a32;
    --text: #f2f2f4; --text-2: #a3a3ac; --text-3: #7c7c86;
    --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.18);
    --accent: #2997ff; --accent-hover: #3aa1ff; --accent-soft: rgba(41, 151, 255, 0.16); --accent-text: #5aaeff;
    --green: #34c76a; --orange: #f0a04b; --red: #ff5a7e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent-text); }
a.link:hover, .prose a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 16px; height: 16px; }
svg.i.l { width: 24px; height: 24px; }

/* ---------- Kopfzeile (wie Profishop) ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.head-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px; min-height: var(--head-h);
  display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(240px, 620px) minmax(max-content, 1fr); align-items: center; column-gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: #0071e3; color: #fff;
  font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none;
}
/* Wortmarke «swipa.»: Kleinbuchstaben, blauer Punkt (Inhaber 2026-11-21) */
.brand-name { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; color: var(--text); }
.brand-name .brand-dot { color: #0071e3; }

.search { position: relative; width: 100%; min-width: 0; }
.search input {
  width: 100%; height: 48px; padding: 0 56px 0 20px; border-radius: 24px;
  border: 1.5px solid var(--border-strong); background: var(--surface-2); outline: none; font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.search > button {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
}
.search > button:hover { background: var(--accent-hover); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; animation: pop .14s ease;
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; }
.suggest a:hover, .suggest a.on { background: var(--surface-2); }
.suggest .t { font-weight: 600; font-size: 14.5px; }
.suggest .s { font-size: 12.5px; color: var(--text-2); }
.suggest .all { justify-content: center; color: var(--accent-text); font-weight: 600; font-size: 14px; border-top: 1px solid var(--border); border-radius: 0 0 11px 11px; margin-top: 4px; padding-top: 10px; }

.actions { display: flex; align-items: center; gap: 2px; justify-self: end; }
.act {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 12px; position: relative;
  color: var(--text-2); border: none; background: transparent; font-size: 12px; font-weight: 550; min-width: 64px;
}
.act:hover { background: var(--surface-2); color: var(--text); }
.act.on { color: var(--text); }
.act.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--text); }
.act em {
  position: absolute; top: 2px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; font-style: normal;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}
.act .av { width: 22px; height: 22px; font-size: 10px; }
.menuwrap { position: relative; }
.grp-menu { position: absolute; top: 14px; right: 14px; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  animation: pop .14s ease;
}
.menu[hidden] { display: none; }
.menu .me { display: flex; gap: 12px; align-items: center; padding: 10px; }
.menu .me b { display: block; font-size: 15px; }
.menu .me span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu .ttl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); padding: 8px 10px 4px; }
.menu a, .menu button.item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: none; background: none;
  font-size: 14.5px; text-align: left; color: var(--text);
}
.menu a:hover, .menu button.item:hover { background: var(--surface-2); color: var(--accent-text); }
.menu .item svg { color: var(--text-2); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Zweite Zeile mit Rubriken, wie die Kategorien im Profishop */
.subnav { border-top: 1px solid var(--border); }
.subnav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { padding: 12px 0; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--text); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--accent-text); }
.subnav a.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.erfasst-zaehler { margin-left: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 1px; padding: 4px 0; font-size: 11px; line-height: 1.25; white-space: nowrap; color: var(--muted, #6b7280); }
.erfasst-zaehler b { color: var(--text); font-weight: 600; }
.erfasst-zaehler em { font-style: normal; color: var(--accent-text); margin-left: 4px; }

/* ---------- Layout ---------- */
main { min-height: calc(100vh - 260px); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px; }
.grid-3 { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.grid-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.sticky { position: sticky; top: calc(var(--head-h) + 62px); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-h h2 { font-size: 18px; }
.card-b { padding: 14px 22px 22px; }
.card-f { border-top: 1px solid var(--border); padding: 12px 22px; display: flex; justify-content: center; }
.card-f a { color: var(--text-2); font-weight: 600; font-size: 14px; }
.card-f a:hover { color: var(--accent-text); }
.sec-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.crumbs { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span[aria-hidden] { color: var(--text-3); }

/* ---------- Knöpfe und Chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 20px;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.outline { border-color: var(--accent); color: var(--accent-text); }
.btn.outline:hover { background: var(--accent-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15.5px; border-radius: 24px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.chip small { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.chip.on small { color: inherit; opacity: .75; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.tag.blue { background: var(--accent-soft); color: var(--accent-text); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.orange { background: var(--orange-soft); color: var(--orange); }

/* ---------- Avatare und Logos ---------- */
.av {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 17px; overflow: hidden; background: var(--c, #8e8e93); letter-spacing: .01em; user-select: none;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.xs { width: 32px; height: 32px; font-size: 12px; }
.av.sm { width: 40px; height: 40px; font-size: 14px; }
.av.lg { width: 72px; height: 72px; font-size: 26px; }
.av.xl { width: 152px; height: 152px; font-size: 52px; border: 4px solid var(--surface); box-shadow: var(--shadow-sm); }
.logo {
  width: 48px; height: 48px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 16px; overflow: hidden; background: var(--c, #8e8e93); user-select: none;
}
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo.xs { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.logo.sm { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.logo.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 24px; }
.logo.xl { width: 128px; height: 128px; border-radius: 24px; font-size: 42px; border: 4px solid var(--surface); box-shadow: var(--shadow-sm); }

/* ---------- Listenzeilen ---------- */
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.row + .row { border-top: 1px solid var(--border); }
.row .body { flex: 1; min-width: 0; }
.row .name { font-weight: 650; font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; }
.row a.name:hover { color: var(--accent-text); text-decoration: underline; }
.row .sub { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .side { display: flex; gap: 8px; align-items: center; flex: none; }
.verified { color: var(--accent); display: inline-flex; }
.verified svg { width: 17px; height: 17px; }

/* Kachel für Vorschläge */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .tiles.tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.tile:hover { box-shadow: var(--shadow-md); }
.tile .top { height: 58px; background: linear-gradient(120deg, var(--c1, #dfe9f7), var(--c2, #eef2f8)); }
.tile .av, .tile .logo { margin: -36px auto 0; border: 3px solid var(--surface); width: 76px; height: 76px; font-size: 26px; }
.tile .logo { border-radius: 18px; }
.tile .in { padding: 10px 14px 16px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.tile .nm { font-weight: 650; font-size: 15px; line-height: 1.3; }
.tile .nm:hover { text-decoration: underline; }
.tile .hl { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.tile .why { font-size: 12px; color: var(--text-3); margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.tile .btn { margin-top: 12px; }
.tile .grow { flex: 1; }

/* ---------- Startseite ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 380px at 85% -10%, rgba(0, 113, 227, .12), transparent 60%), radial-gradient(700px 320px at -5% 110%, rgba(0, 113, 227, .08), transparent 60%);
}
.hero-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 72px 24px 64px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 18.5px; color: var(--text-2); margin-top: 18px; max-width: 560px; line-height: 1.55; }
.hero .search { margin-top: 30px; max-width: 580px; }
.hero .search input { height: 56px; border-radius: 28px; font-size: 16px; padding-left: 24px; background: var(--surface); box-shadow: var(--shadow-md); }
.hero .search > button { width: 46px; height: 46px; top: 5px; right: 5px; }
.hero .quick { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.hero-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; height: 380px; }
.float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); padding: 14px 16px; display: flex; gap: 12px; align-items: center; width: 340px; }
.float .tx b, .float .tx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float .tx { display: block; min-width: 0; flex: 1; }
.float .tx b { display: block; font-size: 14.5px; }
.float .tx span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.float .btn { margin-left: auto; }
.float.f1 { top: 8px; left: 30px; }
.float.f2 { top: 134px; right: 0; }
.float.f3 { top: 262px; left: 0; }
.float .ok { width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin-left: auto; flex: none; }

.stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stats span { font-size: 13.5px; color: var(--text-2); }

.band { max-width: var(--max); margin: 0 auto; padding: 48px 24px; }
.band h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.band .sub { color: var(--text-2); margin-top: 6px; font-size: 15.5px; }
.band-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature h3 { font-size: 17.5px; }
.feature p { color: var(--text-2); margin-top: 6px; font-size: 14.5px; }
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.cta-band h2 { font-size: 26px; }

/* Profilkarte links (eingeloggt) */
.pcard { overflow: hidden; }
.pcard .cover { height: 64px; background: linear-gradient(120deg, #cfe2fb, #eaf1fb); background-size: cover; background-position: center; }
.pcard .av { margin: -36px auto 0; width: 72px; height: 72px; border: 3px solid var(--surface); font-size: 24px; }
.pcard .in { padding: 10px 18px 16px; text-align: center; }
.pcard .nm { font-weight: 700; font-size: 17px; }
.pcard .nm:hover { text-decoration: underline; }
.pcard .hl { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.pcard .kv { border-top: 1px solid var(--border); padding: 10px 18px; }
.pcard .kv a { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: var(--text-2); }
.pcard .kv a b { color: var(--accent-text); }
.pcard .kv a:hover { color: var(--text); }
.links-card a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; font-weight: 550; }
.links-card a:hover { background: var(--surface-2); color: var(--accent-text); }
.links-card a + a { border-top: 1px solid var(--border); }
.links-card svg { color: var(--text-2); }

/* ---------- Profilseiten ---------- */
.prof { overflow: hidden; }
.prof .cover { height: 210px; background: linear-gradient(120deg, var(--c1, #cfe2fb), var(--c2, #eef4fc)); background-size: cover; background-position: center; position: relative; }
.prof .cover .edit { position: absolute; right: 16px; top: 16px; }
.prof .head2 { padding: 0 26px 24px; position: relative; }
.prof .head2 .av.xl, .prof .head2 .logo.xl { width: 120px; height: 120px; font-size: 40px; border-radius: 20px; margin-top: -165px; margin-bottom: 71px; } /* Foto bzw. Logo quadratisch links im Titelbild (Inhaber 25.11.2026) */
.prof .head2 .av.xl img, .prof .head2 .logo.xl img { border-radius: 16px; }
.prof .title { margin-top: 26px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.prof h1 { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof .hl { font-size: 17px; margin-top: 4px; color: var(--text); }
.prof .facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-2); }
.prof .facts span, .prof .facts a { display: inline-flex; align-items: center; gap: 6px; }
.prof .facts a { color: var(--accent-text); font-weight: 600; }
.prof .facts a:hover { text-decoration: underline; }
.prof .cur { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.prof .cur a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.prof .cur a:hover { color: var(--accent-text); text-decoration: underline; }
.prof .cur a.cur-c { font-weight: 400; color: var(--text-2); overflow-wrap: anywhere; padding-left: 4px; }
.prof .btns { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.notice svg { color: var(--text-3); margin-top: 1px; }
.notice.blue { background: var(--accent-soft); border-color: transparent; color: var(--text); }
.notice.blue svg { color: var(--accent); }
.notice b { color: var(--text); }

.prose { white-space: pre-line; font-size: 15px; line-height: 1.65; }
.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more { border: none; background: none; color: var(--text-2); font-weight: 600; padding: 4px 0; margin-top: 4px; }
.more:hover { color: var(--accent-text); }

.exp { display: flex; gap: 14px; padding: 14px 0; }
.exp + .exp { border-top: 1px solid var(--border); }
.exp .t { font-weight: 650; font-size: 15.5px; }
.exp .o { font-size: 14px; }
.exp .o a:hover { color: var(--accent-text); text-decoration: underline; }
.exp .d { font-size: 13px; color: var(--text-3); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.exp .x { font-size: 14px; color: var(--text-2); margin-top: 6px; white-space: pre-line; }
.exp .tools { margin-left: auto; display: flex; gap: 4px; }

.kv-list { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 14.5px; }
.kv-list dt { color: var(--text-2); }
.kv-list dd { margin: 0; overflow-wrap: anywhere; }
.inline-kv dd { min-height: 26px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.doc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; color: var(--text); background: var(--surface, #fff); }
.doc-chip button { all: unset; cursor: pointer; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; color: var(--text-2); font-size: 15px; }
.doc-chip button:hover { background: #fde2e2; color: #c8102e; }
.doc-chip.add { cursor: pointer; padding: 3px 10px; color: var(--accent-text); border-style: dashed; font: inherit; font-size: 13.5px; }
.doc-pick { position: relative; display: inline-block; min-width: 260px; }
.doc-sugg { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; }
.doc-sugg a { display: block; padding: 7px 10px; color: var(--text); }
.doc-sugg a:hover { background: var(--surface-2, rgba(0,0,0,.05)); }
.inline-val { all: unset; cursor: text; display: inline-block; min-width: 60px; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; color: var(--text); overflow-wrap: anywhere; }
.inline-val:hover, .inline-val:focus-visible { background: var(--surface-2, rgba(0,0,0,.05)); outline: 1px dashed var(--border); }
.inline-val.empty { color: var(--text-2); font-style: italic; padding: 2px 6px; margin: -2px -6px; border: 0; background: none; text-align: left; min-height: 0; }
.inline-input { width: 100%; max-width: 420px; font: inherit; padding: 4px 8px; border: 1px solid var(--accent); border-radius: 6px; background: var(--bg, #fff); color: var(--text); }
.kv-list dd a { color: var(--accent-text); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; }
.people-grid .row:nth-child(2) { border-top: none; }
@media (max-width: 560px) { .people-grid .row:nth-child(2) { border-top: 1px solid var(--border); } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 14px 12px; border: none; background: none; font-weight: 600; font-size: 14.5px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--accent-text); border-bottom-color: var(--accent); }

.side-nav { padding: 8px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.side-nav a span { display: flex; align-items: center; gap: 10px; }
.side-nav a svg { color: var(--text-2); }
.side-nav a small { color: var(--text-3); font-size: 13px; font-weight: 600; }
.side-nav a:hover { background: var(--surface-2); }
.side-nav a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.side-nav a.on svg, .side-nav a.on small { color: var(--accent-text); }
.side-nav .sep { height: 1px; background: var(--border); margin: 6px 8px; }

/* ---------- Suche ---------- */
.filters h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 18px 0 10px; }
.filters h3:first-child { margin-top: 0; }
.filters .chips { gap: 6px; }
.res-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.res-h h1 { font-size: 26px; font-weight: 700; }
.res-h .muted { font-size: 14px; }
.res-section + .res-section { margin-top: 18px; }
.empty { text-align: center; padding: 48px 24px; }
.empty .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); color: var(--text-3); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty .ic svg { width: 30px; height: 30px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--text-2); margin-top: 6px; }
.empty .btn-row { justify-content: center; margin-top: 18px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }

/* ---------- Formulare (KINTEC Modern UI) ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.fgrid .full { grid-column: 1 / -1; }
.field label, .lbl { font-size: 13px; font-weight: 650; color: var(--text-2); display: block; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.inp, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; font-size: 15px;
  background: var(--surface-2); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--red); }
.ferr { color: var(--red); font-size: 13px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.radio-cards { display: grid; gap: 8px; }
.radio-cards label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-cards input { margin-top: 3px; accent-color: var(--accent); }
.radio-cards b { display: block; font-size: 14.5px; }
.radio-cards span { font-size: 13px; color: var(--text-2); }
.sec-lbl { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.sec-lbl::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 6px; flex-wrap: wrap; }
.taginput { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); min-height: 48px; align-items: center; }
.taginput:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.taginput .tag { padding: 5px 6px 5px 11px; font-size: 13.5px; }
.taginput .tag button { border: none; background: none; padding: 0 3px; color: inherit; display: flex; }
.taginput input { flex: 1; min-width: 140px; border: none; outline: none; background: transparent; padding: 6px; font-size: 15px; }
.img-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.contact-row { display: grid; grid-template-columns: 130px 1fr 150px 40px; gap: 8px; align-items: center; }
.contact-row + .contact-row { margin-top: 8px; }

/* Anmeldeseite (wie Dialog im Profishop) */
.auth { min-height: calc(100vh - var(--head-h)); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 34px 32px; border-radius: 22px; }
.auth-card h1 { font-size: 26px; font-weight: 700; }
.auth-card .lead { color: var(--text-2); margin: 6px 0 22px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--text-2); }
.auth-card .alt a { color: var(--accent-text); font-weight: 600; }
.alert { padding: 11px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; }
.alert.ok { background: var(--green-soft); color: var(--green); }

/* ---------- Dialog ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .38); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s ease; }
.modal { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: up .18s ease; }
.modal.sm { max-width: 440px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 8px; }
.modal-h h2 { font-size: 20px; }
.modal-b { padding: 8px 24px 8px; overflow-y: auto; }
.modal-b p { color: var(--text-2); }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px 22px; flex-wrap: wrap; }
.modal-f .btn { min-width: 120px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1d1d1f; color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px; display: flex; gap: 10px; align-items: center; animation: up .2s ease; pointer-events: auto; max-width: calc(100vw - 32px); }
.toast.err { background: var(--red); }
.toast svg { color: #34c76a; }
.toast.err svg { color: #fff; }

/* Ladezustand */
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
.skel-card { height: 120px; border-radius: var(--radius); }
.loading { padding: 80px 24px; display: flex; justify-content: center; }
.loading .spin { width: 28px; height: 28px; border: 3px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Fusszeile ---------- */
.foot { border-top: 1px solid var(--border); background: var(--surface); margin-top: 48px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px 24px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.foot a { display: block; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.foot a:hover { color: var(--accent-text); }
.foot p { font-size: 14px; color: var(--text-2); margin-top: 10px; max-width: 320px; }
.foot a.foot-app { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 600; }
.foot a.foot-app:hover { background: var(--accent); color: #fff; }
.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 16px 24px 28px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Untere Navigationsleiste auf dem Handy */
.tabbar { display: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: 240px minmax(0, 1fr); }
  .grid-3 > .right { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { display: none; }
}
@media (max-width: 900px) {
  .grid-2, .grid-side { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > .left { display: none; }
  .sticky { position: static; }
  .features { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .head-in { grid-template-columns: auto minmax(0, 1fr); padding: 10px 16px; gap: 12px; min-height: 0; }
  .brand-name { font-size: 22px; }
  .search input { height: 42px; padding-left: 16px; padding-right: 48px; }
  .search > button { width: 32px; height: 32px; }
  .head .actions { display: none; }
  /* Handy: Konto «Ich» oben rechts neben der Suche (Inhaber 2026-11-23), Rest der Leiste unten */
  .head-in:has(.me-wrap) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .head .actions:has(.me-wrap) { display: flex; }
  .head .actions:has(.me-wrap) > :not(.me-wrap) { display: none; }
  .head .me-wrap .act { padding: 0; min-width: 0; }
  .head .me-wrap .act > span:not(.av) { display: none; }
  .head .me-wrap .av { width: 34px; height: 34px; font-size: 13px; }
  .head .me-wrap .menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 150px); overflow-y: auto; }
  .subnav { display: none; }
  .wrap { padding: 16px; }
  .band { padding: 36px 16px; }
  .hero-in { padding: 40px 16px 36px; }
  .hero .lead { font-size: 16.5px; }
  .stats { gap: 22px; }
  .stats b { font-size: 22px; }
  .card.pad, .card-b { padding-left: 16px; padding-right: 16px; }
  .card-h { padding-left: 16px; padding-right: 16px; }
  .prof .cover { height: 120px; }
  .prof .head2 { padding: 0 16px 20px; }
  .prof .head2 .av.xl, .prof .head2 .logo.xl { width: 80px; height: 80px; font-size: 28px; border-radius: 16px; margin-top: -100px !important; margin-bottom: 40px !important; }
  .prof .head2 .av.xl img, .prof .head2 .logo.xl img { border-radius: 12px; }
  .prof h1 { font-size: 23px; }
  .prof .hl { font-size: 15.5px; }
  .prof .btns .btn { flex: 1; }
  .fgrid { grid-template-columns: 1fr; }
  .kv-list { grid-template-columns: 1fr; gap: 2px; }
  .kv-list dd { margin-bottom: 10px; }
  .contact-row { grid-template-columns: 1fr 1fr 40px; }
  .contact-row .v { grid-column: 1 / -1; grid-row: 1; }
  .row .side .btn:not(.icon) { padding: 0 12px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cta-band { padding: 26px; }
  .foot-in { grid-template-columns: 1fr; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; font-weight: 600; color: var(--text-2); position: relative; }
  .tabbar a.on { color: var(--accent-text); }
  /* «Menü» unten rechts: alle Bereiche als Liste über der Leiste (Inhaber 2026-11-23) */
  .tabbar .tab-more { position: static; }
  .tabbar .tab-more > button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font: inherit; font-size: 11px; font-weight: 600; color: var(--text-2); background: none; border: 0; cursor: pointer; }
  .tabbar .tab-more > button[aria-expanded="true"] { color: var(--accent-text); }
  .tabbar .tab-more .menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100vh - 150px); overflow-y: auto; }
  .tabbar .tab-more .menu a { flex-direction: row; align-items: center; gap: 12px; padding: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
  .tabbar em { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
  .tabbar .av { width: 22px; height: 22px; font-size: 10px; }
  .toast-stack { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .modal-back { align-items: flex-end; padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile .in { padding: 8px 10px 12px; }
  .row .side .btn .bl { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.btn.primary.danger-bg { background: var(--red); border-color: var(--red); }
.btn.primary.danger-bg:hover { filter: brightness(1.08); }
@media (min-width: 761px) and (max-width: 1180px) {
  .head-in { grid-template-columns: auto minmax(200px, 1fr) auto; }
  .act { min-width: 0; padding: 8px 10px; }
  .act > span:not(.av) { display: none; }
  .act.on::after { bottom: -15px; }
  .actions .btn.sm { padding: 0 12px; }
}
.grid-3 > *, .grid-2 > *, .grid-side > * { min-width: 0; }
.row .body { flex: 1 1 170px; }
.row { flex-wrap: wrap; row-gap: 10px; }
.row .side { margin-left: auto; }
.ftoggle { display: none; }
@media (max-width: 900px) {
  .filters .more-f { display: none; }
  .filters.open .more-f { display: block; }
  .ftoggle { display: inline-flex; margin-top: 12px; }
  .filters { padding: 16px; }
}
@media (prefers-color-scheme: dark) {
  .prof .cover:not([style*="url("]), .tile .top:not([style*="url("]), .pcard .cover:not([style*="url("]) { filter: brightness(.38) saturate(1.3); }
  .hero::before { opacity: .8; }
}
@media (max-width: 560px) {
  .row .av.lg, .row .logo.lg { width: 52px; height: 52px; font-size: 18px; }
  .row .logo.lg { border-radius: 13px; }
}
.tile .av, .tile .logo, .pcard .av, .prof .head2 > .av, .prof .head2 > .logo { position: relative; z-index: 1; }
.filters .more-f h3:first-child { margin-top: 18px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; border-radius: 25px; width: 100%;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15.5px;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.btn-google:hover { background: var(--surface-2); box-shadow: var(--shadow-sm); border-color: var(--text-3); }
.btn-google[aria-disabled="true"] { opacity: .5; pointer-events: none; }
#main:focus, #main:focus-visible { outline: none; }
.foot a.brand { display: flex; padding: 0; }
/* Timeline */
.tl-new { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.tl-new textarea { min-height: 64px; resize: vertical; }
.tl-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tl-bar .inp { width: auto; padding: 7px 10px; font-size: 14px; }
.tl-bar .btn { margin-left: auto; }
.tl-list { position: relative; }
.tl-item { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.tl-item + .tl-item { border-top: 1px solid var(--border); }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); }
.tl-notiz .tl-dot { background: var(--accent-soft); color: var(--accent); }
.tl-ereignis .tl-dot { background: var(--orange-soft); color: var(--orange); }
.tl-handelsregister .tl-dot { background: var(--green-soft); color: var(--green); }
.tl-body { flex: 1; min-width: 0; }
.tl-meta { font-size: 13px; color: var(--text-2); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tl-meta .tag { padding: 1px 8px; font-size: 11.5px; }
.tl-title { font-weight: 650; margin-top: 2px; }
.tl-text { font-size: 14.5px; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.tl-text.clamp { -webkit-line-clamp: 3; }
.dropzone { display: flex; gap: 16px; align-items: center; cursor: pointer; border-style: dashed; border-width: 2px; }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { color: var(--accent); }
/* Ablagefläche für Bilder (nur Betreiber) */
[data-img-drop] { transition: outline-color .12s, transform .12s; outline: 3px dashed transparent; outline-offset: 3px; }
[data-img-drop].drop-on { outline-color: var(--accent); transform: scale(1.04); }
.cover[data-img-drop].drop-on { transform: none; outline-offset: -6px; }
[data-img-drop].drop-busy { opacity: .5; }

/* Produkte */
.price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.side-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.prod-head { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.prod-img { width: 140px; height: 140px; border-radius: 18px; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.prod-img svg.i { width: 48px; height: 48px; }
.prod-title { font-size: 24px; line-height: 1.25; margin-top: 4px; }
@media (max-width: 600px) { .prod-head { grid-template-columns: 1fr; } .prod-img { width: 100%; height: 180px; } }

/* Aktuell */
.post-h { display: flex; gap: 12px; align-items: flex-start; }
.post-h .body { flex: 1; min-width: 0; }
.post-body { margin-top: 12px; white-space: pre-line; }
.post-new textarea { flex: 1; min-height: 72px; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font: inherit; resize: vertical; background: var(--surface); color: var(--text); }
.post-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.post-actions select.inp.sm { padding: 6px 10px; margin-left: 6px; width: auto; }
.post .lbl { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }

/* Lexikon */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.az a, .az span { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: 14px; }
.az a { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.az a:hover, .az a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.az span { color: var(--text-3); }
.lex-row { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; color: var(--text); }
.lex-row + .lex-row { border-top: 1px solid var(--border); }
.lex-row:hover b { color: var(--accent-text); }
.lex-row .muted { font-size: 14px; }
.lex-short { font-size: 18px; margin-top: 12px; color: var(--text-2); }
.lex-body p { margin: 0 0 12px; white-space: pre-line; }

/* Jobs */
.job-head { display: flex; gap: 16px; align-items: flex-start; }
.job-search { display: flex; }
.job-search input[name=ort] { max-width: 180px; border-left: 1px solid var(--border); }

/* Nachrichten */
.inbox { display: grid; grid-template-columns: 330px 1fr; min-height: 560px; overflow: hidden; padding: 0; }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 72vh; }
.thread { display: flex; gap: 10px; align-items: center; padding: 12px 16px; color: var(--text); border-top: 1px solid var(--border); }
.thread:hover, .thread.on { background: var(--surface-2); }
.thread .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread .body .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.thread em { font-style: normal; background: var(--accent); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.inbox-conv { display: flex; flex-direction: column; min-width: 0; }
.conv-h { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.conv-h .back { display: none; transform: rotate(180deg); }
.conv-h .name { font-weight: 600; color: var(--text); }
.conv-msgs { flex: 1; overflow-y: auto; max-height: 60vh; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { background: var(--surface-2); padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent); color: #fff; }
.conv-f { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: flex-end; }
.conv-f textarea { flex: 1; resize: vertical; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: var(--surface); color: var(--text); }
@media (max-width: 760px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-conv .inbox-list { display: none; }
  .inbox:not(.has-conv) .inbox-conv { display: none; }
  .inbox-list { border-right: 0; max-height: none; }
  .conv-h .back { display: inline-flex; }
  .job-search input[name=ort] { max-width: 110px; }
}

/* Mitteilungen */
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px; color: var(--text); border-radius: var(--radius-sm); }
.notif + .notif { border-top: 1px solid var(--border); }
.notif.unread { background: var(--accent-soft); }
.notif .body { display: flex; flex-direction: column; gap: 2px; }

/* Dokumentvorschau */
.doc-thumb { position: relative; width: 64px; height: 84px; flex: none; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-3); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; padding: 0; }
.doc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.doc-thumb:hover { border-color: var(--accent); }
.modal.xl { max-width: min(1100px, 96vw); }
.modal.xl .modal-b { padding: 0; }
.doc-frame { width: 100%; height: 78vh; border: 0; display: block; background: var(--surface-2); }
.doc-img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.tl-thumb { width: 120px; height: 160px; margin-top: 8px; }
.abk-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 9px 0; color: var(--text); align-items: baseline; }
.abk-row + .abk-row { border-top: 1px solid var(--border); }
.abk-row b { font-variant-numeric: tabular-nums; }
.abk-row:hover b { color: var(--accent-text); }
@media (max-width: 760px) { .abk-row { grid-template-columns: 90px 1fr; } }

/* Projekte */
.proj-thumb { width: 84px; height: 60px; flex: none; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-2); background: linear-gradient(135deg, var(--c1, var(--surface-2)), var(--c2, var(--surface-3))); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-card { overflow: hidden; }
.proj-cover { position: relative; height: 340px; background: center/cover no-repeat, linear-gradient(135deg, var(--c1, var(--surface-2)), var(--c2, var(--surface-3))); }
.proj-img-btn { position: absolute; right: 14px; bottom: 14px; background: var(--surface); }
.party-add { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.suggest-wrap { position: relative; }
.suggest-wrap .suggest { top: 100%; left: 0; right: 0; z-index: 30; }
.suggest .sg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 11px; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.suggest .sg:hover { background: var(--surface-2); }
.suggest .sg > span { display: flex; flex-direction: column; }
@media (max-width: 760px) { .proj-cover { height: 180px; } }
/* Lange Kategorie-Chips umbrechen statt über den Rand laufen */
.filters .chip { max-width: 100%; white-space: normal; text-align: left; }

/* Aktuell: Karten mit Abstand, Kopfzeile mit Art und Datum */
.post-new { margin-bottom: 16px; }
.feed-card { overflow: hidden; transition: box-shadow .15s ease; }
.feed-card:hover { box-shadow: var(--shadow-md); }
.feed-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.feed-h time { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.feed-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.feed-badge.green { color: var(--green); }
.feed-badge.blue { color: var(--accent-text); }
.feed-b { padding: 4px 20px 16px; }
.feed-b .row { padding-bottom: 6px; }
.feed-text { font-size: 14px; color: var(--text-2); margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); }

/* Wischen zum Archivieren */
.swipe { position: relative; margin-bottom: 16px; border-radius: var(--radius); transition: height .25s ease, margin .25s ease, opacity .25s ease; touch-action: pan-y; }
.swipe.gone { height: 0 !important; margin: 0; opacity: 0; overflow: hidden; }
.swipe-bg { position: absolute; inset: 0; border-radius: var(--radius); background: var(--green-soft); color: var(--green); display: flex; align-items: center; gap: 8px; padding-left: 22px; font-weight: 600; font-size: 14px; opacity: .55; }
.swipe.armed .swipe-bg { opacity: 1; background: var(--green); color: #fff; }
.swipe-fg { position: relative; will-change: transform; }
.swipe-fg > .card { margin: 0; }
.swipe-btn { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s ease; }
.swipe:hover .swipe-btn, .swipe-btn:focus-visible { opacity: 1; }
.swipe-hint { margin: -6px 0 10px; }
.toast-act { display: flex; align-items: center; gap: 12px; }
@media (hover: none) { .swipe-btn { display: none; } }
.toast-act .btn { color: #fff; }

/* Produkte: Kategoriebaum mit Hauptkategorien */
.cat-tree { display: flex; flex-direction: column; gap: 2px; }
.cat-tree a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14.5px; }
.cat-tree a:hover { background: var(--surface-2); }
.cat-tree a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.cat-subs { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 12px; padding-left: 8px; border-left: 2px solid var(--border); }
.cat-subs a { font-size: 13.5px; padding: 6px 8px; }
.cat-subs .cat-group { font-weight: 600; font-size: 14px; }

/* Bewertungen */
.stars { color: var(--border-strong); letter-spacing: 1px; font-size: 18px; }
.stars.sm { font-size: 14px; }
.stars .on { color: #f5a623; }
.review-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.review-sum { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.review { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.review p { margin: 4px 0 0; white-space: pre-line; }
.review-form { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.review-form textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: var(--surface); color: var(--text); resize: vertical; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-pick span { font-size: 28px; color: var(--border-strong); cursor: pointer; line-height: 1; }
.star-pick label:hover span, .star-pick label:hover ~ label span, .star-pick input:checked + span, .star-pick label:has(input:checked) ~ label span { color: #f5a623; }
.star-pick input:focus-visible + span { outline: 2px solid var(--accent); border-radius: 4px; }

/* Standorte: Karten */
.grid-geo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-geo { grid-template-columns: 1fr; } }
.geo-wrap { width: 100%; }
.geo { width: 100%; height: auto; display: block; }
.geo-a { fill: var(--surface-3); stroke: var(--surface); stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.geo-a.has { fill: color-mix(in srgb, var(--accent) calc(var(--o) * 100%), var(--surface-3)); cursor: pointer; }
.geo a:hover .geo-a, .geo a:focus-visible .geo-a { fill: var(--accent-hover, var(--accent)); }
.geo-a.on { fill: var(--accent); }
.geo-lake { fill: #bcd9f2; stroke: none; pointer-events: none; }
.geo-row { display: flex; justify-content: space-between; padding: 7px 4px; border-top: 1px solid var(--border); color: var(--text); font-size: 14.5px; }
.geo-row:hover { color: var(--accent-text); }
.gem-head { display: flex; gap: 18px; align-items: center; }
.gem-mini { width: 140px; flex: none; }
@media (prefers-color-scheme: dark) { .geo-lake { fill: #2b4a66; } }
/* Archivieren-Knopf nicht über Zeitangabe legen */
.swipe .feed-h { padding-right: 52px; }
.swipe .post-h { padding-right: 36px; }
.swipe-btn { top: 6px; right: 10px; }

/* Karten 2: Farbstufen, Nachbarflächen, Seen, Beschriftung, Legende */
.geo { overflow: hidden; border-radius: 12px; background: #f4f8fb; }
.geo-ctx path { fill: #e9edf1; stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; }
.geo-a { stroke: #fff; stroke-width: .9; vector-effect: non-scaling-stroke; transition: fill .15s ease, opacity .15s ease; }
.geo-a.s0 { fill: #e3e8ee; }
.geo-a.s1 { fill: #c6dcf5; }
.geo-a.s2 { fill: #93bdee; }
.geo-a.s3 { fill: #5c9ce4; }
.geo-a.s4 { fill: #2f7bd8; }
.geo-a.s5 { fill: #0b5cbf; }
.geo a .geo-a { cursor: pointer; }
.geo a:hover .geo-a, .geo a:focus-visible .geo-a { fill: #f2a516; }
.geo-a.on { fill: var(--accent); }
.geo-lake { fill: #cfe6f7; stroke: #a9cdea; stroke-width: .6; vector-effect: non-scaling-stroke; pointer-events: none; }
.geo-lbl { pointer-events: none; }
.geo-lbl text { text-anchor: middle; font-weight: 600; fill: #1d2733; paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: .28em; stroke-linejoin: round; }
.geo-lbl .c { font-weight: 700; fill: #0b4ea2; font-size: .9em; }
.geo-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.geo-legend span:first-child { margin-right: 6px; }
.geo-legend i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.geo-legend i.s1 { background: #c6dcf5; } .geo-legend i.s2 { background: #93bdee; } .geo-legend i.s3 { background: #5c9ce4; }
.geo-legend i.s4 { background: #2f7bd8; } .geo-legend i.s5 { background: #0b5cbf; }
.geo-legend .muted { margin-left: 6px; }
@media (prefers-color-scheme: dark) {
  .geo { background: #16202b; }
  .geo-ctx path { fill: #222c37; stroke: #16202b; }
  .geo-a { stroke: #16202b; } .geo-a.s0 { fill: #2a3540; }
  .geo-lake { fill: #1d3a55; stroke: #2a4c6b; }
  .geo-lbl text { fill: #eef3f8; stroke: rgba(10, 16, 22, .85); } .geo-lbl .c { fill: #9cc6ff; }
}
/* Hohe Karten (z. B. Europa mit Finnland) nicht über den Bildschirm hinaus */
.geo { max-height: 72vh; width: 100%; }
.dropzone.drop-over { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
/* Abkürzungen direkt in der Liste bearbeiten (Administrator) */
.abk-edit { grid-template-columns: 90px 1fr auto; align-items: center; padding: 6px 0; }
.abk-edit input { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; font: inherit; color: var(--text); width: 100%; }
.abk-edit input:hover { border-color: var(--border); }
.abk-edit input:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.abk-edit .abk-term { font-weight: 700; text-transform: uppercase; }
.abk-act { display: flex; gap: 2px; opacity: .35; transition: opacity .15s; }
.abk-edit:hover .abk-act, .abk-edit:focus-within .abk-act { opacity: 1; }
.abk-mid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.abk-edit.is-fixed .abk-lock { color: var(--accent); }
.abk-edit.is-fixed .abk-act { opacity: 1; }
.abk-edit.is-fixed input { cursor: default; }
.abk-edit.is-fixed input:hover { border-color: transparent; }
.abk-edit.is-dup .abk-term { color: #b85c00; }
.dropzone.dz-small { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-2); font-size: 14px; margin-top: 8px; }
.dropzone.dz-small:hover { border-color: var(--accent); color: var(--accent-text); }

/* Personengruppen */
.grp-list { display: flex; flex-direction: column; gap: 2px; }
.grp { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14.5px; border: 1.5px dashed transparent; }
.grp:hover { background: var(--surface-2); }
.grp.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.grp.drop-over { border-color: var(--accent); background: var(--accent-soft); }
.grp-new { display: flex; gap: 6px; margin-top: 8px; }
.grp-new .inp { flex: 1; min-width: 0; }
.drag-person { display: flex; align-items: center; gap: 6px; }
.drag-person > .row { flex: 1; min-width: 0; }
.drag-person[draggable="true"] { cursor: grab; }
.drag-person.dragging { opacity: .45; }
.drag-person + .drag-person { border-top: 1px solid var(--border); }
.drag-person > .row + .row { border-top: 0; }
/* Personenraster: Trennlinie unter jedem Eintrag statt darüber, damit die erste Zeile in jeder Spaltenzahl sauber bleibt */
.people-grid .row, .people-grid .row:nth-child(2) { border-top: none; border-bottom: 1px solid var(--border); }
@media (max-width: 560px) { .people-grid .row:nth-child(2) { border-top: none; } }
.li-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.li-row:first-of-type { border-top: 0; }
.li-seg { display: inline-flex; gap: 6px; }
.li-seg .btn.dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.gm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 340px; }
@media (max-width: 640px) { .gm-side { align-items: flex-start; text-align: left; } }
/* Galerie und Beitragsbilder */
.gal { columns: 4 220px; column-gap: 14px; }
.gal-it { break-inside: avoid; margin: 0 0 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.gal-img, .pg-img { display: block; width: 100%; padding: 0; border: 0; background: var(--bg); cursor: zoom-in; position: relative; }
.gal-img img { display: block; width: 100%; height: auto; }
.gal-it figcaption { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; font-size: 14px; align-items: flex-start; }
.clamp1 { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-gallery { display: grid; gap: 4px; margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.post-gallery.n2 { grid-template-columns: 1fr 1fr; }
.post-gallery.n3, .post-gallery.n4 { grid-template-columns: 1fr 1fr; }
.post-gallery.n3 .pg-img:first-child { grid-column: 1 / -1; }
.pg-img img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.post-gallery.n2 .pg-img img, .post-gallery.n3 .pg-img img, .post-gallery.n4 .pg-img img { aspect-ratio: 4 / 3; }
.pg-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; font-weight: 600; }
.post-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.post-imgs:not(:empty) { margin: 10px 0 0 44px; }
.pi { position: relative; width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.pi img { width: 100%; height: 100%; object-fit: cover; }
.pi.busy img { opacity: .45; }
.pi-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.post-new.drag { outline: 2px dashed var(--accent); outline-offset: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lb-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 36px; cursor: pointer; border-radius: 10px; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-cap { color: #fff; margin-top: 12px; font-size: 15px; text-align: center; max-width: 720px; }
.lb-cap .link { color: #9cc9ff; }
.lb-n { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 6px; }
@media (max-width: 640px) { .gal { columns: 2 140px; column-gap: 10px; } .post-imgs:not(:empty) { margin-left: 0; } }
/* Menü mit drei Strichen: alle Bereiche als Kacheln */
.menu.menu-all { width: 280px; max-height: calc(100vh - 90px); overflow-y: auto; }
@media (max-width: 640px) { .menu.menu-all { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
.grp-head { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.master-new summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.master-new summary::-webkit-details-marker { display: none; }
.master-new .chk { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; font-size: 14.5px; }
/* Fahrzeug erfassen: Markenwahl */
.make-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.make-tile { display: grid; place-items: center; min-height: 92px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 19px; font-weight: 600; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.make-tile:hover, .make-tile:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-sm); color: var(--accent-text); }
.make-chosen { padding: 10px 0; display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.picker { position: relative; }
.pick-sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 30; max-height: 280px; overflow: auto; }
.form-h { font-size: 18px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
/* Fahrzeugbild */
.logo.veh { background: var(--surface-3, var(--bg)); overflow: hidden; }
.logo.veh img { width: 100%; height: 100%; object-fit: cover; }
.veh-img { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 9; max-height: 380px; margin: -4px 0 16px; border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; border: 1px dashed var(--border); }
.veh-img img { width: 100%; height: 100%; object-fit: contain; }
.veh-img svg { width: 28px; height: 28px; }
.lex-img { display: block; width: 100%; margin: 14px 0 6px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: zoom-in; overflow: hidden; }
.lex-img img { display: block; width: 100%; height: auto; }
.lex-img.empty { cursor: default; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 22px; color: var(--text-2); border-style: dashed; background: var(--bg); font-size: 14px; }
.name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.name-line .tag { line-height: 1.3; }
/* Varianten eines Mantelprodukts als Kacheln */
.var-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 16px 22px 6px; }
.var-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: box-shadow .15s, border-color .15s; }
.var-tile:hover { border-color: var(--accent, #0071e3); box-shadow: var(--shadow-sm); }
.var-img { display: flex; align-items: center; justify-content: center; height: 130px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-2, #f5f5f7); overflow: hidden; color: var(--text-3); }
.var-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.var-name { font-weight: 600; line-height: 1.3; color: var(--text); }
.var-name:hover { color: var(--accent, #0071e3); }
.var-code { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.var-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.var-seller { font-size: 12.5px; color: var(--text-3, var(--text-2)); }
.var-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; background: var(--surface); border-radius: 999px; }
.var-tile:hover .var-tools, .var-tools:focus-within { opacity: 1; }
@media (hover: none) { .var-tools { opacity: 1; } }
@media (max-width: 560px) { .var-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 16px 4px; gap: 10px; } .var-img { height: 100px; } }
.tag.chw { background: #fde8e8; color: #c8102e; }
@media (prefers-color-scheme: dark) { .tag.chw { background: rgba(200,16,46,.2); color: #ff8a8a; } }
/* WIR Markt: Inserate als Kacheln */
.wad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.wad { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; transition: box-shadow .15s, border-color .15s; }
.wad:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.wad-img { height: 150px; display: flex; align-items: center; justify-content: center; background: var(--surface-2, #f5f5f7); color: var(--text-3, var(--text-2)); }
.wad-img img { width: 100%; height: 100%; object-fit: cover; }
.wad-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.wad-t { font-weight: 600; line-height: 1.3; }
.wad-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wad-up img { max-width: 220px; max-height: 160px; border-radius: 10px; margin-bottom: 8px; display: block; }
/* Preise am Produkt */
.price-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.price-tbl th, .price-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: right; }
.price-tbl th:first-child { text-align: left; font-weight: 500; }
.price-tbl thead th { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.price-tbl tr.ek td, .price-tbl tr.ek th { color: var(--text-2); }
.price-tbl tr.wir th, .price-tbl tr.wir td { font-weight: 700; color: #c8102e; }
@media (prefers-color-scheme: dark) { .price-tbl tr.wir th, .price-tbl tr.wir td { color: #ff8a8a; } }
.price-edit { margin: 12px 0 0; padding: 0 22px 18px; }
.price-edit summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.card .price-tbl { margin: 6px 22px 0; width: calc(100% - 44px); }
.card .price-tbl + p { padding: 0 22px 14px; }
.doc-chip a { color: inherit; text-decoration: none; }
.doc-chip a:hover { color: var(--accent-text); text-decoration: underline; }
/* Dokument-Ordner */
.doc-folders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface, #fff); color: var(--text); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.fchip:hover { border-color: var(--accent-text); }
.fchip.on { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.fchip .n { font-size: 12px; opacity: .7; }
.fchip.add { border-style: dashed; color: var(--accent-text); }
.fchip.drop-over { background: #e6f0ff; border-color: var(--accent-text); border-style: solid; transform: scale(1.06); }
.fchip.on.drop-over { color: var(--accent-text); }
.fchip-tools { display: inline-flex; gap: 4px; margin-left: auto; }
[data-doc-drag] { cursor: grab; }
[data-doc-drag].dragging { opacity: .45; }

/* ---------- Standorte-Explorer: ziehbare Karte (2026-11-21) ---------- */
.orte-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.orte-map { position: relative; padding: 0; overflow: hidden; }
.geo.orte-svg { height: min(74vh, 720px); max-height: none; border-radius: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.geo.orte-svg.drag { cursor: grabbing; }
.orte-svg .geo-a { cursor: pointer; transition: fill .15s ease, opacity .2s ease; }
.orte-svg .geo-a.dim { opacity: .28; }
.orte-svg .geo-a.hl { fill: #f2a516; }
.orte-svg .geo-a.gem { stroke-width: .5; }
.orte-ctl { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.orte-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--text); cursor: pointer; }
.orte-btn + .orte-btn { border-top: 1px solid var(--border); }
.orte-btn:hover { background: var(--surface-2); color: var(--accent-text); }
.orte-btn svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.orte-hint { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); pointer-events: none; max-width: calc(100% - 90px); }
.orte-legend { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.orte-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); display: flex; flex-direction: column; gap: 1px; padding: 8px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); font-size: 13px; white-space: nowrap; }
.orte-tip b { font-size: 14px; }
.orte-tip em { font-style: normal; color: var(--accent-text); font-size: 12px; margin-top: 2px; }
.orte-side { position: sticky; top: calc(var(--head-h, 70px) + 64px); display: flex; flex-direction: column; max-height: calc(100vh - var(--head-h, 70px) - 84px); }
.orte-path h2 { font-size: 20px; margin: 0; }
.orte-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; margin-bottom: 6px; color: var(--accent-text); font: inherit; font-size: 13.5px; cursor: pointer; }
.orte-back svg { transform: rotate(180deg); }
.orte-sum { margin: 4px 0 12px; color: var(--text-2); }
.orte-sum b { color: var(--text); font-size: 17px; }
.orte-filter { margin-bottom: 6px; }
.orte-list { overflow-y: auto; flex: 1; min-height: 120px; margin: 0 -6px; padding: 0 6px; }
.orte-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.orte-row:hover, .orte-row.hl { background: var(--surface-2); }
.orte-row .rk { color: var(--text-3); font-size: 12px; text-align: right; }
.orte-row .nm { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.orte-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orte-row .nm i { display: block; height: 4px; min-width: 3px; border-radius: 2px; background: #5c9ce4; }
.orte-row b { font-variant-numeric: tabular-nums; font-size: 14px; }
.orte-ausland { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.orte-ausland summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; cursor: pointer; font-weight: 600; list-style: none; }
.orte-ausland summary::-webkit-details-marker { display: none; }
.orte-ausland summary .muted { font-weight: 400; font-size: 13px; }
.orte-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.orte-chips .chip b { margin-left: 4px; font-weight: 600; color: var(--text-2); }
@media (max-width: 900px) {
  .orte-grid { grid-template-columns: 1fr; }
  .geo.orte-svg { height: 62vh; }
  .orte-side { position: static; max-height: none; }
  .orte-list { max-height: 50vh; }
}
@media (max-width: 560px) { .orte-hint span { display: none; } .orte-legend .muted { display: none; } }

/* Kurzname: Eingabe in Grossbuchstaben, Platzhalter normal (2026-11-21) */
.inp-upper { text-transform: uppercase; }
.inp-upper::placeholder { text-transform: none; }
/* Eingabe mit festem Vorsatz, z. B. «kintecpro.ch/» vor der Swipa-Bezeichnung */
.inp-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, var(--surface)); overflow: hidden; }
.inp-prefix span { padding: 0 2px 0 14px; color: var(--text-3); white-space: nowrap; font-size: 15px; }
.inp-prefix input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0 !important; min-width: 0; flex: 1; }
.inp-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }

/* Map: Umschalter Schweiz | Welt */
.orte-mode { position: absolute; left: 14px; top: 14px; display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); z-index: 2; }
.orte-mode button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.orte-mode button:hover { color: var(--text); background: var(--surface-2); }
.orte-mode button.on { background: var(--accent); color: #fff; }
.orte-mode button svg { stroke: currentColor; fill: none; stroke-width: 2; }
.orte-hint { top: auto; bottom: 14px; left: auto; right: 14px; }
@media (max-width: 760px) { .orte-hint { display: none; } }
.orte-hint { top: 18px; bottom: auto; left: 210px; right: 70px; justify-content: center; background: none; box-shadow: none; padding: 6px 0; text-align: center; }
@media (max-width: 1100px) { .orte-hint { display: none; } }

/* Dienstleistungen (2026-11-21) */
.svc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.svc-card h3 { font-size: 15px; margin: 0 0 6px; }
.svc-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px; border-top: 1px solid var(--border); color: var(--text); font-size: 14.5px; }
.svc-row:first-child { border-top: 0; }
.svc-row:hover { color: var(--accent-text); }
.svc-pick { display: grid; gap: 12px; margin-bottom: 8px; }
.svc-grp-h { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.chip.svc { cursor: pointer; user-select: none; }
.chip.svc input { position: absolute; opacity: 0; pointer-events: none; }
.chip.svc:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.svc:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Unternehmen erfassen: Zefix-Suche (2026-11-21) */
.zefix-list { display: grid; margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.zefix-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.zefix-row + .zefix-row { border-top: 1px solid var(--border); }
.zefix-row.off { opacity: .6; }
input[readonly] { background: var(--surface-2); color: var(--text-2); cursor: default; }

/* Telefonbuch (2026-11-21) */
.tb-google { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-google > div:first-of-type, .tb-google > div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; }
.tb-google.on > svg { color: #1e8e3e; width: 22px; height: 22px; }
.tb-google .g-logo svg { width: 26px; height: 26px; }
.tb-az { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0 14px; }
.tb-az a { min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tb-az a:hover { background: var(--surface-2); color: var(--text); }
.tb-az a.on { background: var(--accent); color: #fff; }
.tb-list { padding: 4px 0; }
.tb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; }
.post-ctx { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.post-stats { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.post-stats span { display: inline-flex; align-items: center; gap: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; font-size: 13px; }
.link-btn:hover { text-decoration: underline; color: var(--accent-text); }
.post-bar { display: flex; gap: 4px; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 6px; }
.post-bar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; border-radius: 10px; padding: 9px 6px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.post-bar button:hover { background: var(--surface-2); }
.post-bar button.on { color: var(--accent); }
.post-bar button.on .i { fill: currentColor; }
.post-comments { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.pc { display: flex; gap: 8px; }
.pc-b { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.pc-h { display: flex; gap: 8px; align-items: center; } .pc-h .name { font-weight: 600; font-size: 13px; } .pc-h .btn { margin-left: auto; }
.pc-new { display: flex; gap: 8px; align-items: flex-start; } .pc-new textarea { flex: 1; min-height: 40px; resize: vertical; }
@media (max-width: 600px) { .post-bar button span { display: none; } }
.inq + .inq { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.inq-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.claim-card { background: var(--accent-soft); border: 1px dashed var(--accent); }
.tb-row + .tb-row { border-top: 1px solid var(--border); }
.tb-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.tb-del { color: var(--text-3); }
.tb-del:hover { color: var(--danger, #c62828); }
.tb-name { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tb-name a { color: var(--text); }
.tb-ini { display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: 13px; }
.tb-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tb-tel { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-text); font-weight: 600; }
.tb-tel em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-3); }
.tb-mail { color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.tb-mail:hover { text-decoration: underline; }
@media (max-width: 600px) { .tb-row { grid-template-columns: auto minmax(0, 1fr); } .tb-nums { grid-column: 2; align-items: flex-start; } }

/* Organisationshandbuch (OHB) */
.ohb-nr { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 10px; }
.ohb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.ohb-row + .ohb-row { border-top: 1px solid var(--border); }
.ohb-row a { color: var(--text); }
.ohb-row a:hover { color: var(--accent-text); }
.ohb-tools { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ohb-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.ohb-side { position: sticky; top: calc(var(--head-h) + 16px); max-height: calc(100vh - var(--head-h) - 32px); overflow-y: auto; }
.ohb-toc-ch + .ohb-toc-ch { margin-top: 14px; }
.ohb-toc-ch b { display: block; font-size: 14px; margin-bottom: 4px; }
.ohb-toc a { display: block; padding: 5px 8px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; }
.ohb-toc a:hover { background: var(--surface-2); color: var(--text); }
.ohb-toc a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.ohb-toc a .ohb-nr { margin-right: 6px; }
.ohb-pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .ohb-grid { grid-template-columns: 1fr; }
  .ohb-side { position: static; max-height: none; order: 2; }
}
.ohb-body h2 { font-size: 21px; margin: 22px 0 8px; }
.ohb-body h3 { font-size: 17px; margin: 18px 0 6px; }
.ohb-body ul, .ohb-body ol { padding-left: 22px; margin: 0 0 12px; color: var(--text-2); line-height: 1.65; }
.ohb-body li + li { margin-top: 3px; }
.ohb-ta { font-family: inherit; line-height: 1.55; min-height: 360px; resize: vertical; }

/* Beitrag bearbeiten (im Beitrag selbst) */
.post-edit { margin-top: 12px; }
.post-edit textarea { width: 100%; font: inherit; line-height: 1.55; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); resize: vertical; }
.post-edit .post-imgs:not(:empty) { margin-left: 0; }
.post-edit .post-actions { margin-top: 10px; }

/* Zuordnung von Beiträgen (Unternehmen, Personen, Fahrzeuge, eingebaute Produkte) */
.post-linkfield { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0 44px; color: var(--text-2); }
.post-edit .post-linkfield { margin-left: 0; }
.post-linkfield .doc-pick { flex: 1; min-width: 220px; }
.post-linkfield .inline-input { width: 100%; }
.post-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.post-links .doc-chip, .post-linkfield .doc-chip { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 640px) { .post-linkfield { margin-left: 0; } }

/* Projektseite aufgefrischt: Galerie, Fahrzeug und eingebaute Produkte (Inhaber 2026-11-23) */
.proj-card .pad { padding: 22px 24px 24px; }
.proj-card .prod-title { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.proj-gal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.proj-gal-h h2 { font-size: 18px; }
.proj-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.proj-gal .pg-cell { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.proj-gal .pg-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.proj-gal .pg-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.proj-gal .pg-cell:hover .pg-img img { transform: scale(1.03); }
.proj-gal .pg-tools { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.proj-gal .pg-cell:hover .pg-tools, .proj-gal .pg-tools:focus-within { opacity: 1; }
.proj-gal .pg-tools .btn { padding: 4px 7px; background: var(--surface); }
.proj-gal-card.drop-over { outline: 2px dashed var(--accent); outline-offset: -6px; }
@media (hover: none) { .proj-gal .pg-tools { opacity: 1; } }
@media (max-width: 760px) { .proj-cover { height: 220px; } .proj-gal { grid-template-columns: repeat(2, 1fr); } }

/* Dokument-Details in der Liste */
.doc-details { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; }
.doc-details .chip.sm { padding: 2px 8px; font-size: 12.5px; }
.doc-details .doc-note { flex-basis: 100%; white-space: pre-line; }

/* Swips */
.swips-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.swips-hero p { max-width: 520px; margin: 0; }
.swips-big { font-size: 44px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.swips-big span { font-size: 18px; font-weight: 600; color: var(--text-2); }
.swips-list { display: flex; flex-direction: column; }
.swips-row { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.swips-row:last-child { border-bottom: 0; }
.swips-amt { min-width: 64px; font-weight: 700; color: var(--green, #1a7f37); text-align: right; }
.swips-amt.neg { color: var(--red, #c0392b); }
.swips-why { display: flex; flex-direction: column; min-width: 0; }
.swips-todo > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.swips-todo > div span { flex: 1; }
.swips-todo > div.done { color: var(--text-3); }
.swips-todo > div.done span { text-decoration: line-through; }
.swips-todo > div.done svg { color: var(--green, #1a7f37); }

/* Swips-Verwaltung */
.swips-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.swips-kpis .swips-big { font-size: 30px; }
.swips-acc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.swips-acc:last-child { border-bottom: 0; }
.swips-acc-n { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); }
.swips-acc-b { font-weight: 750; font-size: 18px; text-align: right; display: flex; flex-direction: column; }
.swips-acc-b small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.swips-rw { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.swips-rw .check { flex: 1; }
.swips-rw .inp { width: 90px; }
@media (max-width: 760px) { .swips-kpis { grid-template-columns: 1fr; } }

/* Strasse und Hausnummer getrennt */
.fgrid.street-nr { grid-template-columns: minmax(0, 1fr) 110px; }

/* Bilder in Timeline-Notizen */
.tl-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tl-img { width: 160px; height: 120px; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2, #f4f4f5); cursor: zoom-in; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================================================================ Swipa Business (24.11.2026) */
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inp.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; width: auto; }
.tag.red { background: var(--red-soft); color: var(--red); }
.bz-h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.bz-gap { margin-bottom: 16px; }
.bz-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex: none; }
.bz-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c1, var(--surface-2)), var(--c2, var(--surface-3))); color: var(--text-3); border: 1px solid var(--border); }
.bz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-seller { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); min-width: 0; }
.bz-seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.bz-seller:hover span { color: var(--accent-text); }
.stars { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #e8a010; white-space: nowrap; }
.stars svg { fill: #f5b301; stroke: #f5b301; }
.stars b { color: var(--text); }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-3); background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ph svg { width: 40px; height: 40px; opacity: .6; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 12px; padding: 3px; gap: 2px; margin-bottom: 14px; }
.seg a { padding: 7px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.bz-chk, .field label.bz-chk { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.bz-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }

/* Einladung */
.invite-hero { background: radial-gradient(1200px 500px at 20% -10%, var(--accent-soft), transparent), radial-gradient(900px 500px at 100% 0%, rgba(26, 159, 75, .09), transparent); min-height: calc(100vh - var(--head-h)); padding: 30px 0 60px; }
.invite-card { max-width: 640px; margin: 0 auto; padding: 34px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-md); }
.invite-top { display: flex; gap: 18px; align-items: center; }
.invite-top .av.xl { width: 96px; height: 96px; font-size: 34px; }
.invite-top h1 { font-size: 26px; font-weight: 500; margin-top: 4px; }
.invite-top h1 b { font-weight: 750; }
.invite-lead { font-size: 16.5px; color: var(--text-2); }
.invite-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.invite-list li { display: flex; gap: 12px; align-items: flex-start; }
.invite-list li > svg { color: var(--accent); margin-top: 2px; }
.inv-link { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin: 8px 0 10px; word-break: break-all; }
.bz-kpi-card .kpi-n { font-size: 40px; font-weight: 750; letter-spacing: -.03em; line-height: 1; margin-bottom: 4px; }

/* Marktplatz */
.mk-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--border); }
.mk-hero.mk-profi { background: radial-gradient(900px 340px at 85% -40%, rgba(0, 113, 227, .16), transparent), linear-gradient(180deg, var(--surface), var(--bg)); }
.mk-hero.mk-wir { background: radial-gradient(900px 340px at 85% -40%, rgba(26, 159, 75, .18), transparent), linear-gradient(180deg, var(--surface), var(--bg)); }
.mk-hero .wrap { padding-bottom: 22px; }
.mk-switch { display: inline-flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 14px; margin-bottom: 18px; }
.mk-switch a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 11px; font-weight: 650; font-size: 14px; color: var(--text-2); }
.mk-switch a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mk-hero-in { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.mk-hero-in h1 { font-size: 36px; font-weight: 750; letter-spacing: -.03em; }
.mk-hero-in p { color: var(--text-2); max-width: 620px; margin-top: 6px; font-size: 16px; }
.mk-stats { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.mk-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mk-stats svg { color: var(--text-3); }
.mk-stats b { color: var(--text); font-size: 16px; }
.mk-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-search { display: flex; height: 56px; border: 1.5px solid var(--border-strong); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s; }
.mk-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mk-search input, .mk-search input:focus { height: 100%; border: 0; border-radius: 28px 0 0 28px; background: transparent; box-shadow: none; padding: 0 16px 0 22px; font-size: 16px; }
.mk-search .mk-ort, .mk-search .mk-ort:focus { flex: 0 0 210px; border-left: 1px solid var(--border); border-radius: 0 28px 28px 0; padding-right: 60px; }
.mk-search > button { top: 8px; right: 8px; }
.mk-bar { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.mk-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mk-bar .chips::-webkit-scrollbar { display: none; }
.mk-bar .chip { white-space: nowrap; }
.mk-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.lcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lcard-img { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; display: block; overflow: hidden; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lcard:hover .lcard-img img { transform: scale(1.04); }
.lc-badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--text); display: inline-flex; gap: 4px; align-items: center; backdrop-filter: blur(8px); }
.lc-badge.wir { background: #1a9f4b; color: #fff; }
.lc-badge.net { left: auto; right: 52px; top: 10px; }
.lc-badge.wir + .lc-badge.net { right: 52px; }
.lc-watch { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--text-2); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.lc-watch:hover { color: var(--red); }
.lc-watch.on { color: var(--red); }
.lc-watch.on svg { fill: var(--red); }
.lcard-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lc-name { font-weight: 650; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-name:hover { color: var(--accent-text); }
.lc-meta { font-size: 12.5px; color: var(--text-3); }
.lc-price { margin-top: 4px; }
.lc-price b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.lc-wir { font-size: 12.5px; color: var(--green); font-weight: 650; }
.lc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.wir-split { margin-top: 12px; padding: 10px 12px; background: var(--green-soft); border-radius: 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.wir-split .bar { height: 6px; border-radius: 3px; background: rgba(0, 113, 227, .25); overflow: hidden; }
.wir-split .bar i { display: block; height: 100%; background: #1a9f4b; }

/* Inserat */
.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.ins-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-top: 22px; }
.ins-gallery { overflow: hidden; }
.ins-main { aspect-ratio: 4 / 3; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.ins-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ins-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.ins-thumbs button { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); flex: none; }
.ins-thumbs button.on { border-color: var(--accent); }
.ins-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ins-side { position: sticky; top: calc(var(--head-h) + 50px); }
.ins-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ins-title { font-size: 24px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.ins-price { margin-top: 14px; }
.ins-price b { font-size: 30px; font-weight: 780; letter-spacing: -.02em; }
.ins-facts { margin: 16px 0; display: grid; gap: 8px; }
.ins-facts div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.ins-facts dt { color: var(--text-2); }
.ins-facts dd { margin: 0; font-weight: 600; text-align: right; }
.ins-buy { display: flex; flex-direction: column; gap: 8px; }
.ins-buy .btn-row { flex-wrap: nowrap; }
.ins-seller { display: flex; gap: 14px; align-items: center; }
.ord-sum { display: flex; align-items: baseline; gap: 8px; font-size: 15px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.ord-sum b { font-size: 20px; }

/* Business-Cockpit */
.bz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bz-head h1 { font-size: 30px; font-weight: 750; letter-spacing: -.025em; }
.bz-tabcard { margin-bottom: 18px; }
.bz-tabs { border-bottom: 0; }
.bz-n { font-style: normal; background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); color: var(--text); transition: box-shadow .2s; }
a.kpi:hover { box-shadow: var(--shadow-md); }
.kpi-l { font-size: 13px; color: var(--text-2); font-weight: 600; }
.kpi-v { font-size: 24px; font-weight: 760; letter-spacing: -.02em; }
.kpi-v.neg { color: var(--red); }
.kpi-v.pos { color: var(--green); }
.kpi-s { font-size: 12.5px; color: var(--text-3); }
.kpi-s.red { color: var(--red); font-weight: 600; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--text); font-weight: 550; }
.todo + .todo { border-top: 1px solid var(--border); }
.todo span:nth-child(2) { flex: 1; }
.todo:hover { color: var(--accent-text); }
.todo-n { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 18px; }
.bar-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-c i { display: block; width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); border-radius: 8px 8px 3px 3px; min-height: 2px; }
.bar-v { font-size: 11px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.bar-l { font-size: 12px; color: var(--text-3); }
.rep { display: flex; gap: 12px; align-items: center; color: #e8a010; font-size: 18px; }
.rep-n { font-size: 40px; font-weight: 760; color: var(--text); letter-spacing: -.03em; }
.mk-pills { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.mk-pill svg { width: 14px; height: 14px; }
.mk-pill.profi.aktiv { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.mk-pill.wir.aktiv { background: var(--green-soft); color: var(--green); border-color: transparent; }
.mk-pill.add { border-style: dashed; cursor: pointer; }
.mk-pill.add:hover { border-color: var(--accent); color: var(--accent-text); }
.img-pick { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.img-pick.drag { border-color: var(--accent); background: var(--accent-soft); }
.img-it, .img-add { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; position: relative; flex: none; }
.img-it { background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.img-it:first-child::after { content: 'Hauptbild'; position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; background: rgba(0, 0, 0, .6); color: #fff; padding: 1px 6px; border-radius: 6px; }
.img-it img { width: 100%; height: 100%; object-fit: cover; }
.img-it button { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: flex; align-items: center; justify-content: center; }
.img-add { border: 1.5px dashed var(--border-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--text-2); cursor: pointer; background: var(--surface); }
.img-add:hover { border-color: var(--accent); color: var(--accent-text); }
.offer-opt { padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.offer-opt + .offer-opt { border-top: 1px solid var(--border); }
.oo-h { display: flex; align-items: center; gap: 8px; }
.offer-opt.profi .oo-h svg { color: var(--accent); }
.offer-opt.wir .oo-h svg { color: var(--green); }
.offer-opt .btn { align-self: flex-start; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.rec-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.rec, .field label.rec { display: flex; gap: 10px; align-items: center; padding: 8px 12px; margin: 0; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.rec[hidden] { display: none !important; }
.rec + .rec { border-top: 1px solid var(--border); }
.rec:hover { background: var(--surface-2); }
.rec input { width: 18px; height: 18px; accent-color: var(--accent); }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; font-size: 38px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { color: var(--surface-3); cursor: pointer; transition: color .1s, transform .1s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5b301; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.offer-card { overflow: hidden; display: flex; flex-direction: column; }
.oc-img { aspect-ratio: 16 / 9; background: var(--surface-2); display: block; }
.oc-img img { width: 100%; height: 100%; object-fit: cover; }
.oc-b { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.oc-from { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc-msg { font-size: 14px; color: var(--text-2); font-style: italic; }
.oc-gal { display: flex; gap: 8px; margin: 14px 0; overflow-x: auto; }
.oc-gal img { height: 160px; border-radius: 12px; }
.av-stack { display: flex; margin-top: 6px; }
.av-stack a { margin-right: -8px; border-radius: 50%; border: 2px solid var(--surface); }
.av-stack a.angenommen { border-color: var(--green); }
.av-stack a.abgelehnt { opacity: .45; }

/* Rechnungen */
.bz-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bz-bar .seg { margin: 0; }
.bz-bar > .muted { margin-left: auto; }
.inv-row { color: var(--text); }
.inv-row:hover .name { color: var(--accent-text); }
.inv-dir { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.inv-dir.ausgang { background: var(--green-soft); color: var(--green); transform: none; }
.inv-dir.ausgang svg { transform: rotate(-45deg); }
.inv-dir.eingang { background: var(--orange-soft); color: var(--orange); }
.inv-amt { flex-direction: column; align-items: flex-end !important; gap: 0 !important; }
.inv-amt b { font-size: 16px; }
.it-head, .it-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 76px 110px 88px 110px 36px; gap: 8px; align-items: center; }
.it-head { font-size: 12px; font-weight: 650; color: var(--text-3); padding: 0 4px 6px; }
.it-row { margin-bottom: 8px; }
.it-row .inp { padding: 9px 10px; font-size: 14px; }
.it-sum { text-align: right; font-weight: 650; font-size: 14px; }
.inv-totals { margin-left: auto; width: min(100%, 340px); display: flex; flex-direction: column; gap: 6px; }
.inv-totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.inv-totals .tot { border-top: 2px solid var(--text); padding-top: 8px; margin-top: 4px; font-size: 18px; }
.inv-totals .tot b { font-weight: 780; }
.inv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.inv-paper { padding: 44px 48px; display: flex; flex-direction: column; gap: 22px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; }
.inv-brand { font-size: 20px; font-weight: 760; }
.inv-addr { line-height: 1.45; }
.inv-h { font-size: 28px; font-weight: 760; letter-spacing: -.02em; }
.inv-title { color: var(--text-2); margin-top: -12px; }
.inv-meta { display: flex; gap: 28px; margin: 0; }
.inv-meta dt { font-size: 12px; color: var(--text-3); font-weight: 650; }
.inv-meta dd { margin: 0; font-weight: 650; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.inv-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 650; border-bottom: 1px solid var(--border-strong); padding: 8px 6px; }
.inv-table td { padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.inv-table .r { text-align: right; white-space: nowrap; }
.inv-notes { color: var(--text-2); white-space: pre-line; }
.inv-pay { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; line-height: 1.6; }
.inv-sw { font-size: 12px; color: var(--text-3); }
.inv-sw b { color: var(--text); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.inv-big { font-size: 30px; font-weight: 780; letter-spacing: -.02em; }
.btn-col { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.btn-col .btn { width: 100%; }
.ev { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); margin-top: 6px; flex: none; }
.ev-dot.bezahlt, .ev-dot.verrechnet, .ev-dot.teilzahlung { background: var(--green); }
.ev-dot.erstellt { background: var(--accent); }
.ev-dot.erinnerung, .ev-dot.nicht_erhalten { background: var(--orange); }
.ev-dot.storniert { background: var(--red); }
.acc-bars { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; margin-top: 4px; }
.acc-bars .pos { color: var(--green); }
.acc-bars .neg { color: var(--red); }
@media print {
  .head, .tabbar, .foot, .no-print, .crumbs, #toast-root { display: none !important; }
  body { background: #fff; padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .inv-layout { display: block; }
  .inv-paper { border: 0; box-shadow: none; padding: 0; }
  .tag { border: 1px solid #ccc; }
}

/* Chat */
.chat-wrap { max-width: 1200px; }
.chat.inbox { min-height: calc(100vh - var(--head-h) - 120px); }
.chat .inbox-list { max-height: calc(100vh - var(--head-h) - 120px); }
.chat-lh { display: flex; flex-direction: column; gap: 10px; padding: 16px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.chat-lh h1 { font-size: 22px; font-weight: 750; }
.chat-lh .inp { width: 100%; }
.chat-sh { font-size: 12px; font-weight: 700; color: var(--text-3); padding: 10px 16px 4px; text-transform: uppercase; letter-spacing: .04em; }
.thread.unread b { font-weight: 750; }
.thread .pin svg { width: 13px; height: 13px; color: var(--text-3); vertical-align: -1px; }
.chat .inbox-conv { max-height: calc(100vh - var(--head-h) - 120px); }
.chat .conv-msgs { max-height: none; gap: 4px; background: var(--surface-2); }
.chat .conv-h .btn.on { color: var(--accent-text); background: var(--accent-soft); }
.chat .conv-h .menu { right: 0; left: auto; }
[data-typing].typing { color: var(--green); font-weight: 600; }
.day-sep { text-align: center; margin: 14px 0 8px; }
.day-sep span { font-size: 12px; font-weight: 650; color: var(--text-2); background: var(--surface); padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.chat .msg { max-width: min(78%, 560px); gap: 3px; margin-top: 4px; }
.chat .msg .bubble { background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 18px 18px 18px 6px; }
.chat .msg.mine .bubble { background: var(--accent); border-radius: 18px 18px 6px 18px; }
.chat .msg .bubble.sub { font-size: 14px; }
.chat .msg.del .bubble { background: transparent; box-shadow: none; border: 1px dashed var(--border-strong); color: var(--text-3); font-style: italic; }
.chat .msg .bubble a.link { color: inherit; text-decoration: underline; }
.msg-t { font-size: 11px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.msg-del { border: 0; background: none; color: var(--text-3); padding: 2px; opacity: 0; transition: opacity .15s; display: inline-flex; }
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
.msg-del:hover { color: var(--red); }
.msg-img img { max-width: 280px; max-height: 280px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.mcard { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-width: 260px; max-width: 360px; color: var(--text); box-shadow: var(--shadow-sm); }
.mcard:hover { border-color: var(--accent); }
.mcard img, .mc-ic { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.mc-ic { background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.mc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.mc-b b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.mc-b .small { color: var(--text-2); }
.mc-acts { display: flex; gap: 6px; margin-top: 6px; }
.chat .conv-f { align-items: flex-end; background: var(--surface); }
.cf-in { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-in textarea { width: 100%; resize: none; min-height: 44px; max-height: 160px; border: 1px solid var(--border-strong); border-radius: 22px; padding: 11px 16px; font: inherit; background: var(--surface-2); color: var(--text); outline: none; }
.cf-in textarea:focus { border-color: var(--accent); background: var(--surface); }
.cf-prev { position: relative; align-self: flex-start; }
.cf-prev img { height: 80px; border-radius: 10px; }
.cf-prev button { position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--text); color: var(--surface); display: flex; align-items: center; justify-content: center; }
.chat .conv-f .btn.icon { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.chat-empty { text-align: center; margin: 30px 0; }

/* Startseite */
.bz-home { padding: 14px; margin-bottom: 16px; }
.bz-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.bz-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; font-size: 12.5px; font-weight: 650; color: var(--text-2); position: relative; text-align: center; }
.bz-quick a svg { width: 26px; height: 26px; padding: 9px; box-sizing: content-box; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.bz-quick a:nth-child(2) svg { background: var(--green-soft); color: var(--green); }
.bz-quick a:hover { background: var(--surface-2); color: var(--text); }
.bz-quick em { position: absolute; top: 4px; right: calc(50% - 26px); background: var(--red); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 0 6px; }
.bz-strip-h { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 8px; }
.bz-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.bz-mini { width: 150px; flex: none; display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; color: var(--text); }
.bz-mini img, .bz-mini .ph { width: 150px; height: 112px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.bz-mini .nm { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bz-mini .pr { font-size: 13px; font-weight: 750; }
.bz-mini .pr i { font-style: normal; color: var(--green); font-weight: 650; font-size: 11.5px; }
.bz-mini:hover .nm { color: var(--accent-text); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-grid, .ins-grid2, .inv-layout { grid-template-columns: minmax(0, 1fr); }
  .ins-side { position: static; }
}
@media (max-width: 760px) {
  .f2, .f3 { grid-template-columns: 1fr; }
  .mk-hero-in h1 { font-size: 28px; }
  .mk-hero-in p { font-size: 15px; }
  .mk-cta { width: 100%; flex-wrap: nowrap; }
  .mk-cta .btn.lg { flex: 1; height: 44px; padding: 0 12px; font-size: 14.5px; }
  .mk-switch { display: flex; }
  .mk-switch a { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
  .mk-search .mk-ort, .mk-search .mk-ort:focus { flex-basis: 110px; padding-right: 52px; padding-left: 12px; }
  .mk-search input { font-size: 15px; padding-left: 16px; }
  .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lcard-b { padding: 10px; }
  .lc-price b { font-size: 16px; }
  .lc-foot { flex-direction: column; align-items: flex-start; }
  .kpis, .kpis.kpis-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-v { font-size: 19px; }
  .bz-head h1 { font-size: 24px; }
  .bz-head .btn-row { width: 100%; }
  .it-head { display: none; }
  .it-row { grid-template-columns: 1fr 1fr 1fr; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
  .it-row .it-text { grid-column: 1 / -1; }
  .it-row .it-sum { grid-column: 1 / 3; text-align: left; }
  .inv-paper { padding: 22px; }
  .inv-meta { gap: 16px; flex-wrap: wrap; }
  .inv-table { font-size: 13px; }
  .bz-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat.inbox, .chat .inbox-list, .chat .inbox-conv { min-height: calc(100vh - var(--head-h) - 150px); max-height: calc(100vh - var(--head-h) - 150px); }
  .chat .msg { max-width: 88%; }
  .msg-del { opacity: 1; }
  .invite-card { padding: 22px; }
  .invite-top { flex-direction: column; text-align: center; }
  .invite-top h1 { font-size: 22px; }
}

/* ================================================================ Dokumentenablage (Inhaber 26.11.2026) */
body.noscroll { overflow: hidden; }
.dms { position: relative; }
.dms .card-h h2 { display: flex; align-items: center; gap: 8px; }
.dms-n { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-3); border-radius: 999px; padding: 1px 9px; }
.dms-tools { display: flex; align-items: center; gap: 8px; }
.dms .seg, .dms-bar .seg { margin: 0; }
.dms .seg button, .dms-bar .seg button { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border-radius: 9px; color: var(--text-2); }
.dms .seg button.on, .dms-bar .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.dms .seg button:focus-visible, .dms-bar .seg button:focus-visible { outline: 2px solid var(--accent); }
.dms-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.dms-admin { display: flex; justify-content: flex-end; margin: 8px 0 -4px; }
.dms-up { transition: border-color .15s, background .15s; }

/* Filter nach Art */
.dms-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dms-bar .dms-types { margin: 0; }
.dchip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); transition: background .15s, border-color .15s, transform .12s; }
.dchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text-3)); }
.dchip span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.dchip:hover { border-color: var(--border-strong); }
.dchip.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.dchip.on span { color: inherit; opacity: .7; }
.dchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dchip.drop-over { transform: scale(1.08); border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); }

/* Leiste beim Ziehen: auf eine Art legen */
.dms-typebar { display: none; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin: 0 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-2); }
.dragging-doc .dms-typebar { display: flex; animation: fade .15s ease; }
.tb-t { padding: 4px 10px; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent); color: var(--c); font-weight: 600; background: var(--surface); transition: transform .12s, background .12s; }
.tb-t.drop-over { background: var(--c); color: #fff; border-style: solid; transform: scale(1.08); }

/* Kacheln */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px 14px; }
.dgrid.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.dtile { position: relative; min-width: 0; }
.dtile.dragging { opacity: .35; }
.dt-page { all: unset; box-sizing: border-box; cursor: zoom-in; position: relative; display: block; width: 100%; aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 16px rgba(0, 0, 0, .06); transition: transform .18s ease, box-shadow .18s ease; }
.dt-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dtile:hover .dt-page, .dt-page:focus-visible { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .12); }
.dt-page:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dtile[draggable="true"] .dt-page { cursor: grab; }
.dt-paper { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; color: #444; text-align: left; }
.dt-paper b { font-size: 22px; letter-spacing: .02em; color: #1c7ed6; }
.dt-paper span { font-size: 8.5px; line-height: 1.45; color: #777; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 14; -webkit-box-orient: vertical; word-break: break-word; }
.dt-ext { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(29, 29, 31, .78); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.dt-lock { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(29, 29, 31, .78); color: #fff; display: flex; align-items: center; justify-content: center; }
.dt-lock .i { width: 12px; height: 12px; }
.dt-info { padding: 9px 2px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dt-type { align-self: flex-start; display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.dt-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dt-meta { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dt-links { font-size: 12px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dt-links a { color: var(--accent-text); }
.dt-links a + a::before { content: ', '; color: var(--text-2); }
.dt-links span { margin-left: 4px; color: var(--text-3); }
.dt-none { color: var(--orange); }
.dt-tools { position: absolute; top: 7px; right: 7px; display: flex; gap: 5px; opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; }
.dtile:hover .dt-tools, .dtile:focus-within .dt-tools { opacity: 1; transform: none; }
.dt-tools a, .dt-tools button { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .96); color: #1d1d1f; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.dt-tools a:hover, .dt-tools button:hover { background: #fff; color: var(--accent-text); }
.dt-tools button[data-act="doc-delete"]:hover { color: var(--red); }
.dt-tools a:focus-visible, .dt-tools button:focus-visible { outline: 2px solid var(--accent); }
@media (hover: none) { .dt-tools { opacity: 1; transform: none; } }

/* Liste */
.dlist { display: flex; flex-direction: column; }
.dlist.card { padding: 4px 0; }
.drow { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.dlist.card .drow { border-radius: 0; border-bottom: 1px solid var(--border); padding: 10px 16px; }
.dlist.card .drow:last-child { border-bottom: 0; }
.drow:hover { background: var(--surface-2); }
.drow.dragging { opacity: .35; }
.dr-page { all: unset; cursor: zoom-in; position: relative; flex: none; width: 40px; height: 56px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #1c7ed6; }
.dr-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dr-body { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dr-title { font-weight: 600; font-size: 14.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dr-title .i { width: 13px; height: 13px; color: var(--text-3); vertical-align: -2px; }
.dr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dr-links { font-size: 12.5px; color: var(--accent-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row-tools { position: static; opacity: 0; transform: none; }
.drow:hover .row-tools, .drow:focus-within .row-tools { opacity: 1; }
.row-tools a, .row-tools button { box-shadow: none; background: transparent; color: var(--text-2); }
.row-tools a:hover, .row-tools button:hover { background: var(--surface-3); }

.dms-more { display: flex; margin: 16px auto 0; }
.dms-hint { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }
.dms-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 18px; border: 2px dashed var(--border-strong); border-radius: 14px; cursor: pointer; color: var(--text-2); transition: border-color .15s, background .15s; }
.dms-empty .i { width: 30px; height: 30px; color: var(--accent); margin-bottom: 4px; }
.dms-empty b { color: var(--text); font-size: 15px; }
.dms-empty span { font-size: 13px; max-width: 380px; }
.dms-empty:hover { border-color: var(--accent); background: var(--accent-soft); }
.dms-drop { display: none; position: absolute; inset: 0; z-index: 3; border-radius: inherit; border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent-text); pointer-events: none; }
.dms-drop .i { width: 34px; height: 34px; }
.dms.drop-over .dms-drop { display: flex; }
.dms.drop-over { box-shadow: none; }

/* Hochladen: Bestätigung und Übersicht */
.up-head { display: flex; gap: 16px; align-items: flex-start; }
.up-thumb { flex: none; position: relative; width: 60px; height: 84px; border-radius: 7px; overflow: hidden; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #1c7ed6; box-shadow: var(--shadow-sm); }
.up-thumb.lg { width: 92px; height: 130px; }
.up-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.up-det { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; color: var(--accent-text); font-size: 13px; }
.up-det .muted { display: inline; color: var(--text); }
.up-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 16px 0 6px; font-weight: 600; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0 0 6px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; transition: background .12s, border-color .12s; }
.link-row:hover { border-color: var(--border-strong); }
.link-row.on { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.link-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.lr-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex: none; }
.lr-t { display: flex; flex-direction: column; min-width: 0; }
.lr-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-sum { display: flex; flex-direction: column; }
.up-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.up-row:last-child { border-bottom: 0; }
.up-row.bad .up-thumb { color: var(--red); font-size: 20px; font-weight: 700; }
.up-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.up-links .doc-chip { padding: 2px 10px; font-size: 12.5px; }

/* Betrachter */
.dview { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(22, 22, 24, .94); backdrop-filter: blur(6px); animation: fade .15s ease; }
.dv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 20px; color: #fff; }
.dv-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.dv-title b { font-size: 16px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dv-title span { font-size: 13px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.dv-btns { display: flex; gap: 6px; flex: none; }
.dv-ib { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background .15s; }
.dv-ib:hover { background: rgba(255, 255, 255, .2); }
.dv-ib:focus-visible { outline: 2px solid #fff; }
.dv-ib[disabled] { opacity: .3; cursor: default; }
.dv-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.dv-stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px 16px; }
.dv-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; }
.dv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.dv-paper { width: min(560px, 100%); max-height: 100%; overflow: auto; background: #fff; color: #333; border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dv-paper b { font-size: 30px; color: #1c7ed6; }
.dv-paper p { font-size: 13px; line-height: 1.6; white-space: pre-line; }
.dv-side { background: var(--surface); color: var(--text); overflow: auto; padding: 20px 20px 28px; border-top-left-radius: 16px; }
.dv-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 22px 0 8px; font-weight: 600; }
.dv-type { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dv-type .dt-type { font-size: 12.5px; padding: 2px 10px; }
.dv-facts { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 16px 0 0; font-size: 14px; }
.dv-facts dt { color: var(--text-2); }
.dv-facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-word; }
.dv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.dv-note { margin: 12px 0 0; font-size: 13.5px; white-space: pre-line; color: var(--text-2); }
.dv-links { display: flex; flex-direction: column; gap: 6px; }
.dv-link { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 11px; padding: 3px 4px 3px 10px; }
.dv-link a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; padding: 5px 0; }
.dv-link a span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dv-link a .i { color: var(--text-3); flex: none; }
.dv-link a:hover { color: var(--accent-text); }
.dv-link button { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.dv-link button:hover { background: var(--red-soft); color: var(--red); }
.dv-add { position: relative; margin-top: 8px; }
.dv-add .inp { width: 100%; }
.dv-prop { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; border: 1px dashed var(--border-strong); }
.dv-prop span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 500; }
.dv-prop small { color: var(--text-2); font-weight: 400; font-size: 12px; }
.dv-prop .i { color: var(--text-3); flex: none; }
.dv-prop:hover { border-color: var(--accent); background: var(--accent-soft); }
.dv-actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.dv-actions .danger { margin-left: auto; }
@media (max-width: 860px) {
  .dv-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .dv-stage { padding: 0 8px 8px; }
  .dv-side { max-height: 44vh; border-radius: 16px 16px 0 0; }
  .dv-top { padding: 8px 10px 8px 14px; }
  .dv-ib { width: 34px; height: 34px; }
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .dgrid.wide { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 12px; }
}

/* ===== Dokumentenverwaltung: Upload-Leiste, Vorschläge, «Zu prüfen» (26.11.2026) ===== */
.uptray { position: fixed; right: 20px; bottom: 20px; z-index: 115; width: 380px; max-width: calc(100vw - 24px); background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: up .2s ease; display: flex; flex-direction: column; max-height: min(70vh, 560px); }
.uptray[hidden] { display: none; }
.ut-h { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 14px; }
.ut-ic { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.ut-ic.ok { background: var(--green-soft); color: var(--green); }
.ut-ic.bad { background: var(--red-soft); color: var(--red); }
.ut-ic .spin, .ut-run .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.ut-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ut-ht b { font-size: 14.5px; }
.ut-ht span { font-size: 12px; color: var(--green); }
.ut-ib { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.ut-ib:hover { background: var(--surface-2); color: var(--text); }
.uptray.min .ut-ib[data-ut="min"] .i { transform: rotate(-90deg); }
.uptray:not(.min) .ut-ib[data-ut="min"] .i { transform: rotate(90deg); }
.ut-bar { height: 3px; background: var(--surface-2); }
.ut-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.ut-list { overflow-y: auto; padding: 6px 0; }
.uptray.min .ut-list, .uptray.min .ut-f { display: none; }
.ut-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px 8px 14px; }
.ut-row + .ut-row { border-top: 1px solid var(--border); }
.ut-row.s-wait { opacity: .55; }
.ut-thumb { all: unset; flex: none; width: 44px; height: 56px; border-radius: 7px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--text-2); cursor: default; }
button.ut-thumb { cursor: pointer; }
button.ut-thumb:hover { border-color: var(--accent); }
.ut-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ut-b { flex: 1; min-width: 0; }
.ut-title { all: unset; display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
button.ut-title { cursor: pointer; }
button.ut-title:hover { color: var(--accent-text); }
.ut-s { font-size: 12.5px; margin-top: 1px; }
.ut-run { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); }
.ut-err { color: var(--red); }
.ut-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ut-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ut-chip .i { width: 13px; height: 13px; color: var(--text-3); flex: none; }
.ut-chip.warn { background: var(--orange-soft); color: var(--orange); }
.ut-chip.warn .i, .ut-chip.maybe .i { color: currentColor; }
.ut-chip.maybe { background: var(--accent-soft); color: var(--accent-text); }
.ut-go { all: unset; cursor: pointer; align-self: center; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.ut-go:hover { background: var(--surface-2); color: var(--accent-text); }
.ut-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 600px) { .uptray { right: 12px; left: 12px; bottom: 12px; width: auto; } }

.dt-pend { all: unset; cursor: pointer; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px 2px 6px; }
.dt-pend .i { width: 12px; height: 12px; }
.dt-pend:hover { filter: brightness(.95); }
.fchip.review { border-color: var(--accent-text); color: var(--accent-text); }
.fchip.review .i { width: 14px; height: 14px; }
.fchip.review.on { color: #fff; }
.dms-review-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }

.dv-pend { margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.dv-pend-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dv-pend-h h3 { margin: 0 !important; display: flex; align-items: center; gap: 6px; color: var(--accent-text) !important; }
.dv-pend .dv-prop { cursor: default; background: var(--surface, #fff); border: 1px solid var(--border); padding: 7px 7px 7px 10px; }
.dv-pend .dv-prop + .dv-prop { margin-top: 6px; }
.dv-pend .dv-prop:hover { background: var(--surface, #fff); border-color: var(--border); }
.dv-prop-t { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.dv-prop-t > span { display: flex; flex-direction: column; min-width: 0; }
.dv-prop-b { flex: none !important; display: flex !important; flex-direction: row !important; gap: 4px; }
.dv-prop-b .btn { padding: 5px 10px; }
/* Dokumente-Kopf bricht in schmalen Spalten um, statt über den Rand zu ragen */
.dms .card-h { flex-wrap: wrap; row-gap: 8px; }
.dms-tools { flex-wrap: wrap; }
/* Ordner-Symbol: gefüllter Ordner in Blau (26.11.2026) */
.fold-ic { width: 18px; height: 18px; flex: none; }
.fold-ic .fb { fill: #0a5bd8; }
.fold-ic .ff { fill: #3d8bfd; }
.fold-ic.light .fb { fill: #9ec3fb; }
.fold-ic.light .ff { fill: #c7dcfd; }
.fchip.on .fold-ic .fb { fill: #cfe0ff; }
.fchip.on .fold-ic .ff { fill: #fff; }
/* Kontakt löschen / zusammenführen (26.11.2026) */
.pdel { display: flex; flex-direction: column; gap: 12px; }
.pdel .notice { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.pdel-list { display: flex; flex-direction: column; gap: 6px; }
.pdel-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.pdel-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pdel-t small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdel-g { display: flex; gap: 8px; align-items: center; font-size: 14px; }
/* Berufserfahrung: ein Block pro Unternehmen, Funktionen als Stufen (26.11.2026) */
.exp-roles { margin-top: 10px; display: flex; flex-direction: column; }
.exp-role { position: relative; display: flex; gap: 10px; padding: 0 0 14px 18px; }
.exp-role:last-child { padding-bottom: 0; }
.exp-role::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 2px; background: var(--border); }
.exp-role:last-child::before { display: none; }
.exp-dot { position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface, #fff); border: 2px solid var(--text-3); }
.exp-role .t { font-size: 15px; }
/* Doppel prüfen (26.11.2026) */
.dup { margin-bottom: 12px; }
.dup-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.dup-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.dup-side { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dup-who { display: flex; gap: 10px; align-items: center; }
.dup-c { overflow-wrap: anywhere; }
.dup-side .tag { align-self: flex-start; }
.dup-arrow { display: flex; align-items: center; color: var(--text-3); transform: rotate(180deg); }
.dup-act { margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .dup-pair { grid-template-columns: 1fr; } .dup-arrow { transform: rotate(-90deg); justify-content: center; } }

.exp-gone-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.exp-gone-h .muted { font-weight: 400; margin-left: 6px; }

/* ===== Telefonbuch-Neubau 27.11.2026 ===== */
.tb2-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.tb2-head p { margin: 4px 0 18px; }
.tb2-hero { background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 55%, color-mix(in srgb, var(--accent) 7%, var(--surface)) 100%); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 18px 20px; margin-bottom: 16px; }
.tb2-hero.off { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tb2-hero-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb2-hero .g-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); flex: none; }
.tb2-hero .g-logo svg { width: 24px; height: 24px; }
.tb2-hero-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.tb2-hero-t span { color: var(--text-2); font-size: 14px; }
.tb2-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.tb2-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tb2-state.run { background: var(--accent-soft); color: var(--accent-text); }
.tb2-state.run i { animation: tbpulse 1.2s ease-in-out infinite; }
.tb2-state.err { background: var(--red-soft); color: var(--red); }
@keyframes tbpulse { 50% { opacity: .25; transform: scale(.7); } }
.tb2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tb2-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 13px; text-decoration: none; transition: background .15s, transform .15s; }
.tb2-kpi b { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; }
.tb2-kpi b svg { width: 26px; height: 26px; }
.tb2-kpi.link:hover { background: var(--surface-3); transform: translateY(-1px); }
.tb2-kpi.warn b { color: var(--orange); }
.tb2-kpi.good b { color: var(--green); }
.tb2-kpi.skel { min-height: 62px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: tbskel 1.2s linear infinite; }
@keyframes tbskel { to { background-position: -200% 0; } }
.tb2-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 16px; }
.tb2-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tb2-tab:hover { color: var(--text); }
.tb2-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tb2-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); font-size: 12px; font-weight: 700; }
.tb2-ok { color: var(--green); display: inline-flex; }
.tb2-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.tb2-search { flex: 1 1 340px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.tb2-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tb2-search svg { color: var(--text-3); flex: none; }
.tb2-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); min-width: 0; }
.tb2 kbd { font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-3); background: var(--surface-2); }
.tb2-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tb2-filters .chip small { font-weight: 600; opacity: .7; }
.tb2-az { margin: 6px 0 12px; }
.tb2-az button { min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.tb2-az button:hover { background: var(--surface-2); color: var(--text); }
.tb2-az button.on { background: var(--accent); color: #fff; }
.tb2-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
.tb2-list { padding: 6px; min-height: 320px; transition: opacity .15s; }
.tb2-list.loading { opacity: .5; }
.tb2-count { padding: 8px 12px 6px; }
.tb2-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; transition: background .12s; }
.tb2-row:hover { background: var(--surface-2); }
.tb2-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tb2-row.on { background: var(--accent-soft); }
.tb2-main { display: flex; flex-direction: column; min-width: 0; }
.tb2-name { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb2-sub { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb2-tel { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13.5px; white-space: nowrap; }
.tb-src { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none; color: var(--text-3); }
.tb-src svg { width: 14px; height: 14px; }
.tb-src.s { background: var(--accent-soft); color: var(--accent-text); }
.tb-src.s svg { width: 11px; height: 11px; }
.tb-flag { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700; flex: none; }
.tb-flag.warn { background: var(--orange-soft); color: var(--orange); }
.tb2-pager { display: flex; justify-content: space-between; padding: 10px 6px 4px; }
.tb2-start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 56px 24px; }
.tb2-start > svg { width: 34px; height: 34px; color: var(--text-3); }
.tb2-start b { font-size: 18px; }
.tb2-quick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.tb2-quick .chip svg { width: 16px; height: 16px; }
.chip.warn { border-color: color-mix(in srgb, var(--orange) 40%, transparent); color: var(--orange); }
.tb2-detail { position: sticky; top: calc(var(--head-h) + 14px); max-height: calc(100vh - var(--head-h) - 28px); overflow: auto; }
.tb2-det-pad { padding: 20px; position: relative; }
.tb2-det-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 24px; color: var(--text-3); }
.tb2-det-empty svg { width: 30px; height: 30px; }
.tb2-close { position: absolute; top: 12px; right: 12px; display: none; }
.tb2-who { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.tb2-who h2 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.tb2-who > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb2-chips { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tb2-calls { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.tb2-call { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tb2-call:hover { background: var(--accent-soft); }
.tb2-call span { font-variant-numeric: tabular-nums; flex: 1; }
.tb2-call em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-3); }
.tb2-sec { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.tb2-h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 10px; font-weight: 700; }
.tb2-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px; border-radius: 14px; border: 1px solid var(--border); }
.tb2-link a { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; min-width: 0; }
.tb2-link a > span { display: flex; flex-direction: column; }
.tb2-link.warn { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: var(--orange-soft); }
.tb2-link.none { color: var(--text-2); gap: 8px; justify-content: flex-start; }
.tb2-fit { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.tb2-fit.warn { color: var(--orange); }
.tb2-warn { color: var(--text-2); margin: 8px 0 0; }
.tb2-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tb2-actions .btn svg { width: 15px; height: 15px; }
.tb2-cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 6px; }
.tb2-cmp th { font-size: 11.5px; color: var(--text-3); font-weight: 600; padding: 0 6px 6px; text-align: center; white-space: nowrap; }
.tb2-cmp th svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.tb2-cmp td { padding: 7px 6px; border-top: 1px solid var(--border); text-align: center; }
.tb2-cmp td:first-child { text-align: left; display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tb2-cmp td:first-child svg { color: var(--text-3); flex: none; }
.tb2-cmp tr.diff td:first-child { font-weight: 600; }
.tb2-cmp .yes { color: var(--green); display: inline-flex; }
.tb2-cmp .no { color: var(--orange); font-size: 12px; font-weight: 600; }
.tb2-sync { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tb2-others { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.tb2-others li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.tb2-note { white-space: pre-wrap; color: var(--text-2); }
.tb2-danger .btn { color: var(--red); }
.tbl { list-style: none; padding: 0; margin: 0 0 10px; }
.tbl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--border); }
.tbl-row:first-child { border-top: 0; }
.tbl-row > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tbl-row b a { color: var(--text); }
.tbl-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.tbl-k { font-size: 12px; font-weight: 600; color: var(--text-3); }
.k-aktualisiert .tbl-ic, .k-verknuepft .tbl-ic, .k-geprueft .tbl-ic { background: var(--green-soft); color: var(--green); }
.k-zusammengefuehrt .tbl-ic, .k-angelegt .tbl-ic, .k-abgleich .tbl-ic { background: var(--accent-soft); color: var(--accent-text); }
.k-uebersprungen .tbl-ic { background: var(--orange-soft); color: var(--orange); }
.k-fehler .tbl-ic, .k-geloescht .tbl-ic { background: var(--red-soft); color: var(--red); }
.tbl.compact .tbl-row { padding: 6px 0; }
.tb2-log { padding: 18px 20px; }
.tb2-log header h2, .tb2-clean header h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.tb2-log header { margin-bottom: 10px; }
.tb2-clean { padding: 6px 0; margin-bottom: 16px; overflow: hidden; }
.tb2-clean header { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; }
.tb2-clean header > div { flex: 1; }
.tb2-clean header p { margin: 3px 0 0; }
.tb2-cic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tb2-cic.d { background: var(--accent-soft); color: var(--accent-text); }
.tb2-cic.w { background: var(--orange-soft); color: var(--orange); }
.tb2-cic.s { background: var(--green-soft); color: var(--green); }
.tb2-ci { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); transition: opacity .3s, background .3s; }
.tb2-ci.done { opacity: .55; background: var(--surface-2); }
.tb2-ci-l { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-width: 0; flex: 1; }
.tb2-ci-a { display: flex; gap: 6px; flex-wrap: wrap; }
.tb2-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tb2-arrow { color: var(--text-3); display: inline-flex; }
.tb2-pchip, .tb2-gchip { display: flex; gap: 10px; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.tb2-pchip > span, .tb2-gchip > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tb2-pchip b, .tb2-gchip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb2-gchip .tb-src { width: 34px; height: 34px; background: var(--surface-2); }
.tb2-gchip .tb-src svg { width: 18px; height: 18px; }
.tb2-keep { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 260px; }
.tb2-keepopt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; }
.tb2-keepopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tb2-keepopt input { accent-color: var(--accent); }
.tb2-allgood { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 24px; text-align: center; }
.tb2-allgood > svg { width: 40px; height: 40px; color: var(--green); }
.tb2-allgood b { font-size: 19px; }
.tb2-pick-l { list-style: none; padding: 0; margin: 10px 0 0; max-height: 320px; overflow: auto; }
.tb2-pick-l button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.tb2-pick-l button:hover { background: var(--surface-2); }
.tb2-pick-l button > span:last-child { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .tb2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb2-split { grid-template-columns: 1fr; }
  .tb2-detail { display: none; }
  .tb2-split.open .tb2-detail { display: block; position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; padding-bottom: 84px; animation: tbsheet .2s ease-out; }
  .tb2-close { display: inline-flex; }
  .tb2-pair { grid-template-columns: 1fr; }
  .tb2-arrow { transform: rotate(90deg); }
}
@keyframes tbsheet { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 520px) { .tb2-tel { display: none; } .tb2-head h1 { font-size: 26px; } }

/* Produktkategorien verwalten (Betreiberin) */
.cat-tree .cat-none { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; padding-top: 10px; color: var(--text-2); }
.cat-tree [data-pcat][draggable="true"] { cursor: grab; }
.cat-tree [data-pcat].dragging { opacity: .45; }
.cat-tree [data-pcat].drop-on { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -2px; color: var(--accent-text); }
body.pdragging .cat-tree [data-pcat] { outline: 1px dashed var(--border); outline-offset: -1px; }
.cat-tree [data-pcat].drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.pcat-node { display: flex; flex-direction: column; gap: 2px; }
.cat-kids .cat-main { font-size: 14px; padding: 6px 8px; }
.pcat-tools { display: flex; gap: 4px; margin: 2px 0 6px 6px; }
.pcat-tools .btn { font-size: 12.5px; padding: 4px 8px; }
.pcat-new { margin-top: 12px; width: 100%; justify-content: center; }
.pcat-hint { margin: 8px 2px 0; line-height: 1.4; }
.psec-h { font-size: 17px; margin: 6px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.psec-h .muted { font-size: 14px; font-weight: 400; }
.prow[draggable="true"] { cursor: grab; }
.prow.dragging { opacity: .5; }
.prow.sel { background: var(--accent-soft); }
.pchk { display: flex; align-items: center; padding-right: 2px; cursor: pointer; }
.pchk input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.psel-bar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.psel-bar[hidden] { display: none; }
.psel-bar .inp.sm { height: 32px; padding: 0 8px; min-width: 180px; }
.pdrag-ghost { position: fixed; top: -100px; left: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; }

/* Beziehungen (überarbeitet 28.11.2026) */
.prel-side { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; min-width: 0; }
.prel-note { max-width: 260px; }
.prel-ev { display: flex; flex-wrap: wrap; gap: 4px; }
.prel-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 260px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }
.prel-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prel-found { margin-top: 14px; padding: 12px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.prel-fh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prel-found .muted.small { margin: 4px 0 8px; }
.prel-cand .row { background: var(--surface); border-radius: 10px; padding: 8px 10px; margin-top: 6px; flex-wrap: wrap; }
.prel-act { display: flex; gap: 6px; align-items: center; }
.prel-act .inp.sm { height: 30px; padding: 0 6px; font-size: 13px; }
.prel-grp { border-top: 1px solid var(--border); }
.prel-grp summary { display: flex; align-items: center; gap: 10px; padding: 9px 2px; cursor: pointer; list-style: none; }
.prel-grp summary::-webkit-details-marker { display: none; }
.prel-gname { font-weight: 600; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prel-stack { display: flex; }
.prel-stack > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); border-radius: 50%; }
@media (max-width: 640px) { .prel-act { width: 100%; justify-content: flex-end; } }

/* Kontakt teilen (28.11.2026) */
.share-l { list-style: none; margin: 10px 0 0; padding: 0; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.share-l li + li { border-top: 1px solid var(--line); }
.share-p { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.share-p > span:not(.av) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.share-p:hover { background: var(--surface-2); }
.share-p.on { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.share-tag { font-style: normal; font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
