/* Vereinsportal Schovelkoten – styles. Mobile first, no build step.
 *
 * Design "A · Klar & hell" (November 2026), in the spirit of db.de
 * - White top bar with the logo; the logo carries the brand, not large red surfaces.
 * - Red only where it means something: the main button, the active navigation,
 *   unread markers and counters, overdue hints, and "Vereinsheim gesperrt".
 * - Neutral greys, white cards with a thin border and no shadow, one font (Inter,
 *   self-hosted below; the system font until it has loaded).
 * - Event categories keep their meaning colours, shown as small marks next to the
 *   date rather than as coloured blocks.
 * - Phones get an app-like navigation bar at the bottom; "Mehr" opens the full menu.
 */

/* Inter 4.1 (SIL Open Font License, see static/fonts/OFL.txt), served from our own
   server: no request to Google or any other third party. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/InterVariable.2bf3d951bf9d.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/InterVariable-Italic.8d1dc86da258.woff2") format("woff2"); }

:root {
  /* Brand */
  --red-900: #6e0f13;
  --red-800: #8f1014;
  --red-700: #c0151b; /* links and small red text: readable on white */
  --red-600: #d4171e; /* main buttons, counters, unread dots */
  --red-500: #e9474d;
  --red-100: #fde2e3;
  --red-50: #fdecec;
  --logo-red: #e32026; /* exactly the logo */
  --logo-dark: #332b29; /* dark ring of the logo */
  --bar: #ffffff; /* top bar */

  /* Neutrals */
  --ink: #1f1f22;
  --text: #2b2b30;
  --muted: #6b6b72;
  --subtle: #8a8a92;
  --line: #e4e4e7;
  --line-soft: #ececee;
  --bg: #f4f4f5;
  --hover: #f7f7f8;
  --card: #ffffff;

  /* Meaning */
  --ok: #2f7d4a;
  --danger: #b3261e;

  /* Event categories */
  --cat-tournament: #2f7d4a;
  --cat-external: var(--red-600);
  --cat-special: #b98a12;
  --cat-guests: #6d4bb0;
  --cat-external_tournament: #2563a6;
  --cat-deadline: #0f7c7a; /* "Fertig bis" of my own projects (Vorhaben), only for me */

  /* Forum labels */
  --tag-red: var(--red-600);
  --tag-blue: #2563a6;
  --tag-purple: #6d4bb0;
  --tag-teal: #0f7c7a;
  --tag-orange: #c75a14;
  --tag-slate: #52525b;

  --font: Inter, "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-pop: 0 6px 20px rgb(20 20 24 / 12%); /* menus and pop-ups only */
  --sidebar: 14rem;
  --topbar-h: 4.25rem;
  --tabbar-h: 4.25rem;
  --page: 80rem; /* max width of top bar content and page; grows with the root font size */
}

/* Scale everything (all sizes are in rem) on large screens instead of leaving
   a small island in the middle of a 4K monitor. Media queries use the browser
   default of 16px, so these steps refer to 1600, 2240 and 2880 CSS pixels. */
@media (min-width: 100rem) { html { font-size: 106.25%; } } /* 17px */
@media (min-width: 140rem) { html { font-size: 118.75%; } } /* 19px */
@media (min-width: 180rem) { html { font-size: 131.25%; } } /* 21px */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.005em; margin: 1.75rem 0 .75rem; }
h3 { font-size: 1rem; font-weight: 700; }
@media (max-width: 40rem) { h1 { font-size: 1.6rem; } }
a { color: var(--red-700); }
a:hover { color: var(--red-800); }
:focus-visible { outline: 3px solid var(--red-500); outline-offset: 2px; }
.help { color: var(--muted); font-size: .9rem; }
.small { font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--ink); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 1rem; max-width: var(--page); height: var(--topbar-h); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 60rem) { .topbar-inner { padding: 0 1.5rem; gap: 1.5rem; } }
.topbar a { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topsearch { flex: 0 1 20rem; display: flex; align-items: center; gap: .5rem; height: 2.5rem; margin-left: auto; padding: 0 .9rem; border-radius: 999px; background: var(--bg); color: var(--muted); }
.topsearch:focus-within { outline: 3px solid var(--red-100); background: #fff; box-shadow: inset 0 0 0 1px var(--red-500); }
.topsearch svg { width: 1.1rem; height: 1.1rem; flex: none; }
.topsearch input[type=search] { flex: 1; min-width: 0; width: auto; padding: 0; border: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--ink); outline: none; }
.topsearch input[type=search]:focus { border: 0; outline: none; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: .25rem; font-size: .92rem; }
.topsearch + .topbar-user { margin-left: 0; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; color: #3d3d42; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.iconbtn svg { width: 1.35rem; height: 1.35rem; }
.me { display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .6rem .25rem .25rem; border-radius: 999px; font-weight: 600; }
.me:hover { background: var(--bg); }
.topbar .linkbutton { padding: .5rem .6rem; color: var(--muted); text-decoration: none; font-size: .9rem; }
.topbar .linkbutton:hover { color: var(--ink); }
.searchicon { display: none; }
@media (max-width: 47.99rem) {
  .topsearch { display: none; }
  .searchicon { display: inline-flex; margin-left: auto; }
  .searchicon + .topbar-user { margin-left: 0; }
}
@media (max-width: 59.99rem) {
  .topbar-user .me, .topbar-user form { display: none; } /* phones: account and logout live under "Mehr" */
  .topbar-inner { gap: .5rem; padding-right: .5rem; }
}
.mobile-only { display: block; }
@media (min-width: 60rem) { .mobile-only { display: none; } }
.sidelogout button { width: 100%; margin-top: 0; }

/* ---------- Layout: sidebar + content ---------- */
.layout { display: block; max-width: var(--page); margin: 0 auto; padding: 1.25rem 1rem; }
.layout.no-sidebar { max-width: 32rem; padding-top: 2.5rem; }
.sidebar { display: none; }
@media (max-width: 59.99rem) { /* phones and tablets: "Mehr" slides the full menu in between top bar and tab bar */
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { display: block; position: fixed; z-index: 19; top: var(--topbar-h); bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); left: 0; width: min(20rem, 88vw); padding: 1rem; overflow-y: auto; overscroll-behavior: contain; background: var(--card); box-shadow: var(--shadow-pop); }
  body.nav-open::after { content: ""; position: fixed; z-index: 18; inset: var(--topbar-h) 0 0 0; background: rgb(20 20 24 / 30%); }
}
@media (min-width: 60rem) {
  .layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 2.5rem; padding: 1.75rem 1.5rem 3rem; }
  .sidebar { display: block; position: sticky; top: calc(var(--topbar-h) + 1.75rem); align-self: start; }
  .layout.no-sidebar { display: block; }
}
.content { min-width: 0; }

.sidebar .button { width: 100%; margin: 0 0 1rem; }
.sidenav { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--radius-sm); color: #3d3d42; text-decoration: none; font-weight: 500; }
.sidenav a:hover { background: #ebebed; color: var(--ink); }
.sidenav a.active { background: var(--red-50); color: var(--red-700); font-weight: 600; }
.sidenav svg { width: 1.25rem; height: 1.25rem; flex: none; }
.sidenav .count { margin-left: auto; }
.sidenav .sep { height: 1px; margin: .6rem .75rem; background: var(--line); }
.sidehead { margin: 0 0 .35rem .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); }
.sideforums a { font-weight: 500; font-size: .92rem; padding: .4rem .75rem; }
.swatch { width: .6rem; height: .6rem; border-radius: 2px; background: var(--tag); flex: none; }
.count { display: inline-block; min-width: 1.3rem; padding: 0 .4rem; border-radius: 1rem; background: var(--red-600); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.3rem; text-align: center; }

/* ---------- Tab bar (phones and tablets) ---------- */
.tabbar { display: none; }
@media (max-width: 59.99rem) {
  .tabbar { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; display: flex; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); }
}
.tabbar a, .tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: .7rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.tabbar a:hover, .tabbar button:hover { background: none; color: var(--ink); }
.tabbar svg { width: 1.5rem; height: 1.5rem; }
.tabbar .active, body.nav-open .tabbar button { color: var(--red-700); }
.tabbar .tabdot { position: absolute; top: .55rem; left: 50%; margin-left: .55rem; min-width: .55rem; height: .55rem; border-radius: 99px; background: var(--red-600); }
.tabbar .tabdot.num { min-width: 1.1rem; height: 1.1rem; top: .4rem; padding: 0 .25rem; color: #fff; font-size: .65rem; line-height: 1.1rem; text-align: center; }

/* ---------- Generic components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; margin-top: 1rem; padding: .55rem 1.15rem; border: 0; border-radius: var(--radius-sm); background: var(--red-600); color: #fff; font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--red-700); color: #fff; }
.button svg, button svg { width: 1.1rem; height: 1.1rem; flex: none; }
button.secondary, .button.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px #d4d4d8; }
button.secondary:hover, .button.secondary:hover { background: var(--hover); color: var(--ink); }
button.danger { background: var(--card); color: var(--danger); box-shadow: inset 0 0 0 1px #e8b4b0; }
button.danger:hover { background: #fdf1f0; color: var(--danger); }
.linkbutton { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linkbutton:hover { background: none; color: inherit; }
.post .linkbutton { color: var(--danger); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar h1, .toolbar h2 { margin: 0; }
.toolbar .button { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions form { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions button, .actions .button { margin-top: 0; }
.actions.small { font-size: .9rem; gap: 1rem; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red-600); border-radius: var(--radius-sm); padding: .6rem .9rem; margin-bottom: .5rem; }
.errorlist { color: var(--danger); padding-left: 1.2rem; margin: .25rem 0; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.pagetop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.pagetop h1 { margin: 0 0 .3rem; }
.pagetop .button { margin-top: 0; }
.pagehead h1 { margin: 0; }
.back { display: inline-block; margin-bottom: .5rem; font-size: .9rem; }

/* Avatars: initials on a colour derived from the user */
/* Avatars: initials on a pale tint of a colour derived from the user (calm, still tellable apart) */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--av, #52525b) 14%, #fff); color: color-mix(in srgb, var(--av, #52525b) 80%, #000); font-weight: 700; font-size: .88rem; text-transform: uppercase; }
.avatar.sm { width: 1.9rem; height: 1.9rem; font-size: .75rem; }
.av-0 { --av: var(--red-700); } .av-1 { --av: #2563a6; } .av-2 { --av: #6d4bb0; } .av-3 { --av: #0f7c7a; }
.av-4 { --av: #c75a14; } .av-5 { --av: #52525b; } .av-6 { --av: #8a3b12; } .av-7 { --av: #2f7d4a; }

/* Forum labels */
.tag-red { --tag: var(--tag-red); } .tag-blue { --tag: var(--tag-blue); } .tag-purple { --tag: var(--tag-purple); }
.tag-teal { --tag: var(--tag-teal); } .tag-orange { --tag: var(--tag-orange); } .tag-slate { --tag: var(--tag-slate); }
.label { display: inline-block; padding: .1rem .5rem; border-radius: 4px; background: var(--tag); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
a.label:hover { color: #fff; filter: brightness(.92); }

/* ---------- Discussion list (forum, start page) ---------- */
.discussions { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.discussion { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .25rem .85rem; align-items: center; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.discussion:first-child { border-top: 0; }
.discussion:hover { background: var(--hover); }
.discussion .title { display: block; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.discussion .title:hover { color: var(--red-700); }
.discussion .meta { color: var(--muted); font-size: .85rem; }
.discussion .side { display: flex; align-items: center; gap: .75rem; justify-self: end; }
.replies { display: inline-flex; align-items: center; gap: .3rem; min-width: 2.5rem; color: var(--muted); font-size: .9rem; }
.replies svg { width: 1rem; height: 1rem; }
.pin { color: var(--red-600); font-weight: 700; }
@media (max-width: 40rem) {
  .discussion { grid-template-columns: auto minmax(0, 1fr); }
  .discussion .side { grid-column: 2; justify-self: start; }
}
.empty { padding: 1.25rem 1rem; color: var(--muted); }

/* Forum header band */
.forumhead { border-left: 6px solid var(--tag); }
.forumhead h1 { margin: 0 0 .25rem; }

/* ---------- Topic page ---------- */
.post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .9rem; padding: 1rem; }
.posthead { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.posthead strong { color: var(--ink); }
.postbody { overflow-wrap: anywhere; }
.postbody > :first-child { margin-top: .25rem; }
.postbody > :last-child { margin-bottom: 0; }
.postbody pre { overflow-x: auto; background: var(--bg); padding: .5rem; border-radius: var(--radius-sm); }
.postbody blockquote { margin: .5rem 0; padding-left: .75rem; border-left: 3px solid var(--red-100); color: var(--muted); }
.post .actions { grid-column: 2; }
.modbar { margin-bottom: 1rem; }
.pager { display: flex; justify-content: space-between; margin: 1rem 0; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin-top: .75rem; color: var(--ink); }
.field { margin-top: .75rem; }
.field > label { margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; color: var(--ink); }
fieldset div > div { margin: .2rem 0; }
fieldset label { display: inline; font-weight: normal; margin: 0; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=email], select, textarea {
  width: 100%; padding: .6rem .7rem; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d4d4d8; border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--red-500); outline: 3px solid var(--red-100); outline-offset: 0; }
textarea { min-height: 6rem; }
.fieldrow { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 30rem) { .fieldrow { grid-template-columns: 2fr 1fr 1fr; } }
.multiday { margin-top: .75rem; }
.multiday summary { cursor: pointer; font-weight: 600; }

/* ---------- Start page ---------- */
.dashboard { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 72rem) { .dashboard { grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem); } }
.dash-side h2:first-child { margin-top: 0; }
.news { display: grid; gap: .75rem; margin-bottom: 1rem; }
.newsitem { display: block; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red-600); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.newsitem:hover { background: var(--hover); color: inherit; }
.newsitem strong { color: var(--ink); font-size: 1.05rem; }
.greeting { margin-bottom: .3rem; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.dash-head .button { margin-top: 0; }
@media (max-width: 40rem) { .dash-head .button { display: none; } }

/* ---------- Event categories ---------- */
.cat-tournament { --cat: var(--cat-tournament); }
.cat-external { --cat: var(--cat-external); }
.cat-special { --cat: var(--cat-special); }
.cat-guests { --cat: var(--cat-guests); }
.cat-external_tournament { --cat: var(--cat-external_tournament); }
/* Category as text with a small colour mark (no coloured blocks) */
.cat { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; font-weight: 500; }
.cat::before { content: ""; width: .55rem; height: .55rem; flex: none; border-radius: 2px; background: var(--cat); }
.tag-pending { display: inline-block; padding: 0 .45rem; border-radius: 999px; border: 1px dashed #a1a1aa; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.cat-border-tournament { border-left: 6px solid var(--cat-tournament); }
.cat-border-external { border-left: 6px solid var(--cat-external); }
.cat-border-special { border-left: 6px solid var(--cat-special); }
.cat-border-guests { border-left: 6px solid var(--cat-guests); }
.cat-border-external_tournament { border-left: 6px solid var(--cat-external_tournament); }
.card.pending { border-style: dashed; }
.eventrow { display: flex; gap: 1rem; text-decoration: none; color: inherit; }
.eventrow:hover { background: var(--hover); color: inherit; }
.eventrow.compact { padding: .6rem .8rem; margin-bottom: .5rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; }
.eventhead { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.eventhead .datebox { width: 3.6rem; padding-bottom: .55rem; }
.eventhead .datebox strong { font-size: 1.9rem; }
.eventhead h1 { margin: .1rem 0 .35rem; overflow-wrap: anywhere; }
.eventdetail { max-width: 46rem; }
.eventdetail .facts { margin: 0; }
.eventhead .badges { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.eventdetail .actions { margin-top: 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.legend { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .8rem; color: var(--muted); }
.dot { display: inline-block; width: .65em; height: .65em; border-radius: 2px; background: var(--cat); vertical-align: .05em; }
.dot.pending { background: #fff; border: 1px dashed var(--muted); box-sizing: border-box; }

/* Month grid (Termine) */
.monthnav { display: flex; justify-content: space-between; align-items: center; margin: .25rem 0 .5rem; font-size: 1.1rem; }
.monthnav a { text-decoration: none; padding: 0 .6rem; font-size: 1.3rem; }
.monthnav strong { white-space: nowrap; color: var(--ink); }
/* Termine: header with month switcher, month grid in a card, list below */
.calhead { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.calhead h1 { margin: 0; }
.calhead > .button { margin: 0 0 0 auto; }
.calnav { display: flex; align-items: center; gap: .25rem; }
.calnav strong { min-width: 9.5rem; text-align: center; color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
.calnav .iconbtn svg { width: 1.25rem; height: 1.25rem; }
.calnav .button.small { min-height: 2.25rem; margin: 0 0 0 .5rem; }
@media (max-width: 40rem) {
  .calhead h1 { flex-basis: 100%; }
  .calnav { flex: 1; }
  .calnav strong { min-width: 0; flex: 1; }
  .calhead > .button { display: none; } /* phones: the tab bar is close; tap a day instead */
}
.monthcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.monthfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.monthfoot .legend, .monthfoot .help { margin: 0; }
.month { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--card); }
.month th { padding: .6rem 0 .5rem; color: var(--subtle); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.month td { position: relative; vertical-align: top; height: 4.25rem; padding: .3rem .3rem .35rem; border-right: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); overflow: hidden; }
.month td:last-child { border-right: 0; }
.month tr:first-child td { border-top: 0; }
.month td.other { background: #fafafa; color: #b4b4bb; }
.month td.past:not(.other) .daynum { color: var(--subtle); }
.month td.other .daynum { color: #b4b4bb; font-weight: 500; }
.month td.today .daynum { background: var(--ink); color: #fff; }
.month .daylink { position: absolute; inset: 0; z-index: 0; }
.month .daylink:hover { background: var(--hover); }
.month .daylink:focus-visible { outline: 2px solid var(--red-600); outline-offset: -2px; }
.month .daynum, .month .chip { position: relative; z-index: 1; }
.month .daynum { pointer-events: none; display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.chip { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--cat) 13%, #fff); box-shadow: inset 3px 0 0 var(--cat); color: var(--ink); font-size: .74rem; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chiptime { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .month .chip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; } }
.chip:hover { background: color-mix(in srgb, var(--cat) 22%, #fff); color: var(--ink); }
.chip.pending { background: #fff; box-shadow: none; border: 1px dashed var(--cat); color: var(--muted); }
@media (min-width: 40rem) { .month td { height: 6.5rem; } .chip { font-size: .8rem; } }
@media (max-width: 39.99rem) { /* phones: the grid shows dots, the list below has the details */
  .month td { height: 3.4rem; padding: .2rem 0; text-align: center; }
  .month .daynum { display: flex; width: 1.75rem; min-width: 0; height: 1.75rem; margin: 0 auto 1px; padding: 0; }
  .month .chip { display: inline-block; width: .42rem; height: .42rem; margin: 0 1px; padding: 0; border-radius: 50%; background: var(--cat); box-shadow: none; font-size: 0; vertical-align: top; }
  .month .chip.pending { background: #fff; border: 1.5px solid var(--cat); }
  .monthfoot .help { display: none; }
}
.monthlist li.past .rmain .title { color: var(--muted); font-weight: 500; }
.monthlist .meta .cat { font-size: inherit; }

/* Mini calendar (start page) */
.minical { padding: 1rem; }
.minical .monthnav { font-size: .95rem; margin-top: 0; }
.minical .monthnav a { padding: 0 .4rem; }
.minical table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.minical th { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.minical td { text-align: center; padding: 1px 0; }
/* Mini calendar ("Variante A"): days with events get a pale tint of their category
   colour with the number in that colour; a second category or an own deadline on the
   same day shows as a small dot; today has a dark ring. */
.mday { position: relative; display: inline-flex; width: 2.15em; height: 2.15em; align-items: center; justify-content: center; border-radius: 50%; font-size: .85rem; text-decoration: none; color: var(--ink); }
.mday.other { color: #c4c4ca; }
.mday.today { box-shadow: 0 0 0 2px var(--ink); font-weight: 700; }
a.mday:not(.free) { background: color-mix(in srgb, var(--cat) 18%, #fff); color: color-mix(in srgb, var(--cat) 80%, #000); font-weight: 700; }
a.mday:not(.free):hover { background: color-mix(in srgb, var(--cat) 30%, #fff); }
a.mday.pending { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cat); }
a.mday.pending.today { box-shadow: inset 0 0 0 1.5px var(--cat), 0 0 0 2px var(--ink); }
a.mday.other:not(.free) { opacity: .45; }
a.mday.free { font-weight: 400; }
a.mday.free.today { font-weight: 700; }
a.mday.free.other { color: #c4c4ca; }
a.mday.free:hover { background: var(--bg); color: var(--ink); }
a.mday.second-cat::after, a.mday.second-deadline::after { content: ""; position: absolute; top: -.05em; right: -.05em; width: .55em; height: .55em; border-radius: 50%; background: var(--cat2, var(--cat-deadline)); box-shadow: 0 0 0 1.5px var(--card); }
.second-tournament { --cat2: var(--cat-tournament); } .second-external { --cat2: var(--cat-external); }
.second-special { --cat2: var(--cat-special); } .second-guests { --cat2: var(--cat-guests); }
.second-external_tournament { --cat2: var(--cat-external_tournament); }

/* ---------- Admin area ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin-bottom: 1rem; }
.tile { display: block; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--red-500); color: inherit; }
.tile strong { display: block; color: var(--ink); }

/* Member administration */
.searchbar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.searchbar input { flex: 1; }
.searchbar button { margin-top: 0; }
input[type=search] { width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid #d4d4d8; border-radius: var(--radius-sm); background: #fff; }
.memberlist .muted { opacity: .55; }
.status { display: inline-block; padding: 0 .55rem; border-radius: 999px; background: #e3f1e4; color: #1f5f23; font-size: .78rem; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.status-eingeladen { background: #fff4d6; color: #7a5a00; }
.status-gesperrt { background: var(--red-50); color: var(--red-800); }
.cardhead { margin: 0 0 .5rem; font-size: 1rem; }
.fieldrow.two { grid-template-columns: 1fr; }
@media (min-width: 30rem) { .fieldrow.two { grid-template-columns: 1fr 1fr; } }
.checklist > div > div, .checklist li { margin: .35rem 0; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist label { display: inline; font-weight: 500; margin: 0; }
.teamrow { display: grid; grid-template-columns: 1fr 10rem; align-items: center; gap: 1rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.teamrow:first-of-type { border-top: 0; }
.teamrow label { margin: 0; font-weight: 500; }
label.inline { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.advanced { margin-top: 2rem; }

/* Login page with the club logo */
.loginlogo { display: block; width: 9rem; height: 9rem; margin: 0 auto 1rem; }
.logintitle { text-align: center; }

/* ---------- Projects: one board, tasks with subtasks ---------- */
.donecheck { display: inline-flex; vertical-align: -.2em; width: 1.25em; height: 1.25em; padding: .12em; border-radius: 50%; background: var(--ok); color: #fff; }
.donecheck svg { width: 100%; height: 100%; }
button.small { margin-top: 0; padding: .3rem .65rem; font-size: .85rem; }
.filter { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.filter a { padding: .45rem .8rem; color: var(--ink); text-decoration: none; font-size: .9rem; }
.filter a.current { background: var(--red-700); color: #fff; }

/* Main tasks stand out (logo-brown stripe), subtasks are compact and slightly grey */
.assignee { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; }

.crumb { margin: 0 0 .25rem; color: var(--muted); font-size: .9rem; }
.issue { display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; align-items: start; }
@media (min-width: 60rem) { .issue { grid-template-columns: minmax(0, 1fr) 18rem; } .issue-side { position: sticky; top: 4.5rem; } }
.issue-side { display: grid; gap: 1rem; }
.issue-side > form + form, .issue-side > form + dl, .issue-side > dl + form { padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.issue-side label { margin-top: 0; }
.issue-side .facts { margin: 0; font-size: .9rem; }
.issue-side .facts dd { margin: 0; }
.state { font-weight: 600; }
.state-in_progress { color: var(--tag-blue); }
.state-done { color: var(--ok); }
.segmented { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.segmented button { margin-top: 0; padding: .45rem .75rem; font-size: .9rem; }
.segmented button.current { color: #fff; }
.segmented .current.state-open { background: var(--tag-slate); }
.segmented .current.state-in_progress { background: var(--ink); }
.segmented .current.state-done { background: var(--ok); }
.assignform select { margin-top: .35rem; }
.assignform .actions { margin-top: .4rem; }

/* Task page and blockers */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.backbutton { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem; padding: .45rem .85rem; border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 0 0 1px #d4d4d8; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.backbutton:hover { background: var(--hover); color: var(--ink); }
.issuehead .titlerow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.issuehead h1 { margin: 0; font-size: 1.75rem; overflow-wrap: anywhere; }
.issuehead .crumb { margin-bottom: .35rem; }
a.button.small { margin-top: 0; padding: .3rem .7rem; font-size: .85rem; }

/* Formatting toolbar above Markdown fields, clickable checklists */
.mdbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin-top: .35rem; background: #f4f4f5; border: 1px solid #d4d4d8; border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.mdbtn { margin: 0; padding: .25rem .55rem; min-width: 2rem; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 4px; font-size: .85rem; font-weight: 600; }
.mdbtn:hover { background: #fff; color: var(--ink); border-color: #d4d4d8; }
.mdbtn-bold { font-weight: 800; }
.mdbtn-italic { font-style: italic; font-family: Georgia, serif; }
textarea.has-mdbar { border-top-left-radius: 0; border-top-right-radius: 0; }
.postbody .checkitem { list-style: none; margin-left: -1.3rem; }
.postbody .checkitem .checkbox { width: 1.05rem; height: 1.05rem; margin: 0 .4rem 0 0; vertical-align: -.15em; accent-color: var(--ok); }
.postbody .checkitem .checkbox:not(:disabled) { cursor: pointer; }

/* Start page: free days in the mini calendar open the event form; comments under events */
.eventcomment { margin: .35rem 0 0; color: var(--text); font-size: .85rem; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* ---------- Event form ---------- */
.lead { margin: -.5rem 0 1rem; }
.eventform { max-width: 46rem; padding: 0; }
.formsection { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.formsection:first-of-type { border-top: 0; }
.formsection > h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.formsection > .field:first-of-type { margin-top: .5rem; }
.formsection textarea { margin-top: .5rem; }
.formactions { padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--hover); border-radius: 0 0 var(--radius) var(--radius); }
.formactions button { margin-top: 0; }

.catpicker { display: grid; gap: .4rem; margin-top: .35rem; }
@media (min-width: 40rem) { .catpicker { grid-template-columns: 1fr 1fr; } }
.catoption { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .1rem .55rem; margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 400; cursor: pointer; }
.catoption:hover { background: var(--hover); }
.catoption input { margin: 0; accent-color: var(--cat); }
.catoption .dot { width: .7rem; height: .7rem; }
.catoption .catname { font-weight: 700; color: var(--ink); }
.catoption .catexample { grid-column: 2 / -1; color: var(--muted); font-size: .82rem; }
.catoption:has(input:checked) { background: var(--hover); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.catoption:has(input:focus-visible) { outline: 3px solid var(--red-500); outline-offset: 2px; }

.segmented.choice label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .45rem .8rem; border: 1px solid #d4d4d8; border-radius: var(--radius-sm); background: #fff; font-weight: 500; cursor: pointer; }
.segmented.choice label:has(input:checked) { border-color: var(--red-700); background: var(--red-50); color: var(--red-800); font-weight: 700; }
.segmented.choice input { margin: 0; accent-color: var(--red-700); }

/* Start page: my open tasks */
.sectiontop { margin-bottom: .5rem; }
.sectiontop h2 { margin: 1rem 0 0; }
.mytasks { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mytasks li + li { border-top: 1px solid var(--line); }
.mytasks a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; padding: .6rem 1rem; color: inherit; text-decoration: none; }
.mytasks a:hover { background: var(--hover); }
.mytasks .state { font-size: .8rem; }
.mytasks .title { flex: 1; min-width: 10rem; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.mytasks .parent { color: var(--muted); font-size: .82rem; }

/* Start page: mixed activity list (forum, projects, events) */
.label-projects { --tag: var(--logo-dark); }
.label.catlabel { background: var(--cat); }
.activity .meta .tag-pending { font-size: .75rem; padding: 0 .35rem; }

/* "Meine Aufgaben": unread news first, then own open tasks */
.mytasks a { align-items: center; }
.mytasks .newdot { width: .55rem; height: .55rem; flex: none; border-radius: 50%; background: var(--red-600); }
.mytasks .newdot.none { background: transparent; }
.mytasks li.unread .title { font-weight: 700; }
.mytasks .title .parent { font-weight: 400; }
.mytasks .hint { color: var(--red-800); font-size: .82rem; font-weight: 600; }
.followform { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.followform button.following { color: #8a6a00; }

/* Bell in the top bar and notification list */
.bellcount { position: absolute; top: .35rem; right: .3rem; min-width: 1.15rem; padding: 0 .3rem; border-radius: 1rem; background: var(--red-600); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.15rem; text-align: center; box-shadow: 0 0 0 2px var(--bar); }
.notelist .unread { background: var(--red-50); }
.notelist .unread .title { font-weight: 700; }
.newdot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red-600); }
.topicfollow { margin-bottom: 1rem; }
.mention { color: var(--red-700); font-weight: 600; }
.mentionbox { list-style: none; margin: .25rem 0 0; padding: .25rem; max-width: 18rem; background: #fff; border: 1px solid #d4d4d8; border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgb(20 20 24 / 12%); }
.mentionbox li { padding: .35rem .6rem; border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--ink); }
.mentionbox li.active, .mentionbox li:hover { background: var(--red-50); color: var(--red-800); }

/* ---------- Vorhaben (lean projects) ---------- */
.vlist { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.vrow + .vrow { border-top: 1px solid var(--line); }
.avatar.nobody { background: #fff; color: var(--subtle); box-shadow: inset 0 0 0 1.5px #d4d4d8; }

.vmain { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.vmain .title { color: var(--ink); font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; }
.vrow.isdone .vmain .title { color: var(--muted); font-weight: 600; }
.vprogress { color: #4a4a50; font-size: .92rem; overflow-wrap: anywhere; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; margin-top: .15rem; color: var(--muted); font-size: .84rem; }
.vmeta > span { display: inline-flex; align-items: center; gap: .3rem; }
.vmeta .icon { width: .95rem; height: .95rem; flex: none; }
.vstale { color: #8a6a00; }
.vbar { display: inline-block; width: 2.5rem; height: 4px; margin-left: .2rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.vbar span { display: block; height: 100%; background: var(--ok); }
.vdue { font-weight: 600; color: var(--ink); }
.vdue.overdue { color: var(--red-700); }
.state.overdue { color: var(--red-700); }
.vdone summary { cursor: pointer; font-weight: 600; margin: 1rem 0 .6rem; color: #3d3d42; }
.stand .quickadd { margin-top: .25rem; }
.standform { display: grid; gap: .3rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.standform label { margin: .25rem 0 0; }
.standform button { justify-self: start; margin-top: .35rem; }
.standform .help { margin: 0; }
.overduehint { display: flex; align-items: center; gap: .3rem; margin: 0; color: var(--red-700); font-size: .85rem; font-weight: 600; }
.overduehint .icon, .followform .icon, .segmented .icon, label.inline .icon { width: 1rem; height: 1rem; flex: none; }
.standform textarea { min-height: 3.2rem; }
.cat-deadline { --cat: var(--cat-deadline); }
.cat-border-deadline { border-left: 6px solid var(--cat-deadline); }

/* ---------- Forum: topic list (same look as Vorhaben) ---------- */
.topiclist { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.topicrow + .topicrow { border-top: 1px solid var(--line); }
.topicrow > a { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem 1rem; color: inherit; text-decoration: none; }
.topicrow > a:hover { background: var(--hover); }
.tmain { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.tmain .title { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.topicrow.unread .title { font-weight: 800; }
.tpreview { color: var(--text); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmain .meta { color: var(--muted); font-size: .82rem; }
.tside { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; white-space: nowrap; }
.topicrow .newdot { vertical-align: middle; }
@media (max-width: 40rem) { .topicrow > a { flex-wrap: wrap; } .tside { flex-direction: row; width: 100%; padding-left: 3.2rem; } .tpreview { white-space: normal; } }

/* ---------- Forum: topic page (same layout as Vorhaben) ---------- */
.opener { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; }
.replyhead { margin: 1.25rem 0 .6rem; font-size: 1rem; }
.newline { display: flex; align-items: center; gap: .6rem; margin: .75rem 0; color: var(--red-700); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.newline::before, .newline::after { content: ""; flex: 1; border-top: 2px solid var(--red-600); }
.sidelabel { margin: 0 0 .35rem; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.avatars { display: flex; flex-wrap: wrap; gap: .25rem; }
.modbox { display: grid; gap: .4rem; justify-items: start; padding-top: .75rem; border-top: 1px solid var(--line); }
.issue-side > .label { justify-self: start; }

/* ---------- Forum: badges, result, reactions, polls ---------- */
.titlerow .badges { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.motion, .donebadge { display: inline-block; padding: .05rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.motion-open { background: #ececee; color: var(--ink); }
.motion-accepted, .donebadge { background: #e3f1e4; color: #1f5f23; }
.motion-rejected { background: var(--red-100); color: var(--red-800); }
.segmented .current.motionreject { background: var(--red-700); }
.topicrow.isdone .title { color: var(--muted); }
.resultbox { display: grid; gap: .3rem; border-left: 5px solid var(--ok); color: inherit; text-decoration: none; }
.resultbox:hover { background: #f3faf3; color: inherit; }
.post.is-result { box-shadow: inset 4px 0 0 var(--ok), var(--shadow); }
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .5rem; }
.reaction { margin: 0; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; }
.reaction:hover { background: var(--red-50); color: var(--ink); border-color: var(--red-100); }
.reaction.mine { background: var(--red-50); border-color: var(--red-500); }
.reactpick { position: relative; }
.reactpick summary { list-style: none; cursor: pointer; padding: .1rem .5rem; border: 1px dashed #d4d4d8; border-radius: 1rem; color: var(--muted); font-size: .8rem; }
.reactpick summary::-webkit-details-marker { display: none; }
.reactpick[open] span { position: absolute; z-index: 5; top: 1.8rem; left: 0; display: flex; gap: .2rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgb(20 20 24 / 12%); }
.pollbox .actions { margin-top: .5rem; }
.pollrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .2rem .6rem; margin: .35rem 0; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; }
.pollrow.mine { border-color: var(--red-500); background: var(--red-50); }
.pollrow input { margin: 0; accent-color: var(--red-700); }
.polltext { color: var(--ink); }
.pollcount { font-weight: 700; color: var(--ink); }
.pollbar { grid-column: 1 / -1; height: .35rem; border-radius: 1rem; background: #ececee; overflow: hidden; }
.pollbar span { display: block; height: 100%; background: var(--red-600); }
a.button.whatsapp { justify-self: start; background: #e7f6ec; color: #136c34; }
a.button.whatsapp:hover { background: #d3efdc; color: #136c34; }
button.ok { background: var(--ok); }
button.ok:hover { background: #1f5f23; }
.boardonly { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; border-radius: 999px; background: #ececee; color: #3d3d42; font-size: .74rem; font-weight: 600; vertical-align: .12em; white-space: nowrap; }
.boardonly .icon { width: .8rem; height: .8rem; }

/* ---------- Start page: one calm list style for every section ---------- */
.summary { margin: 0; color: var(--muted); font-size: .95rem; }
.summary a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.summary a:hover { color: var(--red-700); border-color: var(--red-500); }
.summary a.overdue { color: var(--red-700); }
.sectionbar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.9rem 0 .7rem; }
.sectionbar h2 { margin: 0; }
.dash-side .sectionbar:first-child { margin-top: 0; }
.morelink { color: #3d3d42; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.morelink:hover { color: var(--red-700); }
.rowlist { list-style: none; margin: 0 0 .5rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rowlist > li + li { border-top: 1px solid var(--line-soft); }
.rowlist > li > a { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.1rem; color: inherit; text-decoration: none; }
.rowlist > li > a:hover { background: var(--hover); }
.rowlist > li.empty { padding: .9rem 1.1rem; color: var(--muted); }
.rowlist .newdot.none { background: transparent; }
.rmain { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.rmain .title { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowlist .unread .rmain .title { font-weight: 800; }
.rmain .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: var(--muted); font-size: .84rem; }
.rmain .meta.comment { color: var(--text); }
.rmain .icon { width: .95rem; height: .95rem; flex: none; }
.rside { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex: none; }
.rside .time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.rside .time.overdue, .rmain .overdue { color: var(--red-700); font-weight: 700; }
.rside .replies svg { width: .9rem; height: .9rem; }
.daygroup { margin: 1rem 0 .4rem; color: var(--subtle); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.feed .rside .label { padding: 0; background: none; color: var(--muted); font-weight: 500; font-size: .8rem; }
.feedmore summary { cursor: pointer; margin: .5rem 0; color: var(--logo-dark); font-size: .9rem; font-weight: 600; }
.datebox { position: relative; display: grid; place-items: center; width: 2.9rem; flex: none; padding: .15rem 0 .45rem; line-height: 1.1; }
.datebox::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 1.1rem; height: .22rem; margin-left: -.55rem; border-radius: 2px; background: var(--cat); }
.datebox span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.datebox strong { color: var(--ink); font-size: 1.4rem; font-weight: 800; }
.upcoming li.pending .datebox::after { background: none; border: 1.5px dashed var(--cat); height: 0; }
.legendbox summary { cursor: pointer; margin-top: .5rem; color: var(--muted); font-size: .8rem; }
.only-narrow { display: block; }
@media (min-width: 72rem) { .only-narrow { display: none; } }
@media (max-width: 71.99rem) { .dash-side { display: none; } }
.brand-short { display: none; }
@media (max-width: 40rem) { .brand-name { display: none; } .brand-short { display: inline; font-size: 1.05rem; white-space: nowrap; } }
@media (max-width: 40rem) { .rside .label { display: none; } }
.upcoming .rmain .title { white-space: normal; }
@media (max-width: 40rem) { .rmain .title { white-space: normal; } }

/* Images and PDFs in texts */
.postbody img { display: block; max-width: 100%; max-height: 32rem; height: auto; margin: .5rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: zoom-in; }
.postbody a[href^="/medien/"]:not(:has(img)) { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--hover); color: var(--ink); text-decoration: none; font-weight: 600; }
.mdbtn-upload { margin-left: auto; }

/* ---------- Replies to comments (Vorhaben), up to 3 levels ---------- */
.post.depth-2 { margin-left: 1.5rem; }
.post.depth-3 { margin-left: 3rem; }
@media (max-width: 30rem) { .post.depth-2 { margin-left: .75rem; } .post.depth-3 { margin-left: 1.5rem; } }
.post.depth-2, .post.depth-3 { border-left: 3px solid var(--line); }
.post .actions { flex-wrap: wrap; }
.replybox { order: -1; }
.replybox[open] { flex-basis: 100%; }
.replybox > summary { display: inline; cursor: pointer; color: var(--red-700); list-style: none; }
.replybox > summary::-webkit-details-marker { display: none; }
.replybox form { display: grid; gap: .5rem; margin-top: .5rem; }
.replybox form button { justify-self: start; }

/* ---------- Footer ---------- */
.sitefooter { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); text-align: center; }
.sitefooter a { color: var(--muted); }

/* ---------- Copy a link ---------- */
.copyrow { display: flex; gap: .5rem; align-items: center; }
.copyrow input { flex: 1; min-width: 0; margin: 0; font-size: .85rem; }
.copyrow button { margin-top: 0; white-space: nowrap; }

/* ---------- Search ---------- */
.sidesearch { margin: 0 0 1rem; }
.sidesearch input { width: 100%; margin: 0; padding: .45rem .7rem; font-size: .95rem; }
.searchform { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.25rem; }
.searchform input { flex: 1; min-width: 0; margin: 0; }
.searchform button { margin-top: 0; }
.searchlist .meta { white-space: normal; }
.searchlist mark { background: var(--red-100); color: inherit; padding: 0 .1em; border-radius: 2px; }
.searchlist .rside { align-items: flex-end; }

/* ---------- Documents ---------- */
.uploadbox summary { cursor: pointer; color: var(--red-700); }
.uploadbox form { margin-top: .75rem; }
.doclist li { display: flex; align-items: center; }
.doclist li > a { flex: 1; min-width: 0; }
.docicon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.6rem; height: 2.1rem; border-radius: 4px; background: var(--red-50); color: var(--red-800); font-size: .7rem; font-weight: 800; letter-spacing: .03em; }

/* ---------- Calendar subscription ---------- */
.feedform { margin-top: 1rem; }
.feedform fieldset { border: 0; margin: 0 0 .75rem; padding: 0; }
.feedform legend { font-weight: 700; margin-bottom: .5rem; }
.feedform .catoption { grid-template-columns: auto 1fr; }
.howto { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .92rem; }
.howto p { margin: 0 0 .6rem; }
.foldergrid { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
@media (min-width: 40rem) { .foldergrid { grid-template-columns: 1fr 1fr; } }
.foldertile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .15rem .7rem; margin: 0; padding: .8rem 1rem; text-decoration: none; color: var(--text); }
.foldertile .folderdesc { grid-column: 2 / -1; }
.foldercount { min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .8rem; font-weight: 700; text-align: center; }
.foldertile:hover { border-color: #c4c4ca; background: var(--hover); }
.foldericon { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg); color: #3d3d42; }
.foldericon .icon { width: 1.35rem; height: 1.35rem; }
.foldername { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.checkrow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 600; }
.checkrow input { width: auto; margin: 0; }
.doclist .empty { padding: 1rem; }
.folderedit { margin-top: 1.5rem; }
.folderedit summary { color: var(--muted); }
.label-files { --tag: var(--tag-slate); }

/* ---------- Files: upload box, rows, type colours ---------- */
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 1rem 0; padding: 1rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.dropzone.dragging { border-color: var(--red-600); background: var(--red-50); }
.dropzone.busy { opacity: .7; }
.dropzone-text { margin: 0; }
.dropzone .help { flex-basis: 100%; margin: 0; }
.allowedtypes summary { cursor: pointer; }
.dropzone button { margin-top: 0; }
.dropzone-pick { position: relative; overflow: hidden; margin: 0; cursor: pointer; }
.dropzone-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-busy { flex-basis: 100%; margin: 0; font-weight: 700; color: var(--red-700); }
.sorter { color: var(--muted); margin: 0 0 .4rem; }
.docicon.kind-pdf { background: var(--red-50); color: var(--red-800); }
.docicon.kind-doc { background: #e3edf9; color: #1e4f8f; }
.docicon.kind-sheet { background: #e2f2e4; color: #22652a; }
.docicon.kind-slides { background: #fbeadd; color: #a24a12; }
.docicon.kind-other { background: #eceef0; color: #4f5b66; }
.docthumb { flex: none; width: 2.75rem; height: 2.75rem; object-fit: contain; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.doclist li > a.docedit { display: inline-flex; align-items: center; flex: none; padding: .5rem 1rem; color: var(--subtle); text-decoration: none; }
.doclist li > a.docedit .icon { width: 1.1rem; height: 1.1rem; }
.doclist li > a.docedit:hover { color: var(--ink); background: transparent; }
@media (hover: none) { .dropzone-text { display: none; } } /* phones: no dragging */
.doclist .meta { white-space: normal; }
.dangerzone { margin-top: 1rem; }
.dangerzone .linkbutton { color: var(--danger); }

/* Turnierstatistik */
.rowlist > li.rowform { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .6rem .9rem; }
.rowlist > li.rowform form { margin-left: auto; }
.rowlist > li.rowform button { margin-top: 0; }
.rowlist > li.rowform .check { display: flex; align-items: center; gap: .5rem; }
.statheader { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1.5rem; }
.statheader > div { flex: 1 1 22rem; }
.statheader h1 { margin-bottom: .2rem; }
.playersearch { position: relative; flex: 0 1 18rem; margin: .3rem 0 .8rem; }
.playersearch input { margin: 0; }
.playerbox { position: absolute; z-index: 20; left: 0; right: 0; max-width: none; }
.playerbox li { display: flex; justify-content: space-between; gap: .5rem; }
.playerbox li span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.outcomebar { display: flex; flex-basis: 100%; height: .45rem; border-radius: 999px; overflow: hidden; background: var(--line); }
.outcomebar .win { background: var(--ok); }
.outcomebar .draw { background: #b4b4bb; }
.outcomebar .loss { background: var(--danger); }
.statchips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.statchips a { display: inline-flex; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.statchips a:hover { border-color: #c4c4ca; background: var(--hover); color: var(--ink); }
.statchips span { color: var(--muted); font-weight: 400; }
a.person { color: inherit; text-decoration: none; }
a.person:hover { color: var(--red-800); text-decoration: underline; }
.h2hcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); max-width: 42rem; margin-top: .6rem; }
.h2hcards .outcomebar { margin: .3rem 0 .4rem; }
.h2hbig { margin: .2rem 0 .1rem; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.h2hbig span { font-size: .95rem; font-weight: 400; color: var(--muted); }
.h2hcount { color: var(--muted); font-size: .95rem; font-weight: 400; }
.h2hlist { display: grid; gap: .15rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.h2hlist li { display: flex; align-items: center; gap: .45rem; }
.h2hlist li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); }
.h2hlist .draw::before { background: #b4b4bb; }
.h2hlist .loss::before { background: var(--danger); }
.h2hlist strong { min-width: 1.6rem; text-align: right; color: var(--ink); }
@media (min-width: 40rem) { .topcard { grid-column: span 2; } }
.topcard li.me { margin-left: -.4rem; padding: .1rem .4rem; border-radius: 6px; background: var(--bg); }
.topcard li.me strong { color: var(--ink); }
.topmine { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.topmine li.me strong, .topmine p.me strong { font-size: 1rem; color: var(--ink); }
.topmine p { margin: 0; }
.topmine .help { margin-top: .3rem; font-size: .85rem; }
.card.flush { padding: 0; overflow-x: auto; }
.card.flush .gametable tr:first-child th { border-top: 0; }
.gametable .meta { display: block; color: var(--muted); font-size: .8rem; }
.gametable .when { white-space: nowrap; }
.gametable .phone-only { display: none; }
@media (max-width: 40rem) { /* phones: each game as a small block instead of five columns */
  .gametable.wide thead { display: none; }
  .gametable.wide tr { display: grid; grid-template-columns: 4.2rem 1fr auto; grid-template-areas: "when when score" "round with with" "round against against"; gap: .1rem .6rem; padding: .5rem .9rem; border-top: 1px solid var(--line); }
  .gametable.wide td { padding: 0; border: 0; }
  .gametable.wide .when { grid-area: when; white-space: normal; }
  .gametable.wide .when .meta { display: inline; margin-left: .3rem; }
  .gametable.wide .score { grid-area: score; text-align: right; }
  .gametable.wide .phone-only { display: inline; }
  .gametable.wide .round { grid-area: round; color: var(--muted); font-size: .85rem; }
  .gametable.wide .with { grid-area: with; }
  .gametable.wide .against { grid-area: against; }
  .gametable.wide .with::before { content: "mit "; color: var(--muted); }
  .gametable.wide .against::before { content: "gegen "; color: var(--muted); }
}
.statsummary { display: grid; gap: 1rem; }
.statnumbers { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
.statnum { display: grid; gap: .1rem; }
.statnum strong { color: var(--ink); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.statnum span { color: var(--muted); font-size: .85rem; }
.statnum.win strong { color: var(--ok); }
.statnum.loss strong { color: var(--danger); }
@media (max-width: 40rem) { .statnum strong { font-size: 1.5rem; } }
.statcards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
@media (min-width: 40rem) { .statcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75rem) { .statcards { grid-template-columns: repeat(4, 1fr); } }
.statcard { margin: 0; }
.statcard h3 { margin: 0; color: var(--ink); font-size: 1.02rem; }
.statcard > .help { margin: .1rem 0 .6rem; }
.statcard ol { margin: 0; padding-left: 1.3rem; }
.statcard li { margin-bottom: .4rem; }
.statcard li:first-child strong { font-size: 1.1rem; }
.statcard .meta { display: block; color: var(--muted); font-size: .85rem; }
.statturnier { padding: 0; margin-bottom: .5rem; }
.statturnier summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .6rem .9rem; cursor: pointer; }
.statturnier summary .rmain { display: flex; flex-direction: column; }
.statturnier summary .meta { color: var(--muted); font-size: .9rem; }
.gametable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gametable th, .gametable td { padding: .35rem .9rem; border-top: 1px solid var(--line); text-align: left; }
.gametable th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.gametable .outcome-win td:last-child { color: var(--ok); }
.gametable .outcome-loss td:last-child { color: var(--danger); }
.importtable { margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.importtable .import-skip, .importtable .import-duplicate { color: var(--muted); }

/* Two-factor login */
.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; }
.qrcode { display: inline-block; background: #fff; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; line-height: 0; }
.qrcode svg { width: 200px; height: 200px; }
.twofactor-steps .cardhead { margin-top: 1.25rem; }
.twofactor-steps .cardhead:first-child { margin-top: 0; }
.secret { font-size: 1.05rem; letter-spacing: .05em; word-break: break-all; }
.recoverycodes { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .4rem 2rem; font-size: 1.1rem; }
.notice { background: #fff6e0; border: 1px solid #f0d58c; border-radius: 8px; padding: .75rem 1rem; }
.twofactor-status { display: flex; gap: .5rem; align-items: center; }
.twofactor-off form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.twofactor-off input { width: 10rem; margin: 0; }
.twofactor-off button { margin-top: 0; }
.center { text-align: center; }
@media print {
  body * { visibility: hidden; }
  .recoverycodes, .recoverycodes * { visibility: visible; }
  .recoverycodes { position: absolute; left: 0; top: 0; }
}

/* ---------- Legal texts (Datenschutz) ---------- */
.legaltext { max-width: 52rem; line-height: 1.55; }
.legaltext h2 { margin-top: 1.75rem; font-size: 1.15rem; }
.legaltext .tablewrap, .legaltext table { display: block; overflow-x: auto; }
.legaltext table { border-collapse: collapse; font-size: .88rem; margin: .75rem 0; }
.legaltext th, .legaltext td { hyphens: auto; overflow-wrap: normal; padding: .4rem .6rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legaltext th { color: var(--muted); font-weight: 600; font-size: .8rem; }

/* Vorhaben page on phones and tablets: status, Stand and owner right below the
   description, before the comments */
@media (max-width: 59.99rem) {
  .taskpage .issue-main { display: contents; }
  .taskpage { display: flex; flex-direction: column; }
  .taskpage .issuehead { order: 1; }
  .taskpage .issue-side { order: 2; margin-bottom: 1rem; }
  .taskpage .comments { order: 3; }
}

/* ---------- News (like the club website: headline, date, photo, text) ---------- */
.newslist { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .newslist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.newscard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.newscard > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.newscard > a:hover h2 { color: var(--red-700); }
.newscard .newsimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.newstext { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.2rem 1.1rem; flex: 1; }
.newstext h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.newsteaser { margin: 0; color: #4a4a50; font-size: .95rem; }
.newsdate { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.newsby { display: flex; align-items: center; gap: .5rem; margin: auto 0 0; padding-top: .4rem; color: var(--muted); font-size: .86rem; }
@media (min-width: 48rem) {
  .newscard.lead { grid-column: 1 / -1; }
  .newscard.lead > a { flex-direction: row; }
  .newscard.lead .newsimg { width: 55%; aspect-ratio: 4 / 3; }
  .newscard.lead .newstext { padding: 1.5rem 1.75rem; }
  .newscard.lead h2 { font-size: 1.6rem; }
}
.newsmine { margin-bottom: 1.5rem; }
.newsmine h2 { margin-top: 0; }
.newsstatus { display: inline-block; padding: 0 .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.newsstatus.status-pending { background: #fff4d6; color: #7a5a00; }
.newsstatus.status-rejected { background: var(--red-50); color: var(--red-800); }
.newsstatus.status-published { background: #e3f1e4; color: #1f5f23; }
.newsdetail { max-width: 46rem; }
.newsdetail h1 { margin: .2rem 0 .6rem; font-size: 2.1rem; }
.newsdetail .notice { margin-bottom: 1rem; }
.newsfigure { margin: 1.25rem 0; }
.newsfigure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.newsfigure figcaption { margin-top: .5rem; color: var(--muted); font-size: .88rem; text-align: center; }
.newsfigure.small img { max-width: 16rem; }
.newsbody { font-size: 1.05rem; line-height: 1.7; }
.newsdetail .reactions { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.newsdetail .reactions form { display: inline; }
.newsactions { margin-top: 1.5rem; }
.homenews .newsthumb { width: 3.25rem; height: 2.5rem; flex: none; object-fit: cover; border-radius: 6px; background: var(--bg); }

/* ---------- Page sections (Mein Konto), status pills ---------- */
.pagenav { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.25rem 0 1.25rem; }
.pagenav a { padding: .35rem .8rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #3d3d42; font-size: .88rem; font-weight: 600; text-decoration: none; }
.pagenav a:hover { background: var(--hover); color: var(--ink); }
:target { scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.statuspill { display: inline-block; padding: 0 .55rem; border-radius: 999px; background: #ececee; color: #3d3d42; font-size: .78rem; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.statuspill.on { background: #e3f1e4; color: #1f5f23; }
.statuspill.off { background: var(--red-50); color: var(--red-800); }
.statuspill.wait { background: #fff4d6; color: #7a5a00; }

/* ---------- Admin area: tiles with icons, decision lists ---------- */
.tile { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: start; }
.tile .tileicon { grid-row: span 2; display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg); color: #3d3d42; }
.tile .tileicon .icon { width: 1.3rem; height: 1.3rem; }
.tile:hover { border-color: #c4c4ca; background: var(--hover); }
.decisions > li > .decision { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .9rem; padding: .9rem 1.1rem; }
.decisions .decision .rmain { flex: 1 1 18rem; }
.decisions .decision .rmain a.title { color: var(--ink); font-weight: 700; text-decoration: none; }
.decisions .decision .rmain a.title:hover { color: var(--red-700); }
.decisions .decision .actions { margin-left: auto; }
.decisions .decision .actions button { min-height: 2.4rem; padding: .4rem .9rem; }
@media (max-width: 40rem) { .decisions .decision .actions { margin-left: 0; width: 100%; } }
.memberlist .side .statuspill + .statuspill { margin-left: .25rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* ---------- Vorhaben page: key figures, filter chips, groups, columns ---------- */
.vchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.vchips a { padding: .35rem .85rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #3d3d42; font-size: .88rem; font-weight: 600; text-decoration: none; }
.vchips a:hover { background: var(--hover); color: var(--ink); }
.vchips a.on { background: var(--ink); box-shadow: none; color: #fff; }
.vhead { display: none; }
.vrow { position: relative; }
.vlink { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .95rem 1.15rem; color: inherit; text-decoration: none; }
.vlink:hover { background: var(--hover); color: inherit; }
.vlink .vmain { flex: 1 1 100%; }
.vcell { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .84rem; }
.vcell .icon { width: .95rem; height: .95rem; flex: none; }
.vwho .avatar { width: 1.5rem; height: 1.5rem; font-size: .62rem; }
.vnone, .nobodytext { color: var(--subtle); }
.vcomments { display: inline-flex; align-items: center; gap: .25rem; }
.vlast { gap: .7rem; white-space: nowrap; }
.vtake { padding: 0 1.15rem .9rem; }
.vtake button { margin: 0; }
@media (min-width: 64rem) {
  /* Header and rows share one grid: same columns, same gap, same padding, so every
     heading sits exactly above its column. "Ich übernehme" is placed over column 2. */
  .vtable { --vpad: 1.15rem; --vgap: 1rem; --vcols: minmax(0, 1fr) 11rem 6.5rem 6.5rem 10rem; }
  .vhead, .vtable .vlink { display: grid; grid-template-columns: var(--vcols); column-gap: var(--vgap); align-items: center; padding-left: calc(var(--vpad) + 1px); padding-right: calc(var(--vpad) + 1px); }
  .vhead { padding-bottom: .5rem; color: var(--subtle); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .vtable .vlink { padding-left: var(--vpad); padding-right: var(--vpad); }
  .vtable .vlink .vmain { flex: none; }
  .vtable .vcell { font-size: .88rem; }
  .vtable .vtake { position: absolute; top: 50%; transform: translateY(-50%); left: calc(100% - var(--vpad) - 11rem - 6.5rem - 6.5rem - 10rem - 3 * var(--vgap)); padding: 0; }
  .vtable .vrow:has(.vtake) .nobodytext { visibility: hidden; }
}
.vwhen { white-space: nowrap; }
@media (max-width: 40rem) {
  .vchips { flex-wrap: nowrap; overflow-x: auto; margin-right: -1rem; padding-right: 1rem; scrollbar-width: none; }
  .vchips a { flex: none; }
}
