/* Hand in Hand für Sudmerberg – Stylesheet
   Farben aus dem Logo: Himmelblau + Orange. Hauptfarbe/Akzent kommen aus den Einstellungen. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/poppins-light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-bold.woff") format("woff"); }

:root {
  --brand: #1ca8ff;                                            /* Logo-Blau */
  --accent: #f9a912;                                           /* Logo-Orange */
  --brand-ink: color-mix(in srgb, var(--brand) 56%, #06243d);  /* dunkleres Blau für Text & Buttons */
  --brand-soft: color-mix(in srgb, var(--brand) 11%, white);
  --brand-line: color-mix(in srgb, var(--brand) 28%, white);
  --accent-ink: color-mix(in srgb, var(--accent) 45%, #4a2a00);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, white);
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f6fbff;
  --ink: #1b2530;
  --muted: #5d6874;
  --line: #e3eaf1;
  --ok: #1f7a4a;
  --warn: #8a5a00;
  --error: #b3261e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 40, 70, .05), 0 8px 24px rgba(10, 40, 70, .07);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.7 var(--font);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font); line-height: 1.2; color: var(--ink); margin: 1.4em 0 .5em; font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; margin-top: .2em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3, .h3 { font-size: 1.12rem; margin-top: 0; font-weight: 500; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
code { background: var(--brand-soft); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 32px); }
.section { padding-block: 56px; }
.lead { font-size: 1.12rem; color: var(--muted); font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only, .hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Zweifarbiger Streifen wie die zwei Hände */
.stripe { height: 5px; background: linear-gradient(90deg, var(--brand) 0 50%, var(--accent) 50% 100%); }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-logo { height: 62px; width: auto; max-width: 300px; object-fit: contain; flex: none; }
.brand-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 50%, var(--accent) 50%); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 1.1rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .82rem; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 8px 11px; border-radius: 99px; font-size: .94rem; white-space: nowrap; }
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.main-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 500; }
.main-nav .btn { color: #fff; margin-left: 8px; }
.main-nav .btn:hover { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-member { font-weight: 500; }
.nav-long .main-nav a { padding: 8px 8px; }
.nav-long .nav-sep { margin: 0 4px; }
.nav-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.nav-logout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle, .nav-burger { display: none; }

/* Verwaltung: Gruppenleiste (dunkel) + Unterreiter (hell) */
.admin-bar { background: linear-gradient(100deg, color-mix(in srgb, var(--brand-ink) 92%, #000) 0%, var(--brand-ink) 55%, color-mix(in srgb, var(--brand-ink) 80%, var(--brand)) 100%); position: relative; }
.admin-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.08); }
.an-groups { display: flex; align-items: center; gap: 4px; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.an-groups::-webkit-scrollbar { display: none; }
.an-group { position: relative; flex: none; }
.an-g { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.84); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; transition: background .18s, color .18s; }
.an-g:hover, .an-group:focus-within > .an-g { background: rgba(255,255,255,.1); color: #fff; }
.an-group.is-current > .an-g { background: #fff; color: var(--brand-ink); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.an-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.an-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-left: -2px; opacity: .7; transition: transform .2s; }
.an-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #3a2300; font-size: .7rem; font-weight: 700; line-height: 1; }
.an-menu { display: none; }
@media (hover: hover) and (min-width: 761px) {
  .an-groups { overflow: visible; }
  .an-menu { display: grid; position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 330px; padding: 8px; gap: 2px;
    background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(6, 36, 61, .22), 0 2px 6px rgba(6, 36, 61, .08);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
  .an-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }   /* Brücke, damit das Menü beim Hinüberfahren offen bleibt */
  .an-group.has-menu:hover .an-menu, .an-group.has-menu:focus-within .an-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
  .an-group.has-menu:hover .an-caret, .an-group.has-menu:focus-within .an-caret { transform: rotate(180deg); }
}
.an-menu a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--ink); text-decoration: none; }
.an-menu a:hover, .an-menu a:focus-visible { background: var(--tint); }
.an-menu a[aria-current="page"] { background: var(--brand-soft); }
.an-mi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.an-menu a[aria-current="page"] .an-mi { background: var(--brand-ink); color: #fff; }
.an-mt { display: grid; line-height: 1.3; }
.an-mt b { font-weight: 600; font-size: .92rem; }
.an-mt small { color: var(--muted); font-size: .78rem; }

.admin-sub { background: #fff; border-bottom: 1px solid var(--line); }
.admin-sub .wrap { display: flex; gap: 6px; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.admin-sub .wrap::-webkit-scrollbar { display: none; }
.admin-sub a { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.admin-sub a:hover { background: var(--tint); color: var(--ink); }
.admin-sub a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-line); }
.admin-sub .an-ico { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .an-groups { padding-block: 6px; gap: 2px; }
  .an-g { padding: 7px 12px; font-size: .88rem; }
  .an-caret { display: none; }
  .an-groups, .admin-sub .wrap { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}

@media (max-width: 1100px) {
  .header-row { min-height: 68px; }
  .brand-logo { height: 48px; }
  .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; flex: none; border-radius: 12px; }
  .nav-burger:hover { background: var(--brand-soft); }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { position: absolute; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform .2s, background .2s; }
  .nav-burger span { left: 11px; top: 21px; }
  .nav-burger span::before { left: 0; top: -7px; }
  .nav-burger span::after { left: 0; top: 7px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; box-shadow: var(--shadow); }
  .main-nav a { border-radius: 10px; padding: 11px 12px; font-size: 1rem; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .main-nav .btn { margin: 8px 0 0; }
  .nav-logout svg { display: none; }
  .nav-logout span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-long .main-nav a { padding: 11px 12px; }
  .site-header { position: sticky; }
}

/* Eingeloggt ist das Menü länger – dann schon früher als Burger-Menü */
@media (min-width: 1101px) and (max-width: 1200px) {
  .nav-long .header-row { min-height: 68px; }
  .nav-long .brand-logo { height: 48px; }
  .nav-long .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; flex: none; border-radius: 12px; }
  .nav-long .nav-burger:hover { background: var(--brand-soft); }
  .nav-long .nav-burger span, .nav-long .nav-burger span::before, .nav-long .nav-burger span::after { position: absolute; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform .2s, background .2s; }
  .nav-long .nav-burger span { left: 11px; top: 21px; }
  .nav-long .nav-burger span::before { left: 0; top: -7px; }
  .nav-long .nav-burger span::after { left: 0; top: 7px; }
  .nav-long .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; box-shadow: var(--shadow); }
  .nav-long .main-nav a { border-radius: 10px; padding: 11px 12px; font-size: 1rem; }
  .nav-long .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-long .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-long .nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-long .nav-toggle:checked + .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-long .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .nav-long .main-nav .btn { margin: 8px 0 0; }
  .nav-long .nav-logout svg { display: none; }
  .nav-long .nav-logout span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-long .main-nav a { padding: 11px 12px; }
  .site-header.nav-long { position: sticky; }
}

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-ink); color: #fff; border: 0; border-radius: 99px; padding: 12px 24px; font: 500 .98rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: color-mix(in srgb, var(--brand-ink) 85%, black); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #2a1a00; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, black); color: #2a1a00; }
.btn-danger { background: transparent; color: var(--error); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.field label { font-weight: 500; font-size: .92rem; }
.req { color: var(--accent-ink); }
.hint { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], input[type=color], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=hidden]), select { height: 48px; }
input[type=color] { padding: 4px; height: 48px; max-width: 120px; }
textarea { resize: vertical; min-height: 100px; }
textarea.code { font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 340px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: .92rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand-ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }

/* ---------- Meldungen ---------- */
.flashes { padding-top: 20px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; background: #e9f7ef; border: 1px solid #c3e6d1; color: #17482c; }
.flash-error { background: #fbeceb; border-color: #f0c7c4; color: #7d1a14; }
.flash-info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
.flash-warn { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, white); color: #5c3b00; }
.flash a { color: inherit; font-weight: 500; }

/* ---------- Karten & Listen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; margin: 0; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(10,40,70,.06), 0 14px 30px rgba(10,40,70,.10); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--brand); }
.post-card:nth-child(even) .body { border-top-color: var(--accent); }
.post-card h3 { margin: 4px 0 8px; font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-ink); }
.post-card p { color: var(--muted); }
.post-card .more { margin-top: auto; font-weight: 500; text-decoration: none; }
.post-card .more::after { content: " →"; }
.meta { color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: middle; }
.tag-intern { background: var(--accent-soft); color: var(--accent-ink); }
.tag-entwurf { background: #eef0f2; color: #555; }
.tag-ok { background: #e3f4ea; color: var(--ok); }
.tag-warn { background: var(--accent-soft); color: var(--warn); }
.tag-bad { background: #fbeceb; color: var(--error); }

.event-list { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.event-date { text-align: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); padding: 8px 4px; line-height: 1.1; }
.event:nth-child(even) .event-date { background: var(--accent-soft); color: var(--accent-ink); }
.event-date .d { display: block; font-weight: 500; font-size: 1.75rem; }
.event-date .m { display: block; text-transform: uppercase; font-size: .74rem; font-weight: 500; letter-spacing: .08em; }
.event h3 { margin: 0 0 4px; font-size: 1.08rem; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { color: var(--brand-ink); }
.event .meta span + span::before { content: "·"; margin: 0 8px; }
@media (max-width: 640px) {
  .event { grid-template-columns: 62px 1fr; gap: 14px; }
  .event .event-cta { grid-column: 1 / -1; }
}

/* ---------- Startseite ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint), #fff 85%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -140px; top: -260px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); }
.hero::after { width: 520px; height: 520px; right: 180px; bottom: -300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 64px 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--brand-ink); background: #fff; border: 1px solid var(--brand-line); padding: 5px 14px; border-radius: 99px; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .35em; }
.hero h1 em { font-style: normal; font-weight: 500; color: var(--brand-ink); }
.hero p { max-width: 54ch; font-size: 1.1rem; color: var(--muted); font-weight: 300; }
.hero .btn-row { margin-top: 26px; }
.hero-visual { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-visual .ring { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.hero-visual .ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed var(--brand-line); }
.hero-visual .symbol { position: relative; width: 72%; }
.hero-visual .photo { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); }
.hero-visual .badge { position: absolute; right: -6px; bottom: 18px; width: 34%; background: #fff; border-radius: 50%; padding: 6%; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 52px; gap: 28px; }
  .hero-visual { width: min(190px, 55%); order: -1; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head > a { font-weight: 500; text-decoration: none; }
.home-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.pillar .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.pillar:nth-child(2) .ico { background: var(--accent-soft); color: var(--accent-ink); }
.pillar .ico svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

.join-band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--brand-ink) 0%, color-mix(in srgb, var(--brand-ink) 75%, var(--brand)) 100%); color: #fff; }
.join-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--accent); }
.join-band { margin-bottom: -72px; }
.join-band .wrap { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 48px; }
.join-band h2 { margin: 0 0 6px; color: #fff; }
.join-band p { margin: 0; opacity: .9; max-width: 60ch; font-weight: 300; }
.join-band .btn { background: #fff; color: var(--brand-ink); }
.join-band .btn:hover { background: var(--accent-soft); }

/* ---------- Inhaltsseiten ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { margin-bottom: .45em; padding-left: 1.4em; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.prose li:nth-child(even)::before { background: var(--accent); }
.page-title { position: relative; padding-bottom: 10px; margin-bottom: 18px; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) 0 50%, var(--accent) 50% 100%); }
.article-img { border-radius: var(--radius); margin: 8px 0 28px; width: 100%; max-height: 460px; object-fit: cover; }
.layout-side { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0 0 16px; }
.facts li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.facts li:last-child { border-bottom: 0; }
.facts li > strong { flex-shrink: 0; }
.facts li strong { min-width: 70px; color: var(--muted); font-weight: 500; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------- Footer ---------- */
.site-footer { background: #10283d; color: #c9d6e2; margin-top: 72px; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer strong { color: #fff; display: block; margin-bottom: 10px; font-weight: 500; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding-block: 48px 30px; }
.footer-brand img { width: 74px; margin-bottom: 12px; }
.site-footer input { background: #fff; border-color: transparent; }
.site-footer .btn { background: var(--accent); color: #2a1a00; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 16px 22px; color: #8ea3b6; font-size: .82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Verwaltung ---------- */
.is-admin main { padding-bottom: 20px; background: var(--tint); }
.is-admin .site-footer { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 5px solid var(--brand); }
.stat:nth-child(even) { border-left-color: var(--accent); }
.stat:hover { border-color: var(--brand); color: var(--ink); }
.stat .n { font-weight: 500; font-size: 2rem; display: block; line-height: 1.15; }
.stat .l { color: var(--muted); font-size: .9rem; }
.stat.attention { background: var(--accent-soft); border-color: var(--accent); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fbfe; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #fbfdff; }
td .btn-small { padding: 5px 12px; font-size: .84rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; }
.filters a { text-decoration: none; padding: 6px 13px; border-radius: 99px; font-size: .88rem; color: var(--muted); }
.filters a:hover { background: var(--brand-soft); }
.filters a[aria-current="true"] { background: var(--brand-ink); color: #fff; }
.filters a .c { opacity: .75; margin-left: 5px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 32px; margin-bottom: 18px; }
.admin-head h1 { margin: 0; font-size: 1.8rem; font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 32px; }
.copybox { display: flex; gap: 8px; margin-top: 8px; }
.copybox input { font-size: .85rem; }
.inline { display: inline; }
.checklist { list-style: none; padding: 0; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: var(--error); font-weight: 500; }
details.help { margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
details.help summary { cursor: pointer; color: var(--brand-ink); font-weight: 500; }
.thumb { width: 160px; border-radius: 10px; margin-bottom: 8px; }

/* ---------- Mitgliederbereich: Untermenü ---------- */
.member-nav { background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); }
.member-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.member-nav a { text-decoration: none; color: var(--brand-ink); padding: 11px 14px; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.member-nav a:hover { color: var(--ink); }
.member-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 500; color: var(--ink); }
/* ---------- Rechtevergabe ---------- */
fieldset.rights { border: 1.5px solid var(--brand-line); border-radius: 16px; padding: 18px 20px 8px; margin: 6px 0 18px; background: var(--tint); min-width: 0; }
fieldset.rights legend { font-weight: 500; font-size: 1rem; padding: 0 8px; color: var(--ink); }
fieldset.rights .field { margin-bottom: 12px; }
.rights-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.rights-presets > span { margin-right: 4px; }
.rights-presets .btn-small { padding: 5px 12px; font-size: .82rem; background: #fff; }
.rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 700px) { .rights-grid { grid-template-columns: 1fr; } }
.right-item { position: relative; display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.right-item:hover { border-color: var(--brand-line); }
.right-item:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.right-item input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand-ink); cursor: pointer; }
.right-item label { flex: 1; min-width: 0; cursor: pointer; font-weight: 400; }
.right-item label::after { content: ""; position: absolute; inset: 0; } /* ganze Kachel klickbar */
.right-name { display: block; font-weight: 500; font-size: .93rem; line-height: 1.35; color: var(--ink); }
.right-desc { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.matrix th.r { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: .82rem; padding: 12px 8px; vertical-align: bottom; }
.matrix td.c { text-align: center; font-size: 1.05rem; }
.matrix td.c .y { color: var(--ok); font-weight: 700; }
.matrix td.c .n { color: #c7cfd6; }

/* ---------- Menü-Zähler ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #2a1a00; font-size: .72rem; font-weight: 700; vertical-align: 1px; }

/* ---------- Chat ---------- */
[hidden] { display: none !important; }
body:has(.chat-main) { height: 100vh; height: 100dvh; overflow: hidden; }
.chat-main { flex: 1; display: flex; min-height: 0; background: var(--tint); }
.chat-app { flex: 1; display: grid; grid-template-columns: 340px 1fr; min-height: 0; width: min(1240px, 100%); margin: 0 auto; background: #fff; border-inline: 1px solid var(--line); }
.chat-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; }
.chat-side-head h1 { margin: 0; font-size: 1.5rem; font-weight: 500; }
.chat-side-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--brand-ink); display: inline-grid; place-items: center; cursor: pointer; font-size: 1rem; flex: none; }
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-hint { margin: 0 12px 8px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); display: grid; gap: 4px; font-size: .88rem; }
.chat-hint .btn { justify-self: start; margin-top: 4px; background: var(--accent); color: #2a1a00; }
.room-list { flex: 1; overflow-y: auto; padding: 0 8px 16px; overscroll-behavior: contain; }
.room-list h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 10px 6px; font-weight: 500; }
.room-none { font-size: .85rem; color: var(--muted); margin: 0 10px 8px; }
.room-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.room-item:hover { background: var(--tint); color: var(--ink); }
.room-item.active { background: var(--brand-soft); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 1rem; color: #fff; }
.av-blue { background: var(--brand-ink); }
.av-orange { background: var(--accent); color: #2a1a00; }
.av-all { background: #fff url("logo-symbol.png") center / 76% no-repeat; border: 1.5px solid var(--brand-line); }
.room-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.room-top, .room-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-top strong { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-top time { font-size: .75rem; color: var(--muted); flex: none; }
.room-prev { flex: 1; min-width: 0; font-size: .86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-unread .room-prev { color: var(--ink); }
.has-unread .room-top time { color: var(--brand-ink); font-weight: 500; }
.unread { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--brand-ink); color: #fff; font-size: .74rem; font-weight: 700; display: grid; place-items: center; }
.unread.is-muted { background: #b8c2cc; }
.muted-ico { font-size: .8rem; opacity: .6; }

.chat-room { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--tint); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.chat-empty img { margin: 0 auto 12px; opacity: .9; }
.room-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.room-head .back { display: none; }
.room-title { flex: 1; min-width: 0; display: grid; }
.room-title strong { font-weight: 500; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-title small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-mute] .slash { display: none; }
[data-mute].is-muted { color: var(--muted); }
[data-mute].is-muted .slash { display: inline; }

.messages { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.messages:focus { outline: none; }
.msgs-loading, .msgs-empty { margin: auto; color: var(--muted); font-size: .92rem; text-align: center; }
.day { align-self: center; margin: 14px 0 8px; }
.day span { background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .76rem; padding: 3px 12px; border-radius: 99px; }
.msg { display: flex; margin-top: 8px; }
.msg.cont { margin-top: 2px; }
.msg.mine { justify-content: flex-end; }
.bubble { position: relative; max-width: min(78%, 560px); background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 7px 12px 6px; box-shadow: 0 1px 1px rgba(10, 40, 70, .04); display: grid; gap: 2px; }
.msg.cont .bubble { border-radius: 18px 18px 18px 18px; }
.mine .bubble { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.mine.cont .bubble { border-radius: 18px; }
.from { font-size: .78rem; font-weight: 500; color: var(--accent-ink); }
.mine .from, .msg.cont .from { display: none; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .97rem; line-height: 1.5; }
.text a { color: inherit; text-decoration: underline; }
.text.gone { font-style: italic; opacity: .65; }
.pic { display: block; margin: 3px -6px 2px; }
.pic img { border-radius: 12px; max-height: 340px; width: auto; max-width: 100%; object-fit: cover; background: var(--line); }
.msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: .7rem; color: var(--muted); }
.mine .msg-meta { color: rgba(255, 255, 255, .78); }
.del { display: none; border: 0; background: none; color: inherit; font: inherit; font-size: .72rem; text-decoration: underline; cursor: pointer; padding: 0; }
.msg:hover .del, .msg.show-actions .del, .del:focus { display: inline; }
.deleted .bubble { background: transparent; border-style: dashed; color: var(--muted); box-shadow: none; }
.mine.deleted .bubble { background: transparent; border-color: var(--brand-line); color: var(--muted); }
.new-pill { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); border: 0; background: var(--brand-ink); color: #fff; font: 500 .85rem var(--font); padding: 8px 16px; border-radius: 99px; box-shadow: var(--shadow); cursor: pointer; z-index: 2; }

.composer { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); position: relative; }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 10px 16px; line-height: 1.4; font-size: 1rem; }
.composer .attach { cursor: pointer; }
.send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send:disabled { opacity: .5; }
.send svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.attach-preview { position: absolute; left: 12px; bottom: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 4px; }
.attach-preview img { max-height: 120px; max-width: 160px; border-radius: 10px; }

.chat-dialog { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100% - 24px)); max-height: min(640px, 90vh); box-shadow: 0 20px 60px rgba(10, 40, 70, .25); color: var(--ink); }
.chat-dialog::backdrop { background: rgba(16, 40, 61, .45); }
.chat-dialog form { padding: 18px 20px 20px; display: grid; gap: 12px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { margin: 0; }
.dlg-sec { border-top: 1px solid var(--line); padding-top: 12px; }
.dlg-sec h3 { font-size: 1rem; margin: 0 0 6px; }
.dlg-sec .ok { color: var(--ok); margin: 0; }
.steps { padding-left: 1.2em; margin: 0; display: grid; gap: 4px; }
.ios-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: .8rem; }
.dm-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; display: grid; gap: 2px; }
.dm-list button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; font: inherit; color: inherit; padding: 8px; border-radius: 12px; cursor: pointer; text-align: left; }
.dm-list button:hover { background: var(--brand-soft); }
.dm-list .avatar { width: 38px; height: 38px; font-size: .88rem; }

.chat-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: #10283d; color: #fff; padding: 10px 18px; border-radius: 12px; font-size: .92rem; z-index: 50; max-width: calc(100% - 32px); pointer-events: none; }
.chat-toast.show { opacity: 1; transform: translate(-50%, 0); }
.chat-toast[data-type="error"] { background: #8c1d16; }

@media (max-width: 800px) {
  .chat-app { grid-template-columns: 1fr; border: 0; }
  .chat-room { display: none; }
  .chat-app.show-room .chat-side { display: none; }
  .chat-app.show-room .chat-room { display: flex; }
  .room-head .back { display: inline-grid; }
  .bubble { max-width: 86%; }
  .chat-main .site-footer { display: none; }
}
/* Installierte App auf dem Handy: Kopfzeile kompakter */
@media (display-mode: standalone) and (max-width: 800px) {
  body:has(.chat-main) .stripe { height: 3px; }
  body:has(.chat-main) .header-row { min-height: 56px; }
  body:has(.chat-main) .brand-logo { height: 38px; }
}

/* ---------- Backups ---------- */
details.restore[open] { flex-basis: 100%; order: 10; }
details.restore summary { list-style: none; }
details.restore summary::-webkit-details-marker { display: none; }
details.restore[open] summary { background: var(--brand-soft); }
.restore-form { flex-basis: 100%; max-width: 520px; margin: 8px 0 0; padding: 16px; box-shadow: none; border-color: #f0c7c4; background: #fff8f7; }

/* Korrekturen: Formulare nicht strecken, Fließtext-Listen, Kopierfelder */
.form { align-content: start; }
.form > .btn { justify-self: start; }
.facts.notes li { display: block; }
.copybox input { flex: 1; min-width: 0; width: 100%; }

/* ---------- Veranstaltungen & Ideen-Mindmap ---------- */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkish:hover { color: var(--accent-ink); }
.linkish:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.v-card { display: flex; gap: 16px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.v-card:hover { color: inherit; transform: translateY(-2px); border-color: var(--brand-line); }
.v-card-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.v-card:nth-child(even) .v-card-icon { background: var(--accent-soft); color: var(--accent-ink); }
.v-card-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v-card-body { flex: 1; display: grid; gap: 4px; min-width: 0; align-content: start; }
.v-card-foot .tag { white-space: nowrap; }
.v-card-body .h3 { margin: 0; }
.v-card-text { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.v-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: .88rem; color: var(--brand-ink); font-weight: 500; }

body:has(.mm-main) { height: 100vh; height: 100dvh; overflow: hidden; }
.mm-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mm-main > .flashes { flex: none; padding-top: 8px; width: 100%; }
.mm-main > .flashes .flash { padding: 8px 14px; }
.mm-app { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.mm-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.mm-title { flex: 1; min-width: 180px; }
.mm-title h1 { margin: 0; font-size: 1.3rem; font-weight: 500; }
.mm-title p { margin: 0; font-size: .86rem; color: var(--muted); }
.mm-tools { display: flex; align-items: center; gap: 6px; }
.mm-switch { display: inline-flex; background: var(--tint); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.mm-switch button { border: 0; background: none; font: 500 .86rem var(--font); color: var(--muted); padding: 6px 14px; border-radius: 99px; cursor: pointer; }
.mm-switch button[aria-pressed="true"] { background: var(--brand-ink); color: #fff; }
.mm-info { padding: 12px 20px; background: var(--accent-soft); border-bottom: 1px solid var(--line); max-height: 40vh; overflow: auto; }
.mm-info .prose > :last-child { margin-bottom: 0; }

.mm-canvas {
  --grid: 24px;
  flex: 1; position: relative; overflow: hidden; overflow: clip; touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
  background-color: var(--tint);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, white) 1.2px, transparent 1.5px);
  background-size: var(--grid) var(--grid);
  cursor: grab;
}
.mm-canvas[hidden] { display: none; }
.mm-canvas:active { cursor: grabbing; }
.mm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mm-stage.mm-anim-view { transition: transform .25s ease; }
.mm-edges { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.mm-edges path { fill: none; stroke-linecap: round; opacity: .75; }

.mm-node {
  --c: var(--brand);
  position: absolute; transform: translate(-50%, -50%);
  display: grid; gap: 3px; width: max-content; min-width: 96px; max-width: 230px;
  padding: 9px 14px 8px; border-radius: 14px; border: 2px solid var(--c); background: #fff;
  font: 400 .92rem/1.35 var(--font); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 40, 70, .06), 0 4px 12px rgba(10, 40, 70, .06);
  transition: box-shadow .15s;
}
.mm-node:hover { box-shadow: 0 2px 4px rgba(10, 40, 70, .08), 0 8px 20px rgba(10, 40, 70, .12); }
.mm-node:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mm-text { white-space: pre-line; overflow-wrap: anywhere; }
.mm-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.mm-likes { color: var(--ink); white-space: nowrap; }
.mm-likes.mine { color: var(--brand-ink); font-weight: 500; }
.mm-branch { background: color-mix(in srgb, var(--c) 13%, white); border-width: 2.5px; font-weight: 500; font-size: .98rem; padding: 11px 16px 9px; }
.mm-root {
  min-width: 140px; max-width: 280px; padding: 18px 26px; border: 0; border-radius: 24px; text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #06243d) 100%);
  color: #fff; font-size: 1.15rem; font-weight: 500; line-height: 1.3;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 55%, white), 0 10px 30px rgba(10, 40, 70, .2);
}
.mm-root:hover { box-shadow: 0 0 0 5px var(--accent), 0 10px 30px rgba(10, 40, 70, .25); }
.mm-node.is-sel { outline: 3px solid color-mix(in srgb, var(--c) 55%, transparent); outline-offset: 3px; z-index: 2; }
.mm-root.is-sel { outline-color: var(--accent-ink); }
.mm-node.is-drag { cursor: grabbing; z-index: 3; box-shadow: 0 12px 30px rgba(10, 40, 70, .22); }
.mm-node.is-drag { pointer-events: none; opacity: .9; }
.mm-node.is-drop { outline: 3px dashed var(--accent); outline-offset: 5px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent); }
.mm-hint.is-drop-hint { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.mm-node.mm-new::after { content: ""; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; animation: mm-pulse 1.6s ease-out 3; }
@keyframes mm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.mm-actions { position: absolute; left: 0; top: 0; z-index: 5; display: flex; gap: 2px; padding: 4px; background: #10283d; border-radius: 14px; box-shadow: 0 8px 24px rgba(10, 40, 70, .25); }
.mm-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: 500 .9rem var(--font); cursor: pointer; }
.mm-act[hidden] { display: none; }
.mm-act:hover { background: rgba(255, 255, 255, .13); }
.mm-act:disabled { opacity: .6; cursor: default; background: transparent; }
.mm-act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mm-act-add { background: var(--accent); color: #2a1a00; padding: 0 14px 0 10px; }
.mm-act-add:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.mm-act[aria-pressed="true"] { color: var(--accent); }
.mm-act[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
.mm-act-del:hover { color: #ffb4ab; }
.mm-colors { position: absolute; left: 0; top: calc(100% + 6px); display: flex; gap: 6px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(10, 40, 70, .2); }
.mm-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.mm-swatch-auto { background: conic-gradient(#1ca8ff 0 25%, #f59f0b 0 50%, #22a565 0 75%, #e8578a 0); }
.mm-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }

.mm-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: grid; gap: 2px; padding: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.mm-hint, .mm-status { position: absolute; left: 12px; right: 72px; bottom: 14px; margin: 0 auto; width: fit-content; max-width: calc(100% - 84px); z-index: 3; background: #fff; border-radius: 99px; padding: 8px 16px; font-size: .86rem; color: var(--muted); box-shadow: var(--shadow); text-align: center; pointer-events: none; line-height: 1.4; }
.mm-hint[hidden], .mm-status[hidden] { display: none; }

.mm-list { flex: 1; overflow-y: auto; background: var(--tint); padding: 8px 0 40px; }
.mm-list h2 { margin-top: 18px; }
.mm-tree, .mm-tree ul { list-style: none; margin: 0; padding: 0; }
.mm-tree { margin-top: 14px; }
.mm-tree ul { margin-left: 12px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--c) 40%, white); }
.mm-tree-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; padding: 9px 14px; margin: 6px 0; }
.mm-tree > li > .mm-tree-row { background: color-mix(in srgb, var(--c) 10%, white); font-weight: 500; }
.mm-tree-text, .mm-task-title { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mm-tree-text:hover, .mm-task-title:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.mm-tree-text { white-space: pre-line; overflow-wrap: anywhere; }
.mm-tree-meta { grid-column: 1; font-size: .78rem; color: var(--muted); font-weight: 400; }
.mm-tree-btns { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; align-items: center; font-size: .84rem; font-weight: 400; flex-wrap: wrap; justify-content: flex-end; }
.mm-tree-btns [aria-pressed="true"] { font-weight: 500; color: var(--accent-ink); }
.mm-tree-row.mm-new { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, white); }
.mm-count { min-height: 1em; text-align: right; margin-top: -6px; }
.chat-dialog textarea { width: 100%; resize: vertical; }

@media (max-width: 700px) {
  .mm-head { padding: 8px 10px; gap: 4px 6px; flex-wrap: wrap; }
  .mm-title { min-width: 0; }
  .mm-title h1 { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-switch button { padding: 6px 10px; }
  .mm-node { max-width: 190px; font-size: .88rem; }
  .mm-tree-row { grid-template-columns: 1fr; }
  .mm-tree-btns { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 4px; }
}
@media (display-mode: standalone) and (max-width: 800px) {
  body:has(.mm-main) .stripe { height: 3px; }
  body:has(.mm-main) .header-row { min-height: 56px; }
  body:has(.mm-main) .brand-logo { height: 38px; }
}

/* Planungsteam (Anmeldung mit Funktion) */
.mm-team-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--brand-ink); font: 500 .88rem var(--font); cursor: pointer; white-space: nowrap; }
.mm-team-btn:hover { background: var(--brand-soft); }
.mm-team-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mm-team-btn b { font-weight: 500; background: var(--brand-soft); border-radius: 99px; padding: 0 7px; margin-left: 2px; }
.mm-my-fn { background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 2px 9px; font-size: .78rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.mm-joinbar { position: absolute; left: 12px; right: 72px; bottom: 14px; margin: 0 auto; width: fit-content; max-width: calc(100% - 84px); z-index: 4; display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 18px; padding: 10px 12px 10px 18px; box-shadow: 0 10px 30px rgba(10, 40, 70, .18); font-size: .9rem; line-height: 1.4; }
.mm-joinbar[hidden] { display: none; }
.mm-joinbar .btn { flex: none; }
.mm-team-dialog { width: min(480px, calc(100% - 24px)); }
.mm-team-dialog form { gap: 14px; }
.mm-join { background: var(--accent-soft); border-top: 0; border-radius: 14px; padding: 14px 16px 16px; }
.mm-join[hidden] { display: none; }
.mm-join h3 { margin-bottom: 2px; }
.mm-join p { margin: 0 0 10px; }
.mm-join .field { margin-bottom: 10px; }
.mm-join select, .mm-join input { background: #fff; }
.mm-team-group h4 { margin: 10px 0 4px; font-size: .86rem; font-weight: 500; color: var(--brand-ink); }
.mm-team-group:first-child h4 { margin-top: 0; }
.mm-team-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .92rem; }
.mm-team-group li span { color: var(--muted); }
.team-fn { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 1px 10px; font-size: .8rem; font-weight: 500; }
@media (max-width: 700px) {
  .mm-team-btn { padding: 0 10px; }
  .mm-team-word { display: none; }
  .mm-my-fn { display: none; }
  .mm-joinbar { right: 12px; bottom: 12px; max-width: calc(100% - 24px); width: auto; gap: 10px; padding: 8px 8px 8px 14px; font-size: .86rem; }
  .mm-join-long { display: none; }
  .mm-canvas:has(.mm-joinbar:not([hidden])) .mm-zoom { bottom: 84px; }
  .mm-title p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.v-card-me { font-size: .84rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.mm-join-short { display: none; }
@media (max-width: 700px) { .mm-join-short { display: inline; } }

/* Aufgaben in der Mindmap */
.mm-task { display: inline-flex; align-items: center; gap: 4px; justify-self: start; max-width: 100%; margin: -2px 0 2px; padding: 1px 8px; border-radius: 99px; font-size: .7rem; font-weight: 500; line-height: 1.5; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-task[hidden] { display: none; }
.mm-node.is-task { border-style: solid; }
.mm-node.is-mine .mm-task { background: var(--accent); color: #2a1a00; }
.mm-node.is-late .mm-task { background: #fbeceb; color: var(--error); }
.mm-node.is-done { opacity: .78; }
.mm-node.is-done .mm-text { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.mm-node.is-done .mm-task { background: #e3f4ea; color: var(--ok); }
.mm-act-done { color: #8ee6b4; }
.mm-act-done:hover { color: #b9f3d2; }
.mm-open-tasks { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 99px; background: var(--accent); color: #2a1a00; font-size: .72rem; line-height: 18px; text-align: center; }
.mm-switch button[aria-pressed="true"] .mm-open-tasks { background: #fff; color: var(--brand-ink); }
.mm-open-tasks[hidden] { display: none; }

.mm-task-idea { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); font-weight: 500; white-space: pre-line; }
.mm-task-fields { display: grid; gap: 4px; }
.mm-task-fields[hidden] { display: none; }
.mm-who-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-who-row select { flex: 1; min-width: 180px; }
.mm-who-row .btn[hidden] { display: none; }
.mm-stand { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.mm-stand legend { font-weight: 500; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.mm-stand label { cursor: pointer; }
.mm-stand input { position: absolute; opacity: 0; pointer-events: none; }
.mm-stand span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--brand-line); font-size: .88rem; }
.mm-stand input:checked + span { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.mm-stand input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.mm-tasks .wrap { padding-top: 18px; }
.mm-task-sum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mm-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; display: grid; min-width: 92px; }
.mm-stat strong { font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.mm-stat span { font-size: .78rem; color: var(--muted); }
.mm-stat.ok strong { color: var(--ok); }
.mm-stat.warn { border-color: color-mix(in srgb, var(--accent) 60%, white); background: var(--accent-soft); }
.mm-stat.bad strong { color: var(--error); }
.mm-task-group { margin: 22px 0 8px; font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-task-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; padding: 10px 14px; }
.mm-task-row.late { border-color: #f0c7c4; border-left-color: var(--error); }
.mm-task-row.done .mm-task-title { text-decoration: line-through; color: var(--muted); }
.mm-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--brand-line); background: #fff; color: var(--ok); font: 700 1rem/1 var(--font); cursor: pointer; display: grid; place-items: center; padding: 0; }
.mm-check:hover:not(:disabled) { border-color: var(--ok); }
.mm-task-row.done .mm-check { background: #e3f4ea; border-color: var(--ok); }
.mm-check:disabled { cursor: default; }
.mm-task-main { display: grid; min-width: 0; }
.mm-task-title { white-space: pre-line; overflow-wrap: anywhere; }
.mm-task-meta { font-size: .78rem; color: var(--muted); }
.mm-task-row.late .mm-task-meta { color: var(--error); }
.mm-task-pill { display: inline-block; padding: 0 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.mm-task-pill.done { background: #e3f4ea; color: var(--ok); }
.mm-task-pill.late { background: #fbeceb; color: var(--error); }
@media (max-width: 700px) {
  .mm-task-row { grid-template-columns: auto 1fr; }
  .mm-task-row .mm-tree-btns { grid-column: 2; grid-row: auto; }
  .mm-switch button { padding: 6px 8px; font-size: .8rem; }
}
.mm-task-row .mm-tree-btns { grid-column: 3; grid-row: auto; }
.mm-check.arbeit { background: linear-gradient(90deg, var(--accent) 50%, #fff 50%); border-color: var(--accent); }
@media (max-width: 700px) { .mm-task-row .mm-tree-btns { grid-column: 2; } }
@media (max-width: 700px) {
  .mm-title { flex: 1 1 calc(100% - 56px); }
  .mm-tools { width: 100%; justify-content: space-between; }
  .mm-actions { max-width: calc(100% - 16px); flex-wrap: wrap; justify-content: center; }
  .mm-act[data-act="task"] span, .mm-act[data-act="done"] span { display: none; }
}

/* Neue Idee / neue Aufgabe / dazwischen einfügen */
.mm-act-addtask { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); padding: 0 12px 0 8px; margin-left: 2px; }
.mm-act-addtask:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.mm-kind { margin-top: -4px; }
.mm-kind span { padding: 8px 18px; font-weight: 500; }
.mm-kind input:checked + span { background: var(--accent); border-color: var(--accent); color: #2a1a00; }
.mm-add-task { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px 2px; }
.mm-add-task .field { margin-bottom: 10px; }
.mm-add-task select, .mm-add-task input { background: #fff; }
.mm-task-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.mm-task-top .btn[hidden] { display: none; }
@media (max-width: 700px) {
  .mm-act[data-act="insert"] span { display: none; }
  .mm-actions { gap: 0; }
  .mm-act { min-width: 38px; padding: 0 8px; }
}

/* Aufgaben-Export */
.mm-export { margin-top: 28px; padding: 16px 18px; background: #fff; border: 1px dashed var(--brand-line); border-radius: 14px; display: grid; gap: 8px; }
.print-page { background: #eef3f7; display: block; min-height: 0; }
.print-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.print-bar .filters { margin: 0; }
.print-sheet { width: min(210mm, 100% - 24px); margin: 20px auto 40px; background: #fff; padding: 14mm 14mm 10mm; box-shadow: var(--shadow); font-size: 10.5pt; line-height: 1.45; }
.print-head { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid var(--brand); padding-bottom: 10px; margin-bottom: 12px; }
.print-head img { width: auto; height: 48px; }
.print-head h1 { font-size: 17pt; margin: 0; font-weight: 500; }
.print-head p { margin: 2px 0 0; color: var(--muted); font-size: 9.5pt; }
.print-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 6px; font-size: 9.5pt; color: var(--muted); }
.print-stats strong { color: var(--ink); font-size: 12pt; }
.print-stats .warn strong { color: var(--warn); }
.print-stats .bad strong { color: var(--error); }
.print-group { margin-top: 16px; break-inside: avoid-page; }
.print-group h2 { font-size: 12.5pt; margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th { text-align: left; font-size: 8.5pt; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1.5px solid var(--ink); padding: 4px 6px; }
.print-table td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; }
.print-table tr { break-inside: avoid; }
.print-table .c-box { width: 22px; padding-right: 0; }
.print-table .c-date { width: 86px; white-space: nowrap; }
.print-table .c-stand { width: 78px; }
.print-table .box { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; font-size: 10px; line-height: 1; color: var(--ok); }
.print-table tr.done td:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.print-table tr.late .c-date { color: var(--error); font-weight: 500; }
.print-team { margin-top: 24px; }
.print-foot { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 8.5pt; color: var(--muted); }
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print { display: none !important; }
  .print-page { background: #fff; }
  .print-sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
  .print-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.print-table { table-layout: fixed; }
.print-group:not(.print-team) .print-table th:nth-child(2) { width: auto; }
.print-group:not(.print-team) .print-table th:nth-child(3) { width: 30%; }
.print-team .print-table th:nth-child(1) { width: 24%; }
.print-team .print-table th:nth-child(2) { width: 22%; }
.print-team .print-table th:nth-child(4) { width: 110px; }

/* Veranstaltungsvorschläge */
.vs-section { margin-top: 48px; }
.vs-section > .section-head { margin-bottom: 14px; }
.vs-new { padding: 16px 20px; }
.vs-new summary { list-style: none; cursor: pointer; }
.vs-new summary::-webkit-details-marker { display: none; }
.vs-new[open] summary { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.vs-list { display: grid; gap: 14px; }
.vs-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 20px 22px; margin: 0; border-left: 4px solid var(--accent); }
.vs-main h3 { margin: 0 0 2px; }
.vs-main .meta { margin: 0 0 8px; }
.vs-main .prose > :last-child { margin-bottom: 0; }
.vs-side { display: grid; gap: 6px; justify-items: center; align-content: start; }
.vs-vote { display: grid; justify-items: center; gap: 0; min-width: 104px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--brand-line); background: #fff; color: var(--brand-ink); font: 500 .8rem var(--font); cursor: pointer; }
.vs-vote:hover { background: var(--brand-soft); }
.vs-vote .vs-n { font-size: 1.5rem; line-height: 1.2; }
.vs-vote.is-on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.vs-decide { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.vs-decide summary { cursor: pointer; font-weight: 500; color: var(--brand-ink); font-size: .92rem; }
.vs-decide .form { margin-top: 10px; max-width: 640px; }
.vs-done { margin-top: 18px; }
.vs-done summary { cursor: pointer; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.vs-done .facts strong { min-width: 90px; }
@media (max-width: 640px) {
  .vs-card { grid-template-columns: 1fr; }
  .vs-side { grid-auto-flow: column; justify-content: start; align-items: center; }
}

/* Titel & Ämter */
.title-badge { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); border-radius: 99px; padding: 1px 10px; font-size: .78rem; font-weight: 500; line-height: 1.6; }
.mm-team-group li .title-badge { font-size: .7rem; vertical-align: 1px; }
.title-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 16px; }
.title-card { margin: 0; display: grid; align-content: start; gap: 6px; }
.title-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.title-card-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--tint); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: .78rem; }
.title-holders { margin: 8px 0 0; font-size: .88rem; border-top: 1px solid var(--line); padding-top: 8px; }
.title-filter { max-width: 320px; margin-bottom: 10px; }
.title-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; max-height: 320px; overflow-y: auto; padding: 4px; }
.title-members .check[hidden] { display: none; }
.title-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.title-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.title-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.title-opt input { margin-top: 4px; }
.title-opt span { display: grid; }
.title-opt small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.from-title[hidden] { display: none; }
.matrix td.c .y.y-title, .y.y-title { color: var(--accent); }

/* Mindmap: Vorschaubild, Zähler, Detail-Seitenleiste */
.mm-thumb { display: block; width: calc(100% + 28px); max-width: none; margin: -9px -14px 4px; height: 76px; object-fit: cover; border-radius: 12px 12px 0 0; pointer-events: none; }
.mm-branch .mm-thumb { width: calc(100% + 32px); margin: -11px -16px 6px; }
.mm-thumb[hidden] { display: none; }
.mm-node.has-thumb { min-width: 160px; }
.mm-badges { margin-left: auto; white-space: nowrap; color: var(--brand-ink); }
.mm-badges:empty { display: none; }

.mm-app { position: relative; }
.mm-panel-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mm-panel-sec:last-child { border-bottom: 0; }
.mm-panel-sec h3 { font-size: 1rem; margin: 0 0 10px; }
.mm-panel-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mm-panel-sec-head h3 { margin: 0; }
.mm-upload-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-upload-btns[hidden] { display: none; }
.mm-upload-btns label { cursor: pointer; }
.mm-upload-btns input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.mm-drop { margin: 10px 0 0; padding: 12px; border: 2px dashed var(--brand-line); border-radius: 12px; color: var(--muted); font-size: .84rem; text-align: center; }
.mm-drop[hidden] { display: none; }
.mm-drop.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.mm-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.mm-progress[hidden] { display: none; }
.mm-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .2s; }
.mm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.mm-gallery:empty { display: none; }
.mm-gallery figure { margin: 0; display: grid; gap: 3px; }
.mm-pic { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--tint); }
.mm-pic img { width: 100%; height: 100%; object-fit: cover; }
.mm-gallery figcaption { font-size: .7rem; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.mm-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mm-files li:not(.muted) { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mm-file-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-size: .68rem; font-weight: 700; }
.mm-file-main { display: grid; min-width: 0; flex: 1; }
.mm-file-main a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mm-del { color: var(--error); margin-left: auto; }
.mm-comments { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mm-comment { background: var(--tint); border-radius: 12px; padding: 8px 12px; }
.mm-comment.mine { background: var(--brand-soft); }
.mm-comment-head { display: flex; gap: 8px; align-items: baseline; font-size: .84rem; }
.mm-comment p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.45; }
.mm-comment-form { display: grid; gap: 8px; }
.mm-comment-form[hidden] { display: none; }
.mm-comment-form textarea { min-height: 64px; resize: vertical; }
.mm-comment-form .btn { justify-self: end; }
.mm-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.mm-lightbox::backdrop { background: rgba(8, 20, 32, .85); }
.mm-lightbox form { display: grid; gap: 10px; justify-items: center; }
.mm-lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 10px; cursor: zoom-out; }
.mm-lightbox-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; color: #fff; font-size: .9rem; }
.mm-lightbox-bar .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
@media (max-width: 700px) {
  .mm-act[data-act="details"] span { display: none; }
}
@media (pointer: coarse) { .mm-drop { display: none !important; } }

/* Dateibereich */
.dok-search { max-width: 280px; }
.dok-tabs { margin: 0 0 14px; }
.dok-hint { margin: 0 0 16px; }
.dok-upload { padding: 16px 20px; }
.dok-upload summary { list-style: none; cursor: pointer; }
.dok-upload summary::-webkit-details-marker { display: none; }
.dok-upload[open] summary { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.dok-folders { display: grid; gap: 16px; }
.dok-folder { margin: 0; }
.dok-folder[hidden] { display: none; }
.dok-folder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dok-folder-head h2 { margin: 0; }
.dok-manage { font-size: .88rem; }
.dok-manage[open] { flex-basis: 100%; display: grid; gap: 8px; padding: 10px 12px; background: var(--tint); border-radius: 12px; }
.dok-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dok-inline input { width: auto; flex: 1; min-width: 160px; }
.dok-newfolder { margin-top: 18px; max-width: 520px; }
.dok-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dok-item { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.dok-item:first-child { border-top: 0; }
.dok-item[hidden] { display: none; }
.dok-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.dok-ic { width: 40px; height: 40px; }
.dok-pdf { background: #fdecea; color: #b3261e; }
.dok-docx, .dok-doc, .dok-odt, .dok-rtf { background: #e7f0fe; color: #1a56c4; }
.dok-xlsx, .dok-xls, .dok-ods, .dok-csv { background: #e5f5ec; color: #1f7a4a; }
.dok-pptx, .dok-ppt, .dok-odp { background: #fff1e5; color: #b4540a; }
.dok-main { display: grid; min-width: 0; }
.dok-title { font-weight: 500; overflow-wrap: anywhere; }
.dok-desc { font-size: .88rem; color: var(--muted); }
.dok-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dok-edit { grid-column: 2 / -1; }
.dok-edit[open] { padding: 10px 12px; background: var(--tint); border-radius: 12px; }
.dok-edit .form { margin-top: 8px; }
@media (max-width: 640px) {
  .dok-item { grid-template-columns: auto 1fr; }
  .dok-actions { grid-column: 2; justify-content: flex-start; }
  .dok-search { max-width: none; width: 100%; }
}

/* Überbegriffe */
.mm-kind-hint { margin: -4px 0 0; min-height: 1.4em; }
.mm-node.mm-branch .mm-text::before { content: "🗂 "; font-size: .85em; }
.mm-tree-row.is-cat { background: color-mix(in srgb, var(--c) 10%, white); font-weight: 500; }
.mm-counts { white-space: nowrap; }
.dok-main .tag { justify-self: start; }
.dok-inline input[type=number] { flex: none; }
@media (max-width: 640px) {
  .member-nav .wrap { flex-wrap: wrap; gap: 0 2px; }
  .member-nav a { padding: 9px 10px; font-size: .86rem; }
}

/* Beiträge & Kasse */
.beitrag-box { margin: 6px 0 10px; }
.satz-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sepa-box { margin-top: 14px; padding: 14px 16px 4px; border-radius: 14px; background: var(--brand-soft); }
.sepa-box[hidden] { display: none; }
.sepa-box input { background: #fff; }
.mandat-text { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; line-height: 1.5; color: var(--muted); }
.mandat-text strong { color: var(--ink); }
.bank-edit { margin-top: 12px; }
.kasse-tabs { margin: 0 0 18px; }
.kasse-callout { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.kasse-act summary { cursor: pointer; }
.kasse-act[open] { min-width: 320px; }
.kasse-act-body { display: grid; gap: 8px; margin-top: 8px; padding: 10px; background: var(--tint); border-radius: 12px; }
.kasse-act-body input[type=text], .kasse-act-body input[type=date] { width: auto; min-width: 0; padding: 6px 10px; font-size: .88rem; }
.kasse-fees { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kasse-fees li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kasse-fee-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kasse-mandat { background: #e3f4ea; color: var(--ok); border-radius: 10px; padding: 8px 12px; margin: 0; }
.kasse-saetze input[type=text] { width: 100%; padding: 6px 10px; }
.kasse-saetze td.c { text-align: center; }
.kasse-detail { align-items: start; }
.kasse-settings .card { margin-bottom: 16px; }

/* Mindmap: große Ansicht eines Eintrags */
.mm-detail { --c: var(--brand); border: 0; padding: 0; border-radius: 22px; width: min(1080px, calc(100% - 32px)); height: min(820px, calc(100dvh - 32px)); max-width: none; max-height: none; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(10, 40, 70, .3); overflow: hidden; }
.mm-detail[open] { display: flex; flex-direction: column; }
.mm-detail::backdrop { background: rgba(16, 40, 61, .5); }
.mm-detail-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 18px 18px 14px 26px; border-bottom: 1px solid var(--line); border-top: 6px solid var(--c); }
.mm-detail-headmain { min-width: 0; flex: 1; }
.mm-crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 4px; overflow-wrap: anywhere; }
.mm-crumbs .linkish { color: var(--muted); }
.mm-crumbs .linkish:hover { color: var(--brand-ink); }
.mm-detail-titlerow { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.mm-detail-titlerow h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; flex: 1 1 260px; }
.mm-kind-badge { flex: none; font-size: .78rem; font-weight: 500; padding: 3px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; position: relative; top: -3px; }
.mm-kind-badge[data-kind="aufgabe"] { background: #e6f4ec; color: var(--ok); }
.mm-kind-badge[data-kind="kategorie"] { background: var(--accent-soft); color: var(--accent-ink); }
.mm-detail-head .meta { margin: 4px 0 0; }
.mm-detail-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.mm-detail-main, .mm-detail-side { padding: 6px 26px 24px; min-width: 0; }
.mm-detail-side { background: var(--tint); border-left: 1px solid var(--line); }
.mm-panel-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mm-detail-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); background: #fff; }
.mm-detail-foot .mm-spacer { flex: 1; }
.mm-detail-foot [aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.mm-danger { color: var(--error) !important; }
.mm-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); }
.mm-seg button { border: 0; background: transparent; font: inherit; font-size: .92rem; padding: 7px 14px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.mm-seg button:hover:not(:disabled) { background: #fff; }
.mm-seg button[aria-pressed="true"] { background: #fff; color: var(--brand-ink); font-weight: 500; box-shadow: 0 1px 3px rgba(10, 40, 70, .15); }
.mm-seg button:disabled:not([aria-pressed="true"]) { opacity: .45; cursor: default; }
.mm-seg-stand button[data-s="erledigt"][aria-pressed="true"] { color: var(--ok); }
.mm-seg-stand button[data-s="arbeit"][aria-pressed="true"] { color: var(--accent-ink); }
.mm-panel-sec .small.muted { margin: 8px 0 0; }
.mm-dgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.mm-dfield { display: grid; gap: 4px; margin-bottom: 10px; }
.mm-dfield > span { font-size: .85rem; font-weight: 500; }
.mm-dfield select, .mm-dfield input { width: 100%; }
[data-d-me] { margin: -4px 0 12px; }
.mm-late { color: var(--error); margin: 8px 0 0; font-weight: 500; }
.mm-kids { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.mm-kid { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 0 8px; align-items: start; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.mm-kid:hover { border-color: var(--brand-line); border-left-color: var(--c, var(--brand)); background: var(--tint); }
.mm-kid-ic { grid-row: span 2; font-size: 1rem; line-height: 1.5; text-align: center; color: var(--muted); }
.mm-kid-text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; }
.mm-kid-meta { font-size: .8rem; color: var(--muted); }
.mm-kid-meta.late { color: var(--error); }
.mm-kid.done .mm-kid-text { text-decoration: line-through; color: var(--muted); }
.mm-kids-add { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-kids-add[hidden] { display: none; }
@media (max-width: 760px) {
  .mm-detail { width: 100%; height: 100dvh; border-radius: 0; }
  .mm-detail-body { grid-template-columns: 1fr; }
  .mm-detail-side { border-left: 0; border-top: 1px solid var(--line); }
  .mm-detail-head { padding: 14px 10px 12px 16px; }
  .mm-detail-main, .mm-detail-side { padding: 4px 16px 18px; }
  .mm-detail-foot { padding: 10px 12px; }
  .mm-detail-foot .mm-spacer, .mm-detail-foot .mm-foot-close { display: none; }
  .mm-detail-foot { gap: 6px; }
  .mm-detail-foot .btn { padding: 8px 12px; font-size: .86rem; }
  .mm-dgrid { grid-template-columns: 1fr; gap: 0; }
}

/* Mindmap: Arten optisch trennen */
.mm-node.is-idea { border-style: dashed; border-radius: 18px; }
.mm-node.is-idea .mm-text::before { content: "💡 "; font-size: .85em; }
.mm-node.is-task { border-radius: 6px; border-left-width: 7px; background: #fff; }
.mm-node.mm-branch { border-radius: 999px; border-width: 3px; padding: 11px 20px 9px; background: color-mix(in srgb, var(--c) 20%, white); letter-spacing: .01em; }
.mm-node.mm-branch .mm-meta { justify-content: center; gap: 8px; }
.mm-node.mm-branch .mm-text { text-align: center; }
.mm-legend { position: absolute; left: 12px; top: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; font-size: .74rem; }
.mm-legend .lg { background: #fff; border: 2px solid var(--brand-line); padding: 2px 9px; line-height: 1.5; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 40, 70, .06); }
.mm-legend .lg-cat { border-radius: 99px; border-width: 2.5px; background: var(--brand-soft); font-weight: 500; }
.mm-legend .lg-idee { border-style: dashed; border-radius: 12px; }
.mm-legend .lg-task { border-radius: 4px; border-left-width: 5px; }
.mm-legend .lg-note { background: #fff6cc; border: 1px solid #e9d27a; border-radius: 3px 10px 10px 10px; }
.mm-app.notes-off .mm-legend .lg-note { opacity: .45; text-decoration: line-through; }
.mm-app.is-list .mm-legend { display: none; }
.mm-notes-btn[aria-pressed="false"] { opacity: .5; }
.mm-notes-btn[aria-pressed="true"] { background: #fff6cc; }

/* Kommentare als Notizzettel */
.mm-note {
  --c: var(--brand);
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  display: grid; gap: 1px; width: max-content; max-width: 170px; min-width: 70px;
  padding: 5px 9px 6px; border: 1px solid #e9d27a; border-left: 3px solid color-mix(in srgb, var(--c) 60%, #e9d27a);
  border-radius: 3px 12px 12px 12px; background: #fff6cc; color: #3b3320;
  font: 400 .72rem/1.35 var(--font); text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 45, 0, .08), 0 3px 8px rgba(60, 45, 0, .08);
}
.mm-note:hover { box-shadow: 0 2px 4px rgba(60, 45, 0, .12), 0 6px 16px rgba(60, 45, 0, .14); z-index: 2; }
.mm-note:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mm-note.is-drag { cursor: grabbing; z-index: 4; box-shadow: 0 10px 24px rgba(60, 45, 0, .22); }
.mm-note-a { font-weight: 600; font-size: .66rem; color: #7a5b00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-note-a::before { content: "💬 "; }
.mm-note-t { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mm-comment.is-focus { animation: mm-flash 1.6s ease-out 1; }
@keyframes mm-flash { 0%, 30% { background: #fff1a8; } 100% { background: inherit; } }
@media (max-width: 700px) {
  .mm-legend { font-size: .66rem; gap: 4px; left: 8px; top: 6px; }
  .mm-legend .lg { padding: 1px 6px; }
  .mm-note { max-width: 140px; }
}
.mm-kind label:has(input:disabled) { opacity: .4; cursor: not-allowed; }

/* Fotos & Dateien als Vorschau-Kärtchen in der Mindmap */
.mm-app:not(.notes-off) .mm-node .mm-thumb { display: none; }
.mm-app:not(.notes-off) .mm-node.has-thumb { min-width: 96px; }
.mm-legend .lg-file { border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.mm-app.notes-off .mm-legend .lg-file { opacity: .45; text-decoration: line-through; }
.mm-fcard {
  --c: var(--brand);
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  display: grid; gap: 4px; justify-items: center; width: 132px; padding: 5px 5px 6px;
  border: 1px solid var(--line); border-bottom: 3px solid color-mix(in srgb, var(--c) 55%, var(--line)); border-radius: 10px; background: #fff;
  font: 400 .68rem/1.3 var(--font); color: var(--ink); cursor: pointer; text-align: center;
  box-shadow: 0 1px 2px rgba(10, 40, 70, .08), 0 4px 10px rgba(10, 40, 70, .08);
}
.mm-fcard:hover { box-shadow: 0 2px 4px rgba(10, 40, 70, .12), 0 8px 18px rgba(10, 40, 70, .16); z-index: 2; }
.mm-fcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mm-fcard.is-drag { cursor: grabbing; z-index: 4; box-shadow: 0 10px 24px rgba(10, 40, 70, .25); }
.mm-fcard-pv { display: grid; place-items: center; width: 120px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--tint); }
.mm-fcard-pv img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mm-fcard.is-page .mm-fcard-pv { width: 72px; height: 96px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mm-fcard.is-page .mm-fcard-pv img { object-fit: contain; object-position: top; }
.mm-fcard.is-pic { padding-bottom: 5px; }
.mm-fcard.is-pic .mm-fcard-n { display: none; }
.mm-fcard.is-text .mm-fcard-pv { place-items: start; height: 74px; padding: 5px 6px; background: #fbfcfd; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.mm-fcard-txt { font: 400 .58rem/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; overflow: hidden; color: #3c4650; max-height: 100%; }
.mm-fcard.is-icon .mm-fcard-pv { width: 120px; height: 58px; }
.mm-fcard-ic { display: grid; place-items: center; min-width: 40px; height: 44px; padding: 0 6px; border-radius: 6px; color: #fff; font: 700 .8rem var(--font); letter-spacing: .02em; }
.mm-fcard-n { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .mm-fcard { width: 112px; } .mm-fcard-pv { width: 100px; height: 70px; } .mm-fcard.is-icon .mm-fcard-pv { width: 100px; } }
.mm-node.is-owner { outline: 3px solid color-mix(in srgb, var(--c) 60%, transparent); outline-offset: 4px; z-index: 2; }

/* Mehrere Zuständige: Namen zum Anklicken */
.mm-who-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-who-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: .88rem; line-height: 1.25; }
.mm-who-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-ink); }
.mm-who-chip small { display: block; font-size: .72rem; color: var(--muted); }
.mm-who-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mm-who-chip.is-me { border-style: dashed; }
.mm-who-chip.is-me:has(input:checked) { border-style: solid; }
.mm-who-chip:has(input:disabled) { cursor: default; opacity: .85; }
.mm-who-chip:has(input:disabled:not(:checked)) { opacity: .5; }
.label-like { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.mm-add-files, .mm-edit-attach { display: grid; gap: 8px; }
.mm-add-files[hidden], .mm-edit-attach[hidden], [data-attach-kind][hidden] { display: none !important; }
.mm-edit-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-edit-attach label { cursor: pointer; }
.mm-add-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mm-kind { flex-wrap: wrap; }
.mm-dgrid > .mm-dfield:has(.mm-who-pick) { grid-column: 1 / -1; }
.mm-add-files.is-over { outline: 2px dashed var(--brand); outline-offset: 6px; border-radius: 10px; }

/* =================== Mindmap: Werkzeuge, Bewegung, Übersicht =================== */
.mm-node.has-sym .mm-text::before { content: none !important; }
.mm-sym { margin-right: 4px; }
.mm-sym[hidden] { display: none; }
/* weiches Erscheinen und lebendigeres Verhalten */
.mm-node { transition: box-shadow .18s, opacity .25s, filter .25s, outline-color .2s; }
.mm-node:hover:not(.is-drag) { box-shadow: 0 3px 6px rgba(10, 40, 70, .1), 0 12px 26px rgba(10, 40, 70, .14); }
.mm-node.is-drag { transform: translate(-50%, -50%) scale(1.05) rotate(-1deg); }
.mm-node.is-born { animation: mm-born .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes mm-born { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.mm-node.is-flash { animation: mm-flash-node 1.2s ease-out; }
@keyframes mm-flash-node { 0%, 40% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.mm-node.is-gone { display: none; }
.mm-edges path { transition: opacity .25s; }
.mm-edges path.is-path { opacity: 1; filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 30%, transparent)); }
.mm-edges path.is-dim { opacity: .12; }
@media (prefers-reduced-motion: reduce) { .mm-node, .mm-node.is-born, .mm-node.is-flash { animation: none; transition: none; } }

/* Abdunkeln bei Suche/Filter/Fokus */
.mm-node.is-dim, .mm-note.is-dim, .mm-fcard.is-dim, .mm-fold.is-dim { opacity: .16; filter: saturate(.3); }
.mm-node.is-ctx { opacity: .55; }
.mm-node.is-hit { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Priorität */
.mm-node.prio-1::before, .mm-node.prio-2::before { position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--font); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.mm-node.prio-1::before { content: "!"; background: var(--accent); color: #2a1a00; }
.mm-node.prio-2::before { content: "!!"; background: var(--error); font-size: .7rem; }
/* wer hat den Eintrag gerade offen */
.mm-node.is-busy { outline: 2px dashed #9c36b5; outline-offset: 4px; }
.mm-node.is-busy::after { content: attr(data-busy); position: absolute; top: auto; bottom: calc(100% + 6px); right: auto; left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; height: auto; border: 0; border-radius: 99px; padding: 1px 8px; background: #9c36b5; color: #fff; font: 500 .66rem/1.6 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: none; }

/* Fortschritt an Ästen */
.mm-prog { display: flex; align-items: center; gap: 6px; font-size: .66rem; color: var(--muted); }
.mm-prog[hidden] { display: none; }
.mm-prog i { flex: 1; min-width: 40px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, #eef2f6); overflow: hidden; position: relative; }
.mm-prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--ok); border-radius: inherit; transition: width .5s; }
.mm-prog b { font-weight: 600; white-space: nowrap; }
.mm-node.is-complete .mm-prog b { color: var(--ok); }
.mm-node.is-complete .mm-prog b::before { content: "✓ "; }

/* Ein-/Ausklappen */
.mm-fold { --c: var(--brand); position: absolute; z-index: 2; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; border: 2px solid var(--c); background: #fff; color: var(--ink); font: 700 .72rem/1 var(--font); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(10, 40, 70, .15); opacity: .75; transition: opacity .15s, transform .15s; }
.mm-fold:hover, .mm-fold:focus-visible, .mm-fold.is-folded { opacity: 1; }
.mm-fold:hover { transform: translate(-50%, -50%) scale(1.15); }
.mm-fold.is-folded { background: var(--c); color: #fff; }

/* Werkzeugleiste in der Karte */
.mm-bar { position: absolute; top: 10px; right: 12px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: calc(100% - 24px); pointer-events: none; }
.mm-bar > * { pointer-events: auto; }
.mm-bar-group { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.mm-bar-group .icon-btn { width: 36px; height: 36px; }
.mm-bar-group .icon-btn svg { width: 20px; height: 20px; }
.mm-bar-group .icon-btn:disabled { opacity: .35; cursor: default; }
.mm-bar-group .icon-btn[aria-pressed="false"] { opacity: .55; }
.mm-search { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.mm-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.mm-search input { border: 0; padding: 0; width: 150px; height: 36px; font: inherit; font-size: .9rem; background: transparent; outline: none; box-shadow: none; }
.mm-search b { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.mm-bar select { height: 42px; border: 0; border-radius: 12px; box-shadow: var(--shadow); padding: 0 32px 0 12px; font-size: .88rem; background-color: #fff; width: auto; max-width: 210px; }
.mm-bar select.is-on { background-color: var(--accent-soft); font-weight: 500; }
.mm-focus-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--accent); color: #2a1a00; font-size: .85rem; font-weight: 500; box-shadow: var(--shadow); }
.mm-focus-chip[hidden] { display: none; }
.mm-focus-chip .linkish { color: #2a1a00; text-decoration: none; font-weight: 700; }
.mm-legend { top: 14px; bottom: auto; }
.mm-app.is-list .mm-bar, .mm-app.is-list .mm-minimap { display: none; }

/* Übersichtskarte */
.mm-minimap { position: absolute; left: 12px; bottom: 12px; z-index: 3; width: 200px; height: 130px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); cursor: crosshair; touch-action: none; }
.mm-minimap[hidden] { display: none; }

/* Präsentieren */
.mm-present-bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; background: #10283d; color: #fff; border-radius: 99px; box-shadow: 0 10px 30px rgba(10, 40, 70, .35); max-width: calc(100% - 24px); }
.mm-present-bar[hidden] { display: none; }
.mm-present-bar .icon-btn { color: #fff; }
.mm-present-bar .icon-btn:disabled { opacity: .3; }
.mm-present-bar [data-present-title] { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mm-present-bar .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.mm-app.is-presenting .mm-bar, .mm-app.is-presenting .mm-zoom, .mm-app.is-presenting .mm-legend, .mm-app.is-presenting .mm-hint, .mm-app.is-presenting .mm-joinbar, .mm-app.is-presenting .mm-fold { display: none !important; }
.mm-app.is-presenting .mm-node { font-size: 1.02rem; }
.mm-app:fullscreen { background: var(--tint); }
.mm-app:fullscreen .mm-canvas { height: 100vh; }

/* Live: wer ist da */
.mm-online { display: inline-flex; align-items: center; padding-left: 4px; }
.mm-online[hidden] { display: none; }
.mm-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-left: -8px; border: 2px solid #fff; color: #fff; font: 600 .7rem var(--font); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); animation: mm-av-in .35s ease-out; }
.mm-av-more { background: var(--muted); }
@keyframes mm-av-in { from { transform: scale(.4); opacity: 0; } }
.mm-also { margin: 4px 0 0; color: #9c36b5; font-weight: 500; }
.mm-also[hidden] { display: none; }

/* Symbol & Priorität in der großen Ansicht */
.mm-emoji { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.mm-emoji button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; padding: 0; }
.mm-emoji button:hover:not(:disabled) { background: var(--tint); transform: scale(1.08); }
.mm-emoji button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-line); }
.mm-emoji button:disabled { opacity: .5; cursor: default; }
.mm-seg-prio button[data-p="1"][aria-pressed="true"] { color: var(--accent-ink); }
.mm-seg-prio button[data-p="2"][aria-pressed="true"] { color: var(--error); }
.mm-tpl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-tpl-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mm-tpl-list li > span { flex: 1; min-width: 0; }

@media (max-width: 1250px) {
  .mm-legend { display: none; }
}
@media (max-width: 700px) {
  .mm-bar { top: 6px; right: 6px; left: 6px; max-width: none; gap: 4px; }
  .mm-search { flex: 1 1 140px; height: 38px; }
  .mm-search input { width: 100%; }
  .mm-bar select { height: 38px; max-width: 150px; font-size: .8rem; }
  .mm-bar-group .icon-btn { width: 32px; height: 32px; }
  .mm-minimap, [data-minimap-toggle] { display: none !important; }
  .mm-online .mm-av { width: 26px; height: 26px; font-size: .62rem; }
}
@media (min-width: 701px) { .mm-canvas:has(.mm-minimap:not([hidden])) .mm-hint { left: 224px; } }

/* Fördermitglieder & eigener Beitrag */
.mm-passiv-note { display: grid; gap: 10px; justify-items: start; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: .92rem; }
.mm-passiv-note[hidden] { display: none; }
.eigen-betrag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .9rem; white-space: nowrap; }
.eigen-betrag[hidden] { display: none; }
.eigen-betrag input { width: 110px; padding: 6px 10px; }

/* Barkasse */
.bk-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--ok); border-radius: var(--radius); box-shadow: var(--shadow); }
.bk-saldo { display: grid; }
.bk-saldo .l { font-size: .85rem; color: var(--muted); }
.bk-saldo .n { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.bk-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.bk-in { background: var(--ok); }
.btn.bk-out { background: var(--error); }
.bk-filter select { width: auto; }
.bk-table td.r, .bk-table th.r, .bk-print .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-table .bk-nr { color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-in-t { color: var(--ok); font-weight: 500; }
.bk-out-t { color: var(--error); font-weight: 500; }
.bk-table tr.bk-carry td { background: var(--tint); }
.bk-table tr.is-storno td, .bk-table tr.is-gegen td { color: var(--muted); }
.bk-table tr.is-storno td:nth-child(3) { text-decoration: line-through; }
.bk-table tfoot td { border-top: 2px solid var(--line); }
.bk-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.bk-beleg-add label { cursor: pointer; }
.bk-storno summary { cursor: pointer; list-style: none; }
.bk-storno[open] form { display: grid; gap: 6px; margin-top: 6px; min-width: 220px; }
.bk-form { max-width: 640px; }
.bk-art { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-art label { cursor: pointer; }
.bk-art input { position: absolute; opacity: 0; pointer-events: none; }
.bk-art span { display: block; text-align: center; padding: 14px; border-radius: 12px; border: 2px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.bk-art-in input:checked + span { border-color: var(--ok); background: #e6f4ec; color: var(--ok); }
.bk-art-out input:checked + span { border-color: var(--error); background: #fbeceb; color: var(--error); }
.bk-art input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-betrag { display: flex; align-items: center; gap: 8px; }
.bk-betrag input { font-size: 1.6rem; font-weight: 600; text-align: right; padding: 8px 12px; }
.bk-betrag span { font-size: 1.4rem; font-weight: 600; color: var(--muted); }
.bk-form.is-aus .bk-betrag input { color: var(--error); }
.bk-form:not(.is-aus) .bk-betrag input { color: var(--ok); }
.bk-beleg { display: flex; align-items: center; justify-content: center; padding: 16px; border: 2px dashed var(--brand-line); border-radius: 12px; background: var(--tint); cursor: pointer; font-weight: 500; color: var(--brand-ink); }
.bk-beleg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-beleg:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.bk-coins label { display: grid; grid-template-columns: 50px minmax(60px, 1fr) 64px; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; background: var(--tint); font-size: .85rem; }
.bk-coins label.is-note { background: #eef6ee; }
.bk-coins label span { font-weight: 600; }
.bk-coins input { padding: 5px 6px; text-align: right; min-width: 0; }
.bk-coins b { font-weight: 400; color: var(--muted); font-size: .78rem; text-align: right; }
.bk-count-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-count-sum div { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--tint); }
.bk-count-sum span { font-size: .8rem; color: var(--muted); }
.bk-count-sum strong { font-size: 1.2rem; }
.bk-count-sum .ok { color: var(--ok); }
.bk-count-sum .bad { color: var(--error); }
.bk-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 140px; padding-top: 6px; }
.bk-bar { display: flex; gap: 2px; align-items: flex-end; height: 100%; position: relative; padding-bottom: 18px; }
.bk-bar span { flex: 1; border-radius: 3px 3px 0 0; min-height: 1px; }
.bk-bar .in, .bk-key.in { background: var(--ok); }
.bk-bar .out, .bk-key.out { background: var(--error); opacity: .8; }
.bk-bar small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .66rem; color: var(--muted); }
.bk-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.bk-kasse-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bk-kasse-row:last-child { border-bottom: 0; }
.bk-print td, .bk-print th { font-size: 9.5pt; }
.bk-print tr.bk-sum td { border-top: 2px solid #333; }
.bk-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; font-size: 9pt; color: #555; }
.bk-sign span { display: block; border-bottom: 1px solid #333; height: 36px; margin-bottom: 4px; }
@media (max-width: 700px) {
  .bk-head { padding: 14px; }
  .bk-quick { width: 100%; }
  .bk-quick .btn { flex: 1; }
  .bk-table th:nth-child(1), .bk-table td:nth-child(1) { display: none; }
  .bk-count-sum { grid-template-columns: 1fr; }
}
.bk-form, .bk-form > *, .bk-form .grid-2 > *, .bk-count-grid > * { min-width: 0; }
.bk-form select, .bk-form input:not([type=radio]):not([type=checkbox]) { min-width: 0; max-width: 100%; }
.bk-betrag input { flex: 1; width: 100%; }
.bk-reset { margin: -6px 0 16px; }
.bk-reset form { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #fdf3f2; border: 1px solid #f3d3cf; }

/* ---------- Verwaltung: Übersicht ---------- */
.dash { padding-block: 34px 56px; display: grid; gap: 22px; }
.dash > .flash { margin: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; }
.dash-date { margin: 0 0 2px; color: var(--muted); font-size: .9rem; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-qa { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; box-shadow: 0 1px 2px rgba(10,40,70,.05); transition: border-color .15s, color .15s, transform .15s; }
.dash-qa::before { content: "+"; font-weight: 600; color: var(--brand-ink); margin-right: -2px; }
.dash-qa:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-1px); }
.dash-qa .an-ico { width: 17px; height: 17px; color: var(--brand-ink); }

.dash-todo { border-radius: var(--radius); padding: 18px 22px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, white); }
.dash-todo h2 { margin: 0 0 10px; }
.dash-todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-todo li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; background: #fff; border-radius: 12px; }
.dash-ti { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.dash-tt { line-height: 1.35; }
.dash-tt strong { font-size: 1.05rem; }
.dash-todo.is-done { background: #eef7f1; border-color: #cfe7d8; }
.dash-todo.is-done h2 { color: var(--ok); margin-bottom: 2px; }
.dash-todo.is-done p { margin: 0; color: var(--muted); }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dash-kpis a { display: grid; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.dash-kpis a:hover { border-color: var(--brand-line); box-shadow: var(--shadow); color: var(--ink); }
.dash-kpis strong { font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.dash-kpis span { color: var(--muted); font-size: .84rem; line-height: 1.35; }

.dash-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.dash-col { display: grid; gap: 22px; min-width: 0; }
.dash-card { padding: 20px 22px; }
.dash-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-ch h2 { margin: 0; }
.dash-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 20px 0 6px; }

.dash-plan { display: grid; gap: 8px; }
.dash-pl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--tint); text-decoration: none; color: var(--ink); transition: background .15s; }
.dash-pl:hover { background: var(--brand-soft); color: var(--ink); }
.dash-pt { display: grid; line-height: 1.3; }
.dash-pt small, .dash-tasks small, .dash-events small, .dash-list small { color: var(--muted); font-size: .8rem; display: block; line-height: 1.4; }
.dash-pn { font-size: .82rem; color: var(--muted); align-self: center; text-align: right; }
.dash-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #fff; overflow: hidden; }
.dash-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--ok)); }
.dash-free { color: var(--accent-ink); font-weight: 500; }

.dash-tasks, .dash-events, .dash-list { list-style: none; margin: 0; padding: 0; }
.dash-tasks li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.dash-tasks li:first-child { border-top: 0; }
.dash-tasks a { color: var(--ink); text-decoration: none; font-weight: 500; }
.dash-tasks a:hover { color: var(--brand-ink); text-decoration: underline; }
.dash-due { font-size: .82rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 8px; text-align: center; padding: 3px 0; align-self: start; }
.dash-tasks .is-late .dash-due { background: #fdecea; color: var(--error); }
.dash-tasks .is-late small { color: var(--error); }

.dash-events li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.dash-events li:first-child { border-top: 0; }
.dash-cal { display: grid; place-items: center; width: 48px; height: 50px; border-radius: 12px; background: var(--brand-ink); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; }
.dash-cal b { font-size: 1.2rem; letter-spacing: 0; }
.dash-events a { color: var(--ink); font-weight: 500; text-decoration: none; }
.dash-events a:hover { color: var(--brand-ink); text-decoration: underline; }
.dash-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.dash-list li:first-child { border-top: 0; }

.dash-rights summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; list-style: none; }
.dash-rights summary::-webkit-details-marker { display: none; }
.dash-rights summary .h3 { margin: 0; }
.dash-rights summary::after { content: "▾"; color: var(--muted); margin-left: 8px; }
.dash-rights[open] summary::after { content: "▴"; }
.dash-rights[open] summary { margin-bottom: 10px; }
.dash-rights .small.muted { margin-left: auto; }

@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .dash { padding-block: 22px 40px; gap: 16px; }
  .dash-todo { padding: 14px; }
  .dash-todo li { grid-template-columns: 34px 1fr; }
  .dash-todo li .btn { grid-column: 2; justify-self: start; }
  .dash-ti { width: 34px; height: 34px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-kpis a { padding: 12px 14px; }
  .dash-kpis strong { font-size: 1.3rem; }
  .dash-card { padding: 16px; }
  .dash-pl { grid-template-columns: 1fr; }
  .dash-pn { text-align: left; }
}
.dash-ch a { white-space: nowrap; }
.dash-push-pref .check { margin: 0; }

/* ---------- Gestaltbare Übersicht (Bereiche) ---------- */
.dw-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 -8px; }
.dw-bar .an-ico { width: 16px; height: 16px; }
.dw-bar [data-dw-edit] { display: inline-flex; align-items: center; gap: 7px; }
.dw-editbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 8px 10px 8px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); width: 100%; }
.dw-editbar .small { margin-right: auto; }
.dw-add { border-radius: var(--radius); background: #fff; border: 1px dashed var(--brand-line); padding: 16px 18px; }
.dw-add h2 { margin: 0 0 8px; }
.dw-add ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.dw-add li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--tint); }
.dw-add li[hidden] { display: none; }
.dw-add-btns { display: flex; gap: 4px; }
.dw-add-btns .btn { padding: 4px 9px; font-size: .78rem; }

.dw-board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: start; }
.dw-zone { display: grid; gap: 22px; min-width: 0; align-content: start; }
.dw-zone-oben { grid-column: 1 / -1; }
.dw-zone.is-empty { gap: 0; }
.dw-drop-hint { display: none; margin: 0; padding: 16px; border: 2px dashed var(--brand-line); border-radius: 14px; text-align: center; color: var(--muted); font-size: .85rem; }
.dw-editing .dw-zone.is-empty .dw-drop-hint, .dw-editing .dw-zone.is-over .dw-drop-hint { display: block; }
.dw-editing .dw-zone { min-height: 60px; border-radius: 18px; outline: 2px dashed transparent; outline-offset: 6px; transition: outline-color .15s; }
.dw-editing .dw-zone.is-over { outline-color: var(--brand-line); }

.dw { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; scroll-margin-top: 150px; }
.dw-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0 20px; }
.dw-h h2 { margin: 0; font-size: 1.05rem; flex: 1; min-width: 0; }
.dw-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); }
.dw-ico .an-ico { width: 17px; height: 17px; }
.dw-link { white-space: nowrap; }
.dw-tools { display: flex; gap: 2px; margin-left: 2px; }
.dw-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .95rem; }
.dw-btn:hover, .dw-btn:focus-visible { background: var(--tint); color: var(--ink); }
.dw-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dw.is-min .dw-min svg { transform: rotate(-90deg); }
.dw-edit-only, .dw-grip { display: none; }
.dw-editing .dw-edit-only { display: grid; }
.dw-editing .dw-grip { display: block; cursor: grab; color: var(--muted); letter-spacing: -3px; font-weight: 700; margin-left: -8px; user-select: none; }
.dw-editing .dw { box-shadow: 0 0 0 2px var(--brand-line), var(--shadow); }
.dw-editing .dw-link { display: none; }
.dw.is-drag { opacity: .45; }
.dw-b { padding: 12px 20px 20px; }
.dw.is-min .dw-b { display: none; }
.dw.is-min .dw-h { padding-bottom: 14px; }
@keyframes dw-moved { from { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } to { box-shadow: 0 0 0 0 transparent, var(--shadow); } }
.dw-moved { animation: dw-moved 1s ease-out; }
.dw-editing .dw-moved { animation: none; }

.dw-empty { margin: 0; }
.dw-done { margin: 0; color: var(--ok); font-weight: 500; }
.dw-warn { margin: 0; color: var(--error); }
#w-todo { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, white); box-shadow: none; }
#w-todo .dw-ico { background: #fff; color: var(--accent-ink); }
.dash-todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-todo-list li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 8px; background: #fff; border-radius: 12px; }
#w-zahlen { background: transparent; border: 0; box-shadow: none; }
#w-zahlen .dw-h { padding-left: 0; padding-right: 0; }
#w-zahlen .dw-b { padding: 10px 0 0; }
.dw-editing #w-zahlen { background: #fff; border: 1px solid var(--line); }
.dw-editing #w-zahlen .dw-h, .dw-editing #w-zahlen .dw-b { padding-left: 20px; padding-right: 14px; }
.dw-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dw-money div { display: grid; padding: 10px 14px; border-radius: 12px; background: var(--tint); }
.dw-money strong { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.dw-money span { font-size: .8rem; color: var(--muted); }
.dash-bar.dw-progress { display: block; margin-top: 10px; background: var(--tint); }
.dw-plus { color: var(--ok); font-weight: 600; white-space: nowrap; }
.dw-minus { color: var(--error); font-weight: 600; white-space: nowrap; }
.dw-posts { display: grid; gap: 14px; }
.dw-posts .post-card { box-shadow: none; }
.dw-note { width: 100%; min-height: 120px; resize: vertical; background: #fffdf3; border-color: #f1e3b5; }
.dw-note-st { margin: 6px 0 0; }

@media (max-width: 900px) { .dw-board { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .dw-board, .dw-zone { gap: 16px; }
  .dw-h { padding: 12px 10px 0 14px; gap: 8px; }
  .dw-b { padding: 10px 14px 16px; }
  .dw-ico { width: 28px; height: 28px; }
  .dw-link { display: none; }
  .dash-todo-list li { grid-template-columns: 34px 1fr; }
  .dash-todo-list li .btn { grid-column: 2; justify-self: start; }
  .dw-editbar .small { width: 100%; }
  .dw-add li { grid-template-columns: 28px 1fr; }
  .dw-add-btns { grid-column: 1 / -1; }
}

/* ---------- E-Mail (Webmail) ---------- */
.pf { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding-block: 28px 56px; align-items: start; }
.pf-side { position: sticky; top: 100px; display: grid; gap: 12px; }
.pf-new { justify-content: center; }
.pf-folders { display: grid; gap: 2px; }
.pf-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.pf-f:hover { background: var(--tint); color: var(--ink); }
.pf-f[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.pf-f b { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--brand-ink); color: #fff; font-size: .74rem; text-align: center; }
.pf-folder-new form { display: flex; gap: 6px; margin-top: 6px; }
.pf-folder-new input { min-width: 0; flex: 1; padding: 6px 10px; }
.pf-acc { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); word-break: break-all; }
.pf-main { min-width: 0; }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-head h1 { margin: 0; }
.pf-n { font-size: 1rem; font-weight: 400; }
.pf-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-search input[type=search] { width: 260px; max-width: 100%; padding: 8px 12px; }
.pf-chip { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.pf-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
.pf-tools [data-pf-need]:disabled { opacity: .45; cursor: default; }
.pf-all { display: grid; place-items: center; width: 28px; }
.pf-move { display: inline-flex; gap: 4px; }
.pf-move select { padding: 5px 8px; font-size: .85rem; max-width: 170px; }
.pf-sel { margin-right: 4px; }
.pf-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #fff; overflow: hidden; }
.pf-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); border-top: 1px solid var(--line); }
.pf-list li:first-child { border-top: 0; }
.pf-list li:hover { background: var(--tint); }
.pf-cb { display: grid; place-items: center; }
.pf-row { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 14px 11px 2px; color: var(--ink); text-decoration: none; min-width: 0; }
.pf-row:hover { color: var(--ink); }
.pf-who, .pf-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-subj { color: var(--muted); }
.pf-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.is-unread .pf-who, .is-unread .pf-subj { font-weight: 600; color: var(--ink); }
.is-unread { box-shadow: inset 3px 0 0 var(--brand); }
.pf-ic { margin-right: 5px; font-size: .9em; }
.pf-flag { color: var(--error); }
.is-flag { background: #fffaf0; }
.pf-empty { margin: 0; padding: 40px 16px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #fff; }
.pf-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }

.pf-read { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px 22px; box-shadow: var(--shadow); }
.pf-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pf-inline { display: inline-flex; gap: 6px; margin: 0; }
.pf-inline select { padding: 5px 8px; font-size: .85rem; }
.pf-subject { font-size: 1.45rem; margin: 16px 0 10px; line-height: 1.3; overflow-wrap: anywhere; }
.pf-hdr { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0 0 14px; font-size: .9rem; }
.pf-hdr dt { color: var(--muted); }
.pf-hdr dd { margin: 0; overflow-wrap: anywhere; }
.pf-atts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-atts li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); max-width: 100%; }
.pf-att-n { display: grid; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.pf-att-n small { color: var(--muted); }
.pf-imgnote { padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); margin: 0 0 12px; }
.pf-frame { display: block; width: 100%; min-height: 160px; border: 0; }
.pf-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .97rem; line-height: 1.6; }
.pf-q { color: var(--muted); }

.pf-compose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 20px; box-shadow: var(--shadow); }
.pf-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--line); margin-bottom: 10px; }
.pf-fl { padding: 10px 14px 10px 0; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line); }
.pf-fi { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.pf-fi input { border: 0; box-shadow: none; padding: 10px 0; background: transparent; width: 100%; min-width: 0; }
.pf-fi input:focus { outline: none; }
.pf-fields [hidden] { display: none; }
.pf-body { width: 100%; min-height: 320px; font: 15px/1.55 var(--font); resize: vertical; }
.pf-orig { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 10px 0 0; }
.pf-send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pf-attach { cursor: pointer; }
.pf-send-r { margin-left: auto; display: flex; gap: 8px; }
.pf-adv { margin: 4px 0 12px; }
.dw-pf-n { margin: 0 0 6px; }

@media (max-width: 860px) {
  .pf { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
  .pf-side { position: static; grid-template-columns: auto 1fr; align-items: center; }
  .pf-folders { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .pf-f { white-space: nowrap; padding: 7px 11px; background: var(--tint); }
  .pf-folder-new, .pf-acc { grid-column: 1 / -1; }
  .pf-folder-new { display: none; }
  .pf-acc { border: 0; padding: 0; margin: 0; }
}
@media (max-width: 560px) {
  .pf-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who meta" "subj subj"; gap: 2px 10px; padding: 10px 12px 10px 0; }
  .pf-who { grid-area: who; } .pf-subj { grid-area: subj; } .pf-meta { grid-area: meta; }
  .pf-search input[type=search] { width: 100%; }
  .pf-search { width: 100%; }
  .pf-read, .pf-compose { padding: 12px 14px 16px; border-radius: 14px; }
  .pf-subject { font-size: 1.2rem; }
  .pf-send-r { margin-left: 0; width: 100%; }
  .pf-send-r .btn { flex: 1; justify-content: center; }
  .pf-move select { max-width: 130px; }
}

.nav-post .nav-badge { margin-left: 5px; }
.nav-post .nav-badge[hidden] { display: none; }

/* Chat und E-Mail oben als Symbole mit Zähler (im Burger-Menü mit Text) */
.main-nav .nav-ico { position: relative; display: inline-flex; align-items: center; }
.nav-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-ico-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-ico .nav-badge { position: absolute; top: 0; right: -4px; margin: 0; min-width: 18px; height: 18px; font-size: .66rem; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 1100px), (min-width: 1101px) and (max-width: 1200px) {
  .main-nav .nav-ico { gap: 10px; }
  .nav-long .nav-ico svg { display: none; }
  .nav-long .nav-ico-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-long .nav-ico .nav-badge { position: static; box-shadow: none; }
}

/* Datei-Felder: Ziehen & Ablegen */
.drop-ok { position: relative; }
.drop-ok.is-drop { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 12px; background: var(--brand-soft); }
.drop-ok.is-drop::after { content: "Dateien hier ablegen"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--brand-ink); background: rgba(232, 245, 255, .85); border-radius: 12px; pointer-events: none; }
