:root {
  /* Farben und Schrift wie www.st-petronilla.de: Grün #72b62e, Schiefergrau #5f737a, Oswald */
  --brand: #72b62e; --brand-deep: #3f7d14; --slate: #5f737a; --slate-soft: #afb9bc;
  --paper: #f3f5f5; --card: #ffffff; --ink: #2b3336; --muted: #5f737a; --line: #dde3e4;
  --accent: #3f7d14; --accent-soft: #eaf4e0; --gold: #8a6d1c; --ok: #2f7d32; --warn: #a15c00; --bad: #b3261e;
  --radius: 4px; --serif: Oswald, "Arial Narrow", Arial, sans-serif; --head: Oswald, "Arial Narrow", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b2022; --card: #242b2e; --ink: #e6ebec; --muted: #a7b3b6; --line: #37413f;
    --accent: #8fd14f; --accent-soft: #2a3a22; --brand: #8fd14f; --gold: #d8b866; --ok: #7fc28b; --warn: #e2b04a; --bad: #ff8a80; }
}
@font-face { font-family: Oswald; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Oswald-400.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Oswald-700.woff2) format("woff2"); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
button, input, select, textarea, .button { font: inherit; color: inherit; }
button, .button {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s;
}
button:hover, .button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { button.primary { color: #1a1816; } }
button.primary:hover { filter: brightness(1.08); }
button.big { padding: 12px 20px; font-size: 1.05rem; }
button.danger { color: var(--bad); }
button.ghost { background: transparent; }
button.icon { padding: 4px 9px; background: transparent; border-color: transparent; }
button.icon:hover { background: var(--accent-soft); }
button.small { padding: 0 7px; font-size: .9rem; line-height: 1.6; }
input, select, textarea { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; min-width: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  padding: 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; }
.brand h1 { font-size: 1.3rem; color: var(--accent); }
.brand p { margin: 0; font-size: .8rem; color: var(--muted); }
nav { display: flex; gap: 4px; overflow-x: auto; }
nav button { border: none; background: transparent; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 80px; }
.tab { display: none; } .tab.active { display: block; }

.bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sel { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.more summary::-webkit-details-marker { display: none; }
.more > div { position: absolute; right: 0; top: 110%; z-index: 4; display: grid; gap: 4px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.red { color: var(--bad); } .amber { color: var(--warn); }

/* Plan */
.planhead { margin: 4px 0 18px; }
.planhead h2 { font-size: 1.5rem; }
.planhead p { margin: 4px 0 0; }
.progress { height: 6px; border-radius: 3px; background: var(--line); margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.welcome { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.welcome h2 { font-size: 1.6rem; margin-bottom: 8px; }
.day { margin-bottom: 14px; }
.day h3 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 1.05rem; padding: 4px 2px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.day.sunday h3 { border-color: var(--accent); }
.day h3 em { font-weight: 500; color: var(--gold); font-style: italic; }
.ev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.ev.cancelled { opacity: .6; }
.evhead { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.evhead input { border-color: transparent; background: transparent; font-weight: 600; }
.evhead input:hover { border-color: var(--line); }
.evhead .time { width: 92px; } .evhead .place { width: 130px; } .evhead .title { flex: 1 1 220px; }
.evtools { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.evtools select { max-width: 120px; font-size: .85rem; padding: 4px; color: var(--muted); }
.badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px 18px; margin: 8px 0 4px; }
.slot { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; min-height: 34px; }
.slot .role { font-style: italic; color: var(--muted); text-align: right; font-size: .9rem; }
.chip { text-align: left; overflow: hidden; text-overflow: ellipsis; background: transparent; border-color: transparent; padding: 4px 8px; }
.chip:hover { background: var(--accent-soft); }
.chip.free { color: var(--accent); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.chip span { color: var(--accent); font-size: .8em; }
.slot.warn .chip { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.slot.bad .chip { background: color-mix(in srgb, var(--bad) 14%, transparent); }
.iss { font-size: .78rem; color: var(--warn); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.bad .iss { color: var(--bad); }
.cx { margin: 8px 0; font-style: italic; color: var(--muted); }
.ev .note { width: 100%; border-color: transparent; background: transparent; font-size: .88rem; font-style: italic; color: var(--muted); }
.ev .note:hover, .ev .note:focus { border-color: var(--line); }
.ev .note:placeholder-shown { opacity: .5; }

/* Personen */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; display: grid; gap: 3px; align-content: start; }
.pcard:hover { border-color: var(--accent); }
.pcard.inactive { opacity: .55; }
.pname { font-weight: 600; }
.tag { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--line); color: var(--muted); font-weight: 500; white-space: nowrap; }
.tag.q { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.tag.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.quals { display: flex; flex-wrap: wrap; gap: 3px; }
.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* Tabellen */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--paper); position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
.stats th { cursor: pointer; user-select: none; } .stats th.sorted { color: var(--accent); }
.stats tbody tr { cursor: pointer; } .stats tbody tr:hover { background: var(--accent-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.bar-cell span { height: 8px; border-radius: 4px; background: var(--accent); opacity: .75; }
.bar-cell b { font-weight: 500; font-variant-numeric: tabular-nums; }
.rules input, .presets input, .rules select, .presets select { width: 100%; }
.presets input[type=number] { width: 54px; }
.rules td:nth-child(3) input { width: 100px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.card .tablewrap { margin: 10px 0; background: var(--paper); }
.form { display: grid; gap: 12px; }
.form label:not(.check) { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.form label input, .form label select { color: var(--ink); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > label { flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 12px 10px; }
legend { color: var(--muted); font-size: .85rem; padding: 0 4px; }
#abs { display: grid; gap: 6px; width: 100%; }
.absrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .absrow .an { flex: 1; min-width: 120px; }
.hist { margin: 6px 0; padding-left: 18px; font-size: .88rem; }

/* Dialoge */
dialog { border: none; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(20,15,10,.45); }
.dlg { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; max-height: calc(100vh - 40px); }
.dlg > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dlg > header h2 { font-size: 1.2rem; }
.dlg > .form { overflow-y: auto; padding: 2px; }
.dlg footer { display: flex; gap: 8px; align-items: center; }
.spacer { flex: 1; }
.picker-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 52vh; border: 1px solid var(--line); border-radius: 8px; }
.picker-list li button { display: grid; gap: 1px; width: 100%; text-align: left; border: none; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; padding: 8px 12px; }
.picker-list li button:hover { background: var(--accent-soft); }
.picker-list li button.dim { opacity: .55; }
.picker-list small { color: var(--muted); font-size: .8rem; }
.picker-list small.red { color: var(--bad); } .picker-list small.amber { color: var(--warn); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; transition: .25s; z-index: 20; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { color: var(--muted); }

@media (max-width: 640px) {
  .slot { grid-template-columns: 70px minmax(0, 1fr) auto; } .slot .iss { display: none; }
  .slots { grid-template-columns: 1fr; }
  .evtools { margin-left: 0; width: 100%; }
}

/* Druck – angelehnt an die bisherigen PDF-Pläne */
#print { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff; color: #000; font: 9.5pt/1.3 Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
  .top, main, #toast, dialog { display: none !important; }
  #print { display: block; }
  #print h1 { font-family: inherit; text-align: center; font-size: 14pt; margin-bottom: 8pt; }
  .pday { border-top: 1px solid #000; border-bottom: 1px solid #000; margin-bottom: 7pt; padding: 1pt 0 3pt; break-inside: avoid; }
  .pdate { display: grid; grid-template-columns: 150pt 1fr; } .pdate span { font-weight: 600; }
  .pev { margin: 1pt 0 5pt; }
  .phead { display: grid; grid-template-columns: 95pt 55pt 1fr; }
  .phead b:first-child { text-align: right; padding-right: 10pt; }
  .prow { display: grid; grid-template-columns: 150pt 120pt 1fr; }
  .prow i { text-align: right; padding-right: 8pt; }
  .pnote { grid-column: span 2; font-style: italic; }
}

/* ===== Mitgliederbereich (index.php) ===== */
a { color: var(--accent); }
.brand { text-decoration: none; color: inherit; }
.sitenav, #tabs { display: flex; gap: 4px; overflow-x: auto; }
.sitenav a, .navlink { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sitenav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sitenav a:hover, .navlink:hover { color: var(--accent); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; }
.page { max-width: 760px; }
.page h2 { font-size: 1.4rem; margin: 6px 0 10px; }
.page h3 { font-size: 1.1rem; margin-bottom: 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.panel.narrow { max-width: 440px; margin: 24px auto; }
.panel.share { border-color: var(--ok); }
.block { margin: 8px 0 20px; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.flash.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.form button { justify-self: start; }
.inline { display: inline; }
.row.wrap { flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.linkbtn { border: none; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px; }
.gold { color: var(--gold); font-style: italic; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.nowrap { white-space: nowrap; }
.button { display: inline-block; text-decoration: none; color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc { display: grid; grid-template-columns: 56px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.svc.need { border-left-color: var(--warn); }
.svcdate { display: grid; text-align: center; align-content: start; font-family: var(--serif); }
.svcdate b { font-size: 1.2rem; color: var(--accent); } .svcdate span { font-size: .85rem; color: var(--muted); }
.svcbody { display: grid; gap: 3px; }
.needbox { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: .9rem; }
.needform summary { cursor: pointer; color: var(--accent); font-size: .9rem; margin-top: 4px; }
.needform .form { margin-top: 8px; }
.iss.need { color: var(--warn); font-weight: 600; } .iss.swap { color: var(--muted); }
.access { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.access select { max-width: 200px; }
button.small, .button.small { padding: 3px 9px; font-size: .85rem; }
/* veröffentlichter Plan am Bildschirm */
.pubplan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 10px; overflow-x: auto; }
.pubplan h1 { font-size: 1.2rem; text-align: center; margin-bottom: 10px; }
.pubplan .pday { border-top: 1px solid var(--ink); padding: 4px 0 8px; }
.pubplan .pday.past { opacity: .5; }
.pubplan .pdate { display: flex; gap: 20px; flex-wrap: wrap; } .pubplan .pdate span { color: var(--gold); font-style: italic; }
.pubplan .phead { display: grid; grid-template-columns: 80px 110px 1fr; gap: 6px; margin-top: 4px; }
.pubplan .prow { display: grid; grid-template-columns: 110px minmax(0,1fr) minmax(0,1fr); gap: 6px; font-size: .92rem; }
.pubplan .prow i { text-align: right; color: var(--muted); }
.pubplan .me { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-radius: 4px; padding: 0 4px; }
.needname { text-decoration: underline wavy var(--warn); }
.pnote { grid-column: span 2; font-style: italic; color: var(--muted); }
body.site #print { display: block; }
@media (max-width: 560px) { .pubplan .prow { grid-template-columns: 70px 1fr 1fr; font-size: .85rem; } .pubplan .phead { grid-template-columns: 70px 1fr; } .pubplan .phead b:last-child { grid-column: span 2; } }
@media print {
  body.site main.page { display: block !important; max-width: none; padding: 0; }
  body.site .noprint, body.site .foot, body.site .flash { display: none !important; }
  .pubplan { border: none; padding: 0; } .pubplan .pday { border-bottom: 1px solid #000; } .pubplan .me { background: none; color: #000; font-weight: normal; }
  .pubplan .pdate { display: grid; grid-template-columns: 150pt 1fr; } .pubplan .phead { grid-template-columns: 95pt 55pt 1fr; } .pubplan .phead b:first-child { text-align: right; padding-right: 10pt; }
  .pubplan .prow { grid-template-columns: 150pt 120pt 1fr; gap: 0; font-size: 9.5pt; } .pubplan .prow i { padding-right: 8pt; color: #000; }
}
.swapped { font-style: italic; } .swapped small { color: var(--ok); font-style: normal; }

/* Wunschliste */
.wishes { display: grid; gap: 6px; }
.wrow { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); width: 100%; }
.wrow:last-child { border-bottom: none; }
.wrow > span:first-child { display: grid; font-weight: 600; } .wrow small { font-weight: 400; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg label { cursor: pointer; } .seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 10px; font-size: .88rem; border-left: 1px solid var(--line); color: var(--muted); }
.seg label:first-child span { border-left: none; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg .w-gern input:checked + span { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); font-weight: 600; }
.seg .w-geht input:checked + span { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-weight: 600; }
.seg .w-nie input:checked + span { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); font-weight: 600; }
.seg .w-none input:checked + span { background: var(--line); color: var(--ink); }
/* Passkeys & Installation */
.loginalt { display: grid; gap: 6px; justify-items: start; margin-top: 10px; }
.install-banner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.install-banner[hidden], [data-install-card][hidden] { display: none; }
.steps { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; }
.ios-share { display: inline-block; transform: rotate(-90deg); color: #0a84ff; font-weight: 700; }
code { font-size: .85em; background: var(--paper); padding: 1px 4px; border-radius: 4px; }
.wishline { color: var(--ink); } .wishcard { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Handy: Menüleiste scrollt in sich, statt die Seite zu verbreitern */
.top > * { min-width: 0; }
.sitenav, #tabs { max-width: 100%; min-width: 0; scrollbar-width: none; }
.sitenav::-webkit-scrollbar, #tabs::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .sitenav, #tabs { flex: 1 1 100%; } }
.page, .panel, .svc, .install-banner { overflow-wrap: anywhere; }
.ios-share { display: inline-block; vertical-align: -3px; transform: none; }

/* ===== Petronilla-Design ===== */
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--brand); }
.page h2 { font-size: 1.55rem; }
.page h3, .card h2 { font-size: 1.1rem; color: var(--brand); }
button, .button, input, select, textarea, .more summary { border-radius: var(--radius); }
button.primary, .button.primary { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { button.primary, .button.primary { background: #4f9a1c; border-color: #4f9a1c; color: #fff; } }
.panel, .card, .ev, .svc, .pcard, .tablewrap, .pubplan, .welcome { border-radius: var(--radius); box-shadow: 0 1px 2px rgba(40, 60, 65, .06); }
.svc { border-left-color: var(--brand); }
.svcdate b { font-family: var(--head); color: var(--brand); }
.flash { border-radius: var(--radius); }
/* Kopf: weiß mit Logo, darunter Menü mit grauer Linie (wie die Pfarrei-Seite) */
.top { background: #fff; color: #2b3336; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.top h1 { color: var(--brand); }
.top .brand p { color: var(--slate); }
.top #tabs button, .top .navlink { font-family: var(--head); text-transform: uppercase; font-size: 1rem; color: var(--slate); border-radius: 0; }
.top #tabs button.active { background: none; color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.site-top { position: static; display: block; padding: 0; border-bottom: none; }
.site-top .inner { max-width: 980px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left)) 0; }
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 10px; }
.brandbar .logo img { display: block; height: 82px; width: auto; }
.brandbar .brand { display: grid; justify-items: end; text-align: right; }
.brandbar .brand h1 { font-size: 2rem; line-height: 1.05; color: var(--brand); }
.brandbar .brand p { margin: 2px 0 0; font-size: .9rem; }
.sitenav { border-top: 2px solid var(--slate); gap: 0; padding: 2px 0 0; }
.sitenav a { font-family: var(--head); text-transform: uppercase; font-size: 1.02rem; letter-spacing: .01em; color: #5c656a; padding: 9px 12px 8px; border-radius: 0; }
.sitenav a:first-child { padding-left: 0; }
.sitenav a.active { background: none; color: var(--brand); font-weight: 400; }
.sitenav a:hover { color: var(--brand); }
.count { background: var(--brand); font-family: var(--sans); }
.page { max-width: 980px; }
body.site { background: #fff; }
body.site .panel, body.site .svc, body.site .pubplan { background: var(--card); }
@media (prefers-color-scheme: dark) { body.site { background: var(--paper); } }
.foot { background: var(--slate); color: #fff; padding: 0; margin-top: 30px; }
.foot .inner { max-width: 980px; margin: 0 auto; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
.foot a, .foot .linkbtn { color: #fff; }
.pubplan h1 { color: var(--brand); }
.pubplan .pday { border-top-color: var(--slate); }
.pubplan .pdate b { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--slate); font-size: 1.05rem; }
.pubplan .phead b:first-child { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { .pubplan .phead b:first-child { color: var(--brand); } .sitenav a { color: #c7d0d2; } }
@media (max-width: 640px) {
  .brandbar .logo img { height: 58px; }
  .brandbar .brand h1 { font-size: 1.45rem; }
  .sitenav a { font-size: .95rem; padding: 9px 9px 8px; }
}
/* Profilbilder */
.pic { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; flex: none; color: #fff; font: 700 .62rem/1 var(--sans); letter-spacing: .02em; vertical-align: middle; box-shadow: 0 0 0 2px var(--card); }
.pic.sm { width: 1.3rem; height: 1.3rem; font-size: .52rem; }
.pic.md { width: 1.9rem; height: 1.9rem; font-size: .72rem; }
.pic.xl { width: 4.4rem; height: 4.4rem; font-size: 1.4rem; }
img.pic { background: var(--line); }
img.pic[data-zoom] { cursor: zoom-in; }
.person { display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle; min-width: 0; }
.with .person { margin-right: .5rem; }
.pn { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.pn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.picrow { display: flex; align-items: center; gap: 1rem; padding: 8px 0; border-top: 1px dashed var(--line); }
.picrow:first-of-type { border-top: none; }
.picrow .grow { flex: 1; display: grid; gap: 6px; }
.picrow input[type=file] { max-width: 100%; }
.pname .pic, .picker-list b .pic { margin-right: 4px; }
.piczoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(20, 30, 33, .8); cursor: zoom-out; }
.piczoom figure { margin: 0; display: grid; justify-items: center; gap: .8rem; }
.piczoom img { width: min(80vw, 60vh, 420px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); background: #fff; }
.piczoom figcaption { color: #fff; font: 700 1.2rem var(--head); text-transform: uppercase; }
.piczoom button { position: absolute; top: 12px; right: 12px; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #123; font-size: 1.5rem; line-height: 1; }
.linkrow { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
/* Zugangskarten (nur Druck) */
.cards-print { display: none; }
@media print {
  body.print-cards > *:not(main) { display: none !important; }
  body.print-cards main.page > *:not(.cards-print) { display: none !important; }
  body.print-cards main.page { display: block !important; padding: 0; max-width: none; }
  body.print-cards .cards-print { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; }
  @page { margin: 10mm; }
  .acard { break-inside: avoid; border: 1px dashed #999; padding: 5mm; height: 68mm; display: grid; grid-template-rows: auto 1fr; gap: 3mm; font: 9pt/1.3 Arial, sans-serif; color: #000; }
  .acard-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5pt solid #5f737a; padding-bottom: 2mm; }
  .acard-head img { height: 13mm; width: auto; }
  .acard-head b { font: 700 14pt Oswald, Arial, sans-serif; text-transform: uppercase; color: #72b62e; }
  .acard-body { display: grid; grid-template-columns: 36mm 1fr; gap: 4mm; align-items: center; }
  .acard .qr svg { width: 36mm; height: 36mm; display: block; }
  .acard strong { display: block; font: 700 13pt Oswald, Arial, sans-serif; margin: 1mm 0; }
  .acard ol { margin: 1mm 0 2mm; padding-left: 4mm; }
  .acard .small { font-size: 7.5pt; color: #444; }
}
.picrow .grow { min-width: 0; }
.picrow .grow form.row { margin: 0; }
.picrow input[type=file] { flex: 1 1 180px; min-width: 0; }
.picrow .grow form.inline { justify-self: start; }
