/* Datei-Version: v0.3.2 · Stand: 2026-10-08
   Hülle · Design "Nordic Minimal" · alle Klassen mit Präfix of- · Schriften lokal (OFL) */

@font-face{font-family:'Space Grotesk';font-weight:500;font-style:normal;font-display:swap;src:url('fonts/space-grotesk-500.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-weight:600;font-style:normal;font-display:swap;src:url('fonts/space-grotesk-600.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-weight:700;font-style:normal;font-display:swap;src:url('fonts/space-grotesk-700.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-weight:400;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-sans-400.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-weight:500;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-sans-500.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-weight:600;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-sans-600.woff2') format('woff2')}

@font-face{font-family:'Sora';font-weight:300 800;font-style:normal;font-display:swap;src:url('fonts/sora.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-weight:400 700;font-style:normal;font-display:swap;src:url('fonts/instrument-sans.woff2') format('woff2')}

:root{--of-radius:14px;--of-font-display:'Space Grotesk',system-ui,sans-serif;--of-font-body:'IBM Plex Sans',system-ui,sans-serif}
[data-theme="light"]{
  --of-bg:#F7F7F9;--of-surface:#FFFFFF;--of-border:#E6E6EC;--of-text:#15151A;--of-text-muted:#6E6E78;
  --of-nav-bg:#FFFFFF;--of-nav-active-bg:#EFEDFB;--of-accent-contrast:#FFFFFF;--of-icon-bg:#EFEDFB;
  --of-chip-live-bg:#E5F7EE;--of-chip-live-text:#0E9F5A;--of-chip-beta-bg:#EFEDFB;--of-chip-beta-text:#5E52D8;
  --of-chip-planned-bg:#F0F0F3;--of-chip-planned-text:#6E6E78;--of-danger:#C62F3E;--of-danger-bg:#FCEBED;--of-success:#0E9F5A;--of-success-bg:#E5F7EE;
}
[data-theme="dark"]{
  --of-bg:#111114;--of-surface:#19191F;--of-border:#28282F;--of-text:#F3F3F6;--of-text-muted:#98989F;
  --of-nav-bg:#141417;--of-nav-active-bg:#232236;--of-accent-contrast:#111114;--of-icon-bg:#232236;
  --of-chip-live-bg:#123227;--of-chip-live-text:#3DDC97;--of-chip-beta-bg:#211F3A;--of-chip-beta-text:#9691FF;
  --of-chip-planned-bg:#202027;--of-chip-planned-text:#8B8B93;--of-danger:#FF7A86;--of-danger-bg:#3A1A1F;--of-success:#3DDC97;--of-success-bg:#123227;
}
[data-theme="dark"]{--of-accent-on-dark:#9691FF}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{font-family:var(--of-font-body);background:var(--of-bg);color:var(--of-text);font-size:14px;line-height:1.5}
a{text-decoration:none;color:inherit}
input,select,button,textarea{font-family:inherit;font-size:inherit}
button{cursor:pointer}
h1{margin:0;font-family:var(--of-font-display);font-weight:600;font-size:26px}
h2{margin:0;font-family:var(--of-font-display);font-weight:600;font-size:18px}
.of-hidden{display:none !important}
.of-sub{font-size:14px;color:var(--of-text-muted);margin-top:2px}

/* Layout */
.of-app{display:flex;min-height:100vh}
.of-main{flex-grow:1;min-width:0;padding:44px 52px;display:flex;flex-direction:column;gap:26px}
.of-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}

/* Navigation */
.of-nav{width:256px;flex-shrink:0;background:var(--of-nav-bg);border-right:1px solid var(--of-border);padding:28px 22px;
  display:flex;flex-direction:column;position:sticky;top:0;height:100vh;transition:width .18s ease}
.of-collapsed .of-nav{width:88px}
.of-nav-brand{display:flex;align-items:center;gap:11px;min-width:0;margin-bottom:6px;color:inherit;text-decoration:none}
.of-nav-logo{width:36px;height:36px;flex-shrink:0;border-radius:10px;background:var(--of-brand-bg);color:var(--of-brand-fg);
  display:flex;align-items:center;justify-content:center;font-family:var(--of-font-display);font-weight:700;font-size:14px}
.of-nav-logo-img{background:transparent;object-fit:contain}
.of-nav-wordmark{font-family:var(--of-font-display);font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.of-nav-version{font-size:11px;color:var(--of-text-muted);margin:0 0 22px 47px}
.of-nav-links{display:flex;flex-direction:column;gap:6px}
.of-nav-link{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:var(--of-radius);color:var(--of-text-muted);font-weight:500;font-size:14.5px}
.of-nav-link:hover{color:var(--of-text)}
.of-nav-link.of-active{background:var(--of-nav-active-bg);color:var(--of-accent);font-weight:700}
[data-theme="dark"] .of-nav-link.of-active{color:var(--of-accent-on-dark)}
.of-nav-spacer{flex-grow:1}
.of-nav-footer{display:flex;flex-direction:column;gap:12px}
.of-nav-profile{display:flex;align-items:center;gap:10px;min-width:0;color:inherit;text-decoration:none;border-radius:12px}
.of-nav-tools{display:flex;gap:8px}
.of-nav-tools .of-icon-btn{flex:1;width:auto}
.of-nav-divider{height:1px;background:var(--of-border)}
.of-nav-avatar{width:40px;height:40px;overflow:hidden;border-radius:50%;background:var(--of-icon-bg);color:var(--of-accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.of-nav-user-info{flex-grow:1;min-width:0;display:flex;flex-direction:column}
.of-nav-user-name{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.of-nav-user-role{font-size:11.5px;color:var(--of-text-muted)}
.of-icon-btn{border:1px solid var(--of-border);background:var(--of-surface);width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--of-text);flex-shrink:0;padding:0}
.of-icon-btn.of-muted{color:var(--of-text-muted)}
.of-icon-btn span{display:flex}
[data-theme="light"] .of-i-sun,[data-theme="dark"] .of-i-moon{display:none}
.of-collapsed .of-i-collapse,html:not(.of-collapsed) .of-i-expand{display:none}
.of-collapsed .of-nav-wordmark,.of-collapsed .of-nav-version,.of-collapsed .of-nav-label,.of-collapsed .of-nav-user-info{display:none}
.of-collapsed .of-nav-brand{justify-content:center;margin-bottom:26px}
.of-collapsed .of-nav-link{justify-content:center;padding:11px}
.of-collapsed .of-nav-tools{flex-direction:column}
.of-collapsed .of-nav-tools .of-icon-btn{flex:none;width:32px;align-self:center}
.of-collapsed .of-nav-profile{justify-content:center}

/* Bausteine */
.of-card{background:var(--of-surface);border:1px solid var(--of-border);border-radius:var(--of-radius)}
.of-btn-primary{background:var(--of-primary);color:var(--of-primary-fg);border:none;border-radius:10px;padding:11px 18px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:8px}
.of-btn-secondary{border:1px solid var(--of-border);background:var(--of-surface);color:var(--of-text);border-radius:9px;padding:9px 14px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.of-btn-primary:hover{filter:brightness(1.08)}
.of-chip{padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:700}
.of-chip-live{background:var(--of-chip-live-bg);color:var(--of-chip-live-text)}
.of-chip-beta{background:var(--of-chip-beta-bg);color:var(--of-chip-beta-text)}
.of-chip-soon,.of-chip-planned{background:var(--of-chip-planned-bg);color:var(--of-chip-planned-text)}
.of-alert{padding:12px 16px;border-radius:10px;font-size:14px;border:1px solid transparent}
.of-alert-success{background:var(--of-success-bg);color:var(--of-success);border-color:var(--of-success)}
.of-alert-error{background:var(--of-danger-bg);color:var(--of-danger);border-color:var(--of-danger)}
.of-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.of-hint{font-size:12.5px;color:var(--of-text-muted);margin-top:6px}
.of-input,.of-select{width:100%;padding:11px 14px;border:1px solid var(--of-border);border-radius:10px;background:var(--of-surface);color:var(--of-text)}
.of-input:focus,.of-select:focus{outline:2px solid var(--of-accent);outline-offset:1px}
.of-field{display:flex;flex-direction:column}
.of-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.of-form{display:flex;flex-direction:column;gap:18px;max-width:720px}
.of-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* Tabs */
.of-tabbar{display:flex;gap:28px;border-bottom:1px solid var(--of-border)}
.of-tabbtn{padding:10px 2px;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--of-text-muted);font-weight:500;margin-bottom:-1px}
.of-tabbtn.of-active{color:var(--of-accent);font-weight:700;border-bottom-color:var(--of-accent)}
[data-theme="dark"] .of-tabbtn.of-active{color:var(--of-accent-on-dark)}
.of-panel{display:flex;flex-direction:column;gap:22px;padding-top:6px}

/* Dashboard-Kacheln */
.of-search{display:flex;align-items:center;gap:10px;background:var(--of-surface);border:1px solid var(--of-border);border-radius:20px;padding:10px 16px;color:var(--of-text-muted)}
.of-search input{border:none;background:transparent;outline:none;color:var(--of-text);width:150px;font-size:13.5px}
.of-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.of-tile{padding:24px;display:flex;flex-direction:column;gap:14px;min-height:196px}
.of-tile-top{display:flex;justify-content:space-between;align-items:flex-start}
.of-tile-icon{width:44px;height:44px;border-radius:12px;background:var(--of-icon-bg);color:var(--of-accent);display:flex;align-items:center;justify-content:center}
.of-tile-name{font-family:var(--of-font-display);font-size:17.5px;font-weight:600;margin-bottom:6px}
.of-tile-desc{font-size:14px;line-height:1.55;color:var(--of-text-muted)}
.of-tile-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--of-border);display:flex;justify-content:space-between;align-items:center;gap:10px}
.of-tile-stat{font-size:12.5px;color:var(--of-text-muted)}
.of-tile-open{display:inline-flex;align-items:center;gap:6px;color:var(--of-accent);font-size:13px;font-weight:700}
[data-theme="dark"] .of-tile-open{color:var(--of-accent-on-dark)}
.of-tile-soon{color:var(--of-text-muted);font-size:13px;font-weight:600}
a.of-tile-link:hover .of-tile{border-color:var(--of-accent)}
.of-empty{color:var(--of-text-muted);padding:40px;text-align:center}

/* Konfiguration: Theme- und Modus-Auswahl */
.of-seg{display:inline-flex;background:var(--of-bg);border:1px solid var(--of-border);border-radius:10px;padding:3px;gap:2px}
.of-seg label{padding:8px 16px;border-radius:8px;font-weight:600;font-size:13px;color:var(--of-text-muted);cursor:pointer}
.of-seg input{position:absolute;opacity:0;pointer-events:none}
.of-seg input:checked + span{display:inline-block}
.of-seg label:has(input:checked){background:var(--of-surface);color:var(--of-text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.of-theme-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.of-theme-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:10px;border-radius:14px;border:2px solid var(--of-border);background:var(--of-surface);cursor:pointer}
.of-theme-card input{position:absolute;opacity:0;pointer-events:none}
.of-theme-card:has(input:checked){border-color:var(--of-accent)}
.of-theme-swatch{height:64px;border-radius:9px;display:flex;align-items:flex-end;padding:8px}
.of-theme-swatch i{display:block;width:26px;height:8px;border-radius:4px;background:#fff;opacity:.9}
.of-theme-name{font-weight:700;font-size:13.5px}
.of-theme-desc{font-size:12px;color:var(--of-text-muted)}
.of-logo-preview{display:flex;align-items:center;gap:16px}
.of-logo-preview .of-nav-logo{width:56px;height:56px;font-size:20px;border-radius:14px}

/* Login */
.of-login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.of-login-card{width:380px;max-width:100%;padding:34px;display:flex;flex-direction:column;gap:18px}
.of-login-brand{display:flex;align-items:center;gap:11px}

@media (max-width:1100px){.of-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.of-theme-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v0.3.0: Menü-Knopf nur mobil sichtbar; Panel verhält sich am Desktop wie nicht vorhanden */
.of-nav{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin} /* niedrige Bildschirme (z. B. iPad quer): Seitenleiste scrollt, Abmelden bleibt erreichbar */
.of-nav-toggle{display:none}
.of-nav-panel{display:contents}
@media (max-width:760px){
  /* Kopfleiste mit Menü-Knopf; das Menü klappt darunter als Fenster auf */
  .of-app{flex-direction:column}
  .of-nav,.of-collapsed .of-nav{overflow:visible;width:100%;height:auto;position:sticky;top:0;z-index:60;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;padding:calc(8px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));gap:10px;border-right:none;border-bottom:1px solid var(--of-border);min-height:58px}
  .of-nav-brand,.of-collapsed .of-nav-brand{margin:0;min-width:0;flex:1 1 auto}
  .of-nav-version,#of-collapse-btn{display:none}
  .of-nav-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:46px;height:46px;border:1px solid var(--of-border);border-radius:12px;background:var(--of-surface);color:var(--of-text);padding:0;cursor:pointer}
  .of-nav-burger,.of-nav-burger::before,.of-nav-burger::after{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s}
  .of-nav-burger{position:relative}
  .of-nav-burger::before,.of-nav-burger::after{content:"";position:absolute;left:0}
  .of-nav-burger::before{top:-6px}.of-nav-burger::after{top:6px}
  .of-nav.is-open .of-nav-burger{background:transparent}
  .of-nav.is-open .of-nav-burger::before{top:0;transform:rotate(45deg)}
  .of-nav.is-open .of-nav-burger::after{top:0;transform:rotate(-45deg)}
  .of-nav-panel{display:none;position:fixed;left:0;right:0;top:calc(58px + env(safe-area-inset-top));bottom:0;z-index:59;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--of-nav-bg);padding:12px calc(16px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));border-top:1px solid var(--of-border)}
  .of-nav.is-open .of-nav-panel{display:flex}
  html.of-nav-open,html.of-nav-open body{overflow:hidden}
  .of-nav-links{flex-direction:column;gap:4px}
  .of-nav-link{min-height:50px;padding:12px 14px;font-size:16px}
  .of-nav-section{display:block;margin:14px 6px 2px}
  .of-collapsed .of-nav-label,.of-collapsed .of-nav-wordmark{display:inline}
  .of-nav-spacer{flex-grow:0;min-height:8px}
  .of-nav-divider{display:block}
  .of-nav-footer{flex-direction:column;align-items:stretch;gap:12px}
  .of-nav-user-info{display:flex}
  .of-nav-tools{flex-direction:row}
  .of-nav-tools .of-icon-btn{flex:1;width:auto;height:46px}
  .of-nav-logout{margin-top:0 !important;min-height:50px;display:flex;align-items:center;gap:12px;padding:12px 14px}
  .of-main{padding:20px calc(16px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));gap:20px}
  .of-tiles,.of-grid-2,.of-theme-cards{grid-template-columns:1fr}
  .of-page-head{flex-direction:column;align-items:stretch;gap:12px}
  .of-page-head h1{font-size:26px;line-height:1.2}
  .of-page-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}

  /* Bedienung mit dem Finger: Felder mind. 16 px (kein Auto-Zoom in iOS), Knöpfe mind. 44 px hoch */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea,.of-input,.of-select,.form-control,.form-select{font-size:16px !important;min-height:46px}
  textarea,textarea.of-input{min-height:96px}
  .of-btn-primary,.of-btn-secondary,.btn{min-height:46px;padding-top:11px;padding-bottom:11px;font-size:15px;justify-content:center}
  .of-icon-btn{width:44px;height:44px}
  .of-tabbtn{padding:13px 4px}
  .of-tabs,[role=tablist]{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .of-tabs::-webkit-scrollbar{display:none}
  .of-tabbtn{white-space:nowrap}
  input[type=checkbox],input[type=radio]{width:26px;height:26px}
  .of-table-wrap,.table-responsive{-webkit-overflow-scrolling:touch}
  .of-alert{font-size:15px}

  /* Tabellen als Karten: jede Zeile eine Karte, Spaltenkopf als Beschriftung */
  .of-table-wrap,.table-responsive{overflow:visible !important}
  .of-table-cards{display:block;width:100% !important;border:0 !important;background:transparent !important}
  .of-table-cards thead{display:none}
  .of-table-cards tbody,.of-table-cards tfoot,.of-table-cards tr{display:block;width:100%}
  .of-table-cards tr{border:1px solid var(--of-border) !important;border-radius:14px;padding:10px 14px;margin:0 0 10px;background:var(--of-surface) !important;box-shadow:none !important}
  .of-table-cards td{display:grid !important;grid-template-columns:minmax(0,38%) minmax(0,1fr);column-gap:12px;align-items:start;width:100% !important;padding:6px 0 !important;border:0 !important;background:transparent !important;text-align:right;overflow-wrap:anywhere;box-shadow:none !important}
  .of-table-cards td::before{content:attr(data-label);grid-column:1;grid-row:1;text-align:left;color:var(--of-text-muted);font-size:12.5px;font-weight:600;line-height:1.5}
  .of-table-cards td>*{grid-column:2;justify-self:end;max-width:100%}
  .of-table-cards td[data-label=""]{display:block !important;text-align:left}
  .of-table-cards td[data-label=""]::before{display:none}
  .of-table-cards td[data-label=""]>*{justify-self:auto}
  .of-table-cards td input.form-control,.of-table-cards td select,.of-table-cards td input.of-input{flex:1 1 auto;min-width:0}
  .of-table-cards tfoot tr{background:var(--of-bg) !important}

  /* Reiterleisten (Konfiguration u. a.): einzeilig wischbar statt die Seite zu verbreitern */
  .of-tabbar,div:has(>.of-tabbtn){display:flex;overflow-x:auto;flex-wrap:nowrap;gap:18px;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  div:has(>.of-tabbtn)::-webkit-scrollbar{display:none}
  .of-seg{display:flex;flex-wrap:wrap;width:100%}
  .of-seg label{flex:1 1 auto;text-align:center;padding:12px 14px}
}

/* ---- v0.2.0: Navigation-Gruppen, Seitenaktionen, Bausteine für Aktualisieren/Konto ---- */
.of-nav-section{margin:14px 14px 2px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--of-text-muted)}
.of-collapsed .of-nav-section{display:none}
a.of-nav-profile:hover .of-nav-user-name{text-decoration:underline}
.of-nav-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.of-nav-user-name{display:block}
/* Abmelden: abgesetzt, Orange aus dem Logo (#E2622B), Tinte als Textfarbe (4,97:1 Kontrast; Weiss hätte nur 3,5:1) */
html{--of-logout-bg:#E2622B;--of-logout-fg:#181B1A}
.of-nav-logout{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px;padding:11px 14px;border-radius:var(--of-radius);background:var(--of-logout-bg);color:var(--of-logout-fg);font-weight:700;font-size:14px;text-decoration:none;transition:filter .15s}
.of-nav-logout:hover{filter:brightness(1.07);color:var(--of-logout-fg)}
.of-nav-logout:focus-visible{outline:2px solid var(--of-text);outline-offset:2px}
.of-collapsed .of-nav-logout{padding:11px}
html[data-of-theme="onlinefabrik"] .of-nav-logout{border-radius:999px}
.of-avatar-row{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.of-avatar-preview{width:88px;height:88px;border-radius:50%;overflow:hidden;background:var(--of-icon-bg);color:var(--of-accent);display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--of-border)}
.of-avatar-preview img{width:100%;height:100%;object-fit:cover}
.of-page-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:flex-start}
.of-panel-card{padding:26px;display:flex;flex-direction:column;gap:16px}
.of-alert-warn{background:#FFF4E0;color:#8A5A00;border-color:#E8B04A}
[data-theme="dark"] .of-alert-warn{background:#3A2C0F;color:#F2C46B;border-color:#8A6A24}
.of-alert a{color:inherit;text-decoration:underline}
.of-dropzone{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:34px 20px;border:2px dashed var(--of-border);border-radius:var(--of-radius);color:var(--of-text-muted);cursor:pointer;position:relative}
.of-dropzone:hover,.of-dropzone.of-drag{border-color:var(--of-accent);color:var(--of-accent)}
.of-dropzone-title{font-weight:600;color:var(--of-text)}
.of-dropzone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.of-stats{display:flex;flex-wrap:wrap;gap:12px}
.of-stats div{display:flex;flex-direction:column;min-width:110px;padding:12px 16px;border:1px solid var(--of-border);border-radius:12px}
.of-stats strong{font-family:var(--of-font-display);font-size:22px}
.of-stats span{font-size:12.5px;color:var(--of-text-muted)}
.of-details summary{cursor:pointer;font-weight:600;padding:4px 0}
.of-filelist{margin:8px 0 0;padding:10px 14px 10px 30px;max-height:240px;overflow:auto;background:var(--of-bg);border:1px solid var(--of-border);border-radius:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.6}
.of-table-wrap{overflow-x:auto}
.of-table{width:100%;border-collapse:collapse;font-size:13.5px}
.of-table th{text-align:left;font-size:12px;font-weight:600;color:var(--of-text-muted);padding:8px 10px;border-bottom:1px solid var(--of-border);white-space:nowrap}
.of-table td{padding:10px;border-bottom:1px solid var(--of-border);vertical-align:middle}
.of-table tr:last-child td{border-bottom:none}
.of-actions-cell{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.of-inline{display:inline-flex;align-items:center;gap:6px;margin:0}
.of-check{font-size:12px;color:var(--of-text-muted);display:inline-flex;gap:4px;align-items:center;white-space:nowrap}
.of-danger{color:var(--of-danger)}
.of-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.of-checks li{display:flex;align-items:center;gap:10px}
.of-check-detail{margin-left:auto;color:var(--of-text-muted);font-size:13px}
.of-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.of-dot-ok{background:var(--of-success)}
.of-dot-bad{background:var(--of-danger)}
.of-qr-row{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.of-qr{padding:10px;background:#fff;border-radius:12px;border:1px solid var(--of-border);line-height:0}
.of-code{display:inline-block;margin-top:4px;padding:6px 10px;background:var(--of-bg);border:1px solid var(--of-border);border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;word-break:break-all}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
a.of-btn-secondary,a.of-btn-primary{text-decoration:none}
textarea.of-input{resize:vertical}


/* ======================================================================
   v0.2.1: Themes (Tokens je Theme) + Marke "nur Logo"
   ====================================================================== */

/* Theme "nordic" (Standard) */
html{
  --of-accent:#5E52D8;--of-accent-rgb:94,82,216;
  --of-brand-bg:var(--of-accent);--of-brand-fg:var(--of-accent-contrast);
  --of-primary:var(--of-accent);--of-primary-fg:var(--of-accent-contrast);--of-primary-hover:var(--of-accent);
  --of-circle-ext:#5E52D8;
}

/* Theme "onlinefabrik" – Tokens aus der Website (of.css): paper, fog, ink, petrol, lichen, orange, beige */
html[data-of-theme="onlinefabrik"]{
  --of-radius:22px;
  --of-font-display:'Sora','Segoe UI',system-ui,sans-serif;
  --of-font-body:'Instrument Sans','Segoe UI',system-ui,sans-serif;
}
html[data-of-theme="onlinefabrik"][data-theme="light"]{
  --of-bg:#FAFAF8;--of-surface:#FFFFFF;--of-border:#E0DDD4;--of-text:#181B1A;--of-text-muted:#62676A;
  --of-nav-bg:#F3EEE6;--of-nav-active-bg:#E3EBE8;--of-icon-bg:#E3EBE8;--of-accent-contrast:#FFFFFF;
  --of-accent:#2F5D62;--of-accent-rgb:47,93,98;--of-accent-on-dark:#BFCDB8;
  --of-brand-bg:#E2622B;--of-brand-fg:#FFFFFF;
  --of-primary:#181B1A;--of-primary-fg:#FFFFFF;--of-primary-hover:#2F5D62;
  --of-chip-live-bg:#E3EBE8;--of-chip-live-text:#1E3E42;--of-chip-beta-bg:#F1DFC4;--of-chip-beta-text:#8A3510;
  --of-chip-planned-bg:#F3EEE6;--of-chip-planned-text:#62676A;
  --of-danger:#B3261E;--of-danger-bg:#FBE9E7;--of-success:#1E6B4A;--of-success-bg:#E3EBE8;
  --of-info:#2F5D62;--of-info-bg:#E3EBE8;--of-warn:#8A3510;--of-warn-bg:#F6E7CF;
  --of-circle-ext:#2F5D62;
}
html[data-of-theme="onlinefabrik"][data-theme="dark"]{
  --of-bg:#141716;--of-surface:#1D2120;--of-border:#2C3331;--of-text:#F3EEE6;--of-text-muted:#A3ABA6;
  --of-nav-bg:#101312;--of-nav-active-bg:#24332F;--of-icon-bg:#24332F;--of-accent-contrast:#181B1A;
  --of-accent:#8FB5AA;--of-accent-rgb:143,181,170;--of-accent-on-dark:#BFCDB8;
  --of-brand-bg:#E2622B;--of-brand-fg:#FFFFFF;
  --of-primary:#F1DFC4;--of-primary-fg:#181B1A;--of-primary-hover:#FFFFFF;
  --of-chip-live-bg:#20322D;--of-chip-live-text:#BFCDB8;--of-chip-beta-bg:#3A2A1B;--of-chip-beta-text:#F1C28F;
  --of-chip-planned-bg:#232826;--of-chip-planned-text:#98A09B;
  --of-danger:#FF8F86;--of-danger-bg:#3A1F1C;--of-success:#8FD1AE;--of-success-bg:#1F332B;
  --of-info:#BFCDB8;--of-info-bg:#24332F;--of-warn:#F1C28F;--of-warn-bg:#3A2A1B;
  --of-circle-ext:#2F5D62;
}
/* Formen wie auf der Website: Pillen-Buttons, grosse Radien, ruhige Überschriften */
html[data-of-theme="onlinefabrik"] body{word-spacing:.1em}
html[data-of-theme="onlinefabrik"] h1,html[data-of-theme="onlinefabrik"] h2{letter-spacing:-.02em;word-spacing:0}
html[data-of-theme="onlinefabrik"] .of-btn-primary,
html[data-of-theme="onlinefabrik"] .of-btn-secondary{border-radius:999px;padding-left:1.35em;padding-right:1.35em}
html[data-of-theme="onlinefabrik"] .of-btn-primary:hover{filter:none;background:var(--of-primary-hover)}
html[data-of-theme="onlinefabrik"] .of-input,
html[data-of-theme="onlinefabrik"] .of-select{border-radius:14px}
html[data-of-theme="onlinefabrik"] .of-nav-logo{border-radius:12px}
html[data-of-theme="onlinefabrik"] .of-tile-icon{border-radius:16px}
html[data-of-theme="onlinefabrik"] .of-theme-card,
html[data-of-theme="onlinefabrik"] .of-dropzone{border-radius:22px}
html[data-of-theme="onlinefabrik"] .of-theme-swatch{border-radius:14px}
html[data-of-theme="onlinefabrik"] .of-search{border-radius:999px}
html[data-of-theme="onlinefabrik"] .of-seg{border-radius:999px}
html[data-of-theme="onlinefabrik"] .of-seg label{border-radius:999px}

/* Marke: nur Logo (Name der Umgebung leer) */
.of-nav-logo-only{display:block;height:40px;width:auto;max-width:100%;object-fit:contain;object-position:left center}
.of-nav-logoonly .of-nav-version{margin-left:2px}
.of-collapsed .of-nav-logo-only{max-width:40px;object-position:center}
.of-login-brand.of-nav-logoonly .of-nav-logo-only{height:52px}
.of-theme-swatch{min-height:64px}

.of-seg{align-self:flex-start}

.of-dropzone.of-busy{opacity:.6;pointer-events:none}
.of-dropzone.of-busy .of-dropzone-title::after{content:' – wird geprüft …'}

.of-avatar-row .of-field{flex:1 1 300px;min-width:0}

/* ---- v0.2.4: E-Mail Signatur ---- */
.of-form-wide{max-width:920px;display:flex;flex-direction:column;gap:18px}
.of-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55}
.of-editor-bar{display:flex;gap:8px;margin-bottom:8px}
.of-sig-logo-row{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.of-sig-logo-box{width:220px;min-height:96px;border:1px dashed var(--of-border);border-radius:var(--of-radius);background:#fff;display:flex;align-items:center;justify-content:center;padding:12px}
.of-sig-logo-box img{max-width:100%;max-height:120px;display:block}
.of-sig-logo-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-start;flex:1 1 280px;min-width:0}
.of-inline-upload{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.of-check-line{display:flex;gap:8px;align-items:center;font-size:13.5px}
.of-sig-preview{width:100%;height:480px;border:1px solid var(--of-border);border-radius:var(--of-radius);background:#fff;color-scheme:light}
button:disabled{opacity:.5;cursor:not-allowed}

.of-inline-upload input[type=file]{max-width:100%;flex:0 1 auto}
.of-sig-logo-actions .of-btn-secondary{align-self:flex-start}

.of-color-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.of-color-picker{width:44px;height:40px;padding:2px;border:1px solid var(--of-border);border-radius:10px;background:var(--of-surface);cursor:pointer}
.of-color-text{width:120px}
.of-swatches{display:flex;gap:6px}
.of-swatch{width:28px;height:28px;border-radius:50%;border:2px solid var(--of-surface);box-shadow:0 0 0 1px var(--of-border);cursor:pointer;padding:0}
.of-swatch:hover,.of-swatch:focus-visible{box-shadow:0 0 0 2px var(--of-text)}

/* Schalter (Checkbox als Toggle) und Icon-Vorschau, v0.6.1 */
.of-switch{display:inline-flex;align-items:center;gap:12px;cursor:pointer;font-weight:600;font-size:15px}
.of-switch input{position:absolute;opacity:0;width:1px;height:1px}
.of-switch-track{position:relative;flex:0 0 auto;width:48px;height:28px;border-radius:999px;background:var(--of-border);transition:background .15s}
.of-switch-track::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.of-switch input:checked + .of-switch-track{background:#2F5D62}
.of-switch input:checked + .of-switch-track::after{transform:translateX(20px)}
.of-switch input:focus-visible + .of-switch-track{outline:2px solid var(--of-text);outline-offset:3px}
.of-switch input:disabled + .of-switch-track{opacity:.45}
.of-switch input:disabled ~ .of-switch-label{color:var(--of-text-muted)}
.of-icon-grid{display:flex;flex-wrap:wrap;gap:18px;margin:12px 0}
.of-icon-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;color:var(--of-text-muted);max-width:130px;text-align:center}
.of-icon-chk{display:inline-flex;padding:8px;border-radius:12px;border:1px solid var(--of-border);background:repeating-conic-gradient(#e9e9ee 0 25%,#fff 0 50%) 0 0/14px 14px}

/* Logo für den Dunkelmodus: beide <img> liegen im Markup, sichtbar ist je nach Modus eines */
html .of-logo-dark{display:none}
html[data-theme="dark"] .of-logo-dark{display:block}
html[data-theme="dark"] .of-logo-light{display:none}
.of-logo-preview-dark{background:#181B1A;border-radius:var(--of-radius);padding:10px 14px}

/* Zustandspunkt in der Statuszeile einer Kachel (stat.php mit 'state') */
.of-tile-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;vertical-align:1px;background:#9A9AA3}
.of-dot-ok{background:var(--of-success)}
.of-dot-warn{background:#E8A317}
.of-dot-err{background:var(--of-danger)}
