/* Vereinsapp – Gestaltung
   Vereinsfarbe (--farbe) wird pro Verein gesetzt, alle Töne leiten sich daraus ab. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.e8da57bc0c3d.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.617b4197a93a.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --farbe: #0f6b5c;
  --farbe-text: #fff;
  --farbe-dunkel: color-mix(in srgb, var(--farbe) 72%, #000);
  --farbe-tint: color-mix(in srgb, var(--farbe) 11%, var(--flaeche));
  --farbe-linie: color-mix(in srgb, var(--farbe) 30%, var(--linie));

  --grund: #f3f4f2;
  --flaeche: #ffffff;
  --flaeche-2: #eceeeb;
  --tinte: #1a2230;
  --tinte-2: #566070;
  --linie: #dde0dc;

  --gut: #17603a;   --gut-bg: #dff3e6;
  --warn: #8a5300;  --warn-bg: #fbecc9;
  --info: #4a3f8f;  --info-bg: #e8e5f8;
  --schlecht: #a3231f; --schlecht-bg: #fbe3e1;

  --radius: 14px;
  --radius-klein: 10px;
  --abstand: 16px;
  --tabbar: 64px;
  --schrift: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --farbe-tint: color-mix(in srgb, var(--farbe) 22%, var(--flaeche));
    --grund: #0f1319;
    --flaeche: #181d26;
    --flaeche-2: #212733;
    --tinte: #eceff4;
    --tinte-2: #a2abba;
    --linie: #2c3441;
    --gut: #8fdba9;   --gut-bg: #17341f;
    --warn: #f1c778;  --warn-bg: #3a2c0e;
    --info: #c3baf5;  --info-bg: #2a2550;
    --schlecht: #f5a8a3; --schlecht-bg: #431a18;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--tinte);
  font: 400 1.0625rem/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .75em; }
a { color: var(--farbe-dunkel); }
@media (prefers-color-scheme: dark) { a { color: color-mix(in srgb, var(--farbe) 45%, #fff); } }
:focus-visible { outline: 3px solid var(--farbe); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ico { width: 1.35em; height: 1.35em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gerüst ---------- */
.rahmen { min-height: 100dvh; }
.inhalt { min-width: 0; }

.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--abstand); padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--flaeche) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 10px; color: var(--tinte); text-decoration: none; font-weight: 700; min-width: 0; }
.marke .zeichen {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--farbe); color: var(--farbe-text); font-size: 1rem;
}
.marke .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf form { margin: 0; }
.icon-knopf {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 0; color: var(--tinte-2); cursor: pointer;
}
.icon-knopf:hover { background: var(--flaeche-2); color: var(--tinte); }

main { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px var(--abstand) calc(var(--tabbar) + 32px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--flaeche); border-top: 1px solid var(--linie);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--tinte-2); text-decoration: none; font-size: .78rem; font-weight: 700;
}
.tabbar a[aria-current="page"] { color: var(--farbe-dunkel); }
@media (prefers-color-scheme: dark) { .tabbar a[aria-current="page"] { color: color-mix(in srgb, var(--farbe) 45%, #fff); } }
.tabbar a[aria-current="page"] .ico-huelle { background: var(--farbe-tint); }
.tabbar .ico-huelle { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 15px; }

/* Hauptmenü oben, Untermenü links (ab 900px); auf dem Handy Tabbar unten und Unterpunkte als Leiste */
.hauptmenue { display: none; }
.koerper { display: block; }
.seitenmenue {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--abstand); scrollbar-width: none;
  border-bottom: 1px solid var(--linie); background: var(--flaeche);
}
.seitenmenue a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 99px;
  text-decoration: none; color: var(--tinte); font-weight: 700; font-size: .95rem; border: 1px solid var(--linie);
}
.seitenmenue a[aria-current="page"] { background: var(--farbe-tint); border-color: var(--farbe); color: var(--farbe-dunkel); }
.marke .logo { height: 36px; max-width: 120px; width: auto; object-fit: contain; flex: none; }
@media (min-width: 900px) {
  .mit-nav .tabbar { display: none; }
  .mit-nav .kopf { padding-top: 8px; padding-bottom: 8px; padding-inline: 24px; gap: 28px; justify-content: flex-start; }
  .mit-nav .kopf .abmelden { margin-left: auto; }
  .mit-nav .hauptmenue { display: flex; gap: 4px; align-self: stretch; align-items: stretch; }
  .hauptmenue a {
    display: flex; align-items: center; padding: 0 16px; color: var(--tinte-2); text-decoration: none; font-weight: 700;
    border-bottom: 3px solid transparent; margin-bottom: -9px; padding-top: 3px;
  }
  .hauptmenue a:hover { color: var(--tinte); }
  .hauptmenue a[aria-current="page"] { color: var(--farbe-dunkel); border-bottom-color: var(--farbe); }
  .mit-nav .koerper.mit-seitenmenue { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .mit-nav .seitenmenue {
    position: sticky; top: 62px; flex-direction: column; overflow: visible; gap: 2px; padding: 24px 12px;
    border-bottom: 0; border-right: 1px solid var(--linie); background: transparent; min-height: calc(100dvh - 62px);
  }
  .seitenmenue a { border: 0; border-radius: 12px; padding: 11px 14px; font-size: 1rem; white-space: normal; }
  .seitenmenue a:hover { background: var(--flaeche-2); }
  .seitenmenue a[aria-current="page"] { background: var(--farbe-tint); }
  .mit-nav main { max-width: 860px; padding-top: 32px; padding-bottom: 48px; }
  .mit-nav .koerper:not(.mit-seitenmenue) main { max-width: 960px; }
}
@media (prefers-color-scheme: dark) { .hauptmenue a[aria-current="page"], .seitenmenue a[aria-current="page"] { color: color-mix(in srgb, var(--farbe) 45%, #fff); } }

/* ---------- Seitenkopf ---------- */
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.seitenkopf p { margin: 4px 0 0; color: var(--tinte-2); }
.zurueck { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 10px -6px; padding: 6px 10px 6px 4px; color: var(--tinte-2); text-decoration: none; font-weight: 700; border-radius: 10px; }
.zurueck:hover { background: var(--flaeche-2); color: var(--tinte); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--farbe); color: var(--farbe-text); font: 700 1rem var(--schrift); text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--farbe-dunkel); }
.knopf.zweit { background: var(--flaeche); color: var(--tinte); border-color: var(--linie); }
.knopf.zweit:hover { background: var(--flaeche-2); }
.knopf.gefahr { background: var(--flaeche); color: var(--schlecht); border-color: color-mix(in srgb, var(--schlecht) 40%, var(--linie)); }
.knopf.gefahr:hover { background: var(--schlecht-bg); }
.knopf.voll { width: 100%; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.aktionen form { margin: 0; }

/* ---------- Karten und Listen ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.karte > h2 { margin-bottom: 12px; }

.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 22px; }
.zahlen > div { padding: 14px 16px; }
.zahlen > div + div { border-left: 1px solid var(--linie); }
.zahlen strong { font-variant-numeric: tabular-nums; display: block; font-size: 1.7rem; line-height: 1.1; }
.zahlen span { color: var(--tinte-2); font-size: .92rem; }

.abschnitt { margin: 26px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.abschnitt a { font-weight: 700; text-decoration: none; }

.liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.liste > * + * { border-top: 1px solid var(--linie); }
.zeile {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 64px;
  color: inherit; text-decoration: none;
}
a.zeile:hover { background: var(--flaeche-2); }
.zeile .text { flex: 1; min-width: 0; }
.zeile .titel { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .nebenan { display: block; color: var(--tinte-2); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .pfeil { color: var(--tinte-2); }
.zeile .ico-kreis { width: 42px; height: 42px; border-radius: 12px; background: var(--farbe-tint); color: var(--farbe-dunkel); display: grid; place-items: center; flex: none; }
@media (prefers-color-scheme: dark) { .zeile .ico-kreis { color: color-mix(in srgb, var(--farbe) 45%, #fff); } }

.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.avatar.f0 { background: #d9efe6; color: #0e5b45; }
.avatar.f1 { background: #e1e6fa; color: #2f3f94; }
.avatar.f2 { background: #fbe5d0; color: #8a4410; }
.avatar.f3 { background: #f6dcea; color: #8a2760; }
.avatar.f4 { background: #e7eccb; color: #4d5d0e; }
.avatar.f5 { background: #d9eaf3; color: #14566f; }
@media (prefers-color-scheme: dark) {
  .avatar.f0 { background: #1b3a30; color: #9fe0c6; } .avatar.f1 { background: #232b4f; color: #b6c1f5; }
  .avatar.f2 { background: #3f2a17; color: #f1c39a; } .avatar.f3 { background: #432236; color: #f0b4d3; }
  .avatar.f4 { background: #333b17; color: #d4e29a; } .avatar.f5 { background: #17333f; color: #a6d4e8; }
}

.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 700; background: var(--flaeche-2); color: var(--tinte-2); white-space: nowrap; }
.chip.aktiv { background: var(--gut-bg); color: var(--gut); }
.chip.passiv { background: var(--warn-bg); color: var(--warn); }
.chip.ehren { background: var(--info-bg); color: var(--info); }
.chip.ausgetreten { background: var(--schlecht-bg); color: var(--schlecht); }

.leer { text-align: center; padding: 36px 20px; color: var(--tinte-2); }
.leer strong { display: block; color: var(--tinte); font-size: 1.1rem; margin-bottom: 4px; }
.leer .knopf { margin-top: 14px; }

/* ---------- Suche ---------- */
.suche { display: grid; gap: 10px; margin-bottom: 16px; }
.suchfeld { position: relative; }
.suchfeld .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tinte-2); pointer-events: none; }

.filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .suche { grid-template-columns: 2fr 1fr 1fr; } .filter { display: contents; } }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 700; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem var(--schrift); color: var(--tinte);
  background: var(--flaeche); border: 1.5px solid color-mix(in srgb, var(--tinte-2) 45%, var(--linie)); border-radius: var(--radius-klein);
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
textarea { min-height: 96px; resize: vertical; }
.suchfeld input[type=search] { padding-left: 46px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--farbe); box-shadow: 0 0 0 4px color-mix(in srgb, var(--farbe) 22%, transparent); }
.feld { margin-bottom: 16px; }
.feld:last-child { margin-bottom: 0; }
.hilfe { color: var(--tinte-2); font-size: .92rem; margin-top: 4px; }
.fehler { color: var(--schlecht); font-size: .95rem; font-weight: 700; margin-top: 4px; }
.feld.hat-fehler input, .feld.hat-fehler select, .feld.hat-fehler textarea { border-color: var(--schlecht); }
.raster { display: grid; gap: 16px; }
.raster .feld { margin-bottom: 0; }
@media (min-width: 560px) { .raster.zwei { grid-template-columns: 1fr 1fr; } .raster .breit { grid-column: 1 / -1; }  }

.haken { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.haken:last-child { margin-bottom: 0; }
.haken label { margin: 0; font-weight: 400; }
.haken small { display: block; color: var(--tinte-2); }
input[type=checkbox] { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--farbe); }

.pillen > div, .pillen > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillen > div > div > label, .pillen > ul label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; min-height: 44px;
  border: 1.5px solid var(--linie); border-radius: 99px; font-weight: 400; cursor: pointer; background: var(--flaeche);
}
.pillen input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pillen label:has(input:checked) { background: var(--farbe-tint); border-color: var(--farbe); font-weight: 700; }
.pillen label:has(input:focus-visible) { outline: 3px solid var(--farbe); outline-offset: 2px; }

.speicherleiste {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; gap: 10px; padding: 12px 0; margin-top: 8px;
  background: linear-gradient(to top, var(--grund) 70%, transparent);
}
.speicherleiste .knopf:first-child { flex: 1; }
.mit-nav .speicherleiste { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .mit-nav .speicherleiste { bottom: 0; } .speicherleiste .knopf:first-child { flex: none; } }

/* ---------- Mitgliederausweis ---------- */
.ausweis {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 22px 20px; margin-bottom: 18px;
  background: var(--farbe-dunkel); color: #fff;
  background-image: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--farbe) 85%, #fff) 0%, transparent 60%);
}
.ausweis::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.08);
}
.ausweis .verein { font-weight: 700; opacity: .85; font-size: .95rem; }
.ausweis h1 { color: #fff; font-size: 1.9rem; margin: 18px 0 4px; position: relative; z-index: 1; }
.ausweis .nummer { font-size: 1.05rem; opacity: .9; position: relative; z-index: 1; }
.ausweis .nummer b { font-size: 1.5rem; margin-left: 6px; }
.ausweis .unten { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.ausweis .chip { background: rgba(255,255,255,.18); color: #fff; }
.ausweis .chip.ausgetreten { background: #fbe3e1; color: #a3231f; }

dl.daten { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
dl.daten > div { min-width: 0; }
dl.daten dt { color: var(--tinte-2); font-size: .92rem; }
dl.daten dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { dl.daten { grid-template-columns: 1fr 1fr; } dl.daten .breit { grid-column: 1 / -1; } }

/* ---------- Meldungen ---------- */
.meldung { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-klein); margin-bottom: 16px; background: var(--gut-bg); color: var(--gut); font-weight: 700; }
.meldung.error { background: var(--schlecht-bg); color: var(--schlecht); }
.meldung.info, .meldung.warning { background: var(--warn-bg); color: var(--warn); }

/* ---------- Tabelle (Protokoll) ---------- */
.eintrag { padding: 14px 16px; }
.eintrag .zeit { color: var(--tinte-2); font-size: .92rem; }
.eintrag .aenderung { display: block; color: var(--tinte-2); font-size: .95rem; margin-top: 2px; }
.eintrag .aenderung s { opacity: .75; }

/* ---------- Einstieg (ohne Navigation) ---------- */
.einstieg { max-width: 460px; margin: 0 auto; padding-top: 4vh; }
.einstieg .zeichen-gross { width: 60px; height: 60px; border-radius: 18px; background: var(--farbe); color: var(--farbe-text); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; }
.einstieg h1 { margin-bottom: 6px; }
.einstieg .lead { color: var(--tinte-2); margin-bottom: 22px; }
.nur-kopf main { padding-bottom: 40px; }
.honig { position: absolute; left: -5000px; }

.hero { padding: 6vh 0 18px; }
.hero h1 { font-size: clamp(2rem, 7vw, 2.9rem); max-width: 16ch; }
.hero p { color: var(--tinte-2); font-size: 1.15rem; max-width: 34ch; margin-top: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .knopf, .zeile, .icon-knopf { transition: background-color .12s, border-color .12s; }
}

/* ---- Verwaltung, Dokumente, Sitzungen ---- */
.filter { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter .suchfeld { flex: 1 1 200px; }
.filter select { flex: 0 1 220px; }
.zeile select { max-width: 48%; }
.zeile.traktandum { align-items: flex-start; }
.zeile .nummer { width: 32px; height: 32px; border-radius: 50%; background: var(--farbe-tint); color: var(--farbe-dunkel); display: grid; place-items: center; font-weight: 700; flex: none; }
.zeile.traktandum .nebenan { white-space: normal; }
.zeile .reihe { display: flex; gap: 2px; flex: none; }
.zeile .reihe form { margin: 0; }
.zeile .reihe .icon-knopf[disabled] { opacity: .3; }
.nebenan.beschluss { color: var(--gut); }
textarea.mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.5; }
details.hinweis { margin-top: 14px; }
details.hinweis summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
dl.platzhalter { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
dl.platzhalter dt { margin: 0; } dl.platzhalter dd { margin: 0; color: var(--tinte-2); }
code { background: var(--flaeche-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.karte.blatt { background: #fff; color: #1b1b1b; padding: 28px clamp(18px, 5vw, 40px); }
.blatt p { margin: 0 0 .5em; } .blatt .leerzeile { margin: 0; }
.blatt .einzug { margin-left: 1.2em; } .blatt ul { margin: 0 0 .5em 1.2em; padding: 0; }
.blatt .vorschau-h1 { font-size: 1.5rem; margin: 0 0 .6em; } .blatt .vorschau-h2 { font-size: 1.1rem; margin: 1em 0 .3em; color: #1f3a5f; }
.einmalpasswort .passwort { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; user-select: all; }
.rollenzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.rollenzeile form { margin: 0; }
.rolle-neu { margin-top: 16px; }
.knopf.klein { padding: 6px 12px; min-height: 36px; font-size: .92rem; }
.zeile.traktandum .titel { white-space: normal; overflow: visible; }

/* ---- Kalender und Dashboard ---- */
.monatskopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
table.monat { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
table.monat th { font-size: .85rem; color: var(--tinte-2); padding: 8px 0; font-weight: 700; }
table.monat td { height: 52px; text-align: center; vertical-align: top; padding: 6px 2px; border-top: 1px solid var(--linie); }
table.monat td.fremd { color: var(--tinte-2); opacity: .45; }
table.monat td .tag { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-variant-numeric: tabular-nums; }
table.monat td.heute .tag { background: var(--farbe); color: var(--farbe-text); font-weight: 700; }
.punkte { display: flex; justify-content: center; gap: 3px; margin-top: 2px; }
.punkte i, .legende i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.p-termin { background: var(--farbe); } .p-sitzung { background: var(--info); } .p-geburtstag { background: #c2410c; }
.legende { color: var(--tinte-2); font-size: .9rem; margin: 10px 2px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.legende i { margin-right: 5px; }
.datumblock { display: grid; place-items: center; width: 46px; height: 50px; border-radius: 12px; background: var(--farbe-tint); color: var(--farbe-dunkel); flex: none; line-height: 1.05; }
.datumblock b { font-size: 1.2rem; font-variant-numeric: tabular-nums; } .datumblock small { font-size: .78rem; font-weight: 700; }
.datumblock.sitzung { background: var(--info-bg); color: var(--info); }
.datumblock.geburtstag { background: #ffedd5; color: #9a3412; }
@media (prefers-color-scheme: dark) { .datumblock { color: color-mix(in srgb, var(--farbe) 45%, #fff); } .datumblock.geburtstag { background: #431407; color: #fdba74; } }
.start-spalten { display: grid; gap: 4px; }
@media (min-width: 900px) { .start-spalten { grid-template-columns: 1fr 1fr; gap: 0 28px; } }
.logo-vorschau { display: block; max-height: 80px; max-width: 240px; margin: 4px 0 12px; background: var(--flaeche-2); padding: 8px; border-radius: 12px; }

/* ---- Vorlageneditor mit Platzhalter-Auswahl ---- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.editor textarea { width: 100%; box-sizing: border-box; }
@media (min-width: 900px) { .editor { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; } }
.platzhalterliste { max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.platzhalterliste button { text-align: left; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--tinte); }
.platzhalterliste button:hover { border-color: var(--farbe); background: var(--farbe-tint); }
.platzhalterliste code { background: none; padding: 0; font-weight: 700; display: block; }
.platzhalterliste small { color: var(--tinte-2); display: block; line-height: 1.3; }
@media (min-width: 900px) { .platzhalterbox { position: sticky; top: 76px; } }
.logo-gross { display: block; max-height: 96px; max-width: 220px; margin-bottom: 18px; object-fit: contain; }
.slugzeile { display: flex; align-items: stretch; }
.slugzeile input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.slug-endung { display: flex; align-items: center; padding: 0 12px; background: var(--flaeche-2); border: 1px solid var(--linie); border-left: 0; border-radius: 0 12px 12px 0; color: var(--tinte-2); white-space: nowrap; }
.hilfe.slug-ok { color: var(--gut); font-weight: 700; } .hilfe.slug-fehler { color: var(--schlecht); font-weight: 700; }
