:root{--bg:#f4f6f8;--panel:#fff;--text:#17202a;--muted:#6d7885;--line:#e3e8ee;--accent:#173d2b;--accent2:#215a3f;--warning:#9a6500;--warningbg:#fff4d8;--success:#176239;--successbg:#e5f5ec}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit}.layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:#102b20;color:#fff;padding:26px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 26px}.brand-mark{width:42px;height:42px;border:1px solid #6d8e7d;border-radius:12px;display:grid;place-items:center;font-weight:800}.brand strong,.brand span{display:block}.brand span{font-size:12px;color:#a9bcb1;margin-top:2px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav a{text-decoration:none;padding:11px 12px;border-radius:9px;color:#d3ded8;font-size:14px}.sidebar nav a:hover,.sidebar nav a.active{background:#214535;color:#fff}.sidebar-note{margin-top:auto;font-size:12px;color:#8eaa9b;padding:10px}.main{padding:30px 34px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:var(--muted);font-weight:700}.topbar h1{font-size:30px;margin:3px 0 0}.btn{border:1px solid #cfd7df;background:#fff;border-radius:9px;padding:9px 13px;text-decoration:none;cursor:pointer;font-weight:600;color:#27313a;font-size:13px;display:inline-flex;align-items:center;justify-content:center}.btn:hover{background:#f7f9fa}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent2)}.btn.small{padding:6px 9px;font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(20,31,43,.03)}.metric span,.metric small{display:block;color:var(--muted);font-size:13px}.metric strong{display:block;font-size:31px;margin:10px 0 6px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.section-head h2{font-size:18px;margin:3px 0}.section-head a{font-size:13px;color:var(--accent2)}.simple-list>div{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:12px 0;gap:16px}.simple-list>div:first-child{border-top:0}.simple-list span{color:var(--muted);font-size:13px}.muted{color:var(--muted)}.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;margin-bottom:18px}input,select,textarea{width:100%;border:1px solid #cfd7df;border-radius:8px;padding:10px 11px;font:inherit;background:#fff;color:var(--text)}input:focus,select:focus,textarea:focus{outline:2px solid #b6d1c2;border-color:#7aa58d}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:11px 10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #edf0f3;vertical-align:middle}td small{display:block;color:var(--muted);margin-top:3px}.mono{font-family:Consolas,monospace}.badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:700}.badge.success{background:var(--successbg);color:var(--success)}.badge.warning{background:var(--warningbg);color:var(--warning)}.badge.neutral{background:#eef1f4;color:#59636d}.actions{display:flex;gap:6px;white-space:nowrap}.actions form{margin:0}.empty{text-align:center;padding:30px;color:var(--muted)}.form-stack{display:flex;flex-direction:column;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.span-2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:9px}.danger-link{background:transparent;border:0;color:#ad2c2c;text-decoration:underline;cursor:pointer;padding:15px 0}.flash{padding:12px 14px;border-radius:9px;margin-bottom:16px;font-size:13px}.flash.success{background:var(--successbg);color:var(--success)}.flash.error{background:#fce8e8;color:#9d2424}@media(max-width:1000px){.layout{grid-template-columns:1fr}.sidebar{display:none}.cards{grid-template-columns:1fr 1fr}.main{padding:20px}.grid-2{grid-template-columns:1fr}}@media(max-width:650px){.cards,.form-grid,.filters{grid-template-columns:1fr}.span-2{grid-column:span 1}.topbar{align-items:flex-start;gap:12px;flex-direction:column}}
.field-help{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.45;margin-top:2px}.compact{margin-top:-6px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}.check-item{display:flex;flex-direction:row;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fafbfc;font-weight:500}.check-item input{width:auto;margin:0;accent-color:var(--accent)}.check-item.prominent{min-height:42px}.align-end{align-items:end}.row-muted{opacity:.72;background:#fafafa}.badge.deceased{background:#eee;color:#5f6266}.status-text{font-weight:600}@media(max-width:650px){.check-grid{grid-template-columns:1fr}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg)}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 14px 40px rgba(20,31,43,.08)}.login-card h1{margin:6px 0 8px}.login-brand{color:#fff;background:#102b20;border-radius:12px;padding:14px 16px;margin-bottom:24px}.login-hint{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin:20px 0 0}.sidebar-note a{color:#cfe1d7}.sidebar-note form{margin:4px 0}.sidebar-logout{border:0;background:transparent;color:#cfe1d7;padding:0;text-decoration:underline;cursor:pointer;font:inherit;font-size:12px}.narrow-card{max-width:620px}.bar-list{display:flex;flex-direction:column;gap:12px}.bar-row{display:grid;grid-template-columns:70px 1fr 35px;align-items:center;gap:10px;font-size:13px}.bar-track{height:9px;background:#edf1f3;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:var(--accent2);border-radius:999px}.bar-row strong{text-align:right}.span-grid-2{grid-column:span 2}.year-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px}.year-grid>div{border:1px solid var(--line);border-radius:9px;padding:10px;display:flex;justify-content:space-between}.year-grid span{color:var(--muted)}.nowrap{white-space:nowrap}.change-value{max-width:260px;white-space:normal;word-break:break-word}.old-value{color:#8a4545}.new-value{color:#176239}@media(max-width:1000px){.span-grid-2{grid-column:span 1}}
.history-table{display:flex;flex-direction:column;gap:10px;margin:12px 0}.history-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;padding:12px;border:1px solid var(--border,#e5e7eb);border-radius:12px}.history-row-license{grid-template-columns:1.4fr 1fr 1fr 1.5fr auto}.compact-check{align-self:end;min-height:42px}.history-row label{margin:0}@media(max-width:900px){.history-row,.history-row-license{grid-template-columns:1fr 1fr}.history-row .compact-check{grid-column:1/-1}}
.relation-list{display:flex;flex-direction:column;gap:8px;margin:12px 0 16px}.relation-item{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fafbfc}.relation-item strong,.relation-item span{display:block}.relation-item span{font-size:12px;color:var(--muted);margin-top:3px}.relation-add{border-top:1px solid var(--line);padding-top:16px}.key-form{align-items:end}.key-form .form-actions{margin-top:0}@media(max-width:650px){.relation-item{align-items:flex-start;flex-direction:column}}

.key-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:14px 0}.key-select-card{display:flex;flex-direction:column;gap:8px;border:1px solid #dfe5ec;border-radius:12px;padding:12px;background:#fafbfc}.key-select-card span{display:flex;gap:8px;align-items:center}.key-select-card input[type=text],.key-select-card input:not([type]){width:100%}.input-action{display:flex;gap:8px;align-items:center}.input-action input{flex:1}.subsection{margin-top:18px;padding-top:16px;border-top:1px solid #e5e8ec}
.history-row-training{grid-template-columns:1.2fr 1fr 1fr 1.7fr auto}.history-row-court{grid-template-columns:1fr 1.5fr 1fr 1fr 1.6fr auto}.weapon-thumb{width:62px;height:44px;object-fit:cover;border-radius:7px;border:1px solid var(--line)}.event-programs{display:flex;flex-direction:column;gap:10px}.event-program{display:grid;grid-template-columns:1.6fr .65fr .65fr .75fr .8fr 1fr 1.5fr;gap:9px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.label-title{display:block;font-size:13px;margin-bottom:7px}@media(max-width:1100px){.history-row-training,.history-row-court,.event-program{grid-template-columns:1fr 1fr}}@media(max-width:650px){.history-row-training,.history-row-court,.event-program{grid-template-columns:1fr}}
.training-week{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:900px){.training-week{grid-template-columns:1fr}}
.brand-crest{width:54px;height:54px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}.profile-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.profile-title h2{margin:.1rem 0}.profile-actions{display:flex;gap:8px;flex-wrap:wrap}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.detail-item{padding:12px;border:1px solid #e7e7e7;border-radius:10px}.detail-item small{display:block;color:#6b7280;margin-bottom:4px}.org-chart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.org-card{padding:16px;border:1px solid #ddd;border-radius:12px;text-align:center;background:#fff}.org-card .role{font-size:.82rem;color:#667085}.org-card strong{display:block;margin-top:5px}.org-section{margin-top:20px}.warning-box{padding:12px 14px;border:1px solid #eab308;border-radius:10px;background:#fffbeb;margin:10px 0}.doc-chip{display:inline-block;padding:4px 8px;border:1px solid #ddd;border-radius:999px;margin:2px}.weapon-new-row{border:1px solid #e5e7eb;border-radius:12px;padding:14px;margin-bottom:10px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:900px){.detail-grid,.org-chart,.two-col{grid-template-columns:1fr}.profile-hero{display:block}}

/* v1.0 – Mobile / Touch Optimierung */
.mobile-menu-button,.mobile-overlay{display:none}
@media(max-width:1000px){
  body{overflow-x:hidden}
  .layout{display:block;min-height:100vh}
  .sidebar{display:flex;position:fixed;z-index:1100;inset:0 auto 0 0;width:min(86vw,320px);height:100dvh;transform:translateX(-105%);transition:transform .22s ease;box-shadow:0 0 30px rgba(0,0,0,.28);padding:72px 16px 18px;overflow-y:auto;overscroll-behavior:contain}
  body.menu-open .sidebar{transform:translateX(0)}
  .sidebar .brand{padding:0 8px 18px}
  .sidebar nav{gap:4px}
  .sidebar nav a{padding:13px 12px;font-size:15px;min-height:46px;display:flex;align-items:center}
  .sidebar-note{margin-top:20px;padding-bottom:20px}
  .mobile-menu-button{display:flex;position:fixed;z-index:1200;left:14px;top:14px;width:46px;height:46px;border:0;border-radius:12px;background:#102b20;box-shadow:0 3px 14px rgba(0,0,0,.2);align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}
  .mobile-menu-button span{display:block;width:21px;height:2px;background:#fff;border-radius:2px;transition:.2s}
  body.menu-open .mobile-menu-button span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  body.menu-open .mobile-menu-button span:nth-child(2){opacity:0}
  body.menu-open .mobile-menu-button span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .mobile-overlay{display:block;position:fixed;z-index:1050;inset:0;background:rgba(5,18,13,.48);opacity:0;visibility:hidden;transition:.2s}
  body.menu-open .mobile-overlay{opacity:1;visibility:visible}
  body.menu-open{overflow:hidden}
  .main{padding:74px 18px 28px}
  .topbar{margin-bottom:18px}
  .topbar h1{font-size:26px}
  .topbar .btn.primary{min-height:44px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .card{padding:16px;border-radius:12px}
  .metric strong{font-size:27px}
  .grid-2,.two-col,.training-week{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .org-chart{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px}
  table{min-width:720px}
  .actions{gap:8px;flex-wrap:wrap;white-space:normal}
  .actions .btn,.actions button{min-height:40px}
  .profile-actions{gap:8px}
  .profile-actions .btn{min-height:42px}
}
@media(max-width:650px){
  .main{padding:72px 12px 24px}
  .topbar{gap:10px}
  .topbar>div{width:100%;padding-right:4px}
  .topbar .btn.primary{width:100%}
  .topbar h1{font-size:23px;line-height:1.2}
  .eyebrow{font-size:10px}
  .cards{grid-template-columns:1fr 1fr;gap:8px}
  .card{padding:13px}
  .metric strong{font-size:23px;margin:7px 0 4px}
  .metric span,.metric small{font-size:12px}
  .form-grid,.filters,.detail-grid,.org-chart{grid-template-columns:1fr}
  .form-stack{gap:12px}
  input,select,textarea{font-size:16px;min-height:46px;padding:11px 12px}
  textarea{min-height:100px}
  label{font-size:13px}
  .btn{min-height:44px;padding:10px 13px}
  .btn.small{min-height:38px;padding:8px 10px}
  .form-actions{position:sticky;bottom:0;z-index:20;margin:8px -12px -12px;padding:11px 12px;background:rgba(244,246,248,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);justify-content:stretch;flex-wrap:wrap}
  .form-actions .btn,.form-actions button{flex:1 1 130px}
  .check-grid{grid-template-columns:1fr}
  .check-item{min-height:46px}
  .key-grid{grid-template-columns:1fr}
  .history-row,.history-row-license,.history-row-training,.history-row-court,.event-program{grid-template-columns:1fr;padding:12px}
  .history-row .compact-check{grid-column:auto}
  .profile-hero{display:block}
  .profile-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr}
  .profile-actions .btn{width:100%}
  .relation-item{align-items:stretch}
  .relation-item .actions{width:100%}
  .input-action{align-items:stretch;flex-direction:column}
  .section-head{gap:10px;flex-direction:column}
  .section-head .btn{width:100%}
  .simple-list>div{gap:8px;align-items:flex-start}
  .change-value{max-width:180px}
  .weapon-thumb{width:74px;height:52px}
  .login-page{padding:14px}
  .login-card{padding:22px 18px}
}
@media(max-width:400px){
  .cards{grid-template-columns:1fr}
  .profile-actions{grid-template-columns:1fr}
  .main{padding-left:10px;padding-right:10px}
}
@media(hover:none) and (pointer:coarse){
  .btn,.sidebar nav a,button,input,select,label.check-item{touch-action:manipulation}
  .btn:hover,.sidebar nav a:hover{filter:none}
}


/* v1.1 – kompaktere, gruppierte Navigation */
.sidebar{width:auto}.sidebar-nav{display:flex;flex-direction:column;gap:6px}.sidebar-nav>.nav-main,.nav-group-toggle{width:100%;border:0;background:transparent;text-align:left;text-decoration:none;padding:11px 12px;border-radius:9px;color:#d3ded8;font:inherit;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:42px}.sidebar-nav>.nav-main:hover,.sidebar-nav>.nav-main.active,.nav-group-toggle:hover,.nav-group.current>.nav-group-toggle{background:#214535;color:#fff}.nav-group{border-radius:10px}.nav-chevron{font-size:17px;line-height:1;transition:transform .18s ease;color:#9fb6aa}.nav-group.open .nav-chevron{transform:rotate(180deg)}.nav-submenu{display:none;margin:4px 0 7px;padding:3px 0 3px 10px;border-left:1px solid rgba(255,255,255,.15)}.nav-group.open .nav-submenu{display:flex;flex-direction:column;gap:2px}.sidebar .nav-submenu a{padding:9px 11px;font-size:13px;min-height:37px;color:#b9cbc1}.sidebar .nav-submenu a:hover,.sidebar .nav-submenu a.active{background:#1b3d2e;color:#fff}.sidebar-note{border-top:1px solid rgba(255,255,255,.1);margin-top:auto;padding-top:16px}
@media(max-width:1000px){.sidebar-nav>.nav-main,.nav-group-toggle{min-height:48px;font-size:15px}.sidebar .nav-submenu a{min-height:44px;padding:11px 12px;font-size:14px}.nav-submenu{padding-left:12px}}

.signature-box{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft);display:grid;gap:10px}.signature-pad{width:100%;max-width:700px;height:150px;background:#fff;border:1px dashed #9ca3af;border-radius:10px;touch-action:none}.signature-box small{color:var(--muted)}.trophy-row{grid-template-columns:minmax(180px,2fr) 90px minmax(220px,2fr) minmax(180px,2fr)}@media(max-width:700px){.signature-pad{height:130px}.trophy-row{grid-template-columns:1fr}}
/* v1.3 Aufgaben */
.todo-list{display:grid;gap:10px}.todo-item{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.todo-item.todo-high{border-left:4px solid #991b1b}.todo-main{flex:1;min-width:0}.todo-meta{font-size:.84rem;color:var(--muted);margin:3px 0 5px}.todo-check{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--soft);cursor:pointer;font-size:1.1rem;font-weight:700}.todo-check:hover{background:#e8f5ee}.signature-pad{cursor:crosshair;user-select:none;-webkit-user-select:none}
@media(max-width:700px){.todo-item{align-items:center}.todo-item>.btn,.todo-item form:last-child{flex:0 0 auto}.todo-meta{font-size:.8rem}}
.signature-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.signature-pair .signature-box{margin-top:0}@media(max-width:800px){.signature-pair{grid-template-columns:1fr}}

@media(min-width:1001px){.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;align-self:start}.main{min-width:0}}

/* v1.9 - Desktop-Navigation fest, Sortierung und Kalender */
@media(min-width:1001px){
  .layout{display:block;min-height:100vh}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;height:100vh;overflow-y:auto;z-index:1000}
  .main{margin-left:240px;min-width:0}
}
.sort-link{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:inherit}.sort-link:hover{color:var(--accent2)}
.calendar-list{display:grid;gap:8px}.calendar-item{display:flex;gap:12px;align-items:center;text-decoration:none;padding:9px;border:1px solid var(--line);border-radius:10px}.calendar-item:hover{background:#f7f9fa}.calendar-date{width:52px;flex:0 0 52px;text-align:center;border-right:1px solid var(--line);padding-right:10px}.calendar-date strong,.calendar-date span{display:block}.calendar-date strong{font-size:20px}.calendar-date span,.calendar-item small{color:var(--muted);font-size:12px}.calendar-item>div:last-child{min-width:0}.calendar-item>div:last-child strong,.calendar-item>div:last-child small{display:block}

.quick-list{display:grid;gap:10px}.quick-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #dfe4e8;border-radius:12px;text-decoration:none;background:#fff}.quick-item strong{display:block;line-height:1.35}.quick-item .muted{white-space:nowrap;font-size:.86rem}.profile-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:760px){.quick-item{align-items:flex-start;flex-direction:column;gap:3px}}

/* v1.14.2 Jubiläumsplanung */
.anniversary-row-form{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(130px,.7fr) minmax(150px,.8fr) minmax(180px,1fr) auto;gap:8px;align-items:center}
.anniversary-row-form input,.anniversary-row-form select{padding:8px 9px;font-size:12px}
.anniversary-dates{display:flex;flex-direction:column;gap:3px;color:var(--muted);white-space:nowrap}
@media(max-width:900px){.anniversary-row-form{grid-template-columns:1fr 1fr}.anniversary-row-form .btn{grid-column:span 2}.anniversary-dates{white-space:normal}}
@media(max-width:600px){.anniversary-row-form{grid-template-columns:1fr}.anniversary-row-form .btn{grid-column:auto}}

/* v1.15.0 – strukturierte Oberfläche */
.sidebar{background:var(--menu-bg,#102b20)}
.sidebar nav a:hover,.sidebar nav a.active,.sidebar-nav>.nav-main:hover,.sidebar-nav>.nav-main.active,.nav-group-toggle:hover,.nav-group.current>.nav-group-toggle{background:var(--menu-hover,#214535)}
.sidebar .nav-submenu a:hover,.sidebar .nav-submenu a.active{background:var(--menu-hover,#1b3d2e)}
.mobile-menu-button{background:var(--menu-bg,#102b20)!important}
.main > .card + .card{margin-top:18px}
.main > .card{box-shadow:0 2px 7px rgba(20,31,43,.045)}
.page-section + .page-section{margin-top:18px}
.workflow-box{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fafbfc}
.workflow-box h3{margin:0 0 12px}.info-box{padding:12px 14px;border:1px solid #a8c5d8;border-radius:10px;background:#eef7fc;margin:10px 0;color:#274b63}
.section-head .profile-actions{justify-content:flex-end}
@media(max-width:650px){.section-head .profile-actions{width:100%}.section-head .profile-actions .btn{flex:1}}
.editor-toolbar{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.5rem}.editor-toolbar button{border:1px solid #ccd4dc;background:#fff;border-radius:7px;padding:.45rem .7rem;cursor:pointer}.letter-editor{min-height:330px;border:1px solid #cbd5df;border-radius:10px;background:#fff;padding:22px;line-height:1.55;box-shadow:inset 0 1px 2px rgba(0,0,0,.04)}.letter-editor:focus{outline:2px solid rgba(25,90,140,.2);border-color:#6c93b2}
.branding-preview{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap;margin:12px 0 20px}.branding-preview>div{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.branding-preview img{width:96px;height:96px;object-fit:contain;border:1px solid var(--line);border-radius:16px;background:#fff;padding:5px}
.branding-preview{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap;margin:12px 0 20px}.branding-preview>div{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.branding-preview img{width:96px;height:96px;object-fit:contain;border:1px solid var(--line);border-radius:16px;background:#fff;padding:5px}

/* v1.20.0 – Dark Mode (Hell / System / Dunkel) */
.theme-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 1px 2px rgba(20,31,43,.04);flex:0 0 auto}
.theme-switch button{width:34px;height:32px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:17px;line-height:1;cursor:pointer;display:grid;place-items:center}
.theme-switch button:hover{background:var(--soft,#f2f5f7);color:var(--text)}
.theme-switch button.active{background:var(--accent);color:#fff}
.login-theme-switch{position:fixed;right:18px;top:18px;z-index:20}

html[data-theme="dark"]{
  --bg:#0e1412;
  --panel:#151d1a;
  --text:#e9efec;
  --muted:#98a7a0;
  --line:#2a3631;
  --accent:#3d8a62;
  --accent2:#52a878;
  --warning:#f0ba55;
  --warningbg:#352b17;
  --success:#73d39a;
  --successbg:#173225;
  --soft:#1b2521;
}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .todo-item,
html[data-theme="dark"] .quick-item,
html[data-theme="dark"] .theme-switch{background:var(--panel);border-color:var(--line);box-shadow:0 2px 8px rgba(0,0,0,.18)}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#101815;color:var(--text);border-color:#34433c}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{outline-color:#315d47;border-color:#4f8c6d}
html[data-theme="dark"] .btn{background:#1b2521;color:var(--text);border-color:#35423c}
html[data-theme="dark"] .btn:hover{background:#222e29}
html[data-theme="dark"] .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
html[data-theme="dark"] .btn.primary:hover{background:var(--accent2)}
html[data-theme="dark"] td{border-bottom-color:#25302b}
html[data-theme="dark"] .badge.neutral{background:#27312d;color:#c3cec9}
html[data-theme="dark"] .flash.error{background:#3a1f20;color:#ffaaa6}
html[data-theme="dark"] .danger-link{color:#ff8d8d}
html[data-theme="dark"] .calendar-item:hover,
html[data-theme="dark"] .todo-check:hover{background:#202b26}
html[data-theme="dark"] .bar-track{background:#27332e}
html[data-theme="dark"] .old-value{color:#e69b9b}
html[data-theme="dark"] .new-value{color:#82d6a5}
html[data-theme="dark"] .workflow-box{background:#111916;border-color:var(--line)}
html[data-theme="dark"] .info-box{background:#152832;border-color:#31576b;color:#abd2e7}
html[data-theme="dark"] .editor-toolbar button{background:#1b2521;color:var(--text);border-color:#35423c}
html[data-theme="dark"] .letter-editor{background:#101815;color:var(--text);border-color:#35423c;box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}
html[data-theme="dark"] .branding-preview img{background:#fff}
html[data-theme="dark"] .signature-box{background:#1b2521;border-color:var(--line)}
/* Unterschriften bleiben bewusst weiß, damit schwarze Signaturen sichtbar und PDFs konsistent sind. */
html[data-theme="dark"] .signature-pad{background:#fff}
html[data-theme="dark"] .login-brand{background:var(--menu-bg,#102b20)}
html[data-theme="dark"] ::selection{background:#356449;color:#fff}
@media(max-width:650px){.topbar{width:100%}.theme-switch{align-self:flex-end}.login-theme-switch{right:10px;top:10px}}


/* v1.20.1 – Dark-Mode Kontrastkorrekturen und Umschalter in der Seitenleiste */
.sidebar-theme{margin-top:auto;padding:14px 10px 4px;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:space-between;gap:10px;color:#b8c9c0;font-size:12px}.sidebar-theme+.sidebar-note{margin-top:0}.theme-switch-sidebar{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16);box-shadow:none}.theme-switch-sidebar button{color:#c9d8d0}.theme-switch-sidebar button:hover{background:rgba(255,255,255,.12);color:#fff}.theme-switch-sidebar button.active{background:#fff;color:#173d2b}
html[data-theme="dark"] .theme-switch-sidebar{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16)}html[data-theme="dark"] .theme-switch-sidebar button{color:#c9d8d0}html[data-theme="dark"] .theme-switch-sidebar button:hover{background:rgba(255,255,255,.12);color:#fff}html[data-theme="dark"] .theme-switch-sidebar button.active{background:#fff;color:#173d2b}
html[data-theme="dark"] .key-select-card,html[data-theme="dark"] .check-item,html[data-theme="dark"] .relation-item,html[data-theme="dark"] .event-program,html[data-theme="dark"] .weapon-new-row,html[data-theme="dark"] .detail-item,html[data-theme="dark"] .org-card,html[data-theme="dark"] .history-row{background:var(--soft);border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .key-select-card strong,html[data-theme="dark"] .check-item,html[data-theme="dark"] .org-card strong,html[data-theme="dark"] .detail-item strong{color:var(--text)}
html[data-theme="dark"] .key-select-card input[type="checkbox"],html[data-theme="dark"] .check-item input[type="checkbox"]{accent-color:#52a878}
html[data-theme="dark"] .row-muted{background:#121916}html[data-theme="dark"] .warning-box{background:#352b17;border-color:#9b772a;color:#f3d58f}html[data-theme="dark"] .doc-chip{border-color:var(--line);background:var(--soft);color:var(--text)}
html[data-theme="dark"] th{color:#aebcb5;border-bottom-color:var(--line)}html[data-theme="dark"] td,html[data-theme="dark"] td a{color:var(--text)}html[data-theme="dark"] .simple-list>div{border-top-color:var(--line)}html[data-theme="dark"] .calendar-item{border-color:var(--line)}html[data-theme="dark"] .quick-item{border-color:var(--line)}
@media(max-width:1000px){.sidebar-theme{margin-top:20px}.sidebar-note{padding-bottom:20px}}

/* v1.20.2 – Aktionen in der Sportauswertung */
.table-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.table-actions form{margin:0}.btn.danger{background:#b42318;border-color:#b42318;color:#fff}.btn.danger:hover{background:#912018;border-color:#912018}.danger-zone{border-color:#efb2ad}.danger-zone h2{color:#9d2424}html[data-theme="dark"] .btn.danger{background:#d64d43;border-color:#d64d43;color:#fff}html[data-theme="dark"] .btn.danger:hover{background:#bd4037}html[data-theme="dark"] .danger-zone{border-color:#783c38}html[data-theme="dark"] .danger-zone h2{color:#ff9e97}
.member-number-compose{display:flex;align-items:stretch;gap:0}.member-number-prefix{display:flex;align-items:center;padding:0 .8rem;border:1px solid var(--border);border-right:0;border-radius:.6rem 0 0 .6rem;background:var(--surface-soft);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:700}.member-number-compose input{border-radius:0 .6rem .6rem 0!important;min-width:0}

/* v1.25.2: Desktop-Menü fixiert und unabhängig vom Seiteninhalt scrollbar */
@media(min-width:1001px){
  .layout{display:block;min-height:100vh}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;height:100vh;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;z-index:100}
  .sidebar-nav{flex:0 0 auto}
  .main{margin-left:240px;min-height:100vh;box-sizing:border-box}
}


/* ClubShot Login V2.0.23 */
.cs-login-page{
  min-height:100vh;margin:0;padding:0;
  background:
    radial-gradient(circle at 18% 18%,rgba(48,156,96,.18),transparent 34%),
    linear-gradient(135deg,#0b1712 0%,#102b20 46%,#f3f6f4 46%,#f7f9f8 100%);
}
.cs-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(440px,.95fr)}
.cs-login-brand-panel{position:relative;overflow:hidden;color:#fff;display:flex;align-items:center;padding:64px clamp(42px,6vw,96px)}
.cs-login-brand-panel:before,.cs-login-brand-panel:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.08);border-radius:50%}
.cs-login-brand-panel:before{width:520px;height:520px;right:-210px;bottom:-230px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}
.cs-login-brand-panel:after{width:180px;height:180px;left:-80px;top:-70px;box-shadow:0 0 0 45px rgba(52,181,108,.06)}
.cs-login-brand-inner{position:relative;z-index:1;width:min(650px,100%);display:flex;flex-direction:column;gap:36px}
.cs-login-logo{width:min(360px,75%);height:auto;display:block;filter:drop-shadow(0 10px 28px rgba(0,0,0,.18))}
.cs-login-copy{max-width:650px}
.cs-login-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:800;color:#43b876}
.cs-login-copy h1{font-size:clamp(42px,5vw,68px);line-height:1.02;letter-spacing:-.035em;margin:10px 0 20px}
.cs-login-copy h1 em{font-style:normal;color:#48bd7b}
.cs-login-copy p{font-size:17px;line-height:1.65;color:#cedbd4;max-width:600px;margin:0}
.cs-login-features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:650px}
.cs-login-features>div{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);backdrop-filter:blur(8px);padding:16px;border-radius:14px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px}
.cs-login-features>div>span{grid-row:1/3;font-size:25px;color:#4ac17e;align-self:center}
.cs-login-features strong{font-size:13px}
.cs-login-features small{font-size:11px;color:#9fb6aa}
.cs-login-footer{font-size:11px;color:#78968a;margin-top:6px}
.cs-login-form-panel{display:flex;align-items:center;justify-content:center;padding:56px clamp(28px,5vw,72px)}
.cs-login-card{width:min(480px,100%);background:rgba(255,255,255,.94);border:1px solid rgba(23,61,43,.09);border-radius:26px;padding:42px;box-shadow:0 28px 80px rgba(16,43,32,.13);backdrop-filter:blur(18px)}
.cs-login-card h2{font-size:30px;letter-spacing:-.025em;margin:8px 0 5px;color:#14231c}
.cs-login-org{margin:0 0 24px;color:#66766e;font-size:14px}
.cs-login-form{display:flex;flex-direction:column;gap:17px;margin-top:24px}
.cs-login-form label>span:first-child{font-size:12px;color:#53635b}
.cs-input-wrap{position:relative}
.cs-input-wrap input{height:50px;padding:10px 14px 10px 42px;border-radius:12px;border:1px solid #d7e1dc;background:#fbfcfb;transition:.18s ease}
.cs-input-wrap input:focus{outline:none;border-color:#46aa73;box-shadow:0 0 0 4px rgba(53,166,103,.11);background:#fff}
.cs-input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:9px;color:#7b9186;z-index:2}
.cs-input-icon.cs-lock{font-size:8px}
.cs-login-submit{height:50px;border-radius:12px;margin-top:5px;background:linear-gradient(135deg,#173d2b,#24945a);border:0;font-size:14px;box-shadow:0 8px 22px rgba(23,98,57,.16)}
.cs-login-submit:hover{background:linear-gradient(135deg,#1a4932,#2aa865);transform:translateY(-1px)}
.cs-login-security{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid #e8eeeb;color:#809087;font-size:11px}
.cs-login-security>span:first-child{color:#3eb574;font-size:8px}
.cs-login-mobile-brand{display:none}
html[data-theme="dark"] .cs-login-page{background:linear-gradient(135deg,#07110d 0%,#0d2118 46%,#101714 46%,#101714 100%)}
html[data-theme="dark"] .cs-login-card{background:rgba(19,29,24,.96);border-color:#263a30}
html[data-theme="dark"] .cs-login-card h2{color:#f2f7f4}
html[data-theme="dark"] .cs-login-org{color:#9fb2a8}
html[data-theme="dark"] .cs-input-wrap input{background:#111b16;border-color:#30463a;color:#eef5f1}
html[data-theme="dark"] .cs-input-wrap input:focus{background:#15221b}
html[data-theme="dark"] .cs-login-security{border-color:#263a30}
@media(max-width:900px){
  .cs-login-page{background:linear-gradient(180deg,#102b20 0,#102b20 225px,#f5f8f6 225px,#f5f8f6 100%)}
  .cs-login-shell{grid-template-columns:1fr;display:block;min-height:100vh}
  .cs-login-brand-panel{min-height:225px;padding:30px 24px;align-items:flex-start}
  .cs-login-brand-inner{gap:0}
  .cs-login-logo{width:230px}
  .cs-login-copy,.cs-login-features,.cs-login-footer{display:none}
  .cs-login-form-panel{padding:0 18px 38px;margin-top:-54px;position:relative;z-index:2}
  .cs-login-card{padding:30px 24px;border-radius:22px;box-shadow:0 20px 55px rgba(16,43,32,.16)}
  .cs-login-mobile-brand{display:none}
}
@media(max-width:480px){
  .cs-login-card h2{font-size:26px}
  .cs-login-form-panel{padding-left:12px;padding-right:12px}
  .cs-login-brand-panel{padding-left:22px}
}


/* ClubShot 2.1 Dashboard, Hinweise, Timeline und Dokumentdesigner */
.dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px;padding:26px 28px;border-radius:18px;background:linear-gradient(135deg,var(--menu-bg,#102b20),#1f5b40);color:#fff;box-shadow:0 12px 30px rgba(16,43,32,.12)}
.dashboard-hero h2{font-size:28px;margin:4px 0 6px}.dashboard-hero p{margin:0;color:#cfe0d7}.dashboard-hero .eyebrow{color:#76d6a0}
.quick-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.quick-actions .btn{background:rgba(255,255,255,.96)}.quick-actions .btn.primary{background:#fff;color:#173d2b;border-color:#fff}
.dashboard-metrics .metric-link{text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}.dashboard-metrics .metric-link:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(20,31,43,.08)}
.dashboard-grid{margin-bottom:16px}
.notification-list{display:flex;flex-direction:column;gap:9px}.notification-row{display:grid;grid-template-columns:10px 1fr auto;gap:13px;align-items:center;text-decoration:none;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.notification-dot{width:8px;height:8px;border-radius:50%;background:#738078}.notification-danger .notification-dot{background:#c43b3b}.notification-warn .notification-dot{background:#d09422}.notification-info .notification-dot{background:#2d78b7}.notification-ok .notification-dot{background:#2f9b60}
.notification-copy{display:flex;flex-direction:column;gap:3px}.notification-copy strong{font-size:13px}.notification-copy span{font-size:12px;color:var(--muted)}.notification-actions{display:flex;align-items:center;gap:7px}.notification-actions form{margin:0}.notification-arrow{font-size:24px;color:var(--muted)}.compact-notifications .notification-row:hover{background:#f8faf9}
.empty-state{text-align:center;padding:30px 15px}.empty-state strong{font-size:18px}.empty-state p{color:var(--muted)}
.timeline-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.timeline-chip{background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:7px 11px;display:flex;align-items:center;gap:7px}.timeline-chip strong{color:var(--accent2)}.timeline-chip span{font-size:12px;color:var(--muted)}
.member-timeline{position:relative}.member-timeline:before{content:"";position:absolute;left:18px;top:12px;bottom:12px;width:2px;background:#dfe9e3}.timeline-entry{position:relative;display:grid;grid-template-columns:38px 115px 1fr;gap:14px;align-items:start;padding:12px 0}.timeline-marker{z-index:1;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e9f4ee;color:#1e7b4b;border:1px solid #cfe4d8;font-weight:800}.timeline-date{font-size:12px;color:var(--muted);padding-top:9px}.timeline-content{display:flex;flex-direction:column;gap:3px;padding:7px 0 12px;border-bottom:1px solid var(--line)}.timeline-content>a{text-decoration:none}.timeline-content small{color:var(--muted)}
.designer-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:start}.designer-tools{position:sticky;top:18px}.designer-tool-group{padding:14px 0;border-top:1px solid var(--line)}.designer-tool-group:first-of-type{border-top:0}.designer-tool-group>strong{display:block;margin-bottom:9px;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.designer-button-grid,.placeholder-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.designer-button-grid button,.placeholder-list button{border:1px solid #d7e0db;background:#fff;border-radius:8px;padding:8px;cursor:pointer;font-size:12px;text-align:left}.designer-button-grid button:hover,.placeholder-list button:hover{background:#edf6f1;border-color:#b7d5c4}.designer-image-actions{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.designer-canvas-card{overflow:auto}.designer-paper{--designer-accent:#178A4B;width:min(794px,100%);min-height:900px;margin:8px auto 0;background:#fff;color:#172027;box-shadow:0 12px 40px rgba(15,35,25,.10);border:1px solid #e3e9e5;padding:56px 64px;position:relative}.designer-paper:before{content:"";position:absolute;left:0;top:0;width:100%;height:5px;background:var(--designer-accent)}.designer-header-preview img{display:block;max-width:100%;max-height:120px;object-fit:contain;margin-bottom:26px}.designer-address{font-size:12px;line-height:1.55;margin-bottom:34px;color:#4f5c55}.designer-subject{font-size:17px;font-weight:800;margin-bottom:22px;color:var(--designer-accent)}.designer-editor{min-height:430px;border:0!important;padding:0!important;background:transparent!important;outline:none;line-height:1.65}.designer-editor:focus{box-shadow:none!important}.designer-editor img{max-width:100%;height:auto}.designer-footer-preview{margin-top:44px;padding-top:14px;border-top:1px solid #e2e7e4;font-size:10px;color:#7a8780}.designer-settings{margin-bottom:16px}
html[data-theme="dark"] .compact-notifications .notification-row:hover{background:#1b2721}html[data-theme="dark"] .designer-paper{background:#fff;color:#172027}
@media(max-width:1050px){.designer-workspace{grid-template-columns:1fr}.designer-tools{position:static}.dashboard-hero{align-items:flex-start;flex-direction:column}.quick-actions{justify-content:flex-start}}
@media(max-width:650px){.dashboard-hero{padding:20px}.dashboard-hero h2{font-size:23px}.notification-row{grid-template-columns:10px 1fr}.notification-actions,.notification-arrow{grid-column:2}.notification-actions{flex-wrap:wrap}.timeline-entry{grid-template-columns:36px 1fr}.timeline-date{grid-column:2;padding-top:0}.timeline-content{grid-column:2}.designer-paper{padding:34px 24px;min-height:720px}.designer-button-grid,.placeholder-list{grid-template-columns:repeat(2,1fr)}}

/* ClubShot 2.1.3: backup schedule + timeline filters */
.backup-times{display:flex;flex-direction:column;gap:.55rem;margin:.35rem 0 .7rem}.backup-time-row{display:flex;gap:.55rem;align-items:center;max-width:420px}.backup-time-row input[type=time]{max-width:180px}.backup-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0}.backup-status-grid>div{padding:.85rem 1rem;border:1px solid var(--border,#dce6e0);border-radius:12px;background:var(--surface-soft,#f7faf8);display:flex;flex-direction:column;gap:.2rem}.timeline-filter-form{display:flex;flex-direction:column;gap:1rem}.timeline-type-filter{display:flex;flex-direction:column;gap:.55rem}.timeline-type-filter .check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.timeline-export-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border,#dce6e0)}
@media(max-width:800px){.backup-status-grid,.timeline-type-filter .check-grid{grid-template-columns:1fr}.timeline-export-row{align-items:stretch;flex-direction:column}.backup-time-row{max-width:none}.backup-time-row input[type=time]{max-width:none;flex:1}}


/* ClubShot V2.1.14 - Dark-Mode-Kontraste, Backup und Dokumentdesigner */
.flash.warning,.alert.warning{background:var(--warningbg);color:var(--warning);border:1px solid color-mix(in srgb,var(--warning) 35%,transparent)}
.alert.error{background:#fce8e8;color:#9d2424;border:1px solid #efb2ad}.alert.success{background:var(--successbg);color:var(--success);border:1px solid #b9dfc9}
.breakglass-alert{background:#b42318;color:#fff;border:1px solid #8f1c14;padding:13px 15px;border-radius:10px;margin-bottom:16px;box-shadow:0 2px 8px rgba(180,35,24,.18)}
.backup-status-grid>div{background:var(--soft,#f7faf8);border-color:var(--line);color:var(--text)}.backup-status-grid>div strong{color:var(--text);overflow-wrap:anywhere}.backup-status-grid code{color:inherit}
.designer-button-grid button,.placeholder-list button{color:var(--text)}
.designer-editable{transition:outline-color .15s,box-shadow .15s}.designer-editable.is-active{outline:2px solid color-mix(in srgb,var(--designer-accent,#178A4B) 35%,transparent);outline-offset:3px}
.designer-footer-label{margin-top:38px;padding-top:12px;border-top:1px dashed #d5ddd8;color:#87928c;font-size:9px;text-transform:uppercase;letter-spacing:.12em;font-weight:800}
.designer-footer-preview{margin-top:8px;padding:10px 0;min-height:48px;border-top:0;font-size:10px;color:#66736d;line-height:1.4}.designer-footer-preview:empty:before{content:"Fußzeile gestalten – Text, Platzhalter oder Bild einfügen";color:#a0aaa5}.designer-footer-preview img{max-width:180px;max-height:70px;height:auto}
.designer-align-left{text-align:left}.designer-align-center{text-align:center}.designer-align-right{text-align:right}.designer-header-preview.designer-align-center img{margin-left:auto;margin-right:auto}.designer-header-preview.designer-align-right img{margin-left:auto;margin-right:0}.designer-header-preview.designer-align-left img{margin-left:0;margin-right:auto}
html[data-theme="dark"] .flash.warning,html[data-theme="dark"] .alert.warning{background:#3b2d14;color:#ffd985;border-color:#71551e}
html[data-theme="dark"] .alert.error{background:#3a1f20;color:#ffaaa6;border-color:#713538}html[data-theme="dark"] .alert.success{background:#173225;color:#8ce1ad;border-color:#315b40}
html[data-theme="dark"] .breakglass-alert{background:#8e211a;color:#fff;border-color:#e45b51;box-shadow:0 2px 10px rgba(0,0,0,.25)}
html[data-theme="dark"] .backup-status-grid>div{background:#1b2521;border-color:#34433c;color:#e9efec}html[data-theme="dark"] .backup-status-grid>div .muted{color:#aebcb5}
html[data-theme="dark"] .designer-tools,html[data-theme="dark"] .designer-settings,html[data-theme="dark"] .designer-canvas-card{background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .designer-button-grid button,html[data-theme="dark"] .placeholder-list button{background:#1b2521;color:#e9efec;border-color:#3a4a43}html[data-theme="dark"] .designer-button-grid button:hover,html[data-theme="dark"] .placeholder-list button:hover{background:#25332d;border-color:#4f765f}
html[data-theme="dark"] .designer-tool-group{border-color:#334039}html[data-theme="dark"] .designer-paper{background:#fff;color:#172027;border-color:#47534d;box-shadow:0 14px 44px rgba(0,0,0,.35)}
html[data-theme="dark"] .designer-footer-preview{color:#66736d}html[data-theme="dark"] .designer-footer-label{color:#87928c;border-color:#d5ddd8}
html[data-theme="dark"] .subsection{border-top-color:var(--line)}html[data-theme="dark"] .year-grid>div{border-color:var(--line);background:var(--soft)}html[data-theme="dark"] .badge.deceased{background:#303936;color:#c9d2ce}
html[data-theme="dark"] .member-timeline:before{background:#35433c}html[data-theme="dark"] .timeline-marker{background:#1c3528;color:#83d7a5;border-color:#355c45}html[data-theme="dark"] .compact-notifications .notification-row{border-color:var(--line)}

:root{--border:var(--line);--surface-soft:#f7faf8}html[data-theme="dark"]{--border:var(--line);--surface-soft:var(--soft)}

/* V2.1.15 production readiness */
.status-pill{padding:8px 12px;border-radius:999px;font-weight:800}.status-pill.green{background:#dff5e7;color:#14532d}.status-pill.yellow{background:#fff3cd;color:#704d00}.status-pill.red{background:#fde2e2;color:#8a1c1c}.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:18px}.health-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.health-item small{display:block;margin-top:4px;color:var(--muted)}.health-dot{width:13px;height:13px;border-radius:50%;margin-top:4px;flex:none}.health-dot.green{background:#22a447}.health-dot.yellow{background:#d99b00}.health-dot.red{background:#d63b3b}.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.help-grid>div{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}details{padding:12px 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-weight:700}.public-shell{max-width:980px;margin:40px auto;padding:0 20px}.public-head{display:flex;align-items:center;gap:16px;margin-bottom:24px}.public-head img{width:64px;height:64px;object-fit:contain}.public-footer{padding:24px 0;text-align:center;color:var(--muted)}.text-danger{color:#b42318}

/* V2.1.16 help center */
.help-hero{scroll-margin-top:18px}.help-quicklinks{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.help-quicklinks a{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);color:var(--text);font-weight:750;text-decoration:none}.help-quicklinks a:hover{transform:translateY(-1px);border-color:var(--accent)}.help-direct{margin-top:8px}.help-section{scroll-margin-top:18px}.help-section>p{max-width:1000px}.help-steps{display:grid;gap:10px}.help-steps>div{display:flex;gap:13px;align-items:flex-start;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.help-steps b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff}.help-steps span{display:grid;gap:3px}.help-steps small{color:var(--muted);font-size:.94rem;line-height:1.45}.help-section details{padding:14px 2px}.help-section details p{margin:10px 0 2px;line-height:1.55}.help-section summary:hover{color:var(--accent)}

/* ClubShot V2.1.17 - fixed A4 designer, handbook and support */
.designer-pages{--designer-accent:#178A4B;display:grid;gap:24px;padding:8px 4px 30px}.designer-paper{width:min(794px,100%);height:1123px;min-height:1123px;margin:0 auto;background:#fff;color:#172027;box-shadow:0 12px 40px rgba(15,35,25,.10);border:1px solid #e3e9e5;padding:56px 64px 130px;position:relative;overflow:hidden}.designer-page-body{height:610px;max-height:610px;overflow:hidden;border:0!important;padding:0!important;background:transparent!important;outline:none;line-height:1.65}.designer-paper[data-page]:not([data-page="1"]) .designer-page-body{height:860px;max-height:860px}.designer-continuation{font-size:10px;color:#95a09a;text-transform:uppercase;letter-spacing:.12em;margin-bottom:18px}.designer-fixed-footer{position:absolute;left:64px;right:64px;bottom:34px;height:78px;border-top:1px solid #e2e7e4;padding-top:10px;font-size:10px;color:#66736d;overflow:hidden}.designer-fixed-footer .designer-footer-label{margin:0 0 5px;padding:0;border:0;font-size:8px}.designer-page-no{position:absolute;right:0;bottom:0;color:#9aa49f;font-size:8px}.designer-footer-clone{line-height:1.35;max-height:54px;overflow:hidden}.designer-footer-clone img{max-width:160px;max-height:45px}.help-hero-layout{display:flex;justify-content:space-between;gap:24px;align-items:center}.help-product-image{width:92px;height:92px;object-fit:contain;flex:none}.help-search{display:flex;align-items:center;gap:12px;margin-top:18px}.help-search input{max-width:620px}.help-note{margin-top:16px;padding:14px 16px;border-left:4px solid var(--accent);border-radius:8px;background:var(--surface-soft)}.help-note.warning{border-left-color:#d99b00}.help-visual{display:grid;grid-template-columns:180px 1fr;gap:22px;align-items:center;margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.help-a4-mini{width:150px;height:210px;background:white;color:#172027;border:1px solid #d9e1dc;box-shadow:0 6px 18px rgba(0,0,0,.08);padding:14px 12px;position:relative}.mini-head{font-size:8px;font-weight:800;color:#178A4B}.mini-address{font-size:6px;margin-top:22px}.mini-subject{font-size:8px;font-weight:800;margin-top:18px}.mini-lines{height:55px;margin-top:9px;background:repeating-linear-gradient(to bottom,#d9dfdc 0,#d9dfdc 1px,transparent 1px,transparent 9px)}.mini-footer{position:absolute;bottom:9px;left:12px;right:12px;border-top:1px solid #cfd8d3;padding-top:5px;font-size:5px;color:#738078}.help-changelog{white-space:pre-wrap;word-break:break-word;max-height:650px;overflow:auto;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.help-no-results{text-align:center}.error-page{text-align:center;padding:48px 28px}.error-code{font-size:72px;font-weight:900;line-height:1;color:var(--accent);opacity:.28}.error-page .profile-actions{justify-content:center;margin-top:22px}
@media(max-width:700px){.help-hero-layout{align-items:flex-start}.help-product-image{width:64px;height:64px}.help-visual{grid-template-columns:1fr}.designer-paper{height:900px;min-height:900px;padding:34px 24px 115px}.designer-page-body{height:500px;max-height:500px}.designer-paper[data-page]:not([data-page="1"]) .designer-page-body{height:680px;max-height:680px}.designer-fixed-footer{left:24px;right:24px;bottom:24px}}

.designer-text-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.designer-text-controls label{font-size:12px;font-weight:700}.designer-text-controls select{margin-top:5px}.designer-text-controls label:last-child{grid-column:1/-1}.designer-text-controls input[type="color"]{width:100%;height:38px;margin-top:5px;padding:3px}.designer-page-body span,.designer-footer-preview span,.designer-footer-clone span{line-height:inherit}
@media(max-width:700px){.designer-text-controls{grid-template-columns:1fr}.designer-text-controls label:last-child{grid-column:auto}}

/* Dokumentdesigner: Tabellen und erweiterte Listen (V2.1.20) */
.designer-table-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}.designer-table-controls label{font-size:12px;font-weight:700}.designer-table-controls select{margin-top:5px}.designer-table-controls .span-2{grid-column:1/-1}.designer-table-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.designer-table-actions button{border:1px solid #d7e0db;background:#fff;border-radius:8px;padding:7px 8px;cursor:pointer;font-size:11px;text-align:left}.designer-table-actions button:hover{background:#edf6f1;border-color:#b7d5c4}
.designer-editable table,.designer-footer-clone table{width:100%;border-collapse:collapse;table-layout:fixed;margin:7px 0}.designer-editable td,.designer-editable th,.designer-footer-clone td,.designer-footer-clone th{vertical-align:top;padding:5px 7px;min-width:32px;min-height:20px}.designer-editable table[data-border="grid"] td,.designer-editable table[data-border="grid"] th,.designer-footer-clone table[data-border="grid"] td,.designer-footer-clone table[data-border="grid"] th{border:1px solid #9aa49f}.designer-editable table[data-border="outer"],.designer-footer-clone table[data-border="outer"]{border:1px solid #9aa49f}.designer-editable table[data-border="none"] td,.designer-editable table[data-border="none"] th{border:1px dashed #cfd8d3}.designer-editable table[data-border="outer"] td,.designer-editable table[data-border="outer"] th{border:1px dashed #d9e1dc}.designer-footer-clone table[data-border="none"] td,.designer-footer-clone table[data-border="none"] th,.designer-footer-clone table[data-border="outer"] td,.designer-footer-clone table[data-border="outer"] th{border:0}.designer-editable td:focus,.designer-editable th:focus{outline:2px solid color-mix(in srgb,var(--designer-accent,#178A4B) 35%,transparent);outline-offset:-2px}.designer-editable ul,.designer-editable ol{padding-left:24px;margin:6px 0}.designer-footer-preview ul,.designer-footer-preview ol,.designer-footer-clone ul,.designer-footer-clone ol{padding-left:18px;margin:3px 0}
html[data-theme="dark"] .designer-table-actions button{background:#1b2521;color:#e9efec;border-color:#3a4a43}html[data-theme="dark"] .designer-table-actions button:hover{background:#25332d;border-color:#4f765f}
/* Der feste Fußbereich ist etwas höher, damit z. B. eine dreispaltige Kontakt-Tabelle Platz hat. */
.designer-paper{padding-bottom:150px}.designer-fixed-footer{height:98px}.designer-footer-clone{max-height:74px}.designer-footer-preview{max-height:74px;overflow:auto}
