/* =====================================================================
   Dosch Solutions Cockpit – Grundlayout (v0.1.0)
   Dunkle Sidebar / heller Content / Karten / Status-Badges / Mobile-Nav.
   Systemfonts (CSP 'self', offline-tauglich). Grün = Dosch-Marke.
   ===================================================================== */

:root {
    /* Flächen */
    --bg:            #f5f7f4;
    --surface:       #ffffff;
    --surface-2:     #f0f3ef;
    --sidebar:       #0f1b17;
    --sidebar-2:     #16261f;
    --sidebar-line:  #24382e;

    /* Text */
    --text:          #17211c;
    --text-muted:    #5b6b62;
    --text-invert:   #e7efe9;
    --text-invert-muted: #9db3a6;

    /* Marke */
    --accent:        #2f9e6b;   /* Dosch-Grün */
    --accent-strong: #24855a;
    --accent-soft:   #e5f3ec;
    --wheat:         #d7ac4a;   /* Ähren-Akzent (sparsam) */

    /* Linien / Schatten / Radius */
    --border:        #e2e8e2;
    --shadow-sm:     0 1px 2px rgba(20, 40, 30, .06);
    --shadow-md:     0 6px 24px rgba(20, 40, 30, .08);
    --radius:        14px;
    --radius-sm:     10px;

    /* Status */
    --st-active-bg:  #e5f3ec;  --st-active-fg:  #1c7a4f;
    --st-trial-bg:   #fbf1d8;  --st-trial-fg:   #9a7415;
    --st-blocked-bg: #fde5e0;  --st-blocked-fg: #b23d24;
    --st-archived-bg:#eceef0;  --st-archived-fg:#5a6570;
    --st-free-bg:    #e2eef7;  --st-free-fg:    #266497;
    --st-none-bg:    #eef1ee;  --st-none-fg:    #6a776e;

    --sev-info:      #266497;
    --sev-warning:   #9a7415;
    --sev-blocking:  #b23d24;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------------
   App-Shell (Grid)
   --------------------------------------------------------------------- */
.app {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------------------------------------------------------------------
   Sidebar (Desktop)
   --------------------------------------------------------------------- */
.sidebar {
    background: var(--sidebar);
    color: var(--text-invert);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid var(--sidebar-line);
}

.brand {
    display: flex;
    flex-direction:column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--sidebar-line);
}

.brand__logo-frame {
    display:flex;
    align-items:center;
    width:100%;
    padding:8px;
    border-radius:8px;
    background:#fff;
    border:1px solid rgba(255,255,255,.28);
    box-shadow:0 4px 16px rgba(0,0,0,.16);
}
.brand__logo { display:block; width:100%; height:auto; }
.brand__sub--logo { padding-left:8px; color:var(--text-invert-muted); }

.brand__sub   { font-size: 12px; color: var(--text-invert-muted); }

.nav {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
}

.nav__group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-invert-muted);
    padding: 16px 12px 6px;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-invert-muted);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease;
}

.nav__link:hover {
    background: var(--sidebar-2);
    color: var(--text-invert);
}

.nav__link.is-active {
    background: var(--sidebar-2);
    color: #fff;
    border-left-color: var(--accent);
}

.nav__icon {
    width: 18px; height: 18px; flex: 0 0 18px;
    stroke: currentColor; fill: none; stroke-width: 1.8;
}

.sidebar__foot {
    padding: 14px 20px;
    border-top: 1px solid var(--sidebar-line);
    font-size: 12px;
    color: var(--text-invert-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-ver {
    background: var(--sidebar-2);
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--text-invert);
}

/* ---------------------------------------------------------------------
   Hauptbereich
   --------------------------------------------------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.context {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.context__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
}
.context__label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__env {
    font-size: 12px; color: var(--text-muted);
    background: var(--surface-2);
    padding: 4px 10px; border-radius: 999px;
}

.content { padding: 28px; flex: 1; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.2px; }
.page-head p  { margin: 0; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Karten & Raster
   --------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-muted);
    margin: 28px 0 12px;
}

/* Modulkachel */
.module {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.module:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.module__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.module__title { font-size: 16px; font-weight: 650; }
.module__desc  { color: var(--text-muted); font-size: 14px; }
.module__foot  { display: flex; align-items: center; justify-content: space-between; }
.module__meta  { font-size: 13px; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Status-Badges
   --------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}
.badge--active   { background: var(--st-active-bg);   color: var(--st-active-fg); }
.badge--trial    { background: var(--st-trial-bg);    color: var(--st-trial-fg); }
.badge--blocked  { background: var(--st-blocked-bg);  color: var(--st-blocked-fg); }
.badge--archived { background: var(--st-archived-bg); color: var(--st-archived-fg); }
.badge--free     { background: var(--st-free-bg);     color: var(--st-free-fg); }
.badge--none     { background: var(--st-none-bg);     color: var(--st-none-fg); }

/* ---------------------------------------------------------------------
   Offene Aktionen
   --------------------------------------------------------------------- */
.actions { display: flex; flex-direction: column; gap: 10px; }
.action {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--text-muted);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.action--info     { border-left-color: var(--sev-info); }
.action--warning  { border-left-color: var(--sev-warning); }
.action--blocking { border-left-color: var(--sev-blocking); }
.action__text { font-size: 14px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn--primary:hover { background: var(--accent-strong); }
.btn--sm { padding: 6px 12px; font-size: 13px; }

/* ---------------------------------------------------------------------
   Mobile Bottom-Navigation (nur < 900px sichtbar)
   --------------------------------------------------------------------- */
.bottomnav { display: none; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }

    .sidebar { display: none; }

    .topbar { padding: 14px 18px; }
    .content { padding: 18px 16px 92px; }   /* Platz für Bottom-Nav */

    .grid { grid-template-columns: 1fr; }

    .bottomnav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 20;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        justify-content: space-around;
        box-shadow: 0 -4px 20px rgba(20,40,30,.06);
    }
    .bottomnav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 500;
        color: var(--text-muted);
        padding: 4px 10px;
        border-radius: 10px;
        min-width: 56px;
    }
    .bottomnav__link.is-active { color: var(--accent-strong); }
    .bottomnav__link.is-active .nav__icon { stroke: var(--accent-strong); }
    .bottomnav__link .nav__icon { width: 22px; height: 22px; flex: 0 0 22px; }
}

/* ---------------------------------------------------------------------
   Zugänglichkeit
   --------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------------
   v0.2.0 – Formulare, Auth und Verwaltung
   Bestehendes Designsystem unverändert weiterverwendet.
   --------------------------------------------------------------------- */
.auth-page { margin:0; background:var(--bg); color:var(--text); min-height:100vh; }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.auth-card { width:min(440px,100%); background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-md); padding:28px; }
.brand--auth { color:var(--text); background:transparent; border:0; padding:0; margin-bottom:28px; }
.brand--auth .brand__name { color:var(--text); }
.brand--auth .brand__sub { color:var(--text-muted); }
.auth-heading h1 { margin:0 0 6px; font-size:24px; }
.auth-heading p { margin:0 0 24px; color:var(--text-muted); }
.auth-version { margin-top:22px; font-size:12px; color:var(--text-muted); text-align:center; }
.form-stack { display:flex; flex-direction:column; gap:16px; }
.form-stack--wide { gap:18px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; }
.field input,.field select { width:100%; min-height:42px; box-sizing:border-box; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); color:var(--text); padding:9px 11px; font:inherit; font-weight:400; }
.field input:focus,.field select:focus { border-color:var(--accent); outline:none; box-shadow:0 0 0 3px rgba(45,164,112,.10); }
.field small,.form-help { color:var(--text-muted); font-size:12px; font-weight:400; }
.field--span2 { grid-column:span 2; }
.btn--wide { width:100%; justify-content:center; }
.form-actions { display:flex; justify-content:flex-end; }
.card-title { font-weight:700; margin-bottom:16px; }
.notice { border:1px solid var(--border); border-left:4px solid var(--sev-info); background:var(--surface); border-radius:var(--radius-sm); padding:12px 14px; margin-bottom:18px; font-size:14px; }
.notice--success { border-left-color:var(--accent); }
.notice--error { border-left-color:var(--sev-blocking); }
.notice--info { border-left-color:var(--sev-info); }
.page-head--actions { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.table-card { padding:0; overflow:hidden; }
.table-wrap { width:100%; overflow:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:720px; }
.data-table th,.data-table td { text-align:left; padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:middle; font-size:14px; }
.data-table th { color:var(--text-muted); font-size:12px; text-transform:uppercase; letter-spacing:.4px; background:var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom:0; }
.table-sub { color:var(--text-muted); font-size:12px; margin-top:2px; }
.table-action { text-align:right!important; }
.empty { color:var(--text-muted); text-align:center!important; padding:28px!important; }
.membership-list { display:flex; flex-direction:column; gap:10px; }
.membership-row { display:grid; grid-template-columns:minmax(0,1fr) 200px; gap:16px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.membership-row:last-child { border-bottom:0; }
.membership-row--locations{align-items:start}.location-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0 30px}.check--compact{align-items:flex-start;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--surface-muted)}.check--compact small{display:block}.field-error{display:block;color:#9e2f25}.location-admin-list{display:grid;gap:14px}.location-admin-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.location-status-form{display:flex;justify-content:flex-end;margin-top:10px}
.check { display:flex; gap:10px; align-items:flex-start; }
.check input { margin-top:4px; }
.check span { display:flex; flex-direction:column; gap:2px; }
.check small { color:var(--text-muted); }
.nav__section { margin:18px 14px 7px; color:rgba(255,255,255,.45); font-size:10px; text-transform:uppercase; letter-spacing:.8px; }
.nav__link--button { width:100%; border:0; font:inherit; cursor:pointer; text-align:left; background:transparent; }
.logout-form { margin:6px 0 10px; }
.sidebar__user { display:flex; flex-direction:column; gap:2px; padding:0 10px 10px; font-size:12px; }
.sidebar__user span { color:rgba(255,255,255,.5); }
.sidebar__version { display:flex; justify-content:space-between; align-items:center; font-size:11px; color:rgba(255,255,255,.58); }
.topbar__user { font-size:13px; font-weight:600; }
.details-list { display:grid; gap:10px; margin-top:16px; }
.details-list>div { display:flex; justify-content:space-between; gap:14px; font-size:13px; }
.details-list span { color:var(--text-muted); }

@media (max-width:700px){
  .form-grid{grid-template-columns:1fr}.field--span2{grid-column:auto}.page-head--actions{flex-direction:column;align-items:stretch}.page-head--actions>.btn{align-self:flex-start}.membership-row{grid-template-columns:1fr}.location-checks{grid-template-columns:1fr;margin-left:0}.auth-card{padding:22px}.topbar__user{display:none}
}
.sidebar__foot { flex-direction:column; align-items:stretch; gap:4px; }

/* v0.2.5 – Auth-Logo & TMA-Import (bestehendes Designsystem) */
.auth-logo-wrap { display:flex; justify-content:center; align-items:center; margin: 2px 0 18px; }
.auth-logo { display:block; width:min(100%, 270px); max-height:100px; object-fit:contain; }
.billing-org-picker{display:flex;align-items:flex-end;gap:14px;margin-bottom:18px}.billing-org-picker .field{min-width:min(360px,100%)}
@media(max-width:700px){.billing-org-picker{align-items:stretch;flex-direction:column}.billing-org-picker .field{min-width:0}}
.import-info { margin-bottom:18px; }
.import-info p, .import-step__head p { margin:5px 0 0; color:var(--text-muted); }
.import-step { margin-top:18px; }
.import-step__head { display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; }
.step-number { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:999px; background:var(--accent-soft); color:var(--accent-strong); font-weight:700; }
.summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.summary-box { border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 16px; background:var(--surface-2); display:flex; flex-direction:column; gap:2px; }
.summary-box strong { font-size:22px; }
.summary-box span { color:var(--text-muted); font-size:13px; }
.subhead { font-size:15px; margin:24px 0 10px; }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:var(--radius-sm); }
.data-table { width:100%; border-collapse:collapse; min-width:620px; background:var(--surface); }
.data-table th,.data-table td { padding:10px 12px; text-align:left; border-bottom:1px solid var(--border); font-size:13px; }
.data-table th { background:var(--surface-2); color:var(--text-muted); font-weight:650; }
.data-table tr:last-child td { border-bottom:0; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.notice--info { background:#eaf2f8; color:#285f86; border:1px solid #cfe0ec; }
.notice--warning { background:#fbf1d8; color:#795b12; border:1px solid #ecdba8; }
.auth-card .auth-notice {
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:0 0 20px;
    padding:11px 13px;
    color:#294337;
    background:#f5f8f6;
    border:1px solid #d7e3dc;
    border-left:4px solid var(--accent);
    border-radius:10px;
    line-height:1.45;
    box-shadow:none;
}
.auth-card .auth-notice::before {
    content:"i";
    display:grid;
    place-items:center;
    flex:0 0 20px;
    width:20px;
    height:20px;
    margin-top:1px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    font-size:12px;
    font-weight:800;
    line-height:1;
}
.auth-card .auth-notice--error {
    color:#7e2d26;
    background:#fff7f5;
    border-color:#ecd7d3;
    border-left-color:var(--sev-blocking);
}
.auth-card .auth-notice--error::before {
    content:"!";
    background:var(--sev-blocking);
}
.auth-card .auth-notice--warning {
    color:#695018;
    background:#fffbf1;
    border-color:#eadfbd;
    border-left-color:#b98616;
}
.auth-card .auth-notice--warning::before {
    content:"!";
    background:#b98616;
}
@media (max-width:700px) { .summary-grid { grid-template-columns:1fr; } .auth-logo { width:min(100%,230px); } }

/* ---------------------------------------------------------------------
   v0.3.0 – Rollen & Rechte / Benutzerfilter
   Bestehendes Designsystem bleibt unverändert.
   --------------------------------------------------------------------- */
.filter-bar {
    display:grid;
    grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(150px,.8fr)) auto;
    gap:14px;
    align-items:end;
    margin-bottom:18px;
}
.filter-actions { display:flex; gap:8px; align-items:center; padding-bottom:1px; }
.tag-list { display:flex; flex-wrap:wrap; gap:6px; }
.mini-tag { display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; background:var(--surface-2); color:var(--text-muted); font-size:11px; font-weight:650; }
.mini-tag--super { margin-top:6px; background:var(--accent-soft); color:var(--accent-strong); }
.role-list { display:flex; flex-direction:column; gap:7px; }
.role-list>div { display:flex; flex-direction:column; line-height:1.25; }
.role-list span { font-weight:650; font-size:13px; }
.role-list small { color:var(--text-muted); font-size:11px; }
.permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
.permission-group-title { grid-column:1/-1; margin:12px 0 2px; padding-top:10px; border-top:1px solid var(--border); font-size:12px; text-transform:uppercase; letter-spacing:.55px; color:var(--text-muted); font-weight:700; }
.permission-group-title:first-child { border-top:0; margin-top:0; padding-top:0; }
.permission-item { display:flex; gap:10px; align-items:flex-start; border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px; background:var(--surface); }
.permission-item input { margin-top:4px; }
.permission-item>span { display:flex; flex-direction:column; gap:3px; }
.permission-item strong { font-size:13px; }
.permission-item small { color:var(--text-muted); font-size:12px; }
.permission-item em { font-size:11px; font-style:normal; color:var(--st-blocked-fg); font-weight:650; }
.permission-item--protected { background:#fff9f7; }
.metric-value { font-size:24px; font-weight:750; margin:4px 0; }
.system-update { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-top:18px; }
.system-update p { margin:4px 0 0; }
@media (max-width:1050px){ .filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-actions{grid-column:1/-1}.permission-grid{grid-template-columns:1fr} }
@media (max-width:700px){ .filter-bar{grid-template-columns:1fr}.filter-actions{grid-column:auto;flex-wrap:wrap}.system-update{align-items:flex-start;flex-direction:column} }

/* v0.3.1 – sichere Rollenlöschung */
.btn--danger { background:#fff; border-color:#d8a6a0; color:#9e2f25; }
.btn--danger:hover:not(:disabled) { background:#fff2f0; border-color:#c7756b; }
.btn--danger:disabled { opacity:.45; cursor:not-allowed; }
.table-actions { display:flex; gap:8px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }
.table-actions form { margin:0; }
.danger-zone { border-color:#ead2cf; }

/* ---------------------------------------------------------------------
   v0.4.0 – Konto & Sicherheit / Passkeys / 2FA
   Bestehendes Designsystem unverändert weitergeführt.
   --------------------------------------------------------------------- */
.auth-links { display:flex; justify-content:flex-end; margin-top:-6px; font-size:12px; }
.auth-links a { color:var(--accent-strong); text-decoration:none; }
.auth-separator { display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--text-muted); font-size:12px; }
.auth-separator::before,.auth-separator::after { content:""; height:1px; flex:1; background:var(--border); }
.passkey-message { margin-top:8px; min-height:16px; text-align:center; }
.security-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.security-card { margin-bottom:18px; }
.security-grid .security-card { margin-bottom:0; }
.security-card__head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:16px; }
.security-card__head .card-title { margin-bottom:4px; }
.security-list { display:flex; flex-direction:column; gap:0; margin-top:16px; border-top:1px solid var(--border); }
.security-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--border); }
.security-row>div { display:flex; min-width:0; flex-direction:column; gap:2px; }
.security-row small { color:var(--text-muted); font-size:11px; }
.security-row--muted { opacity:.55; }
.ua-text { max-width:720px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.security-action { margin-top:16px; }
.compact-form { margin-top:14px; }
.secret-box { margin:14px 0; padding:14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); overflow:auto; }
.secret-box code { font-size:16px; letter-spacing:1.5px; word-break:break-all; }
.secret-box--small code { font-size:11px; letter-spacing:0; }
details summary { cursor:pointer; color:var(--text-muted); font-size:12px; }
@media(max-width:900px){ .security-grid{grid-template-columns:1fr} }
@media(max-width:700px){ .security-row{align-items:flex-start;flex-direction:column}.security-row form{align-self:flex-start}.security-card__head{flex-direction:column}.ua-text{white-space:normal} }

/* v0.5.0 – Module, Tarife & Limits */
.module__access-list { display:flex; flex-direction:column; gap:8px; }
.module-access-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--border); }
.module-access-row span:first-child { display:flex; flex-direction:column; min-width:0; }
.module-access-row small { color:var(--text-muted); font-size:11px; }
@media(max-width:700px){ .module-access-row{align-items:flex-start;flex-direction:column} }

/* ---------------------------------------------------------------------
   v0.5.1 – visuelles Modulcenter
   --------------------------------------------------------------------- */
.product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,440px)); gap:18px; align-items:stretch; }
.product-card {
    min-width:0; overflow:hidden; display:flex; flex-direction:column;
    background:var(--surface); border:1px solid var(--border); border-radius:18px;
    box-shadow:0 2px 10px rgba(20,40,30,.06);
    transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease;
}
/* Hover fuer ALLE Karten gleich.
   Vorher hob sich die eine Karte an und die andere nicht - `.product-card--muted:hover`
   setzte `transform:none`, weil ein Modul im Aufbau nicht anklickbar ist. Gut
   gemeint, aber nebeneinander liest es sich als Fehler: zwei gleiche Karten,
   eine reagiert, eine nicht.
   Das Anheben faellt deshalb ganz weg. Ein Rahmen- und Schattenwechsel zeigt
   dasselbe ruhiger, gilt fuer jede Karte und verspricht keiner Karte eine
   Bedienbarkeit, die sie nicht hat. */
.product-card:hover { border-color:#d4ddd5; box-shadow:0 8px 24px rgba(20,40,30,.10); }
.product-card__visual { position:relative; aspect-ratio:2.4/1; overflow:hidden; background:var(--surface-2); }
.product-card__visual::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,22,16,0) 45%,rgba(8,22,16,.25) 100%); pointer-events:none; }
.product-card__image { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
/* Auch das Heranzoomen des Bildes entfaellt - es galt ebenfalls nur fuer
   einen Teil der Karten. */
.product-card__badge { position:absolute; z-index:2; top:12px; right:12px; box-shadow:0 2px 10px rgba(8,22,16,.12); }
.product-card__ai-label { position:absolute; z-index:2; left:11px; bottom:9px; display:block; width:96px; height:auto; filter:drop-shadow(0 2px 7px rgba(8,22,16,.3)); }
.product-card__ai-label img { display:block; width:100%; height:auto; }
.product-card__body { padding:16px 18px 0; display:flex; flex:1; flex-direction:column; }
.product-card__heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.product-card__eyebrow { margin-bottom:3px; color:var(--accent-strong); font-size:11px; font-weight:750; letter-spacing:.7px; text-transform:uppercase; }
.product-card__heading h2 { margin:0; font-size:19px; line-height:1.25; letter-spacing:-.2px; }
.product-card__tagline { min-height:39px; margin:9px 0 12px; color:var(--text-muted); font-size:13px; }
.product-card__summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--border); font-size:12px; }
.product-card__summary span { color:var(--text-muted); }
.product-card__summary strong { text-align:right; }
.product-card__details { border-top:1px solid var(--border); }
.product-card__details summary { position:relative; padding:10px 24px 11px 0; list-style:none; color:var(--text); font-size:12px; font-weight:700; cursor:pointer; }
.product-card__details summary::-webkit-details-marker { display:none; }
.product-card__details summary::after { content:"+"; position:absolute; right:2px; top:7px; color:var(--accent-strong); font-size:18px; font-weight:500; }
.product-card__details[open] summary::after { content:"−"; }
.product-card__details-content { padding:0 0 15px; }
.product-card__details-content p { margin:0 0 12px; color:var(--text-muted); font-size:13px; }
.product-card__detail-row { display:flex; justify-content:space-between; gap:14px; padding:7px 0; border-top:1px solid var(--border); font-size:12px; }
.product-card__detail-row span { color:var(--text-muted); }
.product-card__detail-row strong { text-align:right; }
.product-card__actions { min-height:58px; display:flex; justify-content:flex-end; align-items:center; margin-top:auto; padding:10px 18px 13px; border-top:1px solid var(--border); background:#fbfcfb; }
.product-card__actions .btn { justify-content:center; min-width:130px; }
.product-card__unavailable { color:var(--text-muted); font-size:12px; }
@media(max-width:1100px){ .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:760px){
    .product-grid{grid-template-columns:1fr;gap:18px}
    .product-card__body{padding:16px 16px 0}
    .product-card__actions{padding:10px 16px 13px}
    .product-card__visual{aspect-ratio:2.05/1}
    .product-card__tagline{min-height:0}
    .product-card__ai-label{width:92px;left:10px;bottom:8px}
}
.billing-price-row{display:grid;grid-template-columns:150px repeat(4,minmax(150px,1fr));gap:12px;align-items:end;padding:14px 0;border-bottom:1px solid var(--border)}
.billing-price-row--single{grid-template-columns:repeat(4,minmax(150px,1fr))}
.billing-price-row:last-of-type{border-bottom:0}
@media(max-width:1100px){.billing-price-row{grid-template-columns:1fr 1fr}.billing-price-row>strong{grid-column:1/-1}}
@media(max-width:700px){.billing-price-row{grid-template-columns:1fr}}

/* v0.8.0 – Dokumente, Benachrichtigungen und Audit */
.document-list,.notification-list{display:flex;flex-direction:column;gap:16px}
.document-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.document-card__head h2,.notification-item h2{margin:8px 0 4px;font-size:18px}
.document-card__head p,.notification-item p{margin:0;color:var(--text-muted)}
.document-content{margin-top:18px;border-top:1px solid var(--border);padding-top:13px}
.document-content summary{font-weight:700;color:var(--text)}
.legal-text{margin-top:16px;padding:18px;border-radius:var(--radius-sm);background:var(--surface-2);line-height:1.65;white-space:normal}
.document-card__action{margin-top:18px;padding-top:16px;border-top:1px solid var(--border);color:var(--text-muted);font-size:13px}
.document-card__action form{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.field--check{align-self:end;min-height:68px;justify-content:center}
.notification-compose{margin-bottom:18px}
.notification-compose summary{font-weight:700;color:var(--text)}
.notification-compose form{margin-top:18px}
.notification-item{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.notification-item--unread{border-left:4px solid var(--accent);background:#fcfffd}
.notification-item small{display:block;margin-top:10px;color:var(--text-muted)}
.notification-item__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.notification-item__actions form{margin:0}
.empty-state{text-align:center;padding:34px}
.empty-state p{margin:7px 0 0;color:var(--text-muted)}
.audit-filter{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto}
.audit-table{min-width:900px}
.hash-value{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
@media(max-width:800px){.document-card__head,.notification-item{flex-direction:column}.notification-item__actions{justify-content:flex-start}.field--check{align-self:stretch}.audit-filter{grid-template-columns:1fr}}

/* v0.8.0 – klare Trennung zwischen Dashboard und Modulcenter */
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
.dashboard-stat{display:flex;flex-direction:column;gap:2px;padding:17px 18px;color:var(--text);transition:transform .15s ease,border-color .15s ease}
.dashboard-stat:hover{transform:translateY(-1px);border-color:#cbd8cf}
.dashboard-stat strong{font-size:27px;line-height:1.1}.dashboard-stat span{color:var(--text-muted);font-size:12px}
.dashboard-stat--attention{border-color:#e5ca87;background:#fffdf7}
.section-head,.module-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:24px 0 12px}
.section-head .section-title,.module-section-head .section-title{margin:0}.section-head p,.module-section-head p{margin:4px 0 0;color:var(--text-muted);font-size:13px}
.module-launch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.module-launch{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:17px 18px}
.module-launch__title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.module-launch h2{margin:0;font-size:17px}.module-launch p{margin:5px 0;color:var(--text-muted);font-size:12px}
.module-launch__meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--text-muted);font-size:11px}.module-launch__pending{max-width:160px;color:var(--text-muted);font-size:11px;text-align:right}
.module-launch__button{min-width:170px;justify-content:center;white-space:nowrap}
.dashboard-version{margin-top:28px;color:var(--text-muted);font-size:11px;text-align:right}
.module-section-head--catalog{margin-top:30px}.module-count{display:grid;place-items:center;min-width:30px;height:30px;padding:0 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-weight:750}
.product-card__actions{gap:12px}.product-card__actions .product-card__unavailable{margin-right:auto;max-width:240px}
@media(max-width:1100px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.module-launch-grid{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-stat{padding:14px}.module-launch{grid-template-columns:auto minmax(0,1fr)}.module-launch>.btn,.module-launch__pending{grid-column:1/-1;justify-self:start;text-align:left;max-width:none}.section-head,.module-section-head{align-items:flex-start}.product-card__actions{align-items:flex-start;flex-direction:column}.product-card__actions .product-card__unavailable{margin-right:0}}

/* v0.9.0 – technische SSO-Clients */
.sso-secret{margin-bottom:18px;border-color:#d9b85f;background:#fffaf0}.sso-secret p{margin:6px 0 16px;color:var(--text-muted)}.secret-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sso-client{margin-bottom:14px}.sso-client__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.sso-client__callbacks{display:flex;flex-direction:column;gap:7px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}.sso-client__callbacks>div{display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:center;gap:12px;font-size:12px}.sso-client__callbacks span{overflow-wrap:anywhere;color:var(--text-muted)}
.sso-client__actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}.sso-client__actions form:first-child{display:flex;align-items:flex-end;gap:10px;flex:1;min-width:380px}.sso-client__actions .field{min-width:280px;flex:1}
@media(max-width:700px){.secret-grid{grid-template-columns:1fr}.secret-grid .field--span2{grid-column:auto}.sso-client__callbacks>div{grid-template-columns:1fr;gap:3px}.sso-client__actions,.sso-client__actions form:first-child{align-items:stretch;flex-direction:column;min-width:0;width:100%}.sso-client__actions .field{min-width:0;width:100%}}

/* v0.9.3 – klare Betriebs-, Standort- und Kontoverwaltung */
.disclosure-card{padding:0;overflow:hidden}.disclosure-card>summary{display:flex;padding:18px 20px;list-style:none;color:var(--text)}.disclosure-card>summary::-webkit-details-marker{display:none}.disclosure-card>summary span{display:flex;flex-direction:column;gap:2px}.disclosure-card>summary strong{font-size:15px}.disclosure-card>summary small{color:var(--text-muted);font-weight:400}.disclosure-card>summary::after{content:"+";margin-left:auto;color:var(--accent-strong);font-size:22px}.disclosure-card[open]>summary::after{content:"−"}.disclosure-card__content{padding:0 20px 20px;border-top:1px solid var(--border)}
.billing-same{margin:18px 0;padding:14px;border-radius:var(--radius-sm);background:var(--surface-2)}.billing-meta{margin-top:16px}.is-disabled{opacity:.55}.is-disabled input:disabled{background:#e9ede9;color:var(--text-muted);cursor:not-allowed}
.readonly-value{display:flex;min-height:43px;flex-direction:column;justify-content:center;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.readonly-value small{color:var(--text-muted)}
.location-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.location-summary{display:flex;flex-direction:column;gap:14px}.location-summary__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.location-summary__title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.location-summary__head p{margin:6px 0 0;color:var(--text-muted);font-size:13px}.location-summary__meta{display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--border);color:var(--text-muted);font-size:12px}.coordinate-state--ok{color:var(--accent-strong);font-weight:650}.location-summary__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.location-summary__actions form{margin:0}.inline-editor{width:100%}.inline-editor>summary{display:inline-flex;color:var(--text)}.inline-editor[open]>summary{margin-bottom:14px}.inline-editor>form{padding:16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.technical-details{margin-top:10px}.new-location{margin-top:18px}.readonly-assignments{display:flex;flex-direction:column;gap:10px}.readonly-assignment{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.readonly-assignment>div:first-child{display:flex;flex-direction:column}.readonly-assignment span{color:var(--text-muted);font-size:12px}.assignment-empty{padding:18px;border:1px dashed var(--border);border-radius:var(--radius-sm);color:var(--text-muted)}
@media(max-width:900px){.location-card-grid{grid-template-columns:1fr}}@media(max-width:700px){.readonly-assignment,.location-summary__meta{align-items:flex-start;flex-direction:column}.location-summary__actions{align-items:stretch}.location-summary__actions>.inline-editor,.location-summary__actions>form,.location-summary__actions button{width:100%}}

/* v0.9.4 – Kundenverwaltung und ruhige Preisdetails */
.location-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.location-choice-grid .check{padding:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}
.inline-access-form{display:flex;align-items:center;gap:10px}.inline-access-form select{min-width:250px}.danger-zone{margin-top:24px;border-color:#ead0cc}.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-actions form{margin:0}
.pricing-dialog{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:20px;background:var(--surface);box-shadow:0 28px 80px rgba(8,22,16,.28);color:var(--text)}.pricing-dialog::backdrop{background:rgba(8,22,16,.58);backdrop-filter:blur(3px)}.pricing-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 30px 23px;border-bottom:1px solid var(--border)}.pricing-dialog__head h2{margin:4px 0 5px;font-size:28px}.pricing-dialog__head p{margin:0;color:var(--text-muted)}.dialog-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text);font-size:26px;line-height:1;cursor:pointer}.pricing-dialog__body{padding:26px 30px 30px}.pricing-dialog__description{max-width:680px;margin:0 0 20px;color:var(--text-muted);line-height:1.55}.pricing-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.pricing-option{display:flex;min-height:230px;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid var(--border);border-radius:16px;background:#fbfcfb}.pricing-option>span{color:var(--text-muted);font-size:13px}.pricing-option>.pricing-option__plan{margin-bottom:4px;color:var(--accent-strong);font-weight:750}.pricing-option__umfang{margin-bottom:8px;color:var(--text-muted);font-size:.86rem;line-height:1.4}.pricing-option>strong{margin-top:16px;font-size:34px;line-height:1}.pricing-option>small{margin-top:7px;color:var(--text-muted)}.pricing-option form{width:100%;margin-top:auto;padding-top:22px}.pricing-option form .btn{width:100%;justify-content:center}
.section-action-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px}.section-action-bar>div{display:flex;flex-direction:column;gap:2px}.section-action-bar small{color:var(--text-muted)}
@media(max-width:700px){.location-choice-grid,.pricing-options{grid-template-columns:1fr}.inline-access-form{align-items:stretch;flex-direction:column}.inline-access-form select{min-width:0;width:100%}.pricing-dialog__head,.pricing-dialog__body{padding:20px}.pricing-dialog__head h2{font-size:23px}.section-action-bar{align-items:stretch;flex-direction:column}.section-action-bar .btn{width:100%;justify-content:center}}

/* v0.9.6 – klare Verkaufs-, Betriebs- und Verwaltungsoberflächen */
.badge--available{background:#dff5e9;color:#106b45}.badge--development{background:#eef0ee;color:#606a63}.badge--pending{background:#fff2d7;color:#8a5a00}
.product-card__benefits,.pricing-dialog__benefits{display:grid;gap:7px;margin:0 0 16px;padding:0;list-style:none;color:#253c30;font-size:12px}.product-card__benefits li,.pricing-dialog__benefits li{position:relative;padding-left:20px}.product-card__benefits li::before,.pricing-dialog__benefits li::before{content:"✓";position:absolute;left:0;color:var(--accent-strong);font-weight:800}.product-card--muted{background:#f7f8f7}.product-card--muted .product-card__image{filter:grayscale(.88);opacity:.66}.product-card--muted .product-card__benefits{color:#68736c}.pricing-dialog__benefits{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px;font-size:14px}
.app-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:20px;background:var(--surface);box-shadow:0 28px 80px rgba(8,22,16,.28);color:var(--text)}.app-dialog--wide{width:min(920px,calc(100vw - 32px))}.app-dialog::backdrop{background:rgba(8,22,16,.58);backdrop-filter:blur(3px)}.app-dialog__surface{padding:26px 28px 28px}.app-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.app-dialog__head h2{margin:3px 0 0;font-size:24px}.eyebrow{color:var(--accent-strong);font-size:11px;font-weight:750;letter-spacing:.7px;text-transform:uppercase}.dialog-section{margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.organization-overview{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:28px;margin-bottom:26px}.organization-overview h2{margin:4px 0;font-size:23px}.organization-overview p{margin:0;color:var(--text-muted);line-height:1.55}.organization-overview__billing{display:flex;flex-direction:column;gap:3px;padding-left:24px;border-left:1px solid var(--border)}.organization-overview__billing span{color:var(--text-muted);font-size:11px}.location-facts{display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--border);color:var(--text-muted);font-size:12px}
.people-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.people-summary span{padding:9px 13px;border-radius:999px;background:var(--surface-2);color:var(--text-muted);font-size:12px}.people-summary strong{color:var(--text);font-size:14px}.table-card--pending{border-color:#ecd7a5}.people-archive{margin-top:24px}.people-archive .table-wrap{border-top:1px solid var(--border)}
.admin-tabs{display:flex;gap:4px;margin-bottom:18px;padding:5px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.admin-tab{flex:1;padding:11px 14px;border:0;border-radius:10px;background:transparent;color:var(--text-muted);font:inherit;font-weight:650;cursor:pointer}.admin-tab:hover{background:var(--surface-2);color:var(--text)}.admin-tab.is-active{background:var(--accent-soft);color:var(--accent-strong)}.catalog-status-preview{display:flex;justify-content:space-between;gap:16px;margin:16px 0;padding:14px;border-radius:var(--radius-sm);background:var(--surface-2);font-size:13px}.catalog-status-preview--bookable{background:#e7f6ee;color:#106b45}.catalog-status-preview--development{background:#f0f2f0;color:#59635c}.catalog-status-preview--hidden{color:var(--text-muted)}.card-subsection{padding:0;border-top:1px solid var(--border)}.card-subsection>summary{padding:16px 0;cursor:pointer;font-weight:700}.card-subsection>.form-grid{padding:0 0 16px}
@media(max-width:760px){.pricing-dialog__benefits{grid-template-columns:1fr}.organization-overview{grid-template-columns:1fr;gap:16px}.organization-overview__billing{padding:14px 0 0;border-top:1px solid var(--border);border-left:0}.organization-overview .btn{width:100%;justify-content:center}.app-dialog__surface{padding:20px}.dialog-actions{align-items:stretch;flex-direction:column-reverse}.dialog-actions .btn{width:100%;justify-content:center}.location-facts{align-items:flex-start;flex-direction:column}.admin-tabs{overflow-x:auto}.admin-tab{min-width:145px}.catalog-status-preview{flex-direction:column}}

/* v0.9.7 – prägnantere Modulkarten */
.product-card{position:relative;border-color:#d6e1d9;box-shadow:0 4px 18px rgba(16,54,36,.08)}
.product-card::before{content:"";position:absolute;z-index:3;inset:0 auto 0 0;width:4px;background:#239263;pointer-events:none}
.product-card--fleet::before{background:#2c6f8f}
.product-card--muted::before{background:#d08a21}
.product-card__body{padding:18px 20px 0}
.product-card__heading{display:block}
.product-card__heading h2{margin-top:9px;font-size:21px;letter-spacing:-.35px}
.product-card__category{display:inline-flex;align-items:center;width:max-content;padding:5px 10px;border-radius:999px;background:#e2f3e9;color:#116943;font-size:10px;font-weight:800;letter-spacing:.35px;text-transform:uppercase}
.product-card--fleet .product-card__category,.product-card__category--fleet{background:#e3f0f6;color:#205f7d}
.product-card--muted .product-card__category{background:#f5e8d3;color:#8c5a0b}
.product-card__badge{top:14px;right:14px;padding:7px 12px;border:1px solid rgba(255,255,255,.5);box-shadow:0 5px 16px rgba(8,22,16,.24);font-size:11px;font-weight:800;letter-spacing:.1px}
.product-card__badge.badge--available,.product-card__badge.badge--active{background:#148458;color:#fff}
.product-card__badge.badge--development{background:#c77a12;color:#fff}
.product-card__badge.badge--trial{background:#a65f09;color:#fff}
.product-card__tagline{margin-top:11px;color:#40564a;font-size:13px;line-height:1.5}
.product-card__benefits{gap:9px;margin-bottom:18px;color:#263c31;font-size:12.5px}
.product-card--fleet .product-card__benefits li::before{color:#2c6f8f}
.product-card--muted .product-card__benefits li::before{color:#a96a11}
.product-card__details summary{padding-block:12px;font-size:12.5px}
.product-card__actions{min-height:66px;padding:12px 18px 14px;background:linear-gradient(180deg,#fbfdfb 0%,#f4f8f5 100%)}
.product-card__actions .btn--primary{min-width:150px;box-shadow:0 5px 12px rgba(20,132,88,.18)}
.product-card--muted .product-card__actions{background:#fbf7f0}
.product-card--muted .product-card__actions .btn--primary{background:#9a6413;border-color:#9a6413;box-shadow:0 5px 12px rgba(154,100,19,.18)}
.product-card--muted{border-color:#e5d5ba;background:#faf9f6}
.product-card--muted .product-card__image{filter:grayscale(.72) sepia(.08);opacity:.72}
.pricing-dialog__head .product-card__category{margin-bottom:9px}
.module-launch{grid-template-columns:minmax(0,1fr) auto;border-left:4px solid #239263}.module-launch__body>.product-card__category{margin-bottom:8px}.module-launch__title{margin-top:0}.module-launch__title .badge--active{background:#148458;color:#fff}.module-launch__title .badge--trial{background:#a65f09;color:#fff}
@media(max-width:760px){.product-card__body{padding:17px 18px 0}.product-card__badge{top:11px;right:11px;padding:6px 10px}.product-card__actions{padding-inline:18px}}

/* v0.9.7 – nachvollziehbare Superadmin-Aktionen */
.admin-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:28px}
.admin-action-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;border-top:3px solid #d9e6df}
.admin-action-card--wide{grid-column:1/-1;border-top-color:#2da474}
.admin-action-card--danger{border-top-color:#c84c45;background:#fffafa}
.support-module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.support-module{border:1px solid var(--border);border-radius:12px;background:#fafcfb}
.support-module>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}
.support-module>summary::-webkit-details-marker{display:none}.support-module>summary span:first-child{display:flex;flex-direction:column;gap:3px}.support-module>summary small{color:var(--text-muted);font-weight:400}
.support-module>form,.support-module>p{padding:0 16px 16px;margin:0}.support-module textarea,.admin-action-card textarea{min-height:88px;resize:vertical}
.active-support-list{display:grid;gap:9px;padding-top:16px;border-top:1px solid var(--border)}
.active-support{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:10px;background:#fff3d8;border:1px solid #eccb79}
.active-support div{display:flex;flex-direction:column;gap:3px}.active-support small{color:#715711}
@media(max-width:900px){.admin-action-grid,.support-module-list{grid-template-columns:1fr}.admin-action-card--wide{grid-column:auto}}

/* v0.9.8 – dezenter Installationshinweis */
.pwa-install{position:fixed;z-index:1200;right:22px;bottom:22px;display:grid;grid-template-columns:58px minmax(0,1fr);gap:15px;width:min(470px,calc(100vw - 32px));padding:18px 20px;border:1px solid #cbded2;border-radius:17px;background:rgba(255,255,255,.98);box-shadow:0 18px 55px rgba(8,30,19,.22);opacity:0;transform:translateY(18px);transition:opacity .2s ease,transform .2s ease;color:var(--text)}
.pwa-install[hidden]{display:none}.pwa-install.is-visible{opacity:1;transform:translateY(0)}
.pwa-install__icon{display:grid;place-items:center;width:58px;height:58px;border-radius:14px;background:#eef7f2;overflow:hidden}.pwa-install__icon img{width:48px;height:48px;object-fit:contain}
.pwa-install__content{padding-right:10px}.pwa-install__content>strong{display:block;padding-right:22px;font-size:16px}.pwa-install__content>p{margin:5px 0 13px;color:var(--text-muted);font-size:12.5px;line-height:1.45}
.pwa-install__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pwa-install__text-action{padding:5px 3px;border:0;background:transparent;color:var(--accent-strong);font:inherit;font-size:12px;font-weight:650;cursor:pointer}.pwa-install__text-action:hover{text-decoration:underline}
.pwa-install__close{position:absolute;top:10px;right:11px;display:grid;place-items:center;width:30px;height:30px;border:0;background:transparent;color:var(--text-muted);font-size:23px;cursor:pointer}
@media(max-width:700px){.pwa-install{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));grid-template-columns:46px minmax(0,1fr);gap:12px;width:calc(100vw - 24px);padding:15px}.pwa-install__icon{width:46px;height:46px;border-radius:11px}.pwa-install__icon img{width:39px;height:39px}.pwa-install__actions .btn{flex:1;justify-content:center}.pwa-install__text-action{width:100%;text-align:left}}

/* v0.9.9 – Listentabellen werden mobil zu bedienbaren Karten */
@media(max-width:720px){
  .table-card{overflow:visible;border:0;background:transparent;box-shadow:none}
  .table-wrap{overflow:visible;width:100%}
  .data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%;min-width:0}
  .data-table{border:0;border-collapse:separate;background:transparent}
  .data-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .data-table tbody{display:grid;gap:13px}
  .data-table tbody tr{overflow:hidden;padding:5px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 3px 12px rgba(16,54,36,.06)}
  .data-table tbody td{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:11px 0;border:0;border-bottom:1px solid var(--border);text-align:right;white-space:normal;overflow-wrap:anywhere}
  .data-table tbody td:last-child{border-bottom:0}
  .data-table tbody td::before{content:attr(data-label);flex:0 0 38%;max-width:150px;color:var(--text-muted);font-size:10px;font-weight:750;letter-spacing:.55px;line-height:1.4;text-align:left;text-transform:uppercase}
  .data-table tbody td:not([data-label])::before{content:none}
  .data-table tbody td[data-label="Person"],.data-table tbody td[data-label="Benutzer"],.data-table tbody td[data-label="Betrieb"],.data-table tbody td[data-label="Modul"],.data-table tbody td[data-label="Dokument"],.data-table tbody td:first-child{display:block;padding-top:14px;text-align:left}
  .data-table tbody td[data-label="Person"]::before,.data-table tbody td[data-label="Benutzer"]::before,.data-table tbody td[data-label="Betrieb"]::before,.data-table tbody td[data-label="Modul"]::before,.data-table tbody td[data-label="Dokument"]::before,.data-table tbody td:first-child::before{display:block;margin-bottom:5px;max-width:none}
  .data-table tbody td .table-sub{margin-top:4px;white-space:normal}
  .data-table tbody td .tag-list,.data-table tbody td .role-list{justify-content:flex-end;text-align:right}
  .data-table tbody td .badge{flex:none;max-width:100%;white-space:normal}
  .data-table tbody td.table-action{display:block;padding:13px 0 11px;text-align:left}
  .data-table tbody td.table-action::before{display:block;margin-bottom:8px;max-width:none}
  .data-table tbody td.table-action>.btn,.data-table tbody td.table-action>.table-actions,.data-table tbody td.table-action .btn{width:100%;min-height:44px;justify-content:center}
  .data-table tbody td.table-action .table-actions{display:grid;gap:8px}
  .data-table tbody td.table-action .table-actions form,.data-table tbody td.table-action .table-actions form .btn{width:100%}
  .data-table tbody tr:has(>td.empty){padding:0}
  .data-table tbody td.empty{display:block;padding:20px;border:0;text-align:center}
  .data-table tbody td.empty::before{content:none}
  .audit-table,.user-table{min-width:0}
  .hash-value{max-width:100%;white-space:normal;word-break:break-all}
}

/* ------------------------------------------------------------------
   v0.10.0 – Oeffentliche Rechtstexte, Fussbereiche, Rueckmeldung
   ------------------------------------------------------------------ */

.legal-page{background:var(--surface-muted,#f4f6f5);margin:0;min-height:100vh}
.legal-shell{max-width:860px;margin:0 auto;padding:32px 20px 64px}
.legal-header{margin-bottom:28px}
.legal-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;
  color:var(--text,#12211c);font-weight:600;margin-bottom:20px}
.legal-brand img{border-radius:8px}
.legal-header h1{margin:0 0 6px;font-size:1.85rem}
.legal-header p{margin:0;color:var(--text-muted,#5d6b66)}
.legal-back{margin:0}
.legal-back a{color:var(--primary,#2f7a4f);text-decoration:none}
.legal-back a:hover{text-decoration:underline}

.legal-group{margin-bottom:28px}
.legal-group h2{font-size:1.05rem;text-transform:uppercase;letter-spacing:.04em;
  color:var(--text-muted,#5d6b66);margin:0 0 10px}
.legal-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.legal-list a{display:block;padding:14px 16px;background:#fff;border:1px solid var(--border,#dde3e0);
  border-radius:12px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.legal-list a:hover{border-color:var(--primary,#2f7a4f);box-shadow:0 2px 10px rgba(0,0,0,.05)}
.legal-list strong{display:block;margin-bottom:2px}
.legal-list span{font-size:.85rem;color:var(--text-muted,#5d6b66)}

.legal-document{background:#fff;border:1px solid var(--border,#dde3e0);border-radius:14px;
  padding:28px 26px}
.legal-meta{font-size:.82rem;color:var(--text-muted,#5d6b66);padding-bottom:14px;
  margin-bottom:18px;border-bottom:1px solid var(--border,#dde3e0)}
.legal-text{line-height:1.65}
.legal-text h1{font-size:1.6rem;margin:0 0 18px}
.legal-text h2{font-size:1.12rem;margin:26px 0 8px}
.legal-text h3{font-size:1rem;margin:18px 0 6px}
.legal-text p{margin:0 0 12px}
.legal-text ul,.legal-text ol{margin:0 0 14px;padding-left:22px}
.legal-text li{margin-bottom:6px}
.legal-text table{width:100%;border-collapse:collapse;margin:14px 0;font-size:.9rem}
.legal-text th,.legal-text td{border:1px solid var(--border,#dde3e0);padding:8px 10px;
  text-align:left;vertical-align:top}
.legal-text th{background:var(--surface-muted,#f4f6f5);font-weight:600}

.legal-footer{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:28px;
  padding-top:18px;border-top:1px solid var(--border,#dde3e0);font-size:.85rem}
.legal-footer a{color:var(--primary,#2f7a4f);text-decoration:none}
.legal-footer a:hover{text-decoration:underline}
.legal-footer span{margin-left:auto;color:var(--text-muted,#5d6b66)}

.auth-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:22px;
  padding-top:16px;border-top:1px solid var(--border,#dde3e0);font-size:.82rem}
.auth-legal a{color:var(--text-muted,#5d6b66);text-decoration:none}
.auth-legal a:hover{color:var(--primary,#2f7a4f);text-decoration:underline}

.app-footer{display:flex;flex-wrap:wrap;gap:18px;padding:20px 28px 28px;font-size:.83rem}
.app-footer a{color:var(--text-muted,#5d6b66);text-decoration:none}
.app-footer a:hover{color:var(--primary,#2f7a4f);text-decoration:underline}

.filter-row{display:flex;flex-wrap:wrap;gap:8px}
.field-hint{margin:6px 0 0;font-size:.82rem;color:var(--text-muted,#5d6b66)}

@media (max-width:720px){
  .legal-shell{padding:20px 14px 48px}
  .legal-document{padding:20px 16px}
  .legal-text table,.legal-text thead,.legal-text tbody,.legal-text tr,
  .legal-text th,.legal-text td{display:block;width:100%}
  .legal-text thead{display:none}
  .legal-text tr{border:1px solid var(--border,#dde3e0);border-radius:10px;
    margin-bottom:10px;padding:6px}
  .legal-text td{border:0;padding:6px 8px}
  .legal-footer span{margin-left:0;width:100%}
  .app-footer{padding:16px 16px 90px}
}

/* --- v0.11.0: Modul-Zuordnung ------------------------------------------- */
.code-block{width:100%;box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,
  Menlo,Consolas,monospace;font-size:12px;line-height:1.5;word-break:break-all;
  padding:12px;border:1px solid var(--border,#dde3e0);border-radius:10px;
  background:#f6f8f7;color:#1d2b26;resize:vertical}
.form-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.form-row .field{flex:1 1 240px;min-width:0}
.hint{color:#5a6b64;font-size:13px}
@media (max-width:720px){
  .form-row{flex-direction:column;align-items:stretch}
  .form-row .btn{width:100%}
}

/* --- v0.12.0: Zustandszeilen und Preisabgleich ------------------------- */
.health-row{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;
  border-radius:10px;margin:6px 0;background:#f6f8f7}
.health-row--ok span{color:#3f7d3f;font-weight:700}
.health-row--open{background:#fff6ec}
.health-row--open span{color:#a35a12;font-weight:700}
.price-sync{margin:6px 0;padding:8px 10px;border-radius:10px;background:#f6f8f7}
.price-sync code{word-break:break-all;font-size:12px}
.price-sync--ambiguous,.price-sync--missing,.price-sync--error{background:#fff6ec}

/* Modulübersicht: was zur vollständigen Einrichtung noch fehlt. */
.offen-liste{margin:.4rem 0 0;padding-left:1.1rem;font-size:.8125rem;line-height:1.5;color:var(--text-muted,#5b6b63);}
.offen-liste li{margin:0;}

/* Zustimmungsstrecke für neue Betriebe. */
.gate-progress{margin-bottom:1.25rem;}
.gate-progress__text{font-weight:600;font-size:.875rem;}
.gate-progress__bar{height:6px;border-radius:999px;background:var(--border,#dfe6e2);overflow:hidden;margin:.5rem 0 .75rem;}
.gate-progress__fill{height:100%;background:var(--primary,#2f7d5b);transition:width .2s ease;}
.gate-progress__list{list-style:decimal;margin:0;padding-left:1.2rem;font-size:.8125rem;color:var(--text-muted,#5b6b63);display:flex;flex-wrap:wrap;gap:.15rem 1.5rem;}
.gate-progress__list li.is-current{font-weight:600;color:var(--text,#16241e);}
.gate-document__head h2{margin:0 0 .25rem;}
.gate-document__body{max-height:26rem;overflow-y:auto;margin-top:1rem;padding:1rem 1.25rem;border:1px solid var(--border,#dfe6e2);border-radius:.65rem;background:var(--surface,#fff);line-height:1.6;}
.gate-document__body:focus-visible{outline:2px solid var(--primary,#2f7d5b);outline-offset:2px;}
.gate-document__body h1,.gate-document__body h2,.gate-document__body h3{margin:1.2em 0 .4em;font-size:1.05rem;}
.gate-document__body h1:first-child,.gate-document__body h2:first-child{margin-top:0;}
.gate-document__body table{width:100%;border-collapse:collapse;margin:.75rem 0;}
.gate-document__body th,.gate-document__body td{border:1px solid var(--border,#dfe6e2);padding:.4rem .6rem;text-align:left;}
.gate-accept{margin-top:1rem;}
.gate-accept .checkbox{display:flex;gap:.65rem;align-items:flex-start;line-height:1.5;}
.gate-accept .checkbox input{margin-top:.2rem;width:1.15rem;height:1.15rem;flex:0 0 auto;}
.gate-accept__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem;}
.gate-accept__actions .btn{min-height:44px;}
@media (max-width:640px){.gate-document__body{max-height:22rem;padding:.85rem;}.gate-accept__actions .btn{width:100%;justify-content:center;}}

/* Hinweis nach Ablauf einer Testphase. */
.trial-dialog{border:none;border-radius:1rem;padding:0;max-width:34rem;width:calc(100% - 2rem);box-shadow:0 24px 60px rgba(0,0,0,.22);}
.trial-dialog::backdrop{background:rgba(10,20,16,.55);}
.trial-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.4rem 1.5rem .25rem;}
.trial-dialog__head h2{margin:0;font-size:1.25rem;}
.trial-dialog__body{padding:.5rem 1.5rem 0;line-height:1.6;}
.trial-dialog__facts{margin:.85rem 0;padding-left:1.15rem;}
.trial-dialog__facts li{margin:.3rem 0;}
.trial-dialog__actions{display:flex;flex-wrap:wrap;gap:.75rem;padding:1.25rem 1.5rem 1.5rem;}
.trial-dialog__actions .btn{min-height:44px;}
@media (max-width:640px){.trial-dialog__actions .btn{width:100%;justify-content:center;}}

/* Hinweis zu beendetem Vertrag und laufendem Exportfenster. */
.vertragsende{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem;}
.vertragsende .btn{margin-left:auto;}
@media (max-width:640px){.vertragsende .btn{margin-left:0;width:100%;justify-content:center;min-height:44px;}}

/* Vollstaendiges Mobilmenue.
   Die untere Leiste zeigt die vier haeufigsten Ziele plus den Knopf "Menue".
   Dahinter liegt alles Uebrige - vorher war das am Handy nicht erreichbar. */
.bottomnav__more{background:none;border:none;font:inherit;cursor:pointer;}
.mobilemenu[hidden]{display:none;}
.mobilemenu{position:fixed;inset:0;z-index:60;}
.mobilemenu__backdrop{position:absolute;inset:0;background:rgba(10,20,16,.5);}
.mobilemenu__panel{position:absolute;right:0;top:0;bottom:0;width:min(88vw,22rem);
  background:var(--surface,#fff);display:flex;flex-direction:column;
  box-shadow:-16px 0 40px rgba(0,0,0,.25);animation:mobilemenu-in .18s ease-out;}
@keyframes mobilemenu-in{from{transform:translateX(100%);}to{transform:translateX(0);}}
@media (prefers-reduced-motion:reduce){.mobilemenu__panel{animation:none;}}
.mobilemenu__head{display:flex;align-items:center;justify-content:space-between;
  padding:1rem 1.1rem;border-bottom:1px solid var(--border,#dfe6e2);}
.mobilemenu__close{background:none;border:none;font-size:1.6rem;line-height:1;
  min-width:44px;min-height:44px;cursor:pointer;color:inherit;}
.mobilemenu__scroll{flex:1;overflow-y:auto;padding:.6rem 0 1rem;-webkit-overflow-scrolling:touch;}
.mobilemenu__title{padding:1rem 1.1rem .3rem;font-size:.75rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text-muted,#5b6b63);}
.mobilemenu__group{display:flex;flex-direction:column;}
.mobilemenu__link{display:flex;align-items:center;gap:.85rem;padding:.8rem 1.1rem;
  min-height:44px;text-decoration:none;color:inherit;}
.mobilemenu__link .nav__icon{width:20px;height:20px;flex:0 0 20px;}
.mobilemenu__link.is-active{background:var(--surface-muted,#eef4f1);font-weight:600;}
.mobilemenu__link:focus-visible{outline:2px solid var(--accent-strong,#2f7d5b);outline-offset:-2px;}
.mobilemenu__foot{border-top:1px solid var(--border,#dfe6e2);padding:.9rem 1.1rem
  calc(.9rem + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:.6rem;}
.mobilemenu__user{display:flex;flex-direction:column;font-size:.875rem;}
.mobilemenu__user span{color:var(--text-muted,#5b6b63);}
.mobilemenu__foot .btn{min-height:44px;justify-content:center;}
.mobilemenu__version{font-size:.75rem;color:var(--text-muted,#5b6b63);}
@media (min-width:901px){.mobilemenu{display:none;}}

/* Stammdatenliste unter "Meine Daten". */
.datenliste{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem 2rem;margin:0;}
.datenliste>div{display:flex;flex-direction:column;gap:.15rem;}
.datenliste dt{font-size:.8125rem;color:var(--text-muted,#5b6b63);}
.datenliste dd{margin:0;font-weight:600;}

/* Archivierte Standorte: vorhanden, aber nicht im Weg. */
.archiv-standorte summary{cursor:pointer;min-height:44px;display:flex;align-items:center;}
.archiv-standorte .location-card-grid{margin-top:.75rem;}
.location-summary.is-archived{opacity:.85;}

/* Einfache Suchleiste über Listen. */
.filter-bar--einfach{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin-bottom:1rem;}
.filter-bar--einfach .field{flex:1 1 18rem;margin:0;}
.filter-bar--einfach .filter-actions{display:flex;gap:.5rem;}
.filter-bar--einfach .btn{min-height:44px;}
@media (max-width:640px){.filter-bar--einfach .filter-actions{width:100%;}.filter-bar--einfach .btn{flex:1;justify-content:center;}}

/* Schnellauswahl für Standorte. */
.standort-schnellwahl{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:.5rem 0 .75rem;}
.standort-schnellwahl .btn{min-height:36px;}
.standort-zaehler{font-size:.8125rem;color:var(--text-muted,#5b6b63);}
.standort-zaehler.is-leer{color:var(--danger,#b4453a);font-weight:600;}

/* Exportknöpfe unter "Meine Daten". */
.export-knoepfe{display:flex;flex-wrap:wrap;gap:.6rem;margin:.75rem 0 .25rem;}
.export-knoepfe .btn{min-height:44px;}

/* Module im Aufbau: offene Punkte aufklappbar statt als roter Mangel. */
.offen-details summary{cursor:pointer;font-size:.8125rem;color:var(--text-muted,#5b6b63);margin-top:.35rem;min-height:32px;display:flex;align-items:center;}

/* 0.13.0 — Ueberall abmelden und Modulsitzungen */
.nav__link--quiet{opacity:.72;font-size:.86rem}
.nav__link--quiet:hover{opacity:1}
.mobilemenu__quiet{opacity:.75;font-size:.9rem}
.security-row form{margin:0}
.portal-toggle{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.portal-toggle form{margin:0}
/* Rueckweg aus den oeffentlichen Rechtsseiten. Vorher fuehrte nur das Logo
   zurueck - das erkennt niemand als Knopf, und der Browser-Zurueck ist bei
   einem Aufruf aus dem Footer kein verlaesslicher Weg. */
/* Die Marke ist ein eigenstaendiger Block, damit der Zurueck-Knopf darunter
   in eine eigene Zeile rutscht und nicht daneben klebt. */
.legal-brand { display:flex; width:max-content; }
.legal-back { display:inline-flex; align-items:center; gap:6px; margin:0 0 14px; padding:8px 14px; min-height:40px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--text); font-size:.9rem; text-decoration:none; }
.legal-back:hover { border-color:var(--accent-strong); color:var(--accent-strong); }
.legal-back a { color:inherit; text-decoration:none; }

/* Betriebswechsel im alten Rahmen (0.19.0) */
.topbar__switch { display: inline-flex; gap: 6px; align-items: center; margin-right: 10px; }
.topbar__switch select { max-width: 190px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Plattformknopf auf der Modulkarte (0.20.0) ----------
   .product-card__actions ist eine Flex-Zeile ohne Umbruch, und jeder Knopf
   darin hat min-width:130px. Mit einer langen Beschriftung lief der Knopf
   deshalb aus der Karte heraus - sichtbar, aber nicht klickbar, weil der
   überstehende Teil unter dem Inhaltsbereich lag. Genau das war der Grund,
   warum der Klick nichts bewirkt hat.

   Deshalb: die Zeile darf umbrechen, und der Plattformknopf bleibt schmal. */
.product-card__actions { flex-wrap: wrap; gap: 8px; }
.product-card__platform { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0; }
.product-card__actions .product-card__platform .btn { min-width: 0; padding-left: 14px; padding-right: 14px; }

/* Hinweiszeichen. Bewusst kein title-Attribut: Das erscheint erst nach einer
   Sekunde und ist auf dem Handy gar nicht erreichbar. Der Text hängt am
   aria-label für Vorlesehilfen und wird bei Hover UND bei Tastaturfokus
   eingeblendet. */
.karten-hinweis { position: relative; display: inline-flex; align-items: center;
  justify-content: center; width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--muted); font-size: .78rem; font-weight: 800; cursor: help; }
.karten-hinweis:hover, .karten-hinweis:focus-visible { border-color: var(--green-dark); color: var(--green-dark); }
.karten-hinweis:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.karten-hinweis__text {
  position: absolute; bottom: calc(100% + 8px); right: -6px; z-index: 40;
  width: max-content; max-width: 250px; padding: 9px 11px; border-radius: 9px;
  background: #1d2b1d; color: #fff; font-size: .78rem; font-weight: 500;
  line-height: 1.45; text-align: left; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.karten-hinweis__text strong { font-weight: 750; }
.karten-hinweis:hover .karten-hinweis__text,
.karten-hinweis:focus-visible .karten-hinweis__text { opacity: 1; visibility: visible; }
@media (max-width: 560px) {
  /* Auf schmalen Geräten würde die Sprechblase seitlich herauslaufen. */
  .karten-hinweis__text { right: auto; left: 50%; transform: translateX(-50%); max-width: 200px; }
}
.product-card__status { flex: 0 0 auto; }
.product-card__actions .product-card__status { min-width: 0; padding-left: 14px; padding-right: 14px; }

/* --- Betrieb einladen und gefuehrte Einrichtung (ab 0.24.0) --- */
.page-head__actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.setup-head{margin-bottom:18px}
.setup-kicker{display:block;margin-bottom:10px;color:var(--accent-strong,#2f7a4d);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.setup-steps{display:flex;gap:6px;flex-wrap:wrap;margin:0;padding:0;list-style:none;counter-reset:none}
.setup-steps li{display:inline-flex;align-items:center;gap:7px;padding:6px 12px 6px 7px;border-radius:999px;background:var(--surface-2,#f1f5f2);color:var(--text-muted,#5d6f65);font-size:12.5px;font-weight:600}
.setup-steps__nr{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;font-size:12px}
.setup-steps li.is-active{background:var(--accent-strong,#2f7a4d);color:#fff}
.setup-steps li.is-active .setup-steps__nr{background:rgba(255,255,255,.22);color:#fff}
.setup-steps li.is-done{background:#e6f2ea;color:#1d5c39}
.setup-lede{margin:0 0 20px;color:var(--text-muted,#5d6f65);line-height:1.55}
.check--wide{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid var(--line,#dbe5de);border-radius:12px;margin-bottom:14px}
.check--wide small{display:block;margin-top:3px;color:var(--text-muted,#5d6f65);font-size:12.5px}
.plain-list{margin:0;padding-left:18px}
.plain-list li{margin-bottom:5px;line-height:1.5}

/* --- Kompakte Betriebskarte (ab 0.24.1) ---
   Sind die Daten einmal erfasst, will man sie lesen, nicht in acht
   Eingabefeldern wiederfinden. Bearbeitet wird ueber den Stift. */
/* Innenabstand kommt aus .card (20px). Ein eigener Wert hier erzeugt genau
   den Versatz, den man als "unsauber" wahrnimmt, ohne ihn benennen zu
   koennen: Der Text jeder Karte staende ein paar Pixel woanders. */
.betrieb-karte__kopf{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line,#dbe5de)}
.betrieb-karte__name{margin:0 0 7px;font-size:21px;line-height:1.2}
.betrieb-karte__fakten{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px 26px;margin:0}
.betrieb-karte__fakten>div{min-width:0}
.betrieb-karte__fakten dt{margin:0 0 3px;color:var(--text-muted,#5d6f65);font-size:11.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.betrieb-karte__fakten dd{margin:0;font-size:14.5px;line-height:1.45;overflow-wrap:anywhere}
.betrieb-karte__fakten dd small{display:block;margin-top:2px;color:var(--text-muted,#5d6f65);font-size:12.5px}
.betrieb-karte__fakten dd em{color:var(--text-muted,#5d6f65);font-style:normal}

/* [hidden] wirkt nur ueber die Browser-Vorgabe display:none. Jede Regel, die
   display setzt - und .card tut das -, schlaegt sie. Ohne diese Zeile stuenden
   Anzeige UND Formular gleichzeitig da. Derselbe Fehler wie beim
   Installationsknopf in 0.23.0; einmal reicht. */
[data-stamm-anzeige][hidden],[data-stamm-form][hidden]{display:none!important}

@media (max-width:520px){
  .betrieb-karte__kopf{flex-direction:column}
  .betrieb-karte__fakten{grid-template-columns:1fr;gap:13px}
}

/* --- Bereichsreiter (ab 0.24.1) ---
   Trennt das taegliche Verwalten von den sensiblen Vorgaengen. Echte Links,
   damit sie ohne JavaScript funktionieren. */
.bereich-reiter{display:flex;gap:2px;margin:0 0 20px;border-bottom:1px solid var(--line,#dbe5de);overflow-x:auto}
.bereich-reiter a{position:relative;padding:10px 16px;border:0;background:none;color:var(--text-muted,#5d6f65);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.bereich-reiter a:hover{color:var(--text,#1b2b22)}
.bereich-reiter a.is-active{color:var(--accent-strong,#2f7a4d);border-bottom-color:var(--accent-strong,#2f7a4d)}
.bereich-reiter a:focus-visible{outline:2px solid var(--accent-strong,#2f7a4d);outline-offset:-2px;border-radius:6px}
[data-bereich-inhalt][hidden]{display:none!important}

/* --- Schmale Textseiten (ab 0.24.2) ---
   Eine Seite, die aus zwei Absaetzen und einem kleinen Formular besteht,
   gehoert nicht in 1480 px Breite. Darin steht der Inhalt links, rechts bleibt
   Leere - das sieht nach einem Fehler aus, nicht nach Gestaltung. Und Zeilen
   ueber etwa 90 Zeichen liest niemand gern.
   Fuer Tabellen und Uebersichten gilt weiterhin die volle Breite. */
.seite--schmal{max-width:880px}

/* Eine Person ist eine Zeile, keine Maske. */
/* Ebenfalls kein eigener Innenabstand - siehe .betrieb-karte. */
.person-zeile{display:flex;align-items:center;gap:13px}
.person-zeile__initial{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--surface-2,#eef3ef);color:var(--accent-strong,#2f7a4d);font-size:18px;font-weight:700}
.person-zeile__text{min-width:0;flex:1 1 auto}
.person-zeile__text strong{display:block;font-size:15.5px;line-height:1.3}
.person-zeile__text small{display:block;color:var(--text-muted,#5d6f65);font-size:13px;overflow-wrap:anywhere}
.person-karte__hinweis{margin:14px 0 0;padding-top:13px;border-top:1px solid var(--line,#dbe5de);color:var(--text-muted,#5d6f65);font-size:13px;line-height:1.55}

/* Zusammengehoerige Felder mit sichtbarer Klammer statt eines eigenen Kastens. */
.feld-gruppe{margin:4px 0 0;padding:14px 16px;border:1px solid var(--line,#dbe5de);border-radius:12px}
.feld-gruppe legend{padding:0 6px;font-size:13px;font-weight:700}

/* Eine stille Zeile statt einer Karte mit Ueberschrift ueber nichts. */
.seite-fussnote{margin:18px 2px 0;color:var(--text-muted,#5d6f65);font-size:13px}

@media (max-width:520px){
  .person-zeile{flex-wrap:wrap}
  .person-zeile .badge{margin-left:55px}
}

/* --- Anwendungen zur gewählten Rolle (ab 0.25.2) ---
   Kein Auswahlfeld: Modulzugriff entscheidet die Rolle. Deshalb eine
   ruhige Liste und keine Kästchen, die eine Bearbeitbarkeit vortäuschen. */
.modul-freigabe__liste{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.modul-freigabe__eintrag{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--accent-strong,#2f7a4d);border-radius:999px;background:#eaf5ec;color:var(--accent-strong,#2f7a4d);box-shadow:inset 3px 0 0 var(--accent-strong,#2f7a4d);font-size:14px;font-weight:700}
.modul-freigabe__eintrag.is-ungebucht{border-color:var(--line,#dbe5de);background:var(--surface-2,#f4f7f5);color:var(--text-muted,#5d6f65);box-shadow:none;opacity:.75}
.modul-freigabe__eintrag.is-ungebucht .modul-freigabe__name{text-decoration:line-through;text-decoration-thickness:1px}
.modul-freigabe__leer{margin:0;color:var(--text-muted,#5d6f65);font-size:14px}
[data-rollen-module] [data-rolle][hidden]{display:none!important}
/* Der Weg zur Rollenverwaltung muss als Link erkennbar sein - in der
   Hilfetextfarbe sah er aus wie beiläufige Prosa. */
.modul-freigabe__weg{margin-top:14px}
.modul-freigabe__weg a{color:var(--accent-strong,#2f7a4d);font-weight:650;text-decoration:underline;text-underline-offset:2px}

/* =====================================================================
   Startseite 1.0.9 – Kacheln (dash-*, dw-*)
   Eine Kachel = Kopf (Symbol, Titel, Status) · Inhalt · Fuß (Aktion rechts).
   Modulkacheln laden ihren Inhalt nach (Format „Widget 1“).
   ===================================================================== */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.dash-head h1 { margin: 2px 0 4px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; color: #172019; }
.dash-head__date { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5C675F; }
.dash-head__sub { margin: 0; color: #5C675F; }
.dash-head__edit { white-space: nowrap; }

/* Ab 1.17.2: festes Raster – am PC 2 Spalten, halbe Kachel = 1 Spalte, ganze = beide.
   Eine halbe Kachel ohne Partner bleibt halb. Darunter einspaltig (siehe 1.17.2-Block am Ende). */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }

.dw { container-type: inline-size; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #D7DDD6; border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 35, 25, .05); overflow: hidden; }
.dw__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; }
.dw__appicon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #eef4ed; border: 1px solid #dde8da; }
.dw__appicon img { width: 38px; height: 38px; object-fit: contain; display: block; }
.dw__appicon b { font-weight: 800; color: #254332; }
.dw__glyph { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F0EFE9; color: #315E3A; }
.dw__glyph svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dw__title { flex: 1 1 auto; min-width: 0; }
.dw__title h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; color: #172019; }
.dw__title small { display: block; color: #5C675F; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw__body { padding: 4px 18px 14px; flex: 1 1 auto; min-height: 60px; }
.dw__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid #EDEFEA; background: #FBFBF8; }
.dw__open { min-height: 40px; }
.dw__link { font-size: .88rem; font-weight: 600; color: #315E3A; text-decoration: none; }
.dw__link:hover { text-decoration: underline; }
.dw__muted, .dw-state { margin: 6px 0; color: #5C675F; font-size: .92rem; }
.dw-state--error, .dw-state--no_location, .dw-state--unmapped, .dw-state--no_scope { padding: 10px 12px; border-radius: 10px; background: #F7F6F0; }

.dw-headline { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-weight: 700; color: #172019; }
.dw-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #9aa59d; }
.dw-tone--ok .dw-dot { background: #2f8a4e; }
.dw-tone--attention .dw-dot { background: #d08a12; }
.dw-tone--critical .dw-dot { background: #c0392b; }

.dw-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.dw-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 640px) { .dw-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dw-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dw-kpi { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: #F7F6F0; border: 1px solid transparent; color: inherit; text-decoration: none; min-width: 0; }
a.dw-kpi:hover { border-color: #D7DDD6; }
.dw-kpi strong { font-size: 1.35rem; line-height: 1.15; color: #172019; font-variant-numeric: tabular-nums; }
.dw-kpi span { font-size: .8rem; font-weight: 600; color: #3b463f; }
.dw-kpi small { font-size: .74rem; color: #6b766e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-kpi.dw-tone--ok { background: #eaf4ec; } .dw-kpi.dw-tone--ok strong { color: #1f6b3a; }
.dw-kpi.dw-tone--attention { background: #fbf2df; } .dw-kpi.dw-tone--attention strong { color: #8a5a06; }
.dw-kpi.dw-tone--critical { background: #fbe9e6; } .dw-kpi.dw-tone--critical strong { color: #a3281c; }

.dw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dw-list__item { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px; border-top: 1px solid #EDEFEA; }
.dw-list__item:first-child { border-top: 0; }
.dw-list__item .dw-dot { transform: translateY(-1px); }
.dw-list__text { flex: 1 1 auto; min-width: 0; font-size: .92rem; color: #1f2b24; }
.dw-list__text small { display: block; font-size: .8rem; color: #5C675F; }
.dw-list__meta { flex: 0 0 auto; font-size: .8rem; color: #6b766e; }
.dw-list__cta { flex: 0 0 auto; font-size: .85rem; font-weight: 600; color: #315E3A; text-decoration: none; white-space: nowrap; }
.dw-list__item.is-unread .dw-list__text { font-weight: 700; }
.dw-list__item.is-unread .dw-dot { background: #315E3A; }
.dw-calm { margin: 6px 0; color: #3b463f; }
.dw-calm span { color: #2f8a4e; font-weight: 800; margin-right: 4px; }
.dw-stamp { margin: 10px 0 0; font-size: .75rem; color: #8a948c; }

.dw-skeleton { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.dw-skeleton i { height: 58px; border-radius: 12px; background: linear-gradient(90deg, #f1f2ee 0%, #f8f8f5 50%, #f1f2ee 100%); background-size: 200% 100%; animation: dw-shimmer 1.2s linear infinite; }
@keyframes dw-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dw-skeleton i { animation: none; } }

/* Anpassen */
.dash-editor { padding: 18px; }
.dash-editor__head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.dash-editor__head p { margin: 0 0 14px; color: #5C675F; }
.dash-editor__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-editor__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #D7DDD6; border-radius: 14px; background: #fff; }
.dash-editor__row.is-off { background: #F7F6F0; }
.dash-editor__row.is-off .dash-editor__name { color: #7a847c; }
.dash-editor__icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eef4ed; color: #315E3A; }
.dash-editor__icon img { width: 28px; height: 28px; object-fit: contain; }
.dash-editor__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dash-editor__name { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.dash-editor__name small { font-weight: 600; font-size: .72rem; color: #5C675F; background: #F0EFE9; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.dash-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; min-height: 44px; cursor: pointer; }
.dash-switch input { width: 20px; height: 20px; accent-color: #315E3A; }
.dash-editor__move { display: inline-flex; gap: 6px; }
.btn--icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; font-size: 1.1rem; }
.btn--icon:disabled { opacity: .35; cursor: default; }
.dash-editor__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dash-editor__reset { margin-left: auto; }
@media (max-width: 560px) {
  .dash-editor__row { flex-wrap: wrap; }
  .dash-editor__name { flex-basis: calc(100% - 60px); }
  .dash-switch { margin-right: auto; }
  .dw__head, .dw__body, .dw__foot { padding-left: 14px; padding-right: 14px; }
  .dw__foot { flex-wrap: wrap; }
  .dw__open { margin-left: auto; }
  .dash-editor__reset { margin-left: 0; }
}

/* Modulcenter-Filter */
.mc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mc-filter a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid #D7DDD6; background: #fff; color: #1f2b24; text-decoration: none; font-weight: 600; font-size: .9rem; }
.mc-filter a b { font-size: .78rem; background: #F0EFE9; border-radius: 999px; padding: 1px 7px; }
.mc-filter a.is-active { background: #173423; border-color: #173423; color: #fff; }
.mc-filter a.is-active b { background: rgba(255,255,255,.18); color: #fff; }

/* 1.1.0: Meldungen aus den Anwendungen */
.mini-tag__icon { width:16px; height:16px; margin-right:5px; border-radius:4px; }
.badge--danger { background:#fdecea; color:#a3261a; }
.notification-item--urgent.notification-item--unread { border-left-color:#c0392b; }

/* ---- 1.2.0: Push auf diesem Gerät -------------------------------------- */
.push-card{margin-bottom:18px}
.push-card [hidden],.push-hint [hidden]{display:none !important}
.push-card[data-push-noaction] .push-card__actions{display:none}
.push-card__head{display:flex;gap:12px;align-items:flex-start}
.push-card__head h2{margin:0 0 2px;font-size:1.05rem}
.push-card__glyph{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:rgba(49,94,58,.12);color:#315E3A}
.push-card__glyph svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.push-card__status{margin:0;color:var(--muted,#5b6b63);min-height:1.5em}
/* Fester Platz für die Knöpfe: Welche erscheinen, entscheidet erst das
   Skript – die Seite darf dabei nicht springen. */
.push-card__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;min-height:44px}
.push-card__actions .btn{min-height:44px}
.push-help{margin-top:12px;padding:12px 14px;border-radius:10px;background:rgba(214,158,46,.12);font-size:.92rem;line-height:1.45}
.push-more{margin-top:14px;border-top:1px solid var(--border,#e2e8e4);padding-top:10px}
.push-more summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;min-height:44px;font-weight:600}
.push-more summary small{font-weight:400;color:var(--muted,#5b6b63)}
.push-more h3{font-size:.95rem;margin:14px 0 6px}
.push-devices{list-style:none;margin:0;padding:0}
.push-device{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border,#e2e8e4)}
.push-device form{margin:0}
.push-device__warn{color:#b42318;font-weight:600}
.push-apps{display:grid;gap:6px}
.push-app{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border:1px solid var(--border,#e2e8e4);border-radius:10px;cursor:pointer}
.push-app input{width:20px;height:20px;accent-color:#315E3A;flex:0 0 auto}
.push-app img{border-radius:6px;flex:0 0 auto}
.push-app span{display:flex;flex-direction:column;min-width:0}
.push-app small{color:var(--muted,#5b6b63);overflow:hidden;text-overflow:ellipsis}
.push-apps .btn{justify-self:start;margin-top:6px}
.push-hint{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.push-hint__text{flex:1 1 240px}
.push-hint__text strong{display:block}
.push-hint__actions{display:flex;gap:8px;flex-wrap:wrap}
.push-hint__actions .btn{min-height:44px}
.badge--muted{background:rgba(91,107,99,.12);color:#46534c}
.push-reach{color:#8a5a00}
.push-reach--ok{color:#315E3A}

/* ---- 1.3.0: Technik-Übersicht (Startseite Plattformadministrator) ------ */
.tech-card{margin:18px 0}
.tech-card .dw__head{display:flex;align-items:center;gap:12px}
.tech-card__refresh{margin-left:auto}
.tech-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tech-row{border:1px solid var(--border,#e2e8e4);border-radius:12px;padding:12px 14px;display:grid;gap:8px}
.tech-row--update{border-color:#d69e2e;background:rgba(214,158,46,.06)}
.tech-row__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tech-row__head img{border-radius:6px}
.tech-row__head small{color:var(--muted,#5b6b63)}
.tech-row__head .badge{margin-left:auto}
.tech-row__items{margin:0;font-size:.88rem;color:#7a4a00}
.tech-row__hint{font-size:.88rem;color:var(--muted,#5b6b63)}
.tech-facts{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0}
.tech-facts div{display:flex;flex-direction:column;gap:2px}
.tech-facts dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5b6b63)}
.tech-facts dd{margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tech-facts small{color:var(--muted,#5b6b63)}
.tech-update{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:rgba(214,158,46,.14)}
.tech-update div{flex:1 1 220px;display:flex;flex-direction:column}
.tech-update span{font-size:.88rem}
.tech-update form,.tech-row__actions form{margin:0}
.tech-update .btn{min-height:44px}
.tech-row__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tech-row__actions .btn{min-height:40px}
.tech-issues{margin:0;padding-left:18px;font-size:.88rem;display:grid;gap:4px;color:#3b463f}
.tech-issues strong{color:#7a4a00}
.tech-issues__fix{display:block;color:var(--muted,#5b6b63)}
.tech-fix{margin:0}

/* ---- 1.5.0: Benachrichtigungen filtern und markieren ------------------- */
.notify-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.notify-filter .chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--border,#d9e1dc);background:#fff;color:#26332c;text-decoration:none;font-weight:600;font-size:.92rem}
.notify-filter .chip.is-active{background:#315E3A;border-color:#315E3A;color:#fff}
.chip__count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(0,0,0,.12);font-size:.78rem}
.notify-filter .chip.is-active .chip__count{background:rgba(255,255,255,.25)}
.notify-flag.is-on{color:#a65f09}
.notification-item__actions form{margin:0}
.dw-list__open{display:flex;align-items:baseline;gap:10px;width:100%;color:inherit;text-decoration:none;min-height:40px}
.dw-list__open:hover .dw-list__text{text-decoration:underline}
.push-card--after{margin-top:22px}
/* 1.5.1: Push-Einstellungen hinter dem Zahnrad */
.push-card[hidden]{display:none !important}
.notify-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.notify-head-actions form{margin:0}
.notify-gear{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;justify-content:center}
.notify-gear[aria-expanded="true"]{background:rgba(49,94,58,.12);border-color:#315E3A}
@media (max-width:600px){.notify-gear__label{display:none}.notify-head.page-head--actions{flex-direction:row;align-items:flex-start}.notify-head h1{font-size:1.5rem}}
.notify-filter{align-items:center}
.notify-filter__all{margin:0 0 0 auto}
.notify-filter__all .btn{min-height:40px}
@media (max-width:600px){.notify-filter__all{margin-left:0;flex-basis:100%}}
.modul-wahl{display:grid;gap:6px;margin:6px 0}

/* ---- Mitarbeiter einladen: Assistent (ab 1.6.0) ------------------- */
.invite-wizard{display:grid;gap:16px}
.invite-steps{display:none;list-style:none;margin:0;padding:0;gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
.invite-wizard.is-wizard .invite-steps{display:grid}
.invite-steps li{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-muted);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.invite-steps li span{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--border);background:var(--surface-2);font-weight:600}
.invite-steps li.is-active{color:var(--text);font-weight:600}
.invite-steps li.is-active span{background:var(--accent);border-color:var(--accent);color:#fff}
.invite-steps li.is-done span{background:var(--surface-2);border-color:var(--accent);color:var(--accent)}
.invite-step h2{margin-top:0}
.invite-step[hidden]{display:none}
.invite-choices{display:grid;gap:10px}
.invite-choice{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);cursor:pointer;min-height:44px}
.invite-choice input{margin-top:3px;flex:0 0 auto}
.invite-choice.is-selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.invite-choice__body{display:grid;gap:2px;min-width:0}
.invite-choice__body small{color:var(--text-muted)}
.invite-modules{margin:-4px 0 4px 28px;padding:12px 14px;border-left:3px solid var(--accent);display:grid;gap:8px}
.invite-modules[hidden]{display:none}
.invite-modules__q{margin:0;font-weight:600}
.invite-module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.invite-module{display:flex;gap:10px;align-items:center;padding:10px 12px;min-height:44px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer}
.invite-summary{display:grid;gap:10px;margin:0}
.invite-summary div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.invite-summary dt{color:var(--text-muted)}
.invite-summary dd{margin:0;overflow-wrap:anywhere}
.invite-error{margin:0;color:var(--st-blocked-fg);font-weight:600}
.invite-nav{justify-content:flex-end}
.invite-nav [hidden]{display:none!important}
@media(max-width:700px){
  .invite-steps li{font-size:0;justify-content:center}
  .invite-steps li span{font-size:14px}
  .invite-modules{margin-left:0}
  .invite-summary div{grid-template-columns:1fr;gap:2px}
  .invite-nav{flex-direction:row}
  .invite-nav .btn{flex:1;justify-content:center}
}

/* v1.8.1 – Werkzeugwart in Modulfarbe Rot-Orange (#A64B2A / #8A3D22 / #F6ECE6),
   wie TMA (grün) und Maschinenwart (blau). Gilt auch im Zustand "Im Aufbau". */
.product-card--tools::before,.product-card--tools.product-card--muted::before{background:#A64B2A}
.product-card--tools .product-card__category,.product-card--tools.product-card--muted .product-card__category,.product-card__category--tools{background:#F6ECE6;color:#8A3D22}
.product-card--tools .product-card__benefits li::before,.product-card--tools.product-card--muted .product-card__benefits li::before{color:#A64B2A}
.product-card--tools.product-card--muted{border-color:#e8d6cc;background:#fbf8f6}
.product-card--tools.product-card--muted .product-card__actions{background:#f9f3ef}
.product-card--tools.product-card--muted .product-card__actions .btn--primary{background:#A64B2A;border-color:#A64B2A;box-shadow:0 5px 12px rgba(166,75,42,.2)}
.product-card--tools.product-card--muted .product-card__actions .btn--primary:hover{background:#8A3D22;border-color:#8A3D22}
.product-card--tools .product-card__badge.badge--development{background:#A64B2A;color:#fff}
/* v1.10.0 – Werkzeugaufkleber */
.detail-list{display:grid;grid-template-columns:minmax(140px,28%) minmax(0,1fr);gap:8px 16px;margin:16px 0 0}
.detail-list dt{color:var(--text-muted);font-size:13px}.detail-list dd{margin:0}
.plain-list{margin:0;padding-left:18px}
@media(max-width:700px){.detail-list{grid-template-columns:1fr}.detail-list dt{margin-top:6px}}
/* ===== 1.11.0 – Zugang je Anwendung ===== */
.access-matrix select{min-height:40px;max-width:190px;width:100%}
.access-matrix td{vertical-align:top}
.access-admin{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--surface-2);font-weight:700;font-size:12.5px}
.access-matrix-form .form-actions{align-items:center;gap:14px;flex-wrap:wrap}
.access-cards{display:none;gap:10px}
.access-card{display:grid;gap:4px;text-decoration:none;color:inherit;padding:14px 16px}
.access-card__head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.access-card__line{font-size:14px}
.access-card__line--muted{color:var(--text-muted);font-size:12.5px}
@media (max-width:899px){.access-matrix-form{display:none}.access-cards{display:grid}}
.access-module{border:1px solid var(--border);margin:0}
.access-module legend{padding:0 6px}
.access-module--flat{border:0;border-top:1px solid var(--border);padding:14px 0 6px;border-radius:0}
.access-module--flat:first-of-type{border-top:0}
.access-levels{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.invite-choice:has(input:checked){border-color:var(--primary,#2f6b3a);box-shadow:0 0 0 1px var(--primary,#2f6b3a) inset}
.invite-choice.is-disabled{opacity:.55;cursor:not-allowed}
.access-addons,.access-legacy{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--border)}
.access-legacy p{margin:0;font-size:13.5px}
.access-central{margin-top:14px}
.access-central summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center}
.step-no{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--primary,#2f6b3a);color:#fff;font-size:13px;margin-right:8px}
.model-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;background:var(--surface-2)}
.model-badge--neu{background:#e3f1e6;color:#21562c}
/* =====================================================================
   1.13.0 – Assistent „Mitarbeiter einladen“ (.uw) und aufgeräumte Listen
   ===================================================================== */
.uw { display: grid; gap: 16px; max-width: 760px; }
.uw .uw-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.15rem; }
.uw-progress { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: uw; }
.uw-progress li { counter-increment: uw; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: .86rem; font-weight: 600; }
.uw-progress li::before { content: counter(uw); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--text-muted); font-size: .78rem; }
.uw-progress li.is-current { background: var(--accent-soft); color: var(--accent-strong); }
.uw-progress li.is-current::before { background: var(--accent); color: #fff; }
.uw-progress li.is-done::before { content: "✓"; background: var(--accent-strong); color: #fff; }
.uw-progress li[hidden] { display: none; }
.uw-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.uw-nav .btn { min-height: 48px; min-width: 140px; justify-content: center; }
.uw-nav [hidden] { display: none !important; }
.uw--steps .uw-step[hidden] { display: none; }
.uw-like { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.uw-like summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.uw-module { margin-top: 14px; }
.uw-summary { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 10px 16px; margin: 0 0 14px; }
.uw-summary dt { color: var(--text-muted); font-weight: 600; }
.uw-summary dd { margin: 0; font-weight: 600; overflow-wrap: break-word; }
@media (max-width: 640px) {
  .uw-nav { position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(to top, var(--bg) 75%, transparent); }
  .uw-nav .btn { flex: 1 1 0; min-width: 0; }
  .uw-summary { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .uw-summary dd { margin-bottom: 10px; }
  .uw-progress li { padding-right: 6px; font-size: 0; gap: 0; }
  .uw-progress li.is-current { font-size: .86rem; gap: 6px; padding-right: 12px; }
}

/* Mitarbeiterliste: eine klare Liste statt Matrix */
.people-list { display: grid; gap: 8px; }
.person-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 6px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.person-row:hover { border-color: var(--accent); }
.person-row__name strong { display: block; }
.person-row__name small, .person-row__apps small { display: block; color: var(--text-muted); font-size: .84rem; }
.person-row__apps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.app-chip b { font-weight: 700; color: var(--accent-strong); }
.app-chip--admin { background: var(--accent-soft); color: var(--accent-strong); }
.app-chip--warn { background: var(--st-trial-bg); color: var(--st-trial-fg); }
.person-row__status { display: flex; align-items: center; gap: 10px; justify-self: end; }
@media (max-width: 760px) {
  .person-row { grid-template-columns: minmax(0, 1fr) auto; }
  .person-row__apps { grid-column: 1 / -1; grid-row: 2; }
  .person-row__status { grid-column: 2; grid-row: 1; }
}
.art-choice { display: grid; gap: 8px; }
/* 1.14.0 – Rollen */
.role-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 20px; }
.role-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.role-card--muted { opacity: .65; }
.role-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.role-card__head strong { font-size: 1.05rem; }
.role-card__head p { margin: 4px 0 0; }
.role-card__count { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.role-card__lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9rem; }
.role-card__lines li { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.role-card .table-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.app-chip--role { background: var(--accent-soft); color: var(--accent-strong); }
.role-choices .invite-choice small { line-height: 1.45; }
/* 1.14.1 – Kennzahlenleiste „Betrieb in Zahlen“ */
.org-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin:0 0 16px}
.org-stat{display:flex;flex-direction:column;gap:2px;padding:10px 12px;min-height:64px;border:1px solid var(--border);border-radius:var(--radius-sm,12px);background:var(--surface,#fff);color:inherit;text-decoration:none}
.org-stat:hover{border-color:var(--primary,#2f6b3a)}
.org-stat strong{font-size:22px;line-height:1.1}
.org-stat span{font-size:12.5px;color:var(--text-muted)}
.org-stat--attention{background:#fff7e6;border-color:#ecd7a5}
.org-stat--critical{background:#fbeae7;border-color:#eecac3}
@media (max-width:480px){.org-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.org-stat strong{font-size:19px}}
/* 1.15.0: Anfrageseite, Posteingang Anfragen, Modulvorschläge */
.anfrage-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.anfrage-schon { margin: 0 0 14px; }
.anfrage-module { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.anfrage-module legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.anfrage-modul { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.anfrage-modul input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.anfrage-modul span { display: grid; gap: 2px; }
.anfrage-modul small { color: var(--text-muted); }
.anfrage-modul:has(input:checked) { border-color: #2f6b3a; background: #f1f7f2; }
.anfrage-form textarea { width: 100%; }
.anfragen-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.anfragen-liste { padding: 0; overflow: hidden; }
.anfrage-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.anfrage-row:first-child { border-top: 0; }
.anfrage-row:hover { background: #f7f8f6; }
.anfrage-row__main { display: grid; gap: 3px; min-width: 0; }
.anfrage-row__main small { color: var(--text-muted); overflow-wrap: anywhere; }
.anfrage-row__meta { display: grid; gap: 4px; justify-items: end; text-align: right; flex: none; }
.anfrage-row__meta small { color: var(--text-muted); }
.anfrage-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.anfrage-dl dt { color: var(--text-muted); }
.anfrage-dl dd { margin: 0; overflow-wrap: anywhere; }
.anfrage-ablehnen summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.invite-module { display: grid; gap: 10px; margin-bottom: 14px; }
.invite-modul { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.dw--suggest { border-style: dashed; }
.dw-suggest__points { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.dw-suggest__foot { align-items: center; gap: 8px; flex-wrap: wrap; }
.dw-suggest__foot form { margin: 0; }
.dw-suggest__hide { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; font: inherit; }
@media (max-width: 560px) {
  .anfrage-row { flex-direction: column; }
  .anfrage-row__meta { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; }
  .anfrage-dl { grid-template-columns: 1fr; gap: 2px; }
  .anfrage-dl dd { margin-bottom: 8px; }
}
/* 1.16.0 Rollen je Bereich */
.section-title--actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.role-area legend strong{font-size:15px}
.role-area + .role-area{margin-top:4px}

/* 1.16.1 – Logo auf Anmelde-, Einladungs- und Fehlerseiten bleibt in der Karte (390 px lief es rechts hinaus). */
.auth-brand { display:flex; justify-content:center; margin:0 0 18px; min-width:0; }
.auth-brand__logo, .auth-card img { display:block; max-width:100%; height:auto; }
.auth-brand__logo { width:auto; max-height:64px; }
.auth-card { min-width:0; overflow-wrap:anywhere; }

/* 1.16.1 – Kein Hineinzoomen beim Antippen eines Feldes (iOS zoomt unter 16 px).
   Bewusst über die Schriftgröße gelöst, NICHT über maximum-scale/user-scalable
   im Viewport: Zwei-Finger-Zoom bleibt für alle möglich (Barrierefreiheit). */
@media (pointer:coarse), (max-width:1024px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]),
  select, textarea { font-size:16px !important; }
}
/* Waagrechtes Mitscrollen nach dem Verlassen eines Feldes verhindern; clip statt hidden, damit sticky-Kopfzeilen weiter funktionieren. */
html, body { max-width:100%; overflow-x:clip; }
/* 1.16.1 – Übersicht anpassen: Ziehen am Computer */
.dash-editor--drag .dash-editor__row { cursor:grab; }
.dash-editor--drag .dash-editor__row::before { content:"⋮⋮"; color:var(--text-muted); letter-spacing:-2px; margin-right:4px; }
.dash-editor__row.is-dragging { opacity:.45; outline:2px dashed var(--accent); }
.dash-editor--drag .dash-editor__row button, .dash-editor--drag .dash-editor__row label { cursor:pointer; }
/* 1.17.0 – Fernwartung: Balken während der Vollansicht, Karte für den Kunden */
.fw-banner { position:sticky; top:0; z-index:1000; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px;
  padding:10px 16px; padding-top:calc(10px + env(safe-area-inset-top, 0px)); background:#b45309; color:#fff; font-size:14px; line-height:1.35; }
.fw-banner__text { min-width:0; overflow-wrap:anywhere; }
.fw-banner .btn { background:#fff; color:#7c2d12; border-color:#fff; min-height:40px; }
.fw-kunde { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px 18px; margin-bottom:18px; border-left:4px solid #b45309; }
.fw-kunde > div:first-child { flex:1 1 320px; min-width:0; }
.fw-kunde p { margin:6px 0 0; }
.fw-kunde--aktiv { border-left-color:#15803d; }
.fw-kunde__actions { display:flex; flex-wrap:wrap; gap:8px; }
.fw-kunde .btn { min-height:44px; }
.fw-history summary { cursor:pointer; font-weight:600; min-height:32px; margin-top:10px; }
/* =====================================================================
   1.17.2 – Startseite: Breite je Kachel, Editor als Raster-Vorschau,
   Schnellauswahl als gleichmaessiges Raster
   ===================================================================== */

/* Raster: ab 1000 px 2 Spalten (Inhalt dann mind. ca. 680 px breit), darunter einspaltig.
   Halbe Kachel = 1 Spalte, ganze = beide. Kein automatisches Strecken einer einzelnen halben Kachel. */
@media (min-width: 1000px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid > .dw--full { grid-column: 1 / -1; }
}

/* Editor „Uebersicht anpassen“ – dieselbe Spaltenlogik wie die Uebersicht */
.dash-editor__sub { margin: 18px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5C675F; }
.dash-editor__sub[hidden], .dash-editor__empty[hidden] { display: none !important; }
.dash-editor__empty { margin: 0; padding: 14px; border: 1px dashed #D7DDD6; border-radius: 14px; color: #5C675F; }
.dash-editor__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dash-editor__list--off:empty { display: none; }
@media (min-width: 1000px) {
  .dash-editor__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-editor__list--on > .dash-editor__row--full { grid-column: 1 / -1; }
}
.dash-editor__row { position: relative; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 12px 14px; border-radius: 16px; }
.dash-editor__list--on > .dash-editor__row { min-height: 118px; box-shadow: 0 1px 2px rgba(16, 35, 25, .05); }
.dash-editor__list--on > .dash-editor__row--full { background: #FBFBF8; }
.dash-editor__list--off > .dash-editor__row { border-style: dashed; }
.dash-editor__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-editor__name { overflow-wrap: break-word; hyphens: manual; }
.dash-editor__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dash-editor__move { margin-left: auto; }
.dash-editor__list--off .dash-editor__move { display: none; }
/* Umschalter ½ / ganz: echte Radioknoepfe (ohne JavaScript nutzbar), Flaeche je Option mind. 44 px */
.dash-width { display: inline-flex; margin: 0; padding: 0; border: 1px solid #D7DDD6; border-radius: 10px; overflow: hidden; min-width: 0; }
.dash-width__opt { position: relative; display: block; margin: 0; cursor: pointer; }
.dash-width__opt + .dash-width__opt { border-left: 1px solid #D7DDD6; }
.dash-width__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dash-width__opt input + span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: .9rem; color: #3b463f; background: #fff; }
.dash-width__opt input:checked + span { background: #173423; color: #fff; }
.dash-width__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -3px; }
/* Ziehen am PC: Griff oben rechts statt als Flex-Element; Ablageort = die gestrichelte Kachel */
.dash-editor--drag .dash-editor__row::before { position: absolute; top: 10px; right: 12px; margin: 0; pointer-events: none; }
.dash-editor--drag .dash-editor__list--off .dash-editor__row { cursor: default; }
.dash-editor--drag .dash-editor__list--off .dash-editor__row::before { content: none; }
.dash-editor__top { padding-right: 22px; }
.dash-editor__list.is-drag-active { outline: 2px dashed #D7DDD6; outline-offset: 6px; border-radius: 16px; }
.dash-editor__row.is-dragging { opacity: .55; outline: 2px dashed var(--accent); outline-offset: 2px; background: var(--accent-soft); }
@media (max-width: 560px) {
  .dash-editor__row { flex-wrap: nowrap; }
  .dash-editor__name { flex-basis: auto; }
  .dash-switch { margin-right: 0; }
}

/* Kopf: „Uebersicht anpassen“ als volles Touch-Ziel */
.dash-head__edit { min-height: 44px; }

/* Schnellauswahl (Betrieb in Zahlen / Plattform in Zahlen)
   Jede Kachel gleich gebaut: Symbol + Zahl in einer Zeile, Text darunter, alles linksbuendig.
   PC breit: eine Reihe, alle gleich breit. Mittel: gleich breite Spalten (mind. 150 px).
   Handy: 2 Spalten; bei ungerader Anzahl nimmt die letzte die ganze Breite. */
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
@media (min-width: 1200px) {
  .quick-stats { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
}
.quick-stat { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 36px auto; column-gap: 10px; row-gap: 6px; align-items: center;
  min-width: 0; min-height: 88px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease; }
.quick-stat:hover { border-color: #b9c9bd; }
.quick-stat__icon { grid-column: 1; grid-row: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #F0EFE9; color: #315E3A; }
.quick-stat__icon svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.quick-stat__n { grid-column: 2; grid-row: 1; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; color: #172019; white-space: nowrap; }
.quick-stat__label { grid-column: 1 / -1; grid-row: 2; align-self: start; font-size: 13px; line-height: 1.3; color: var(--text-muted); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.quick-stat--attention { background: #fff7e6; border-color: #ecd7a5; }
.quick-stat--attention .quick-stat__icon { background: #fbecc8; color: #8a5a06; }
.quick-stat--critical { background: #fbeae7; border-color: #eecac3; }
.quick-stat--critical .quick-stat__icon { background: #f6d5cf; color: #a3281c; }
@media (max-width: 700px) {
  .quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick-stats > .quick-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .quick-stat { min-height: 84px; padding: 11px 12px; }
}

/* =====================================================================
   1.18.0 – „Rund“: Formulare im Design-System, Touch-Ziele, neue Bausteine
   ===================================================================== */
/* Buttons: mind. 44 px (WCAG/Apple), auch .btn--sm am Handy */
.btn { min-height:44px; justify-content:center; text-decoration:none; line-height:1.25; }
.btn--sm { min-height:36px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity:.55; cursor:not-allowed; }
@media (pointer:coarse), (max-width:900px) { .btn--sm { min-height:44px; } }

/* Auswahl- und Textfelder wie Eingabefelder */
.field select, .field textarea, select:not([class*="dash"]), textarea {
  width:100%; min-height:44px; box-sizing:border-box; border:1px solid var(--border); border-radius:var(--radius-sm);
  background-color:var(--surface); color:var(--text); padding:9px 11px; font:inherit; font-weight:400; }
select:not([multiple]) { appearance:none; -webkit-appearance:none; padding-right:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b62' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; }
textarea { min-height:110px; resize:vertical; line-height:1.5; }
select:focus, textarea:focus { border-color:var(--accent); outline:none; box-shadow:0 0 0 3px rgba(45,164,112,.10); }
.topbar__switch select { width:auto; min-width:160px; }
.data-table select { width:auto; min-width:150px; }

/* Checkbox/Radio: 24 px Kästchen, Beschriftung als Fläche ≥ 44 px */
input[type=checkbox], input[type=radio] { width:22px; height:22px; min-width:22px; accent-color:var(--accent); margin:0; cursor:pointer; }
.check, .checkbox, .check--wide, .invite-choice, .dash-switch { min-height:44px; align-items:center; }
.check input, .checkbox input { margin-top:1px; }
.check, .checkbox { display:flex; gap:10px; cursor:pointer; }

/* Fehler am Feld */
.field--invalid input, .field--invalid select, [aria-invalid="true"] { border-color:#b3261e !important; box-shadow:0 0 0 3px rgba(179,38,30,.10); }
.field-error { display:block; margin-top:4px; color:#9e2f25; font-size:13px; font-weight:600; }

/* Links im Fließtext erkennbar */
.content p a:not(.btn), .notice a:not(.btn), .form-help a:not(.btn), .legal-text a, .auth-card p a:not(.btn), .pricing-dialog__terms a {
  color:var(--accent-strong); text-decoration:underline; text-underline-offset:2px; }

/* Fußzeilen-Links am Handy mit 44 px Zeilenhöhe */
@media (max-width:900px) {
  .app-footer { gap:0 18px; padding:12px 16px 24px; }
  .app-footer a, .legal-footer a, .auth-legal a { display:inline-flex; align-items:center; min-height:44px; }
}

/* Mobile Tab-Leiste: fünf gleich breite Reiter, keine Umbrüche */
@media (max-width:900px) {
  .bottomnav { padding-left:4px; padding-right:4px; }
  .bottomnav__link, .bottomnav__more { flex:1 1 0; min-width:0; min-height:48px; padding:4px 2px; font-size:11px; font-weight:500;
    color:var(--text-muted); white-space:nowrap; justify-content:center; }
  .bottomnav__link span { overflow:hidden; text-overflow:ellipsis; max-width:100%; }
}

/* Abstände statt Inline-Styles */
.mt-8{margin-top:8px}.mt-10{margin-top:10px}.mt-12{margin-top:12px}.mt-14{margin-top:14px}.mt-16{margin-top:16px}.mt-18{margin-top:18px}.mb-16{margin-bottom:16px}.my-12{margin:12px 0}
.text-muted{color:var(--text-muted)}
.feedback-name{margin:6px 0 2px}
.inline-form{display:inline-block;margin-left:8px}

/* Fehlerseiten */
.error-page { background:var(--bg); }
.error-page__main { max-width:520px; margin:12vh auto; padding:0 20px; text-align:center; }
.error-page__main--wide { max-width:720px; }
.error-page__main h1 { margin:8px 0; }
.error-page__code { font-size:56px; font-weight:700; color:var(--accent); }
.error-page__code--danger { color:var(--sev-blocking, #b3261e); }
.error-page__text { color:var(--text-muted); }
.error-page__actions { margin-top:22px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.error-page__debug { margin-top:28px; text-align:left; }
.error-page__debug pre { margin-top:12px; overflow:auto; font-size:12px; background:var(--surface-2); padding:12px; border-radius:8px; }

/* Dokument-Bestätigung: feste Schritte 1/2/3 mit Häkchen */
.gate-steps ol { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.gate-step { display:flex; align-items:center; gap:8px; padding:6px 12px 6px 6px; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:14px; color:var(--text-muted); min-height:40px; }
.gate-step__nr { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--surface-2); font-weight:700; color:var(--text); }
.gate-step.is-done .gate-step__nr { background:var(--accent); color:#fff; }
.gate-step.is-current { border-color:var(--accent); color:var(--text); font-weight:600; box-shadow:0 0 0 3px rgba(45,164,112,.10); }
.gate-step.is-current .gate-step__nr { background:var(--accent-soft); color:var(--accent-strong); }
.gate-document__step { margin:0 0 4px; font-size:13px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }

/* Startseite: eine große Aufgabe, Testphasen-Karten */
.gate-task { border-left:4px solid var(--wheat); padding:22px 24px; margin-bottom:18px; }
.gate-task h2 { margin:0 0 6px; font-size:1.3rem; }
.gate-task p { margin:0 0 14px; color:var(--text-muted); }
.gate-task__eyebrow { color:var(--accent-strong) !important; font-weight:600; margin-bottom:6px !important; }
.trial-cards { display:grid; gap:12px; margin-bottom:18px; }
.trial-card { display:flex; align-items:center; justify-content:space-between; gap:12px 18px; flex-wrap:wrap; border-left:4px solid var(--accent); padding:16px 20px; }
.trial-card--soon { border-left-color:var(--wheat); }
.trial-card__text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.trial-card__text span { color:var(--text-muted); font-size:14px; }

/* Abrechnung */
.checkout-notice { display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; }
.billing-trials { list-style:none; margin:0; padding:0; }
.billing-trials li { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; padding:14px 16px; border-bottom:1px solid var(--border); }
.billing-trials li:last-child { border-bottom:0; }
.billing-trials li span { flex:1 1 260px; color:var(--text-muted); }

/* Modulcenter */
.product-card__trial-note { margin:0; padding:10px 20px 0; font-size:14px; color:var(--accent-strong); font-weight:600; }
.pricing-dialog__terms { margin:14px 0 0; font-size:13px; color:var(--text-muted); }
.preis-aktionen { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }

/* Zwei-Faktor-Einrichtung */
.tfa-setup__grid { display:grid; grid-template-columns:auto 1fr; gap:20px 28px; align-items:start; margin-top:12px; }
.tfa-qr { width:220px; max-width:100%; background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px; }
.tfa-qr svg { display:block; width:100%; height:auto; }
.tfa-secret { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing:.06em; }
.tfa-setup__copy { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
@media (max-width:640px) { .tfa-setup__grid { grid-template-columns:1fr; } .tfa-qr { width:200px; margin:0 auto; } }

/* Anmeldung: Weg für Interessenten */
.auth-cta { text-align:center; margin:18px 0 0; font-size:14px; color:var(--text-muted); }
.auth-cta a { display:inline-flex; align-items:center; min-height:44px; font-weight:600; }

/* Einladungslink zum Kopieren (Superadmin) */
.invite-link-card { margin-bottom:16px; }
.invite-link-card input { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:13px; }

/* Superadmin: Module & Tarife – Zeile über den Namen erreichbar, kompakter */
.data-table--compact th, .data-table--compact td { padding-left:10px; padding-right:10px; }
.row-link { color:inherit; text-decoration:none; }
.row-link:hover strong { text-decoration:underline; }

/* Technik-Karte im alten Rahmen: „Startklar 3 von 18“ */
.tech-startklar { display:flex; align-items:center; gap:10px; padding:10px 12px; margin:0 0 10px; border:1px solid var(--border); border-radius:10px; color:var(--text); text-decoration:none; min-height:44px; }
.tech-startklar span { color:var(--text-muted); font-size:.9rem; flex:1; min-width:0; }
.tech-startklar em { font-style:normal; color:var(--text-muted); }
/* 1.18.0 – Touch-Ziele am Handy ≥ 44 px auch für Textlinks in Kacheln, Filter, Reiter, Dialog-Schließen */
@media (pointer:coarse), (max-width:900px) {
  .dw__link, .dw-list__cta { display:inline-flex; align-items:center; min-height:44px; }
  .mc-filter a { min-height:44px; }
  .bereich-reiter a { min-height:44px; display:inline-flex; align-items:center; }
  .dialog-close { width:44px; height:44px; flex:0 0 44px; }
}
@media (max-width:414px) {
  .bottomnav { padding-left:2px; padding-right:2px; }
  .bottomnav__link, .bottomnav__more { padding:4px 0; font-size:10.5px; letter-spacing:-.01em; }
}
textarea.tfa-secret { min-height:0; resize:none; word-break:break-all; overflow-wrap:anywhere; line-height:1.4; }
@media (pointer:coarse), (max-width:900px) {
  .legal-brand, .legal-back { min-height:44px; display:inline-flex; align-items:center; }
  .auth-links a { display:inline-flex; align-items:center; min-height:44px; }
}
.legal-group ul:not(.legal-list) li a:not(.btn), .legal-group p a:not(.btn) { color:var(--accent-strong); text-decoration:underline; text-underline-offset:2px; }
/* 1.19.0 – Wartung: Hinweisbalken, Wartungsseite, Verwaltung; Löschungen; Dateisicherung */
.mw-banner { position:sticky; top:0; z-index:999; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px;
  padding:10px 16px; padding-top:calc(10px + env(safe-area-inset-top, 0px)); font-size:14px; line-height:1.35; }
.mw-banner__text { min-width:0; flex:1 1 260px; overflow-wrap:anywhere; }
.mw-banner__actions { display:flex; flex-wrap:wrap; gap:8px; }
.mw-banner__actions form { margin:0; }
.mw-banner--geplant { background:#fbf1d8; color:#5c4508; border-bottom:1px solid #ecd9a6; }
.mw-banner--geplant .btn { background:#fff; border-color:#ecd9a6; color:#5c4508; min-height:44px; }
.mw-banner--aktiv { background:#b23d24; color:#fff; }
.mw-banner--aktiv .btn { background:#fff; color:#7f1d1d; border-color:#fff; min-height:44px; }
.wartung-card { text-align:left; }
.wartung-symbol { font-size:34px; line-height:1; color:var(--accent-strong); margin:0 0 6px; }
.wartung-bis { font-size:1.05rem; margin:6px 0 4px; }
.wartung-sicher { font-weight:600; color:var(--st-active-fg); margin:0 0 10px; }
.wartung-admin { margin:16px 0 6px; border-top:1px solid var(--border); padding-top:12px; }
.wartung-admin summary { cursor:pointer; min-height:44px; display:flex; align-items:center; color:var(--text-muted); }
.wartung-admin form { margin-top:10px; }
.wartung-status { border-left:4px solid var(--accent); }
.wartung-status--aktiv { border-left-color:#b23d24; }
.wartung-status--geplant { border-left-color:#d7ac4a; }
.wartung-status h2 { margin:0 0 6px; font-size:1.1rem; }
.wartung-felder { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap:12px; }
.wartung-liste { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.wartung-liste > li { min-width:0; }
.wartung-liste details summary { cursor:pointer; min-height:44px; display:inline-flex; align-items:center; }
.wartung-aktionen { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.wartung-aktionen form { margin:0; }
.loesch-vorschau { border-left:4px solid var(--sev-info); }
.loesch-vorschau dl { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; margin:8px 0 0; }
.loesch-vorschau dt { color:var(--text-muted); overflow-wrap:anywhere; }
.loesch-vorschau dd { margin:0; font-variant-numeric:tabular-nums; text-align:right; }
.schluessel-beispiel { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-all; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 12px; font-size:13px; margin:0 0 10px; }

/* =====================================================================
   1.21.0 – Vorstellung einer Anwendung im Modulcenter (Pop-up „Mehr erfahren“)
   Michael 19.10.2026: ausführlich, mit Bild, Nutzen, Funktionen, Ablauf,
   Fragen; Kundenstimmen folgen. Preise bleiben im Tarifdialog.
   ===================================================================== */
.vd { --vd-ak: #1f2321; --vd-soft: #ebedec; width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); inset: 0; margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--surface); box-shadow: 0 28px 80px rgba(8,22,16,.28); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.vd--fleet { --vd-ak: #2c6f8f; --vd-soft: #e3f0f6; }
.vd--tools { --vd-ak: #A64B2A; --vd-soft: #f6ece6; }
.vd--nutrition { --vd-ak: #3f7d3a; --vd-soft: #eaf3e8; }
.vd::backdrop { background: rgba(8,22,16,.58); backdrop-filter: blur(3px); }
.vd[open] { display: block; }
.vd__close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: #18231d; font-size: 26px; line-height: 1; border: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.vd__hero { position: relative; flex: 0 0 auto; }
.vd__img { display: block; width: 100%; height: 300px; object-fit: cover; }
.vd__hero-text { position: relative; padding: 22px 28px 6px; }
.vd__hero-text .product-card__category { margin-bottom: 10px; }
.vd__kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.vd__hero-text h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: #18231d; text-wrap: balance; }
.vd__intro { margin: 0; font-size: 16px; line-height: 1.55; color: #2f3d35; max-width: 70ch; }
.vd__kurz { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.vd__kurz li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--vd-soft); color: var(--vd-ak); font-size: 13px; font-weight: 700; }
.vd__kurz li::before { content: "✓"; font-weight: 800; }
.vd__body { padding: 10px 28px 20px; display: grid; gap: 30px; }
.vd__section h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; color: #18231d; text-wrap: balance; }
.vd__lead { margin: 0 0 14px; color: #40564a; line-height: 1.55; max-width: 75ch; }
.vd__steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vd__steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface-2, #f0f3ef); }
.vd__num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--vd-ak); color: #fff; font-weight: 800; font-size: 14px; }
.vd__steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.vd__steps p { margin: 0; color: #40564a; line-height: 1.5; font-size: 14px; }
.vd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vd__feature { padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.vd__feature strong { display: block; margin-bottom: 4px; font-size: 15px; color: #18231d; }
.vd__feature p { margin: 0; font-size: 14px; line-height: 1.5; color: #40564a; }
.vd__feature::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 999px; background: var(--vd-ak); margin-bottom: 10px; }
.vd__bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vd__bilder figure { margin: 0; }
.vd__bilder img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.vd__bilder figcaption { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.vd__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vd__chips li { padding: 8px 14px; border-radius: 999px; background: var(--vd-soft); color: var(--vd-ak); font-weight: 700; font-size: 14px; }
.vd__stimme { margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--surface-2, #f0f3ef); }
.vd__stimme p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.vd__stimme footer { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.vd__preis { padding: 18px 20px; border-radius: 18px; background: var(--vd-soft); }
.vd__preis h3 { color: var(--vd-ak); }
.vd__preis .vd__lead { margin-bottom: 0; }
.vd__frage { border-top: 1px solid var(--border); }
.vd__frage summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; font-size: 15px; min-height: 44px; }
.vd__frage summary::-webkit-details-marker { display: none; }
.vd__frage summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--text-muted); flex: none; }
.vd__frage[open] summary::after { content: "–"; }
.vd__frage p { margin: 0 0 14px; color: #40564a; line-height: 1.55; font-size: 14.5px; max-width: 75ch; }
.vd__zugang .product-card__detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.vd__foot { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.vd__foot form { margin: 0; }
.vd__foot .btn--primary { background: var(--vd-ak); border-color: var(--vd-ak); }
.vd__schliessen { margin-left: auto; }
.product-card__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 12px; padding: 0; border: 0; background: transparent; color: var(--accent-strong); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.product-card__more:hover { text-decoration: underline; }
.product-card--fleet .product-card__more { color: #205f7d; }
.product-card--tools .product-card__more { color: #8a3d22; }
@media (max-width: 760px) {
  /* 1.22.2: Am Handy als Blatt von unten – 100vh war höher als der sichtbare Bereich (Adressleiste), der obere Rand war abgeschnitten. */
  .vd { width: 100vw; max-width: 100vw; max-height: 88vh; max-height: 90svh; inset: auto 0 0 0; margin: 0; border-radius: 20px 20px 0 0; }
  .vd__img { height: 160px; }
  .vd__hero-text { padding: 16px 18px 4px; }
  .vd__hero-text h2 { font-size: 23px; }
  .vd__intro { font-size: 15px; }
  .vd__body { padding: 8px 18px 16px; gap: 24px; }
  .vd__grid, .vd__bilder { grid-template-columns: 1fr; }
  .vd__foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .vd__foot .btn, .vd__foot form { width: 100%; }
  .vd__foot form .btn { width: 100%; }
  .vd__schliessen { margin-left: 0; }
}
/* 1.21.0 - Kennzahl einer Modulkachel als Sprung in die Anwendung */
.dw-kpi--link { text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.dw-kpi--link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24,35,29,.1); }
.dw-kpi--link:focus-visible { outline: 3px solid rgba(24,35,29,.25); outline-offset: 2px; }

/* =====================================================================
   1.22.0 – Superadmin-Dashboard: Zu erledigen, Technik kompakt, Kennzahlen
   ===================================================================== */
.todo-gruppen { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.todo-gruppe { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.todo-gruppe b { font-size: 14px; }
.todo-gruppe:hover { background: var(--border); }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo-item__link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.todo-item__link:hover { background: var(--surface-2); }
.todo-item__badge { flex: none; min-width: 84px; justify-content: center; text-align: center; }
.todo-item__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-item__text strong { font-size: 15px; line-height: 1.3; }
.todo-item__text small { color: var(--text-muted); font-size: 13px; }
.todo-item__arrow { color: var(--text-muted); font-size: 20px; flex: none; }
.todo-item--ueberfaellig .todo-item__link { border-left: 4px solid #c0392b; background: #fdf3f1; }
.todo-item--nah .todo-item__link { border-left: 4px solid #b7791f; background: #fdf8ec; }
.todo-item--neu .todo-item__link { border-left: 4px solid #2c6f8f; }
.badge--danger { background: #fbe7e4; color: #a3281c; }
.badge--none { background: var(--surface-2); color: var(--text-muted); }
.tech-card--compact > summary { list-style: none; cursor: pointer; }
.tech-card--compact > summary::-webkit-details-marker { display: none; }
.tech-card__chevron { margin-left: auto; color: var(--text-muted); transition: transform .15s; }
.tech-card--compact[open] .tech-card__chevron { transform: rotate(180deg); }
.tech-card--ok > summary .dw__title small { color: #1f6b3a; font-weight: 600; }
.dw-kpis--auto { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.dw-kpi--link { text-decoration: none; color: inherit; }
@media (max-width: 760px) {
  .todo-item__link { flex-wrap: wrap; }
  .todo-item__badge { min-width: 0; }
  .todo-item__text { flex-basis: 100%; order: 3; }
}
/* 1.22.1 - Push-Erinnerung und stille Betriebe */
.push-erinnerung { margin-bottom: 18px; }
.push-erinnerung__liste { list-style: none; padding: 0 20px 6px; margin: 0; }
.push-erinnerung__zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); min-height: 44px; }
.push-erinnerung__person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.push-erinnerung__person small { color: var(--text-muted); font-size: 12.5px; }
.push-erinnerung form { margin: 0; }
@media (max-width: 700px) { .push-erinnerung .section-action-bar { flex-direction: column; align-items: stretch; } .push-erinnerung .section-action-bar .btn { width: 100%; justify-content: center; } }

/* 1.23.0 - Rollen als ruhige Liste; Betrieb/Standorte im gleichen Seitenaufbau (Festlegung Michael 20.10.2026) */
.role-hint { margin: -6px 0 18px; max-width: 72ch; }
.role-area-head { margin: 22px 0 10px; }
.role-area-head__add { font-size: 13px; font-weight: 650; color: var(--accent-strong); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.role-area-head__add:hover { text-decoration: underline; }
.rollen-liste { padding: 0; overflow: hidden; }
.rollen-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 18px; min-height: 56px; padding: 12px 20px; border-top: 1px solid var(--border); }
.rollen-zeile:first-child { border-top: 0; }
.rollen-zeile__main { display: grid; gap: 2px; min-width: 0; }
.rollen-zeile__main strong { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rollen-zeile__main small { color: var(--text-muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.rollen-zeile__count { color: var(--text-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rollen-zeile__actions { display: flex; gap: 6px; align-items: center; }
.rollen-zeile__actions form { margin: 0; }
.rollen-zeile--eigene { background: #fbfcfb; }
@media (max-width: 700px) {
  .rollen-zeile { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .rollen-zeile__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .rollen-zeile__actions .btn { min-height: 40px; }
  .role-area-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .page-head--actions > .btn { align-self: stretch; justify-content: center; min-height: 46px; }
}
/* 1.25.0 - Pilotbetriebe */
.pilot-card { border-left: 4px solid #a65f09; }
.pilot-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pilot-card__actions .btn { min-height: 44px; }
.pilot-karte .pilot-aktionen .form-stack { gap: 8px; padding: 8px 0 0; }
.pilot-karte .pilot-aktionen form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.pilot-start .check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.pilot-start fieldset.field { border: 0; padding: 0; margin: 0 0 12px; }
.pilot-start legend { font-weight: 600; margin-bottom: 6px; }
.pilot-verlauf { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.pilot-leitfragen { margin-bottom: 16px; }
.pilot-leitfragen ol { margin: 8px 0 6px 20px; padding: 0; }
.pilot-leitfragen li { margin: 4px 0; }
.mini-tag--pilot { background: #a65f09; color: #fff; }
@media (max-width: 760px) { .pilot-card { flex-direction: column; align-items: stretch; } .pilot-card__actions .btn { flex: 1 1 auto; justify-content: center; } }
/* 1.25.1 - Erinnerungen (ein Aufbau fuer Betriebsseite und Benutzer & Rechte) */
.erinnerungen { margin-bottom: 18px; }
.erinnerungen__anrede { display: flex; align-items: center; gap: 6px; }
.erinnerungen__anrede span { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.erinnerungen__thema { border-top: 1px solid var(--border); margin: 0 20px; padding: 12px 0 4px; }
.erinnerungen__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.erinnerungen__kopf small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.erinnerungen__liste { list-style: none; padding: 0; margin: 6px 0 0; }
.erinnerungen__zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 44px; }
.erinnerungen__zeile + .erinnerungen__zeile { border-top: 1px dashed var(--border); }
.erinnerungen__person small { display: block; color: var(--text-muted); font-size: 13px; }
.erinnerungen__zeile .btn { min-height: 40px; white-space: nowrap; }
@media (max-width: 760px) { .erinnerungen__kopf { flex-direction: column; } .erinnerungen__zeile { flex-wrap: wrap; } .erinnerungen__zeile form, .erinnerungen__zeile .btn { width: 100%; } }
/* 1.25.1 - Vorschau und Vorlagen */
.vorschau textarea, .vorlage__form textarea { font: inherit; line-height: 1.5; }
.vorschau__empfaenger { list-style: none; padding: 0; margin: 0; }
.vorschau__empfaenger li { padding: 6px 0; border-top: 1px dashed var(--border); }
.vorschau__empfaenger li:first-child { border-top: 0; }
.vorschau__empfaenger small { display: block; color: var(--text-muted); font-size: 13px; }
.vorlagen__platzhalter { margin-bottom: 16px; }
.vorlagen__dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; margin: 10px 0 0; }
.vorlagen__dl div { display: flex; gap: 8px; align-items: baseline; }
.vorlagen__dl dt { margin: 0; } .vorlagen__dl dd { margin: 0; color: var(--text-muted); font-size: 13px; }
.vorlage__beide { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.pilot-nachricht summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.pilot-nachricht .field { margin-top: 8px; }
code { background: var(--surface-2, #f1ece5); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
/* 1.25.1 - Gesendete Nachrichten */
.erinnerungen__gesendet > summary { list-style: none; cursor: pointer; min-height: 44px; }
.erinnerungen__gesendet > summary::-webkit-details-marker { display: none; }
.erinnerungen__gesendet > summary::after { content: '▾'; color: var(--text-muted); margin-left: auto; }
.erinnerungen__gesendet[open] > summary::after { content: '▴'; }
.erinnerungen__zeile--gesendet { display: block; }
.erinnerungen__text > summary { list-style: none; cursor: pointer; display: flex; min-height: 44px; align-items: center; }
.erinnerungen__text > summary::-webkit-details-marker { display: none; }
.erinnerungen__wortlaut { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.5; background: var(--surface-2, #f7f4ef); border-radius: 8px; padding: 12px 14px; margin: 6px 0 4px; }
/* 1.25.1 - Erinnerung als Pop-up */
.erinnerung-dialog { max-width: 42rem; }
.erinnerung-dialog textarea { font: inherit; line-height: 1.5; min-height: 240px; }
.erinnerung-dialog .pricing-dialog__body { padding-top: 12px; }
.erinnerungen .section-action-bar small a, .erinnerungen__kopf small a { text-decoration: underline; }
/* 1.25.1 - Platzhalter-Knoepfe */
.platzhalter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.platzhalter__label { font-size: 12.5px; color: var(--text-muted); margin-right: 2px; }
.platzhalter__chip { font: inherit; font-size: 12.5px; line-height: 1; padding: 9px 10px; min-height: 36px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2, #f7f4ef); color: inherit; cursor: pointer; }
.platzhalter__chip:hover, .platzhalter__chip:focus-visible { background: #e9e2d8; outline: none; }
.platzhalter__chip::before { content: '{'; opacity: .55; } .platzhalter__chip::after { content: '}'; opacity: .55; }
/* 1.26.0 - Erste Schritte, Anleitung, Pilot-Einladung, Pilotbetriebe */
.erste-schritte { margin-bottom: 18px; border-left: 4px solid #239263; }
.erste-schritte__kopf { padding: 18px 20px 6px; }
.erste-schritte__kopf h2 { margin: 0 0 4px; font-size: 19px; }
.erste-schritte__kopf p { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.erste-schritte__balken { height: 6px; border-radius: 999px; background: var(--border); margin-top: 10px; overflow: hidden; }
.erste-schritte__balken span { display: block; height: 100%; background: #239263; border-radius: 999px; }
.erste-schritte__liste { list-style: none; margin: 0; padding: 4px 20px 6px; }
.erste-schritte__schritt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); min-height: 52px; }
.erste-schritte__nr { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2, #f1ece5); font-weight: 700; font-size: 13px; }
.erste-schritte__schritt.is-done .erste-schritte__nr { background: #239263; color: #fff; }
.erste-schritte__schritt.is-done .erste-schritte__text { opacity: .6; }
.erste-schritte__text { flex: 1 1 auto; min-width: 0; } .erste-schritte__text small { display: block; color: var(--text-muted); font-size: 13px; }
.erste-schritte__fuss { padding: 6px 20px 14px; }
.hilfe-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.hilfe-kapitel summary small { display: block; color: var(--text-muted); font-size: 13px; }
.hilfe-schritte { margin: 0; padding-left: 22px; } .hilfe-schritte li { margin: 8px 0; line-height: 1.5; }
.pilot-einladung__anrede { display: flex; gap: 14px; }
.pilot-einladung__anrede .check { min-height: 44px; }
.pilot-tabelle td { vertical-align: top; }
@media (max-width: 760px) { .erste-schritte__schritt { flex-wrap: wrap; } .erste-schritte__schritt .btn { width: 100%; justify-content: center; } }