/* wir.fgk.org – Stylesheet (ohne externe Schriften, DSGVO-freundlich) */
:root {
  --red: #2e7d4f;
  --red-dark: #23633e;
  --red-soft: #e8f3ec;
  --error: #b3122e;
  --error-soft: #fbeef0;
  --ink: #1c2230;
  --ink-2: #4a5263;
  --ink-3: #7a8293;
  --paper: #f7f5f1;
  --card: #ffffff;
  --line: #e4dfd7;
  --line-2: #efebe5;
  --green: #1f7a4d;
  --green-soft: #e8f4ee;
  --amber: #9a6200;
  --amber-soft: #fdf3e1;
  --blue: #2a5a9e;
  --blue-soft: #eaf0f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 34, 48, .06), 0 2px 8px rgba(28, 34, 48, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --red: #5fb784; --red-dark: #7fcaa0; --red-soft: #1a2e22; --error: #f06a7e; --error-soft: #3a1c22;
    --ink: #ecebe8; --ink-2: #b9bcc4; --ink-3: #8a8f9b;
    --paper: #15181e; --card: #1e222a; --line: #333844; --line-2: #2a2e37;
    --green: #5fcf97; --green-soft: #18302a; --amber: #e8b25a; --amber-soft: #352a17;
    --blue: #8ab2ef; --blue-soft: #1c2638;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  } }
:root[data-theme="dark"] {
    --red: #5fb784; --red-dark: #7fcaa0; --red-soft: #1a2e22; --error: #f06a7e; --error-soft: #3a1c22;
    --ink: #ecebe8; --ink-2: #b9bcc4; --ink-3: #8a8f9b;
    --paper: #15181e; --card: #1e222a; --line: #333844; --line-2: #2a2e37;
    --green: #5fcf97; --green-soft: #18302a; --amber: #e8b25a; --amber-soft: #352a17;
    --blue: #8ab2ef; --blue-soft: #1c2638;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 70vh; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.inline { display: inline; }
.right { text-align: right; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Kopfzeile */
.topbar { background: var(--card); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--red); color: #fff; font-size: .9rem; letter-spacing: -.02em; }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.mainnav a, .linkbtn { color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 7px; font-size: .95rem; }
.mainnav a:hover, .linkbtn:hover { background: var(--line-2); color: var(--ink); }
.mainnav a.active { color: var(--red); background: var(--red-soft); font-weight: 600; }
.mainnav a.btn { color: #fff; }
.nav-sep { flex: 1; }
.linkbtn { background: none; border: 0; cursor: pointer; font: inherit; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font: inherit; color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 63px; background: var(--card); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mainnav.open { display: flex; }
  .nav-sep { display: none; }
  h1 { font-size: 1.6rem; }
}

/* Bausteine */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel h2 { margin-bottom: 14px; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.medium { max-width: 760px; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--red); }
.card h3 { margin: 0; font-size: 1.08rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card .meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }

.hero { padding: 28px 0 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.hero h1 { font-size: 2.6rem; margin-bottom: .3em; }
.hero h1 span { color: var(--red); }
.hero p { color: var(--ink-2); font-size: 1.1rem; max-width: 36em; }
.hero-stats { display: flex; gap: 28px; justify-content: flex-end; }
.hero-stats div { text-align: right; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } .hero-stats { justify-content: flex-start; } .hero-stats div { text-align: left; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.section-head:first-child { margin-top: 0; }

.badge { font-family: var(--font); display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; background: var(--line-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge-idee { background: var(--amber-soft); color: var(--amber); }
.badge-offen { background: var(--green-soft); color: var(--green); }
.badge-geschlossen { background: var(--line-2); color: var(--ink-2); }
.badge-role-moderator, .badge-role-admin { background: var(--red-soft); color: var(--red); }
.badge-role-mitwirkend { background: var(--blue-soft); color: var(--blue); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-ok { background: var(--green-soft); color: var(--green); }

.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 45% 28%); font-size: .78rem; font-weight: 700; flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--h) 30% 28%); color: hsl(var(--h) 60% 88%); } }
:root[data-theme="dark"] .avatar { background: hsl(var(--h) 30% 28%); color: hsl(var(--h) 60% 88%); }

/* Formulare */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.field { margin-bottom: 16px; }
.hint { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; font-size: .92rem; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-small { padding: 6px 12px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-ok { background: var(--green); border-color: var(--green); }
.btn-ok:hover { background: #17603c; border-color: #17603c; }
.btn-block { width: 100%; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.flash-success { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.flash-error { background: var(--error-soft); border-color: var(--error); color: var(--error); }
.flash-info, .flash-html { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.flash a { color: inherit; font-weight: 600; word-break: break-all; }

/* Listen und Tabellen */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list .grow { flex: 1; min-width: 120px; }
.list .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
tr.unread td { font-weight: 600; }
tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--red); }
td a { text-decoration: none; }

.empty { padding: 28px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--red); border-color: var(--red); font-weight: 600; }

.page-head { margin-bottom: 22px; }
.page-head .crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 6px; }
.page-head .crumbs a { color: var(--ink-3); }
.lead { font-size: 1.08rem; color: var(--ink-2); }

/* Diskussion */
.post { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.post:first-child { border-top: 0; padding-top: 4px; }
.post-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.post-head { font-size: .88rem; color: var(--ink-3); margin-bottom: 4px; }
.post-head b { color: var(--ink); }

.message-body { white-space: normal; overflow-wrap: anywhere; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 16px 0; }

.doc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--line-2); color: var(--ink-2); font-size: .7rem; font-weight: 700; flex: none; }
.doc-icon.pdf { background: var(--red-soft); color: var(--red); }
.doc-icon.img { background: var(--blue-soft); color: var(--blue); }

.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.kpi span { font-size: .85rem; color: var(--ink-3); }

.footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--ink-3); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--ink-3); }

.searchbar { display: flex; gap: 8px; max-width: 420px; }

/* ===== Icons: rotes Symbol im runden, schwarzen Rand ===== */
.ico { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.ico-ring { fill: #fff; stroke: #111; stroke-width: 1.6; }
.ico-glyph { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-glyph circle { fill: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-ring { stroke: #000; } :root:not([data-theme="light"]) .ico-glyph { stroke: #2e7d4f; } }
:root[data-theme="dark"] .ico-ring { stroke: #000; } :root[data-theme="dark"] .ico-glyph { stroke: #2e7d4f; }

h1 { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; }
h1 > .ico { width: 1.15em; height: 1.15em; }
.hero h1 { display: block; }
.hero h1 > .ico { margin-right: .3em; vertical-align: -.12em; }

.mainnav a, .navbtn { display: inline-flex; align-items: center; gap: 7px; }
.mainnav .ico { width: 20px; height: 20px; }
.mainnav a.btn .ico { width: 20px; height: 20px; }

.navlink { display: inline-flex; align-items: center; gap: 6px; }
.navlink .ico { width: 18px; height: 18px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ===== Buttons: Pillenform in Systemrot mit 3D-Schatten (transparentes Grau) ===== */
.btn, .btn-ghost, .btn-danger, .btn-ok {
  border-radius: 999px;
  background: var(--red);
  border: 1px solid var(--red-dark);
  color: #fff;
  box-shadow: 0 4px 0 rgba(90, 90, 90, .45), 0 7px 14px rgba(90, 90, 90, .28);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  margin-bottom: 4px;
}
.btn:hover, .btn-ghost:hover, .btn-danger:hover, .btn-ok:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 5px 0 rgba(90, 90, 90, .45), 0 9px 18px rgba(90, 90, 90, .30);
  transform: translateY(-1px);
}
.btn:active, .btn-ghost:active, .btn-danger:active, .btn-ok:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(90, 90, 90, .45), 0 2px 5px rgba(90, 90, 90, .25);
}
.btn:focus-visible { outline: 3px solid rgba(90, 90, 90, .5); outline-offset: 3px; }
.btn .ico { width: 20px; height: 20px; }
.btn-small { padding: 6px 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn, :root:not([data-theme="light"]) .btn-ghost, :root:not([data-theme="light"]) .btn-danger, :root:not([data-theme="light"]) .btn-ok { background: #2e7d4f; border-color: #23633e; box-shadow: 0 4px 0 rgba(160,160,160,.35), 0 7px 14px rgba(0,0,0,.4); } :root:not([data-theme="light"]) .btn:hover, :root:not([data-theme="light"]) .btn-ghost:hover, :root:not([data-theme="light"]) .btn-danger:hover, :root:not([data-theme="light"]) .btn-ok:hover { background: #23633e; } }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn-ghost, :root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .btn-ok { background: #2e7d4f; border-color: #23633e; box-shadow: 0 4px 0 rgba(160,160,160,.35), 0 7px 14px rgba(0,0,0,.4); } :root[data-theme="dark"] .btn:hover, :root[data-theme="dark"] .btn-ghost:hover, :root[data-theme="dark"] .btn-danger:hover, :root[data-theme="dark"] .btn-ok:hover { background: #23633e; }

/* Menü kompakter, damit es mit Icons in eine Zeile passt */
.topbar-inner { gap: 14px; }
.mainnav { gap: 2px; flex-wrap: nowrap; }
.mainnav a, .linkbtn { padding: 7px 8px; font-size: .93rem; white-space: nowrap; }
.nav-label-wide { display: none; }
@media (max-width: 1100px) and (min-width: 861px) { .mainnav a > span:not(.count) { display: none; } .mainnav a { padding: 7px 7px; } .mainnav a.btn > span { display: inline; } }
@media (max-width: 860px) { .mainnav { flex-wrap: wrap; } .nav-label-wide { display: inline; } .mainnav a > span { display: inline; } }
/* Zähler in roten Buttons */
.btn .count { background: #fff; color: var(--red); }
.nav-toggle { border-radius: 999px; background: var(--red); color: #fff; border: 1px solid var(--red-dark); font-weight: 600; box-shadow: 0 3px 0 rgba(90,90,90,.45), 0 6px 12px rgba(90,90,90,.25); }

/* ===== Schrift: überall System-Schrift ===== */
html, body, button, input, select, textarea, h1, h2, h3, .badge { font-family: var(--font); }

/* ===== Icons: rote Fläche, weißes Symbol, runder schwarzer Rand ===== */
.ico-ring, .ico-ring { fill: var(--red); stroke: #111; stroke-width: 1.4; }
.ico-glyph { stroke: #fff; }
.ico-glyph circle { fill: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-ring { fill: #2e7d4f; stroke: #000; } :root:not([data-theme="light"]) .ico-glyph { stroke: #fff; } }
:root[data-theme="dark"] .ico-ring { fill: #2e7d4f; stroke: #000; } :root[data-theme="dark"] .ico-glyph { stroke: #fff; }

/* ===== Buttons: 3D-Schatten ===== */
.btn, .btn-ghost, .btn-danger, .btn-ok, .nav-toggle {
  box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
}
.btn:hover, .btn-ghost:hover, .btn-danger:hover, .btn-ok:hover {
  box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.6), 0 6px 28px 0 rgba(0, 0, 0, 0.14), 0 10px 12px -5px rgba(0, 0, 0, 0.22);
}
.btn:active, .btn-ghost:active, .btn-danger:active, .btn-ok:active {
  transform: translateY(2px);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5), 0 2px 12px 0 rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn, :root:not([data-theme="light"]) .btn-ghost, :root:not([data-theme="light"]) .btn-danger, :root:not([data-theme="light"]) .btn-ok { box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2); } }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn-ghost, :root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .btn-ok { box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2); }

/* Menü über die volle Bildschirmbreite */
.topbar-inner { max-width: none; width: 100%; padding: 0 24px; }
@media (max-width: 600px) { .topbar-inner { padding: 0 16px; } }


/* Darstellung in der Fußzeile: Tag/Nacht und Design */
.footer-design { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding-top: 10px; padding-bottom: 14px; }
.seg { display: inline-flex; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 3px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .86rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.seg button .ico { width: 16px; height: 16px; }
.seg button:hover { color: var(--ink); background: var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; cursor: default; }
.seg button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 600px) { .footer-design { justify-content: flex-start; } }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.brand-mark { background: #2e7d4f; }
/* Seitenlogo FGK in der Menüzeile */
.brand-logo { display: block; width: 46px; height: 46px; flex: none; border-radius: 50%; }
@media (max-width: 600px) { .brand-logo { width: 40px; height: 40px; } }

/* Arbeitsaufgaben */
.task-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.task-form h3 { margin-bottom: 12px; }
#aufgaben h2 { display: flex; align-items: center; gap: 8px; }
#aufgaben h2 .ico { width: 1.2em; height: 1.2em; }

/* Rechte je Projekt */
.rights-table td, .rights-table th { vertical-align: middle; }
.rights-table .center { text-align: center; width: 120px; }
.rights-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.rights-list { margin: 0 0 12px; padding-left: 18px; color: var(--ink-2); }
.roles-list { list-style: none; margin: 0; padding: 0; }
.roles-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line-2); }
.roles-list li:first-child { border-top: 0; }

/* Foto zur Idee */
.card.has-photo { padding-top: 0; overflow: hidden; }
.card-photo { margin: 0 -20px 6px; aspect-ratio: 16 / 9; background: var(--line-2); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-photo { margin: -24px -24px 20px; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--line-2); }
.project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.photo-edit img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Teilen */
.share-panel h2 { display: flex; align-items: center; gap: 8px; }
.share-panel h2 .ico { width: 1.2em; height: 1.2em; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.share-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.share-btn:hover { border-color: var(--red); color: var(--red); }
.share-btn .ico { width: 24px; height: 24px; }
.share-btn.copied { border-color: var(--red); color: var(--red); }

/* Öffentliche Projektseite */
.public-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Video zur Idee */
.project-video { margin: -24px -24px 20px; background: #000; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.project-video video { display: block; width: 100%; max-height: 520px; background: #000; }
.photo-edit video { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.card-photo { position: relative; }
.card-video { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.card-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-video.playing .video-badge { opacity: 0; transition: opacity .4s; }
.video-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

/* Systemtest */
.sys-list { list-style: none; margin: 0; padding: 0; }
.sys-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sys-list li:first-child { border-top: 0; padding-top: 0; }
.sys-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; margin-top: 1px; }
.sys-ok .sys-dot { background: var(--red); }
.sys-warn .sys-dot { background: #c98a10; }
.sys-fail .sys-dot { background: var(--error); }
.sys-fix { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: var(--line-2); color: var(--ink); font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
.kpi.sys-ok b { color: var(--red); } .kpi.sys-warn b { color: #c98a10; } .kpi.sys-fail b { color: var(--error); }

/* Abstimmungen */
#abstimmungen h2 { display: flex; align-items: center; gap: 8px; }
#abstimmungen h2 .ico { width: 1.2em; height: 1.2em; }
.poll-new { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; background: var(--paper); }
.poll-inputs { display: grid; gap: 8px; }
.poll { padding: 16px 0; border-top: 1px solid var(--line-2); }
.poll:first-of-type { border-top: 0; }
.poll-head { font-size: 1.02rem; margin-bottom: 2px; }
.poll-closed .poll-head b { color: var(--ink-2); }
.poll-form { margin-top: 10px; display: grid; gap: 8px; justify-items: start; }
.poll-choice { display: flex; gap: 10px; align-items: center; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; cursor: pointer; }
.poll-choice:hover { border-color: var(--red); }
.poll-choice input { width: 18px; height: 18px; accent-color: var(--red); }
.poll-results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.poll-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.poll-bar { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--red); opacity: .55; border-radius: 999px; }
.poll-results li.mine .poll-bar span, .poll-results li.win .poll-bar span { opacity: 1; }
.poll-results li.win .poll-label > span:first-child { font-weight: 700; }
.poll-results li.win .poll-label > span:first-child::after { content: " ★"; color: var(--red); }

/* Banner auf der Startseite: volle Breite direkt unter der Menüzeile */
.home-banner { width: 100%; background: #fbfaf3; border-bottom: 1px solid var(--line); line-height: 0; }
.home-banner img { display: block; width: 100%; height: auto; }
main.after-banner { padding-top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Handy: rechten Teil abschneiden, damit Glühbirne und Titel lesbar bleiben */
@media (max-width: 700px) { .home-banner img { aspect-ratio: 1060 / 200; object-fit: cover; object-position: left center; } }

/* Projektverwaltung: Bereiche der Projektdaten deutlich getrennt */
.form-section { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0 0 20px; background: var(--paper); }
.form-section legend { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; margin-left: -4px; font-size: 1rem; font-weight: 700; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 999px; }
.form-section legend .ico { width: 22px; height: 22px; }
.form-section input[type=file] { background: var(--card); margin: 4px 0 6px; }
.form-section .photo-edit img, .form-section .photo-edit video { width: 220px; height: 124px; }
.status-options { display: grid; gap: 10px; }
.status-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 400; cursor: pointer; margin: 0; }
.status-option:hover { border-color: var(--red); }
.status-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); }
.status-option > span { display: grid; gap: 4px; justify-items: start; }
.status-option:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }

/* Videos: Vorschaubild und Ladeanzeige */
.project-video, .card-video { position: relative; }
.project-video video { aspect-ratio: 16 / 9; object-fit: contain; }
.no-poster { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.no-poster video { background: transparent; }
.video-spinner { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; }
.video-loading .video-spinner { opacity: 1; animation: video-spin 1s linear infinite; }
.project-video.video-loading.has-poster-shown .video-spinner { opacity: 0; }
@keyframes video-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .video-loading .video-spinner { animation: none; } }

/* Themen */
.topic-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; background: var(--paper); }
.topic-block { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; background: var(--card); }
.topic-block:last-child { margin-bottom: 0; }
.topic-general { border-style: dashed; }
.topic-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.topic-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topic-head h3 .ico { width: 22px; height: 22px; }
.topic-head .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.topic-block .list > li:first-child { border-top: 1px solid var(--line-2); padding-top: 12px; }
.topic-empty { margin: 4px 0 0; }
.topic-delete { margin-top: 8px; text-align: right; }
.topic-delete .linkbtn { color: var(--ink-3); text-decoration: underline; }

.topic-photo { width: 132px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
@media (max-width: 600px) { .topic-photo { width: 100%; height: 150px; } }

.home-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
.home-toolbar .searchbar { flex: 1 1 320px; max-width: 520px; }
.home-toolbar .searchbar input { flex: 1; min-width: 0; }
.home-toolbar .row { margin: 0; }

.card-actions { position: relative; z-index: 1; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.nav-logout { padding-top: 0; padding-bottom: 0; }
/* Kugel = grüner Icon-Kreis (18,3 px) + 20 % ≈ 22 px; der Kreis füllt 58/64 der Fläche */
.ico-power { width: 24.3px; height: 24.3px; position: relative; top: 1px; flex: none; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: transform .12s, filter .12s; }
.nav-logout:hover .ico-power, .nav-logout:focus-visible .ico-power { transform: scale(1.08); filter: drop-shadow(0 5px 7px rgba(0,0,0,.32)); }
.nav-logout:active .ico-power { transform: scale(.95) translateY(1px); }

/* Drag & Drop für Datei-Felder */
.dropzone { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: var(--card); padding: 16px 18px; min-height: 64px; display: flex; align-items: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--red); }
.dropzone.is-over { border-color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--card)); }
.dropzone.has-file { border-style: solid; }
.dropzone .dz-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.dz-empty { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .95rem; pointer-events: none; }
.dz-empty b { color: var(--red); }
.dz-empty svg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-file { display: flex; align-items: center; gap: 14px; width: 100%; }
.dz-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.dz-name { flex: 1; min-width: 0; overflow-wrap: break-word; font-size: .92rem; color: var(--ink); pointer-events: none; }
.dz-remove { position: relative; z-index: 2; background: none; border: 0; color: var(--error); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 4px; }
.dropzone [hidden] { display: none !important; }
.dz-empty span { line-height: 1.35; }
.dz-file { flex-wrap: wrap; row-gap: 6px; }
.dz-name { flex: 1 1 110px; overflow-wrap: normal; word-break: normal; }
.dz-name { overflow: hidden; text-overflow: ellipsis; }

/* Themen als Vorschaubilder */
.is-dummy { display: inline-flex; align-items: center; justify-content: center; background: var(--dummy, #317b9b) url(unterthema-platzhalter.svg) center / cover no-repeat; color: #fff; font-weight: 700; overflow: hidden; }
.is-dummy span { text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.topic-photo.is-dummy { font-size: 2rem; }
.topic-strip { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.topic-strip h3 { margin: 0 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.topic-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.25; }
.topic-tile .topic-thumb { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.topic-tile .topic-thumb.is-dummy { font-size: 1.6rem; }
.topic-tile:hover .topic-thumb { transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(0,0,0,.35); }
.topic-tile:hover span { color: var(--red); }
.card-topics { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-thumb { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); font-size: .85rem; flex: none; }
.mini-more { font-size: .8rem; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.card-topics .muted { margin-left: 4px; }
.topic-block { scroll-margin-top: 80px; }
.topic-tile > span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; min-width: 0; }

/* Akkordeon (Themen, Aufgabe anbieten) */
details.acc > summary { list-style: none; cursor: pointer; user-select: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent); outline-offset: 4px; border-radius: 8px; }
.acc-chevron { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); position: relative; align-self: center; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); transition: transform .2s; }
.acc-chevron::before { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; border-right: 2.6px solid #fff; border-bottom: 2.6px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
details.acc[open] > summary .acc-chevron { transform: rotate(180deg); }
details.acc > summary:hover .acc-chevron { filter: brightness(1.1); }
.topic-block.acc > summary.topic-head { margin-bottom: 0; flex-wrap: nowrap; align-items: center; }
.topic-block.acc > summary .grow { min-width: 0; }
.topic-block.acc[open] > summary { margin-bottom: 12px; }
.topic-block.acc .topic-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.topic-block.acc:hover { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.acc-body { animation: acc-in .18s ease-out; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc-body { animation: none; } .acc-chevron { transition: none; } }
.task-acc { margin-top: 20px; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--card); }
.task-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-acc > summary h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.task-acc .task-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.task-acc .task-form h3 { display: none; }
@media (max-width: 600px) { .topic-block.acc > summary.topic-head { flex-wrap: wrap; } .topic-block.acc > summary .topic-photo { width: 96px; height: 64px; } }
.topic-block.acc > summary .grow { flex: 1 1 auto; }
.topic-delete { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.admin-actions .to-topic-form { justify-content: flex-end; }
main.wrap-wide { max-width: none; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { main.wrap-wide { padding-left: 16px; padding-right: 16px; } }
.wrap-wide .admin-actions { flex-direction: row-reverse; flex-wrap: wrap-reverse; justify-content: flex-start; align-items: center; }

/* Admin: Reihenfolge Marktplatz */
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: grab; }
.order-item.is-dragging { opacity: .5; border-style: dashed; border-color: var(--red); }
.order-handle { color: var(--ink-3); font-size: 1.1rem; letter-spacing: -3px; user-select: none; }
.order-num { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.order-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex: none; font-size: 1.2rem; }
.order-btns { display: flex; gap: 6px; flex: none; }
.order-form.is-dirty .btn:not(.btn-ghost) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 30%, transparent), var(--shadow3d, 0 8px 18px -8px rgba(0,0,0,.45)); }
.order-item .grow { flex: 1; min-width: 0; }

/* Hilfe */
.help-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.help-tools input[type=search] { flex: 1 1 320px; max-width: 560px; }
.help-section { margin-bottom: 28px; }
.help-section h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 10px; }
.help-item { border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 10px 14px; margin-bottom: 10px; }
.help-item:hover { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.help-item > summary { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; min-height: 38px; }
.help-item > summary .grow { flex: 1; min-width: 0; }
.help-item[open] > summary { margin-bottom: 8px; }
.help-body { border-top: 1px solid var(--line-2); padding: 12px 2px 4px; line-height: 1.6; color: var(--ink); }
.help-body p { margin: 0 0 10px; }
.help-body ol, .help-body ul { margin: 0 0 10px; padding-left: 1.4em; }
.help-body li { margin-bottom: 4px; }
.help-body code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.help-tip { background: color-mix(in srgb, var(--red) 8%, var(--card)); border-left: 4px solid var(--red); padding: 8px 12px; border-radius: 6px; font-size: .94rem; }
.help-item.is-hidden { display: none; }
.help-section.is-hidden { display: none; }
mark.help-hit { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
.help-contact h2 { display: flex; align-items: center; gap: 10px; }

/* Foto in voller Größe */
.project-photo { position: relative; }
.project-photo img { cursor: zoom-in; }
.photo-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(20, 30, 25, .55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); transition: transform .15s, background .15s; }
.photo-zoom:hover, .photo-zoom:focus-visible { background: var(--red); transform: scale(1.08); }
.photo-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 14, 12, .86); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; font-size: .95rem; }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.4); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: var(--red); }

/* Ausführliche Beschreibung kursiv */
.description, .card .card-desc { font-style: italic; }
.card .card-desc { color: var(--ink-3); font-size: .9rem; }
/* Projektvorschau durchblättern */
.market-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.market-nav-pos { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); text-decoration: none; text-align: center; }
.market-nav-pos:hover { color: var(--red); }
.market-nav .is-disabled { opacity: .35; pointer-events: none; box-shadow: none; }
@media (max-width: 520px) { .market-nav-pos { font-size: .8rem; } .market-nav-pos .ico { display: none; } }
.public-cta .btn { white-space: normal; max-width: 100%; text-align: center; }

/* Marktplatz: Aufruf „Neue Idee einreichen“ ganz unten */
.idea-cta { display: flex; align-items: center; gap: 22px; margin-top: 40px; padding: 24px 28px; border: 2px dashed color-mix(in srgb, var(--red) 55%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.idea-cta h2 { margin: 0 0 6px; }
.idea-cta p { margin: 0; color: var(--ink-2); max-width: 46em; }
.idea-cta .grow { flex: 1; min-width: 0; }
.idea-cta-icon .ico { width: 56px; height: 56px; }
.idea-cta .btn { flex: none; }
@media (max-width: 700px) { .idea-cta { flex-direction: column; align-items: flex-start; text-align: left; padding: 20px; } .idea-cta-icon .ico { width: 44px; height: 44px; } }

/* Terminfindung */
.meet-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .meet-layout { grid-template-columns: 1fr; } }
.meet-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.meet-grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.meet-grid th { font-size: .75rem; color: var(--ink-3); font-weight: 600; text-align: center; padding: 2px 0; text-transform: none; letter-spacing: 0; border: 0; }
.meet-grid td { padding: 0; text-align: center; border: 0; }
.meet-grid td a, .meet-grid td .cell { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; border: 1px solid transparent; }
.meet-grid td a:hover, .meet-grid td a:focus-visible { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.meet-grid td.is-past .cell { color: var(--ink-3); opacity: .55; }
.meet-grid td.is-today a { font-weight: 700; border-color: var(--line); }
.meet-grid td.has-dates a, .meet-grid td.has-dates .cell { background: color-mix(in srgb, var(--red) 16%, var(--card)); font-weight: 600; }
.meet-grid td.is-best a, .meet-grid td.is-best .cell { background: var(--red); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.meet-grid td.is-selected a { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 1px; }
.meet-grid .n { position: absolute; top: 2px; right: 4px; font-size: .62rem; line-height: 1; font-weight: 700; }
.meet-legend { margin: 6px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meet-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lg-dates { background: color-mix(in srgb, var(--red) 16%, var(--card)); border: 1px solid var(--line); }
.lg-best { background: var(--red); margin-left: 8px; }
.meet-form { border-top: 1px solid var(--line-2); padding-top: 12px; scroll-margin-top: 90px; }
.meet-form h3 { margin: 0 0 10px; font-size: 1rem; }
.meet-form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.meet-form-row .field { margin-bottom: 8px; }
.meet-list { display: grid; gap: 10px; }
.meet-item { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); scroll-margin-top: 90px; }
.meet-item.is-best { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--card)); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
.meet-item.is-past { opacity: .75; }
.meet-item-head { display: flex; gap: 12px; align-items: flex-start; }
.meet-item-head .grow { flex: 1; min-width: 0; }
.meet-when { font-size: 1.02rem; }
.meet-best-badge { background: var(--red); color: #fff; }
.meet-count { text-align: center; min-width: 64px; }
.meet-count b { display: block; font-size: 1.5rem; line-height: 1; color: var(--red); }
.meet-count span { font-size: .75rem; color: var(--ink-3); }
.meet-bar { height: 6px; border-radius: 999px; background: var(--line-2); margin: 10px 0 8px; overflow: hidden; }
.meet-bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.meet-people { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meet-yes { color: var(--green, #2e7d4f); }
.meet-no { color: var(--error); }
.meet-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn.is-chosen { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent), 0 6px 14px -6px rgba(0,0,0,.45); }
.meet-past { margin-top: 6px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.meet-past > summary { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.meet-past .acc-body { display: grid; gap: 8px; margin-top: 8px; }

.meet-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px 24px; align-items: start; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.meet-top .meet-form { border-top: 0; padding-top: 0; }
.meet-legend { gap: 4px 14px; }
.meet-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-best { margin-left: 0; }
.btn.btn-outline { background: var(--card); color: var(--red); border: 2px solid var(--red); box-shadow: none; }
.btn.btn-outline:hover { background: color-mix(in srgb, var(--red) 10%, var(--card)); }
.meet-actions .btn-danger.is-chosen { background: var(--error); }
.meet-past > summary .grow { flex: 1; }

/* Idee zum eigenen Projekt machen */
.adopt-box { margin: 12px 0; padding: 14px 16px; border: 2px dashed color-mix(in srgb, var(--red) 55%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.adopt-box p { margin: 0 0 10px; line-height: 1.5; }
.adopt-box p:last-child { margin: 0; }
.adopt-box p .ico { vertical-align: -5px; margin-right: 2px; }
.adopt-box form { display: block; }

/* Diskussion als Akkordeon */
.discussion-acc > summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.discussion-acc > summary h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.discussion-acc > summary .grow { flex: 1; }
.discussion-acc[open] > summary { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
/* Beteiligte mit Arbeitsgruppen */
.member-groups { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.member-groups a { color: var(--ink-2); }
.member-groups .ico { width: 16px; height: 16px; vertical-align: -3px; }

/* Arbeitsgruppen: Mitwirkende und Bewerbungen */
.group-people { font-size: .82rem; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.group-people .ico { width: 16px; height: 16px; vertical-align: -3px; }
.group-apply { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.group-apply h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.app-msg { display: block; margin-top: 4px; font-style: italic; color: var(--ink-2); }
#bewerbungen .list li { align-items: flex-start; flex-wrap: wrap; }

/* Erinnerungsmail für übernommene Aufgaben */
.remind-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: .88rem; }
.remind-form select { width: auto; padding: 4px 8px; }
.remind-form input[type=number] { width: 64px; padding: 4px 6px; }
.remind-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.remind-label .ico { width: 18px; height: 18px; }
.remind-days { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.task-li { align-items: flex-start; }

/* Registrierung: Bereich „Optional“ kursiv */
.optional-fields, .optional-fields legend, .optional-fields label, .optional-fields input, .optional-fields input::placeholder { font-style: italic; }

/* Schalter „nur für Interessierte sichtbar“ */
.vis-switch { width: 100%; }
.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; color: var(--ink-2); font-size: .86rem; text-align: left; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line); transition: background .15s; flex: none; box-shadow: inset 0 1px 3px rgba(0,0,0,.2); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .15s; }
.switch.is-on .switch-track { background: var(--red); }
.switch.is-on .switch-knob { left: 21px; }
.switch.is-on .switch-label { color: var(--ink); font-weight: 600; }
.switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent); outline-offset: 3px; border-radius: 8px; }
.badge-muted { background: var(--line-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.badge-muted .ico { width: 14px; height: 14px; }
.login-only-check { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.card-actions { margin-top: auto; }

/* Meine Arbeitsaufgaben: Notizen, Wiedervorlage, Fertig-Bericht */
.mytasks { display: grid; gap: 14px; }
.mytask { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); scroll-margin-top: 90px; }
.mytask-head { display: flex; gap: 12px; align-items: flex-start; }
.mytask-head .grow { flex: 1; min-width: 0; }
.mytask-acc { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.mytask-acc > summary { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.mytask-acc > summary .grow { flex: 1; }
.mytask-acc > summary .acc-chevron { width: 28px; height: 28px; }
.mytask-acc .acc-body { padding-top: 10px; }
.note { border-left: 4px solid var(--red); background: color-mix(in srgb, var(--red) 5%, var(--card)); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; }
.note-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.note-head form { margin-left: auto; }
.note-head .badge .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.note-form { margin-top: 10px; }
.task-report { margin-top: 6px; }
.task-report summary { cursor: pointer; color: var(--red); }
.task-report > div { margin-top: 6px; padding: 8px 10px; background: var(--line-2); border-radius: 6px; }
input[type=date], input[type=time], input[type=number] { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; max-width: 100%; }
input[type=date]:focus, input[type=time]:focus, input[type=number]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }

/* Design-Auswahl im Benutzerkonto */
.design-choice { display: grid; gap: 10px; }
.design-option { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.design-option:has(input:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.design-option input { flex: none; }
.design-preview { flex: none; width: 92px; height: 58px; border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: 14px 1fr; grid-template-columns: 1fr 1fr; border: 1px solid rgba(0,0,0,.25); }
.design-preview span:first-child { grid-column: 1 / 3; }
.design-preview-standard { background: #f7f5f1; }
.design-preview-standard span:nth-child(1) { background: #fff; border-bottom: 3px solid #2e7d4f; }
.design-preview-standard span:nth-child(2) { margin: 7px 4px 7px 7px; background: #fff; border: 1px solid #e4dfd7; border-radius: 4px; }
.design-preview-standard span:nth-child(3) { margin: 18px 7px 14px 4px; background: #2e7d4f; border-radius: 999px; }
.design-preview-steampunk { background: radial-gradient(circle at 30% 30%, #f3e6c6, #e2cc9c); }
.design-preview-steampunk span:nth-child(1) { background: linear-gradient(#4a2e1b, #2e1b10); border-bottom: 3px solid #c9973f; }
.design-preview-steampunk span:nth-child(2) { margin: 7px 4px 7px 7px; background: #f8eed6; border: 2px double #a87b34; border-radius: 3px; }
.design-preview-steampunk span:nth-child(3) { margin: 18px 7px 14px 4px; background: linear-gradient(#e2b45a, #9c6b22); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }

/* Test-Login des Admins */
.testlogin-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; padding: 8px 16px; background: repeating-linear-gradient(135deg, #f7d37a 0 14px, #f3c65a 14px 28px); color: #2b1d05; font-size: .92rem; border-bottom: 2px solid #8a5c00; }
.testlogin-bar .ico { width: 18px; height: 18px; vertical-align: -4px; }
.testlogin-bar .btn { background: #2b1d05; border-color: #2b1d05; color: #fff; }
.testlogin-bar ~ .topbar { top: 46px; }
@media (max-width: 700px) { .testlogin-bar ~ .topbar { top: 0; position: relative; } }

/* InfoLinks im Projekt */
.link-form { margin-bottom: 16px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); transition: transform .15s, box-shadow .15s, border-color .15s; }
.link-card:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); }
.link-main { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; flex: 1; }
.link-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--line-2); overflow: hidden; }
.link-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-thumb.is-empty .ico { width: 54px; height: 54px; }
.link-youtube .link-thumb.is-empty { background: #2b2b2b; }
.link-telegram .link-thumb.is-empty { background: #d7ecf8; }
.link-play { position: absolute; width: 58px; height: 40px; border-radius: 12px; background: rgba(205, 32, 31, .92); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.link-play::after { content: ""; position: absolute; left: 23px; top: 11px; border-left: 16px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.link-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.link-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.link-kind .ico { width: 16px; height: 16px; }
.link-title { font-size: .98rem; line-height: 1.3; }
.link-desc { font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
.link-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 12px 10px; }
.link-foot .badge .ico { width: 14px; height: 14px; }
.link-foot .linkbtn { padding: 2px 0; font-size: .82rem; } .link-foot form { display: inline; }

/* Dokumente je Arbeitsgruppe */
.doc-groups { flex-wrap: wrap; margin-bottom: 6px; }
.doc-groups a { display: inline-flex; align-items: center; gap: 6px; }
.doc-groups .ico { width: 18px; height: 18px; }
.list .badge-muted .ico { width: 14px; height: 14px; }

.doc-assign { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.doc-assign select { width: auto; max-width: 230px; padding: 4px 8px; font-size: .86rem; }

/* Bewerbungen beantworten */
.app-reply { width: 100%; margin-top: 8px; display: grid; gap: 6px; }
.app-reply textarea { min-height: 52px; }
.app-reply-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.app-reply-row .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.app-li { flex-wrap: wrap; }
.meet-form-row .field { min-width: 0; } .meet-form-row input { width: 100%; min-width: 0; }

/* Admin: Fotos & Videos zuordnen */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.media-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-2); display: flex; align-items: center; justify-content: center; }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb.is-empty .ico { width: 48px; height: 48px; }
.media-type { position: absolute; left: 8px; top: 8px; z-index: 1; }
.media-where { padding: 8px 12px 0; color: var(--ink-2); line-height: 1.4; }
.media-move { display: flex; gap: 6px; padding: 8px 12px 12px; margin-top: auto; }
.media-move select { flex: 1; min-width: 0; padding: 6px 8px; font-size: .86rem; }

/* Veranstaltungen im Projekt */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-item { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.event-item.is-proposal { border-style: dashed; background: var(--amber-soft); }
.ev-date { flex: none; width: 58px; height: 62px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); border: 2px solid var(--red); line-height: 1; }
.ev-date b { font-size: 1.6rem; font-weight: 800; }
.ev-date span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.ev-body { flex: 1; min-width: 0; }
.ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.ev-title:hover { color: var(--red); text-decoration: underline; }
.ev-meta { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 4px; }
.ev-meta .ico, .ev-loc .ico { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.ev-desc { margin: 6px 0 0; color: var(--ink-2); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.event-rsvp { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rsvp { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .86rem; cursor: pointer; }
.rsvp .ico { width: 16px; height: 16px; }
.rsvp:hover { border-color: var(--ink-3); color: var(--ink); }
.rsvp-gelesen[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.rsvp-zusage[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.rsvp-absage[aria-pressed="true"] { background: var(--error-soft); border-color: var(--error); color: var(--error); font-weight: 600; }
.ev-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--ink-3); }
.ev-count { display: inline-flex; align-items: center; gap: 4px; }
.ev-count .ico { width: 14px; height: 14px; }
.ev-count.ev-zusage { color: var(--green); font-weight: 600; }
.ev-count[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.form-row.ev-dates { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ev-dates .field { min-width: 0; }
.ev-dates input { width: 100%; min-width: 0; }
.ev-head .badge, .event-page .badge { display: inline-flex; align-items: center; gap: 4px; }
.ev-head .badge .ico, .event-page .badge .ico { width: 14px; height: 14px; }
.ev-new { margin-top: 14px; }
.event-photo { margin: -4px -4px 16px; border-radius: 8px; overflow: hidden; max-height: 260px; }
.event-photo img { width: 100%; height: 260px; object-fit: cover; display: block; }
.event-top { display: flex; gap: 16px; align-items: flex-start; }
.event-top .ev-date { width: 70px; height: 76px; }
.event-top .ev-date b { font-size: 2rem; }
.event-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 18px 0; }
.event-facts dt { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.event-facts dt .ico { width: 18px; height: 18px; }
.event-facts dd { margin: 0; }
.event-part { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.event-part h2 { display: flex; align-items: center; gap: 8px; }
.event-page.is-proposal { border: 2px dashed var(--amber); }
.event-invite { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.ev-delete { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); text-align: right; }
#bearbeiten { margin-top: 16px; }
@media (max-width: 520px) { .event-item { padding: 12px; gap: 10px; } .ev-date { width: 50px; height: 56px; } .ev-date b { font-size: 1.35rem; } }
.ev-actions .event-rsvp { flex: 0 1 auto; }
.ev-foot { flex: 1 1 100%; margin: -6px 0 0 72px; }
.ev-foot:empty { display: none; }
.ev-foot .ev-actions { margin-top: 0; }
@media (max-width: 520px) {
  .ev-foot { margin-left: 0; }
  .ev-actions { gap: 6px; }
  .ev-actions .event-rsvp { flex: 1 1 100%; flex-wrap: wrap; gap: 4px; }
  #veranstaltungen .event-item { padding: 10px; }
  .event-rsvp .rsvp { padding: 5px 8px; font-size: .8rem; gap: 4px; flex: 1 1 auto; justify-content: center; white-space: nowrap; }
  .event-rsvp .rsvp .ico { width: 14px; height: 14px; }
}
.cols > * { min-width: 0; }
/* Admin Teilnehmende: Rollen je Projekt in einer Zeile */
.wrap-wide .user-roles { min-width: 280px; }
.wrap-wide .user-roles > div { white-space: nowrap; }
/* Erinnerungs-Mails bei Veranstaltungen */
.ev-remind { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 6px; margin: 14px 0 0; }
.ev-remind legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; padding: 0 6px; }
.ev-remind legend .ico { width: 18px; height: 18px; }
.ev-remind legend .hint { font-weight: 400; }
.ev-remind-opts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ev-remind-opts .check { margin: 4px 0; }
.media-del { padding: 0 12px 10px; text-align: right; margin-top: -4px; }
.media-del-btn { color: var(--error); }
.media-del-btn:hover { color: var(--error); text-decoration: underline; }
.ev-remind-hint { margin: 0 0 4px; display: block; }
/* Foto-Darstellung „ganz zeigen“ (vom Admin gewählt) – Standard ist „Ausschnitt füllen“ (cover) */
img.fit-contain { object-fit: contain !important; background: var(--line-2); }
.media-fit { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 8px 12px 0; }
.media-fit label { margin: 0; font-size: .82rem; font-weight: 600; color: var(--ink-2); flex: 0 0 auto; }
.media-fit select { flex: 1 1 160px; min-width: 0; padding: 5px 8px; font-size: .84rem; }
.media-thumb img.fit-contain { background: var(--line-2); }
/* Aufgabe bearbeiten (Moderation, Gruppenleitung) */
.task-edit { margin-top: 6px; }
.task-edit > summary { cursor: pointer; color: var(--red); display: inline-flex; align-items: center; gap: 4px; list-style: none; }
.task-edit > summary::-webkit-details-marker { display: none; }
.task-edit > summary .ico { width: 15px; height: 15px; }
.task-edit form { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
/* Bereiche im Projekt ein-/ausschalten */
.module-form { display: grid; gap: 10px; }
.module-switch { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; margin: 0; }
.module-switch > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.module-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.module-toggle { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; margin-top: 1px; }
.module-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.module-switch input:checked + .module-toggle { background: var(--red); }
.module-switch input:checked + .module-toggle::after { transform: translateX(18px); }
.module-switch input:focus-visible + .module-toggle { outline: 2px solid var(--red); outline-offset: 2px; }
.module-switch:has(input:not(:checked)) b { color: var(--ink-3); }
/* Dokumentenablage: Vorschaubild (120 px) rechts über „Herunterladen“ */
.doc-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
.doc-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.doc-thumb { display: block; position: relative; width: 120px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line-2); cursor: zoom-in; line-height: 0; }
.doc-thumb img, .doc-thumb video { width: 120px; height: auto; max-height: 170px; object-fit: cover; object-position: top; display: block; }
.doc-thumb.is-pdf { cursor: pointer; background: #fff; }
.doc-thumb.is-video { cursor: pointer; }
.doc-thumb:hover { border-color: var(--red); }
.doc-play { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(0,0,0,.55); }
.doc-play::after { content: ""; position: absolute; left: 10px; top: 7px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
@media (max-width: 600px) { .doc-actions { align-items: flex-start; } .doc-buttons { justify-content: flex-start; } }
/* Themen-Titel in der öffentlichen Projektvorschau */
.topic-titles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; }
.topic-titles-label { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.topic-titles-label .ico { width: 16px; height: 16px; }
.topic-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: .86rem; font-weight: 600; }
/* Ideen-Seite: „Neue Idee einreichen“ unter den Ideen */
.idea-new { max-width: 760px; margin: 32px auto 0; }
/* Knöpfe in Projektkarten: immer einzeilig; in schmalen Karten etwas kompakter, damit sie im Rahmen bleiben (Firefox) */
.card { container-type: inline-size; }
.card-actions { flex-wrap: wrap; min-width: 0; }
.card-actions .btn { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 280px) { .card-actions .btn { padding-left: 12px; padding-right: 12px; font-size: .82rem; } }
@container (max-width: 230px) { .card-actions .btn { padding-left: 9px; padding-right: 9px; font-size: .76rem; } }
/* Infos & Links bearbeiten */
.link-edit { flex-basis: 100%; }
.link-edit > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--red); }
.link-edit > summary::-webkit-details-marker { display: none; }
.link-edit > summary .ico { width: 14px; height: 14px; }
.link-edit form { display: block; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.link-edit .field { margin-bottom: 10px; }
.link-grid { align-items: start; }
.poster-opts { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.poster-opts .check { margin: 4px 0; }
/* Aushang: Vorschauseite */
.poster-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.poster-mail { max-width: 760px; }
.poster-preview { background: var(--line-2); border-radius: var(--radius); padding: 16px; }
.poster-frame { display: block; width: 100%; max-width: 900px; height: 82vh; min-height: 600px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.poster-mobile { display: none; text-align: center; }
.poster-mobile img { width: 100%; max-width: 520px; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 700px) { .poster-frame { display: none; } .poster-mobile { display: block; } .poster-preview { padding: 10px; } }
.share-panel .share-poster { margin-top: 12px; }
.share-panel .row .share-poster { margin-top: 0; }
.poster-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.poster-formats .btn { font-size: .8em; padding: 8px 14px; gap: 5px; }
.poster-formats .btn.btn-outline { padding: 7px 13px; } /* 80 % der Standardgröße */
.poster-formats .btn b { font-weight: 800; }
@media (max-width: 600px) { .poster-formats .btn { white-space: normal; text-align: left; } }
.design-preview-forschung { background-color: #f7f5f1; background-image: linear-gradient(90deg, rgba(110,118,130,.25) 1px, transparent 1px), linear-gradient(rgba(110,118,130,.25) 1px, transparent 1px); background-size: 6px 6px; }
.design-preview-forschung span:nth-child(1) { background: #fff; border-bottom: 3px solid #2e7d4f; }
.design-preview-forschung span:nth-child(2) { margin: 7px 4px 7px 7px; background: #fff; border: 1px solid #2e7d4f; box-shadow: inset 0 0 0 2px #fff, inset 3px 3px 0 0 #2a5a9e; }
.design-preview-forschung span:nth-child(3) { margin: 18px 7px 14px 4px; background: #2e7d4f; border-radius: 999px; }
