/* ═══════════════════════════════════════════════════════════════════════════
   EINSTELLUNGEN – Neugestaltung nach dem Muster meyermail-redesign.html (27.09.2026)
   Alle Klassen tragen das Präfix es-, alle Tokens --es-*. Die Tokens werden auf die
   App-Variablen abgebildet, damit jedes Theme und der eigene Skin automatisch passen.
   Reihenfolge: 1 Tokens · 2 Rahmen · 3 Bausteine · 4 Blatt/Modal/Suche · 5 Darstellung ·
   6 Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Tokens */
#settingsView, #esOverlays {
  --es-accent: var(--primary);
  --es-on-accent: var(--text-inverse, #fff);
  --es-accent-ink: var(--primary);
  --es-accent-soft: var(--bg-active, var(--primary-light));
  --es-accent-line: var(--border);
  --es-bg: var(--bg-app);
  --es-surface: var(--bg-panel);
  --es-surface-2: var(--bg-app);
  --es-surface-3: var(--bg-hover);
  --es-text: var(--text-primary);
  --es-muted: var(--text-secondary);
  --es-subtle: var(--text-muted);
  --es-line: var(--border);
  --es-line-soft: var(--border-light);
  --es-green: var(--success);
  --es-green-soft: var(--primary-light);
  --es-danger: var(--danger);
  --es-warn: var(--warning);
  --es-warn-soft: #fff4dc;
  --es-danger-soft: #fdecec;
  --es-switch-off: #d8dce3;
  --es-shadow: var(--shadow-md);
  --es-shadow-lg: var(--shadow-xl);
  --es-radius: 16px;
  --es-sidebar: 248px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--es-text);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  #settingsView, #esOverlays {
    --es-accent-line: color-mix(in srgb, var(--primary) 20%, var(--border));
    --es-surface-2: color-mix(in srgb, var(--bg-panel) 60%, var(--bg-app));
    --es-green-soft: color-mix(in srgb, var(--success) 12%, var(--bg-panel));
    --es-warn-soft: color-mix(in srgb, var(--warning) 14%, var(--bg-panel));
    --es-danger-soft: color-mix(in srgb, var(--danger) 12%, var(--bg-panel));
    --es-switch-off: color-mix(in srgb, var(--text-muted) 45%, var(--bg-panel));
  }
  [data-theme="dark"] #settingsView, [data-theme="ultradark"] #settingsView, [data-theme="space"] #settingsView, [data-theme="forrest"] #settingsView,
  [data-theme="dark"] #esOverlays, [data-theme="ultradark"] #esOverlays, [data-theme="space"] #esOverlays, [data-theme="forrest"] #esOverlays {
    --es-accent-ink: color-mix(in srgb, var(--primary) 60%, #fff);
    --es-accent-line: color-mix(in srgb, var(--primary) 32%, var(--border));
  }
}
[data-theme="dark"] #settingsView, [data-theme="ultradark"] #settingsView, [data-theme="space"] #settingsView, [data-theme="forrest"] #settingsView,
[data-theme="dark"] #esOverlays, [data-theme="ultradark"] #esOverlays, [data-theme="space"] #esOverlays, [data-theme="forrest"] #esOverlays { color-scheme: dark; }
#settingsView *, #esOverlays * { box-sizing: border-box; }
#settingsView button, #settingsView input, #settingsView select, #settingsView textarea,
#esOverlays button, #esOverlays input, #esOverlays select, #esOverlays textarea { font: inherit; color: inherit; }
#settingsView button, #esOverlays button { cursor: pointer; }
#settingsView button:disabled, #esOverlays button:disabled { cursor: not-allowed; opacity: .43; }
#settingsView :focus-visible, #esOverlays :focus-visible { outline: 3px solid color-mix(in srgb, var(--es-accent) 52%, transparent); outline-offset: 3px; }
#settingsView input:focus, #settingsView select:focus, #settingsView textarea:focus,
#esOverlays input:focus, #esOverlays select:focus, #esOverlays textarea:focus { border-color: var(--es-accent) !important; box-shadow: 0 0 0 3px var(--es-accent-soft); outline: none; }
#settingsView a, #esOverlays a { color: var(--es-accent-ink); }
#settingsView h1, #settingsView h2, #settingsView h3, #settingsView p, #esOverlays h1, #esOverlays h2, #esOverlays h3, #esOverlays p { margin: 0; }
#settingsView h1 { font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: -1.1px; }
#settingsView h2, #esOverlays h2 { font-size: 16px; line-height: 1.35; letter-spacing: -.3px; font-weight: 650; }
#settingsView h3, #esOverlays h3 { font-size: 14px; font-weight: 630; }
.es-icon { width: 19px; height: 19px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }
.es-muted { color: var(--es-muted); }
.es-flex { display: flex; align-items: center; }
.es-gap-8 { gap: 8px; }
.es-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--es-green); flex-shrink: 0; }
.es-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* 2. Rahmen: Vollbild-Ansicht in der App, Ordnerleiste ausgeblendet */
body.einstellungen-offen #sidebar, body.einstellungen-offen #sidebarResize,
body.einstellungen-offen #mobileSidebarOverlay, body.einstellungen-offen #mobileFab { display: none !important; }
body.einstellungen-offen .main-content { flex: 1 1 100%; }
#settingsView.active { display: flex; flex-direction: row; background: var(--es-bg); }
.es-sidebar { width: var(--es-sidebar); flex: 0 0 var(--es-sidebar); background: var(--bg-sidebar, var(--es-surface)); border-right: 1px solid var(--es-line); display: flex; flex-direction: column; min-height: 0; }
.es-brand { height: 77px; padding: 0 22px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; border: 0; background: none; text-align: left; width: 100%; border-bottom: 1px solid transparent; }
.es-brand:hover { background: var(--es-surface-2); }
.es-brand img { height: 30px; width: auto; }
.es-brand .es-brand-skin { max-width: 40px; max-height: 30px; object-fit: contain; border-left: 1px solid var(--es-line); padding-left: 8px; }
.es-nav-scroll { overflow: auto; padding: 22px 15px; flex: 1; min-height: 0; }
.es-nav-label { font-size: 10px; font-weight: 650; color: var(--es-subtle); letter-spacing: 1.3px; margin: 0 13px 13px; }
.es-nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; padding: 12px 13px; border-radius: 9px; color: var(--es-muted); font-size: 13.5px; font-weight: 500; margin: 3px 0; min-height: 44px; transition: background .14s, color .14s; }
.es-nav-item:hover { background: var(--es-surface-2); color: var(--es-text); }
.es-nav-item.active { background: var(--es-accent-soft); color: var(--es-accent-ink); font-weight: 650; }
.es-nav-item > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-nav-count { margin-left: auto; border-radius: 6px; min-width: 21px; padding: 1px 5px; background: var(--es-surface-3); color: var(--es-muted); font-size: 10.5px; text-align: center; }
.es-nav-warn { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-left: auto; }
.es-nav-warn.gelb { background: #eab308; } .es-nav-warn.orange { background: #f97316; } .es-nav-warn.rot { background: #ef4444; }
.es-nav-item .es-chevron { width: 15px; height: 15px; margin-left: auto; transition: transform .2s; }
.es-nav-item[aria-expanded="true"] .es-chevron { transform: rotate(180deg); }
.es-subnav { padding: 2px 0 5px 33px; }
.es-subnav .es-nav-item { padding: 9px 13px; font-size: 12.5px; min-height: 35px; position: relative; }
.es-subnav .es-nav-item:before { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 1px; background: var(--es-line); }
.es-subnav .es-nav-item.active { background: transparent; }
.es-subnav .es-nav-item.active:after { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--es-accent); transform: translateY(-50%); }
.es-nav-divider { height: 1px; background: var(--es-line); margin: 20px 12px; }
.es-sidebar-account { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border: 0; border-top: 1px solid var(--es-line); background: none; text-align: left; width: 100%; flex-shrink: 0; }
.es-sidebar-account:hover { background: var(--es-surface-2); }
.es-sidebar-account > span:nth-child(2) { min-width: 0; flex: 1; }
.es-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--es-accent-soft); color: var(--es-accent-ink); font-size: 11px; font-weight: 680; flex-shrink: 0; }
.es-account-name { display: block; font-size: 12.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-account-sub { display: block; color: var(--es-muted); font-size: 10.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-sidebar-account > .es-icon { margin-left: auto; width: 16px; color: var(--es-muted); }
.es-app-nav { flex-shrink: 0; }
.es-app-nav .sidebar-footer { border-top: 1px solid var(--es-line); padding: 8px 10px; justify-content: center; background: var(--es-surface); }
.es-app-nav .sidebar-collapse-btn { display: none; }
.es-app-nav .nav-icon-btn { width: 40px; height: 40px; }
.es-scrim { display: none; }
.es-main-shell { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.es-topbar { height: 77px; flex-shrink: 0; border-bottom: 1px solid var(--es-line); background: var(--es-surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; }
.es-breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--es-muted); white-space: nowrap; font-size: 12px; min-width: 0; overflow: hidden; }
.es-breadcrumb > .es-icon { width: 13px; height: 13px; color: var(--es-subtle); }
.es-breadcrumb button { background: none; border: 0; color: var(--es-muted); padding: 3px 0; font-size: inherit; }
.es-breadcrumb button:hover { color: var(--es-accent-ink); }
.es-breadcrumb .es-current { color: var(--es-text); font-weight: 520; overflow: hidden; text-overflow: ellipsis; }
.es-topbar-right { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0; }
.es-search-trigger { display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: var(--bg-input, var(--es-surface-2)); border: 1px solid var(--es-line); border-radius: 8px; width: 267px; flex: 0 1 267px; min-width: 0; white-space: nowrap; color: var(--es-muted); font-size: 11.5px; text-align: left; }
.es-search-trigger > span { overflow: hidden; text-overflow: ellipsis; }
.es-search-trigger .es-icon { width: 16px; height: 16px; }
.es-assistent-knopf { white-space: nowrap; }
.es-assistent-knopf .es-icon { color: var(--es-accent-ink); }
.es-search-trigger kbd { margin-left: auto; font-size: 10px; font-family: inherit; background: var(--es-surface); border: 1px solid var(--es-line); border-radius: 4px; padding: 1px 5px; }
.es-mobile-menu { display: none !important; }
.es-main { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; outline: none; }
#settingsView .es-main:focus, #settingsView .es-main:focus-visible { outline: none; box-shadow: none; }
.es-content { max-width: 1264px; margin: 0 auto; padding: 37px 40px 30px; }
.es-page { animation: es-page-in .22s ease-out; }
@keyframes es-page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.es-page-header { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 28px; flex-wrap: wrap; }
.es-page-header > div:first-child { flex: 1 1 320px; min-width: 0; }
.es-page-header p { font-size: 13.5px; color: var(--es-muted); margin-top: 9px; }
.es-page-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; flex-wrap: wrap; }
.es-page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--es-muted); font-size: 10.5px; padding-top: 26px; }
.es-page-footer > span { display: flex; align-items: center; gap: 7px; }
.es-page-footer .es-icon { width: 13px; height: 13px; }
.es-page-footer button { background: none; border: 0; color: var(--es-muted); font-size: inherit; padding: 0; }
.es-page-footer button:hover { color: var(--es-accent-ink); }

/* 3. Bausteine */
.es-btn { min-height: 40px; padding: 9px 15px; border: 1px solid var(--es-line); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--es-surface); color: var(--es-text); font-size: 12px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.es-btn:hover:not(:disabled) { background: var(--es-surface-2); border-color: color-mix(in srgb, var(--es-muted) 32%, var(--es-line)); }
.es-btn:active:not(:disabled) { transform: translateY(1px); }
.es-btn .es-icon { width: 17px; height: 17px; }
.es-btn-primary { background: var(--es-accent); color: var(--es-on-accent); border-color: var(--es-accent); box-shadow: 0 3px 7px color-mix(in srgb, var(--es-accent) 12%, transparent); }
.es-btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--es-accent) 88%, black); border-color: color-mix(in srgb, var(--es-accent) 88%, black); }
.es-btn-ghost { background: transparent; border-color: transparent; color: var(--es-muted); }
.es-btn-danger { background: #ac2440; border-color: #ac2440; color: #fff; }
.es-btn-danger:hover:not(:disabled) { background: #921d36; border-color: #921d36; }
.es-btn-small { min-height: 33px; padding: 6px 10px; font-size: 11px; border-radius: 7px; }
.es-btn-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--es-accent-ink); font-size: 11.5px; font-weight: 600; }
.es-btn-link .es-icon { width: 14px; height: 14px; }
.es-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--es-muted); flex-shrink: 0; }
.es-icon-btn:hover { color: var(--es-text); background: var(--es-surface-3); }
.es-icon-btn .es-icon { width: 17px; height: 17px; }
.es-surface { background: var(--es-surface); border: 1px solid var(--es-line); border-radius: var(--es-radius); box-shadow: var(--es-shadow); overflow: hidden; }
.es-surface + .es-surface { margin-top: 23px; }
.es-panel-heading { display: flex; align-items: center; gap: 11px; padding: 21px 23px 13px; }
.es-panel-heading > div:not(.es-heading-icon):not(.es-panel-aktionen) { min-width: 0; flex: 1; }
.es-panel-heading p { font-size: 11.5px; color: var(--es-muted); margin-top: 3px; }
.es-panel-heading .es-panel-aktionen { margin-left: auto; display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.es-heading-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--es-surface-3); color: var(--es-muted); border-radius: 9px; flex-shrink: 0; }
.es-heading-icon .es-icon { width: 18px; height: 18px; }
.es-settings-list { padding: 0 23px 9px; }
.es-setting-link { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--es-line); color: inherit; }
.es-setting-link:last-child { border-bottom: 0; }
.es-setting-info { min-width: 0; flex: 1; }
.es-setting-name { display: block; font-size: 13px; font-weight: 600; }
.es-setting-description { display: block; color: var(--es-muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.es-setting-link > .es-icon:last-child { width: 15px; height: 15px; color: var(--es-subtle); transition: transform .16s; }
.es-setting-link:hover .es-setting-name { color: var(--es-accent-ink); }
.es-setting-link:hover > .es-icon:last-child { color: var(--es-accent-ink); transform: translateX(3px); }
.es-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font-size: 10px; font-weight: 540; padding: 3px 7px; background: var(--es-surface-3); color: var(--es-muted); white-space: nowrap; }
.es-pill-success { background: var(--es-green-soft); color: var(--es-green); }
.es-pill-warn { background: var(--es-warn-soft); color: #9a6200; }
.es-pill-danger { background: var(--es-danger-soft); color: #b12a46; }
.es-field { display: flex; flex-direction: column; gap: 7px; }
.es-field > label, .es-field-label { font-size: 11.5px; font-weight: 580; }
.es-field input, .es-field select, .es-field textarea, select.es-control, input.es-control, textarea.es-control { width: 100%; padding: 10px 12px; border: 1px solid var(--es-line); border-radius: 8px; background: var(--es-surface); color: var(--es-text); min-height: 40px; }
.es-field input::placeholder, input.es-control::placeholder, textarea.es-control::placeholder { color: var(--es-subtle); }
.es-field select, select.es-control { padding-right: 28px; }
.es-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.es-help { color: var(--es-muted); font-size: 11px; }
.es-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--es-line); }
.es-setting-row:last-child { border-bottom: 0; }
.es-setting-row.es-aus { opacity: .5; pointer-events: none; }
.es-sub-rows { padding-left: 18px; }
.es-sub-rows.es-aus { opacity: .5; pointer-events: none; }
.es-row-copy { min-width: 0; flex: 1; }
.es-row-title { display: block; font-size: 12.5px; font-weight: 540; }
.es-row-desc { display: block; color: var(--es-muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.es-row-steuerung { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.es-switch { appearance: none; -webkit-appearance: none; display: inline-block; position: relative; width: 35px; height: 21px; padding: 0; border: 0; border-radius: 30px; background: var(--es-switch-off); flex-shrink: 0; cursor: pointer; margin: 0; transition: background .17s; }
.es-switch:before { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0002; transition: transform .17s; }
.es-switch:checked { background: var(--es-accent) !important; }
.es-switch:checked:before { transform: translateX(14px); }
.es-switch:focus { box-shadow: none; border: 0; }
.es-segment { display: inline-flex; background: var(--es-surface-3); padding: 3px; border-radius: 8px; gap: 2px; flex-shrink: 0; }
.es-segment button { padding: 5px 10px; min-height: 28px; font-size: 10.5px; background: none; border: 0; border-radius: 6px; color: var(--es-muted); white-space: nowrap; }
.es-segment button[aria-pressed="true"], .es-segment button[aria-selected="true"] { background: var(--es-surface); color: var(--es-text); font-weight: 600; box-shadow: 0 1px 4px #0000000e; }
select.es-compact-select { max-width: 190px; border: 1px solid var(--es-line); background: var(--es-surface); color: var(--es-text); border-radius: 7px; padding: 7px 9px; font-size: 11px; }
.es-value-button { display: flex; align-items: center; gap: 7px; background: none; border: 0; font-size: 11px; color: var(--es-muted); padding: 4px 0 4px 5px; text-align: right; }
.es-value-button .es-icon { width: 13px; height: 13px; }
.es-value-button:hover { color: var(--es-accent-ink); }
.es-info-box { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 10px; background: var(--es-surface-2); border: 1px solid var(--es-line); color: var(--es-muted); font-size: 11.5px; line-height: 1.6; }
.es-info-box .es-icon { width: 17px; height: 17px; margin-top: 2px; }
.es-info-box strong, .es-info-box b { font-weight: 590; color: var(--es-text); }
.es-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.es-form-grid .es-field { min-width: 0; }
.es-color-field { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--es-line); gap: 15px; }
.es-color-field label { font-size: 12px; }
.es-color-field .es-color-hex { font-size: 10.5px; color: var(--es-subtle); margin-left: auto; font-variant-numeric: tabular-nums; }
.es-color-input, .es-color-field input[type="color"] { width: 38px; height: 29px; border: 1px solid var(--es-line); border-radius: 6px; padding: 3px; background: var(--es-surface); cursor: pointer; }
.es-upload-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px dashed var(--es-line); padding: 25px 15px; border-radius: 10px; margin: 16px 0; background: var(--es-surface-2); text-align: center; }
.es-upload-zone > .es-icon { color: var(--es-muted); width: 26px; height: 26px; }
.es-upload-zone p { font-size: 11.5px; font-weight: 550; }
.es-upload-zone small { font-size: 10px; color: var(--es-muted); }
.es-upload-zone img { max-height: 48px; max-width: 200px; object-fit: contain; }
.es-domain-list { margin: 14px 0; }
.es-domain-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--es-line); font-size: 11.5px; }
.es-domain-add { display: flex; gap: 8px; }
.es-domain-add input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--es-line); border-radius: 8px; background: var(--es-surface); color: var(--es-text); min-height: 40px; }
.es-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 29px 20px; border: 1px dashed var(--es-line); border-radius: 11px; margin: 16px 0; }
.es-empty-state > .es-icon { width: 28px; height: 28px; color: var(--es-subtle); margin-bottom: 12px; }
.es-empty-state h3 { margin-bottom: 5px; }
.es-empty-state p { color: var(--es-muted); font-size: 11.5px; }
.es-rule-card { padding: 15px; border: 1px solid var(--es-line); border-radius: 10px; margin-bottom: 12px; background: var(--es-surface); }
.es-rule-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.es-rule-card h3 { font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.es-rule-card p { font-size: 11px; color: var(--es-muted); margin-top: 7px; }
.es-rule-card .es-icon-btn { width: 26px; height: 26px; }
.es-rule-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.es-rule-form { border: 1px solid var(--es-line); padding: 17px; border-radius: 10px; margin-top: 18px; }
.es-rule-form .es-field { margin-bottom: 14px; }
.es-sheet-section-title { font-size: 10px; letter-spacing: .9px; text-transform: uppercase; color: var(--es-subtle); font-weight: 650; margin: 24px 0 9px; }
.es-sheet-section-title:first-child { margin-top: 0; }
.es-kbd { display: inline-block; font-family: inherit; font-size: 11px; background: var(--es-surface-2); border: 1px solid var(--es-line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; color: var(--es-text); white-space: nowrap; }
.es-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.es-chip { border: 1px solid var(--es-line); background: var(--es-surface); color: var(--es-muted); border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 550; }
.es-chip[aria-pressed="true"] { background: var(--es-accent-soft); border-color: var(--es-accent-line); color: var(--es-accent-ink); }
.es-spotlight { animation: es-spotlight 1.8s ease-out; border-radius: 10px; }
@keyframes es-spotlight { 0%, 30% { box-shadow: 0 0 0 3px var(--es-accent-line); } 100% { box-shadow: none; } }
.es-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 23px; border-top: 1px solid var(--es-line); background: var(--es-surface); }
.es-save-status { display: flex; gap: 8px; align-items: center; color: var(--es-muted); font-size: 11px; }
.es-save-status .es-icon { color: var(--es-green); width: 16px; height: 16px; }
.es-save-status.es-dirty .es-icon { color: #ad792f; }
.es-save-actions { display: flex; gap: 9px; }
.es-savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 17px; margin-top: 21px; border: 1px solid var(--es-line); background: var(--es-surface); border-radius: 12px; box-shadow: 0 6px 24px #181c2c09; }
.es-uebergang { margin-top: 4px; }

/* 4. Blatt (rechts), Modal, Suche – ungezoomt am <body>, unter den bestehenden Dialogen (250) */
#esOverlays { position: fixed; inset: 0; z-index: 240; pointer-events: none; display: none; }
#esOverlays.offen { display: block; }
#esOverlays > * { pointer-events: auto; }
.es-sheet-scrim, .es-modal-scrim, .es-search-scrim { position: absolute; inset: 0; background: #191d294d; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border: 0; padding: 0; }
.es-sheet { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 470px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; background: var(--es-surface); border: 1px solid var(--es-line); border-radius: 17px; box-shadow: 0 24px 90px #1118272b; animation: es-dialog-in .18s ease-out; overflow: hidden; }
.es-sheet.es-breit { width: 720px; }
@keyframes es-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.es-sheet-header { padding: 25px 25px 22px; border-bottom: 1px solid var(--es-line); display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-shrink: 0; }
.es-sheet-header > div { min-width: 0; flex: 1; display: flex; gap: 12px; align-items: flex-start; }
.es-sheet-header h2 { font-size: 19.5px; letter-spacing: -.5px; }
.es-sheet-header p { margin-top: 7px; color: var(--es-muted); font-size: 12px; line-height: 1.6; }
.es-sheet-header .es-icon-btn { margin-top: -4px; margin-right: -6px; }
.es-sheet-back { margin-top: 2px; }
.es-sheet-body { overflow: auto; padding: 23px 25px; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.es-sheet-body > .es-field { margin-bottom: 19px; }
.es-sheet-body > .es-info-box { margin-bottom: 23px; }
.es-sheet-body > .es-form-grid { margin-bottom: 19px; }
.es-sheet-body .es-setting-row { padding: 18px 0; }
.es-sheet-body .es-setting-row:first-child { padding-top: 0; }
.es-sheet-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 25px; border-top: 1px solid var(--es-line); flex-shrink: 0; }
.es-sheet-save-note { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--es-muted); }
.es-sheet-save-note .es-icon { width: 13px; height: 13px; color: var(--es-green); }
.es-sheet-footer-actions { display: flex; gap: 9px; margin-left: auto; }
.es-sheet-footer .es-btn { min-width: 90px; }
.es-modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 470px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--es-surface); border: 1px solid var(--es-line); border-radius: 17px; box-shadow: 0 24px 90px #1118272b; animation: es-dialog-in .18s ease-out; }
.es-modal.es-breit { width: 740px; }
.es-modal-head { padding: 23px 25px 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.es-modal-head h2 { font-size: 17.5px; }
.es-modal-content { padding: 4px 25px 24px; overflow: auto; }
.es-modal-content > p { color: var(--es-muted); font-size: 12.5px; line-height: 1.7; }
.es-modal-content .es-field { margin-top: 17px; }
.es-modal-content .es-info-box { margin-top: 14px; }
.es-modal-actions { padding: 15px 25px; border-top: 1px solid var(--es-line); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.es-search { position: absolute; left: 50%; top: 13vh; transform: translateX(-50%); width: 620px; max-width: calc(100vw - 32px); max-height: 74vh; display: flex; flex-direction: column; background: var(--es-surface); border: 1px solid var(--es-line); border-radius: 15px; box-shadow: 0 24px 90px #1118272b; animation: es-dialog-in .18s ease-out; }
.es-search-input-row { padding: 18px 20px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--es-line); }
.es-search-input-row > .es-icon { color: var(--es-accent-ink); width: 21px; height: 21px; }
.es-search-input-row input { border: 0 !important; background: transparent; color: var(--es-text); min-width: 0; flex: 1; font-size: 14px; box-shadow: none !important; outline: none; }
.es-search-input-row input::placeholder { color: var(--es-subtle); }
.es-search-esc { padding: 2px 6px; border: 1px solid var(--es-line); border-radius: 5px; font-size: 9.5px; color: var(--es-muted); background: var(--es-surface-2); }
.es-search-results { overflow: auto; padding: 9px; min-height: 80px; }
.es-search-section { color: var(--es-subtle); font-size: 9.5px; font-weight: 650; letter-spacing: .9px; padding: 11px 13px 7px; }
.es-search-result { display: flex; align-items: center; gap: 12px; padding: 12px 13px; width: 100%; background: transparent; border: 0; border-radius: 8px; text-align: left; color: inherit; }
.es-search-result.selected, .es-search-result:hover { background: var(--es-accent-soft); }
.es-search-result > .es-icon { color: var(--es-muted); width: 18px; height: 18px; }
.es-search-result.selected > .es-icon { color: var(--es-accent-ink); }
.es-search-result > span { min-width: 0; flex: 1; }
.es-search-result strong { display: block; font-size: 12px; font-weight: 580; }
.es-search-result small { display: block; font-size: 10.5px; color: var(--es-muted); margin-top: 2px; }
.es-result-enter { width: 14px !important; margin-left: auto; color: var(--es-subtle); opacity: 0; }
.es-search-result.selected .es-result-enter { opacity: 1; }
.es-search-footer { padding: 12px 21px; border-top: 1px solid var(--es-line); color: var(--es-subtle); font-size: 10px; display: flex; justify-content: space-between; gap: 10px; }
.es-search-footer kbd { font-family: inherit; margin-right: 4px; }

/* 5. Darstellung */
.es-appearance-look { padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: 36px; margin-bottom: 23px; }
.es-look-settings > p { color: var(--es-muted); font-size: 11.5px; margin-top: 5px; margin-bottom: 21px; }
.es-theme-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.es-theme-option { border: 1px solid var(--es-line); border-radius: 10px; padding: 7px; background: var(--es-surface); text-align: left; position: relative; transition: border-color .15s, box-shadow .15s; color: inherit; }
.es-theme-option[aria-checked="true"] { border-color: var(--es-accent); box-shadow: 0 0 0 1px var(--es-accent); }
.es-theme-thumb { height: 64px; width: 100%; display: grid; grid-template-columns: 24% 1fr; border: 1px solid var(--tl, #e4e7ed); border-radius: 5px; overflow: hidden; background: var(--tb, #f7f8fa); }
.es-thumb-side { border-right: 1px solid var(--tl, #e4e7ed); padding: 9px 4px; background: var(--ts, #fff); }
.es-thumb-side i { display: block; height: 3px; background: var(--tl, #e2e5eb); margin-bottom: 5px; border-radius: 2px; }
.es-thumb-side i:first-child { background: var(--tp, #6366f1); }
.es-thumb-main { padding: 9px 7px; }
.es-thumb-main b { display: block; width: 55%; height: 4px; background: var(--tl2, #cbd0da); border-radius: 2px; margin-bottom: 7px; }
.es-thumb-main i { display: block; height: 12px; border: 1px solid var(--tl, #e4e7ed); border-radius: 2px; background: var(--ts, #fff); margin-bottom: 4px; }
.es-theme-thumb.es-system { position: relative; }
.es-theme-thumb.es-system:after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: #252836; mix-blend-mode: multiply; opacity: .87; }
.es-theme-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 550; padding: 8px 2px 2px; }
.es-theme-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-theme-check { width: 14px !important; height: 14px !important; color: var(--es-accent-ink); opacity: 0; flex-shrink: 0; }
.es-theme-option[aria-checked="true"] .es-theme-check { opacity: 1; }
.es-accent-line { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.es-accent-line > span { font-size: 11.5px; font-weight: 550; }
.es-accent-line.es-aus .es-accent-options { opacity: .45; pointer-events: none; }
.es-accent-hinweis { flex-basis: 100%; font-size: 10.5px; color: var(--es-muted); }
.es-accent-options { display: flex; align-items: center; gap: 9px; }
.es-accent-swatch { position: relative; width: 22px; height: 22px; padding: 0; border: 2px solid var(--es-surface); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px transparent; }
.es-accent-swatch[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--swatch); }
.es-accent-swatch[aria-checked="true"]:after { content: ""; position: absolute; top: 5px; left: 5px; width: 6px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg); }
.es-accent-swatch.es-standard { background: conic-gradient(var(--es-accent) 0 50%, var(--es-surface-3) 50% 100%); }
.es-custom-accent { width: 24px; height: 24px; border: 1px solid var(--es-line); border-radius: 50%; position: relative; display: grid; place-items: center; color: var(--es-muted); overflow: hidden; }
.es-custom-accent input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.es-custom-accent .es-icon { width: 12px; height: 12px; pointer-events: none; }
.es-look-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--es-line); margin-top: 20px; padding-top: 15px; }
.es-look-bottom > span { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--es-muted); }
.es-look-bottom .es-icon { width: 12px; height: 12px; }
.es-look-bottom .es-btn-link { font-size: 10.5px; }
.es-live-look { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.es-preview-caption { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: var(--es-subtle); font-size: 9.5px; font-weight: 640; letter-spacing: .9px; }
.es-live-label { display: flex; align-items: center; gap: 5px; font-weight: 450; letter-spacing: 0; color: var(--es-muted); font-size: 9.5px; }
.es-live-label .es-dot { width: 5px; height: 5px; }
.es-mini-app { border: 1px solid var(--es-line); background: var(--es-surface); border-radius: 10px; overflow: hidden; box-shadow: var(--es-shadow-lg); min-width: 0; }
.es-mini-app-bar { padding: 9px 12px; border-bottom: 1px solid var(--es-line); display: flex; align-items: center; justify-content: space-between; background: var(--es-surface-2); }
.es-window-dots { display: flex; gap: 4px; }
.es-window-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--es-line); }
.es-mini-word { color: var(--es-muted); font-size: 8px; font-weight: 600; }
.es-mini-app-content { display: grid; grid-template-columns: 46px 1fr; min-height: 198px; }
.es-mini-app-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 15px 8px; border-right: 1px solid var(--es-line); background: var(--es-surface-2); color: var(--es-subtle); }
.es-mini-app-nav .es-icon { width: 12px; height: 12px; }
.es-mini-nav-active { color: var(--es-accent-ink); background: var(--es-accent-soft); border-radius: 4px; padding: 5px; display: grid; place-items: center; }
.es-mini-mail-area { min-width: 0; }
.es-mini-mail-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 13px 13px 11px; font-size: 10px; font-weight: 650; }
.es-mini-compose { display: flex; align-items: center; gap: 3px; font-size: 7px; background: var(--es-accent); color: var(--es-on-accent); border-radius: 4px; padding: 4px 6px; font-weight: 500; }
.es-mini-compose .es-icon { width: 8px; height: 8px; }
.es-mini-mail-row { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--es-line); }
.es-mini-mail-row.active { background: var(--es-accent-soft); }
.es-mini-mail-avatar { border-radius: 50%; width: 22px; height: 22px; font-size: 7px; display: grid; place-items: center; flex-shrink: 0; background: #eee9f4; color: #866b9b; }
.es-mini-mail-avatar.sage { background: #e8f0ec; color: #648873; }
.es-mini-mail-avatar.sand { background: #f5eee3; color: #a58a58; }
.es-mini-mail-text { min-width: 0; flex: 1; }
.es-mini-mail-sender { display: flex; justify-content: space-between; gap: 5px; font-size: 8px; font-weight: 600; line-height: 1.4; }
.es-mini-mail-sender time { color: var(--es-muted); font-size: 6px; font-weight: 400; flex-shrink: 0; }
.es-mini-mail-subject { font-size: 7px; color: var(--es-muted); margin-top: 3px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.es-mini-mail-recipient { font-size: 6px; margin-top: 3px; color: var(--es-subtle); }
.es-mini-app.compact .es-mini-mail-row { padding-top: 7px; padding-bottom: 7px; }
.es-mini-app.no-avatars .es-mini-mail-avatar { display: none; }
.es-mini-app.ungelesen .es-mini-mail-row.neu { background: var(--ungelesen-farbe, var(--ungelesen-std, #eaecf2)); }
.es-preview-footnote { text-align: center; font-size: 9.5px; color: var(--es-subtle); padding-top: 13px; }
.es-appearance-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-bottom: 23px; }
.es-appearance-groups .es-surface + .es-surface { margin-top: 0; }
.es-appearance-group { padding: 21px 24px 8px; }
.es-appearance-group h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-size: 14px; }
.es-appearance-group h2 .es-icon { color: var(--es-muted); width: 17px; height: 17px; }
.es-font-size-control { display: flex; align-items: center; gap: 10px; }
.es-font-size-control input[type="range"] { width: 108px; accent-color: var(--es-accent); cursor: pointer; }
.es-font-size-control output { font-size: 11px; min-width: 39px; color: var(--es-muted); font-variant-numeric: tabular-nums; text-align: right; }
.es-more-options { border: 1px solid var(--es-line); border-radius: 12px; background: var(--es-surface); overflow: hidden; }
.es-more-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; padding: 19px 24px; list-style: none; }
.es-more-options > summary::-webkit-details-marker { display: none; }
.es-more-options > summary h2 { font-size: 13px; }
.es-more-options > summary p { margin-top: 4px; font-size: 11px; color: var(--es-muted); }
.es-more-options > summary .es-icon { width: 17px; height: 17px; color: var(--es-muted); transition: transform .18s; flex-shrink: 0; }
.es-more-options[open] > summary > .es-icon { transform: rotate(180deg); }
.es-more-options[open] > summary { border-bottom: 1px solid var(--es-line); }
.es-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 38px; padding: 3px 24px 9px; }
.es-more-grid .es-setting-row { gap: 15px; }
.es-font-example { background: #fff; color: #282b32; border: 1px solid var(--es-line); border-radius: 9px; padding: 23px; margin: 23px 0; }
.es-font-example small { display: block; font-size: 10px; letter-spacing: .8px; color: #777c89; margin-bottom: 11px; font-family: Arial, sans-serif; }

/* 5b. Mail-Einstellungen */
.es-signature-hero { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 216px; border: 1px solid var(--es-accent-line); border-radius: var(--es-radius); overflow: hidden; background: linear-gradient(115deg, var(--es-surface) 8%, var(--es-accent-soft)); margin-bottom: 23px; position: relative; }
.es-hero-copy { padding: 26px 30px; position: relative; z-index: 1; }
.es-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 650; letter-spacing: 1.05px; color: var(--es-accent-ink); margin-bottom: 10px; }
.es-eyebrow .es-icon { width: 14px; height: 14px; }
.es-hero-copy h2 { font-size: 22.5px; line-height: 1.3; letter-spacing: -.65px; font-weight: 650; margin-bottom: 8px; }
.es-hero-copy > p { color: var(--es-muted); font-size: 12px; margin-bottom: 19px; max-width: 340px; }
.es-hero-preview-wrap { padding: 23px 30px 23px 10px; display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; }
.es-hero-preview-wrap:before, .es-hero-preview-wrap:after { content: ""; width: 300px; height: 300px; border: 1px solid var(--es-accent-line); border-radius: 50%; position: absolute; right: -48px; top: -29px; opacity: .8; pointer-events: none; }
.es-hero-preview-wrap:after { width: 375px; height: 375px; right: -84px; top: -66px; opacity: .45; }
.es-signature-mini { position: relative; z-index: 1; background: #fff; color: #282b32; border: 1px solid var(--es-line); border-radius: 11px; width: 100%; max-width: 369px; box-shadow: 0 8px 24px color-mix(in srgb, var(--es-accent) 6%, transparent); transform: rotate(-1deg); overflow: hidden; }
.es-signature-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eceef2; padding: 10px 15px; font-size: 10px; color: #777c89; }
.es-signature-mini-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-signature-mini-body { padding: 14px 18px 16px; max-height: 150px; overflow: hidden; position: relative; }
.es-signature-mini-body:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(to bottom, transparent, #fff); pointer-events: none; }
.es-signature-mini-inhalt { zoom: .72; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.4; }
.es-signature-mini-inhalt img { max-width: 100%; height: auto; }
.es-signature-mini-body > p { font-size: 11px; margin: 0; color: #777c89; }
.es-mail-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-bottom: 23px; }
.es-mail-groups .es-surface + .es-surface { margin-top: 0; }
.es-system-panel { padding: 20px 23px 21px; }
.es-system-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; }
.es-system-heading .es-icon { width: 16px; height: 16px; color: var(--es-muted); }
.es-system-heading h2 { font-size: 13px; font-weight: 600; }
.es-system-links { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.es-system-link { border: 0; background: none; padding: 0 20px; display: flex; gap: 12px; text-align: left; align-items: center; min-width: 0; border-right: 1px solid var(--es-line); color: inherit; }
.es-system-link:first-child { padding-left: 0; }
.es-system-link:last-child { padding-right: 0; border-right: 0; }
.es-system-link > .es-icon:first-child { width: 20px; height: 20px; color: var(--es-muted); }
.es-system-link > .es-icon:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--es-subtle); }
.es-system-link:hover .es-setting-name { color: var(--es-accent-ink); }
.es-system-link .es-setting-name { font-size: 12px; }
.es-system-link .es-setting-description { font-size: 10.5px; }
.es-regel-protokoll { margin-top: 22px; border: 1px solid var(--es-line); border-radius: 10px; padding: 0 14px; }
.es-regel-protokoll > summary { cursor: pointer; padding: 12px 0; font-size: 12px; font-weight: 600; }
.es-regel-protokoll .regel-tabelle { width: 100%; font-size: 11px; }
@media (max-width: 1220px) { .es-hero-copy { padding: 25px; } .es-hero-copy h2 { font-size: 20px; } .es-hero-preview-wrap { padding-right: 23px; } .es-system-link { gap: 9px; padding: 0 14px; } .es-system-link > .es-icon:first-child { width: 18px; height: 18px; } }
@media (max-width: 1060px) { .es-hero-copy h2 { font-size: 18px; } .es-hero-copy > p { font-size: 11px; } .es-signature-mini-body { padding: 12px 14px; } .es-system-link > .es-icon:first-child { display: none; } }
@media (max-width: 880px) { .es-hero-preview-wrap { display: none; } .es-signature-hero { grid-template-columns: 1fr; min-height: 0; } .es-hero-copy h2 { font-size: 21px; } .es-hero-copy > p { max-width: none; } .es-mail-groups { gap: 17px; } .es-system-links { grid-template-columns: 1fr; } .es-system-link { border-right: 0; border-bottom: 1px solid var(--es-line); padding: 14px 0 !important; } .es-system-link:first-child { padding-top: 0 !important; } .es-system-link:last-child { border: 0; padding-bottom: 0 !important; } .es-system-link > .es-icon:first-child { display: block; } }
@media (max-width: 570px) { .es-signature-hero { grid-template-columns: 1fr; margin-bottom: 19px; } .es-hero-copy { padding: 24px; } .es-hero-copy > p { max-width: 260px; } .es-signature-hero:after { content: ""; position: absolute; right: -100px; top: -55px; width: 230px; height: 230px; border: 1px solid var(--es-accent-line); border-radius: 50%; pointer-events: none; } .es-mail-groups { grid-template-columns: 1fr; } .es-system-panel { padding: 20px; } }

/* 5c. Signaturen */
.es-account-context { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 11.5px; color: var(--es-muted); flex-wrap: wrap; }
.es-account-context > .es-icon { width: 15px; height: 15px; }
.es-account-context strong { font-weight: 540; color: var(--es-text); }
.es-context-divider { height: 12px; width: 1px; background: var(--es-line); margin: 0 3px; }
.es-signature-workspace { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: 436px; }
.es-signature-library { background: var(--es-surface-2); border-right: 1px solid var(--es-line); padding: 23px 13px 17px; display: flex; flex-direction: column; min-width: 0; }
.es-library-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 9px; margin-bottom: 17px; }
.es-library-heading h2 { font-size: 9.5px; letter-spacing: 1px; font-weight: 660; color: var(--es-muted); }
.es-library-count { background: var(--es-surface-3); padding: 1px 5px; border-radius: 4px; font-size: 9.5px; color: var(--es-muted); }
.es-signature-item { width: 100%; background: transparent; border: 1px solid transparent; padding: 13px 11px; border-radius: 10px; margin-bottom: 7px; text-align: left; display: flex; align-items: flex-start; gap: 10px; color: inherit; }
.es-signature-item > .es-icon:last-child { width: 16px; height: 16px; margin-top: 2px; color: var(--es-accent-ink); flex-shrink: 0; }
.es-signature-item strong { display: block; font-size: 12px; font-weight: 580; overflow-wrap: anywhere; }
.es-signature-item small { display: block; font-size: 10px; line-height: 1.5; color: var(--es-muted); margin-top: 4px; }
.es-signature-item-copy { flex: 1; min-width: 0; }
.es-signature-item-icon { margin-top: 2px; color: var(--es-muted); }
.es-signature-item-icon .es-icon { width: 16px; height: 16px; }
.es-signature-item.selected .es-signature-item-icon { color: var(--es-accent-ink); }
.es-signature-item.selected { background: var(--es-surface); border-color: var(--es-accent-line); box-shadow: 0 2px 6px #00000003; }
.es-signature-item.selected strong { color: var(--es-accent-ink); }
.es-signature-item:hover:not(.selected) { background: var(--es-surface-3); }
.es-library-add { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--es-muted); font-size: 11px; padding: 8px 12px; }
.es-library-add:hover { color: var(--es-accent-ink); }
.es-library-add .es-icon { width: 14px; height: 14px; }
.es-library-tip { margin-top: auto; padding: 30px 10px 3px; color: var(--es-muted); font-size: 10.5px; line-height: 1.65; }
.es-library-tip .es-icon { width: 15px; height: 15px; display: block; margin-bottom: 8px; color: var(--es-subtle); }
.es-editor-main { min-width: 0; display: flex; flex-direction: column; }
.es-editor-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 18px 22px; border-bottom: 1px solid var(--es-line); }
.es-signature-name-field { min-width: 0; flex: 1 1 240px; }
.es-signature-name-field label { display: block; font-size: 9px; font-weight: 650; letter-spacing: .8px; color: var(--es-subtle); margin-bottom: 4px; white-space: nowrap; }
.es-signature-name-field input { width: 100%; max-width: 340px; border: 1px solid transparent; padding: 1px 4px 2px; margin-left: -4px; border-radius: 4px; background: transparent; color: var(--es-text); font-size: 14px; font-weight: 590; }
.es-signature-name-field input:hover:not([readonly]) { border-color: var(--es-line); }
.es-signature-name-field input[readonly] { color: var(--es-muted); cursor: default; }
.es-signature-name-field input.es-feld-fehler { border-color: var(--es-danger) !important; box-shadow: 0 0 0 3px var(--es-danger-soft); }
.es-editor-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.es-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; padding: 10px 16px; background: var(--es-surface-2); border-bottom: 1px solid var(--es-line); }
.es-editor-toolbar select { max-width: 102px; border: 0; background: transparent; color: var(--es-muted); border-radius: 5px; padding: 5px 4px; font-size: 11px; }
.es-editor-toolbar select.es-fontsize-select { max-width: 78px; }
.es-toolbar-divider { width: 1px; height: 19px; background: var(--es-line); margin: 0 6px; }
.es-editor-toolbar .es-icon-btn { width: 29px; height: 29px; }
.es-editor-toolbar .es-icon-btn[aria-pressed="true"] { color: var(--es-accent-ink); background: var(--es-accent-soft); }
.es-editor-toolbar .es-aus { opacity: .4; pointer-events: none; }
.es-color-tool { position: relative; overflow: hidden; }
.es-color-tool input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.es-color-tool:focus-within { outline: 2px solid var(--es-accent); }
.es-color-tool:after { content: ""; position: absolute; bottom: 4px; left: 8px; right: 8px; height: 2px; background: var(--es-accent); pointer-events: none; }
.es-color-tool-mark .es-mark { background: #ffeb3b; color: #000; padding: 0 3px; border-radius: 2px; font-size: 12px; font-weight: 600; line-height: 1; }
.es-color-tool-mark:after { background: #ffeb3b; }
.es-editor-extra-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 7px 16px; border-bottom: 1px solid var(--es-line); background: var(--es-surface-2); }
.es-signature-editor { padding: 35px 35px 32px; min-height: 265px; flex: 1; outline: none !important; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #282b32; background: #fff; overflow-wrap: anywhere; overflow: auto; }
.es-signature-editor:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--es-accent) 22%, transparent); }
.es-signature-editor:empty:before { content: attr(data-placeholder); color: #9ca1aa; pointer-events: none; }
.es-signature-editor img, .es-preview-signature img { max-width: 100%; height: auto; }
.es-signature-editor table { max-width: 100%; }
.es-editor-main ::selection { background: color-mix(in srgb, var(--es-accent) 20%, #fff); }
.es-editor-main textarea.es-sig-src, .es-editor-main .sig-html-src { width: 100% !important; min-height: 265px !important; flex: 1; border: 0 !important; border-radius: 0 !important; padding: 20px 24px !important; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace !important; background: var(--es-surface-2) !important; color: var(--es-text) !important; margin: 0 !important; resize: vertical; }
.es-editor-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 21px; border-top: 1px solid var(--es-line); font-size: 10px; color: var(--es-subtle); margin-top: auto; background: var(--es-surface); }
.es-editor-bottom .es-gross { color: var(--es-danger); font-weight: 600; }
.es-editor-bottom-actions { display: flex; align-items: center; gap: 15px; }
.es-editor-bottom .es-btn-link { color: var(--es-muted); font-size: 10.5px; }
.es-editor-bottom .es-btn-link:hover, .es-editor-bottom .es-btn-link[aria-pressed="true"] { color: var(--es-accent-ink); }
#esMobileSigActions { display: none; }
.es-email-preview { padding: 20px; background: var(--es-surface-2); min-height: 309px; flex: 1; }
.es-preview-message { background: #fff; border: 1px solid #e9eaf0; border-radius: 9px; color: #282b32; font-family: Arial, sans-serif; overflow: hidden; }
.es-preview-message-head { border-bottom: 1px solid #eceef2; padding: 12px 18px; font-size: 11px; color: #9499a5; }
.es-preview-message-head strong { color: #575c69; font-weight: normal; }
.es-preview-message-body { padding: 21px 23px; font-size: 13px; }
.es-preview-message-body > p { margin: 0 0 15px; }
.es-preview-signature { overflow-wrap: anywhere; font-size: 14px; }
.es-assignment-panel { margin-top: 22px; padding: 22px 25px 20px; }
.es-assignment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.es-assignment-heading p { margin-top: 4px; font-size: 11.5px; color: var(--es-muted); }
.es-assignment-heading > .es-icon { width: 20px; height: 20px; color: var(--es-subtle); margin-top: 3px; }
.es-assignment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.es-assignment-grid label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 530; }
.es-assignment-grid label .es-icon { width: 15px; height: 15px; color: var(--es-muted); }
.es-assignment-grid select { font-size: 12px; background: var(--es-surface-2); }
body.sig-window-mode .es-sidebar, body.sig-window-mode .es-topbar, body.sig-window-mode .es-scrim { display: none !important; }
body.sig-window-mode .es-content { max-width: none; }
@media (max-width: 1220px) { .es-signature-workspace { grid-template-columns: 192px minmax(0, 1fr); } .es-signature-library { padding-left: 9px; padding-right: 9px; } }
@media (max-width: 1060px) { .es-editor-header { padding: 16px; gap: 10px; } .es-editor-header-actions { gap: 4px; } .es-editor-header .es-segment button { padding: 5px 8px; } .es-signature-editor { padding: 28px; } .es-assignment-grid { gap: 12px; } }
@media (max-width: 880px) { .es-signature-workspace { grid-template-columns: 1fr; } .es-signature-library { border-right: 0; border-bottom: 1px solid var(--es-line); padding: 13px; } .es-library-heading, .es-library-tip, .es-library-add { display: none; } .es-signature-items { display: flex; gap: 8px; overflow: auto; padding: 1px; } .es-signature-item { margin: 0; flex: 0 0 191px; padding: 10px; } .es-editor-header { padding: 18px; } }
@media (max-width: 570px) { .es-account-context { font-size: 10.5px; gap: 7px; margin-top: -2px; } .es-context-divider, .es-context-label { display: none; } .es-editor-header { gap: 9px; padding: 15px; } .es-signature-name-field input { font-size: 13px; } .es-editor-header .es-segment button { padding: 5px 7px; font-size: 10px; } .es-editor-header-actions > .es-icon-btn, .es-editor-header-actions .es-sig-ki { display: none; } .es-editor-toolbar { padding: 8px 10px; gap: 2px; } .es-toolbar-divider { margin: 0 3px; } .es-editor-toolbar .es-icon-btn { width: 27px; } .es-editor-toolbar select { max-width: 84px; font-size: 10px; } .es-editor-toolbar .es-fontsize-select { max-width: 60px; } .es-signature-editor { padding: 29px 21px; min-height: 265px; } .es-editor-bottom { padding: 11px 15px; font-size: 9.5px; } .es-editor-bottom-actions { gap: 9px; } #esMobileSigActions { display: inline-flex; } .es-assignment-grid { grid-template-columns: 1fr; gap: 15px; } .es-assignment-panel { padding: 21px 21px 18px; margin-top: 19px; } }
@media (max-width: 380px) { .es-editor-header { flex-wrap: wrap; } .es-editor-header .es-signature-name-field { flex-basis: 100%; } }

/* 5d. KI / Assistenten */
.es-va-karte img { border-radius: 8px; }
.es-va-karte .es-rule-card-head > .es-flex { flex: 1; }
.es-rule-card.qr-row .es-control { min-height: 36px; }
.es-page-header-actions .es-pill { margin-right: 4px; }

/* 5e. Konten */
.es-sheet-footer-actions .es-btn-danger:first-child { margin-right: auto; }
.es-konto-typ { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--es-surface-3); color: var(--es-muted); min-width: 58px; text-align: center; }
.es-konto-typ-office365 { color: #5b5fc7; background: rgba(91, 95, 199, .12); }
.es-konto-typ-mailcow { color: var(--es-accent-ink, var(--es-accent)); background: var(--es-accent-soft); }
.es-konto-status { flex: 0 0 auto; }
.es-server-zeile { display: grid; grid-template-columns: 52px minmax(0, 1fr) 82px 118px; gap: 8px; align-items: center; }
.es-server-zeile label { font-size: 11px; font-weight: 600; color: var(--es-muted); }
.es-port-grid { display: grid; grid-template-columns: auto 82px 118px auto 82px 118px; gap: 8px 10px; align-items: center; margin-top: 10px; }
.es-port-grid span { font-size: 11px; font-weight: 600; color: var(--es-muted); }
.es-test-ergebnis { font-size: 11.5px; color: var(--es-muted); align-self: center; }
.es-test-ergebnis:empty { display: none; }
.es-info-box.es-info-warn { border-color: var(--es-warn); background: var(--es-warn-soft); color: var(--es-text); }
.es-details > summary { cursor: pointer; font-weight: 600; font-size: 12.5px; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.es-details > summary::-webkit-details-marker { display: none; }
.es-details > summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--es-subtle); border-bottom: 1.5px solid var(--es-subtle); transform: rotate(-45deg); transition: transform .16s; }
.es-details[open] > summary::before { transform: rotate(45deg); }
.es-anleitung { margin: 8px 0 0 18px; font-size: 11.5px; line-height: 1.6; }
.es-anleitung code, .es-info-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; background: var(--es-surface-3); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.es-dav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.es-dav-seite h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--es-subtle); margin-bottom: 8px; }
.es-dav-seite .es-field { margin-bottom: 8px; }
.es-dav-sel-kopf, .es-dav-sel-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 8px; align-items: center; }
.es-dav-sel-kopf { font-size: 10px; font-weight: 600; color: var(--es-subtle); text-transform: uppercase; letter-spacing: .5px; padding: 0 8px 6px; }
.es-dav-sel-liste { border: 1px solid var(--es-line); border-radius: 8px; max-height: 50vh; overflow: auto; }
.es-dav-sel-row { padding: 7px 8px; border-bottom: 1px solid var(--es-line); }
.es-dav-sel-row:last-child { border-bottom: 0; }
.es-dav-sel-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--es-accent); }
.es-dav-sel-row .dav-sel-orig { font-size: 12px; color: var(--es-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-dav-farbe { position: absolute; width: 10px; height: 10px; border-radius: 3px; margin-left: 20px; }
.es-dav-sel-row { position: relative; }
.es-dav-sel-row .es-dav-farbe + .dav-sel-orig { padding-left: 16px; }
.es-lade { display: flex; gap: 10px; align-items: center; color: var(--es-muted); font-size: 12px; padding: 20px 0; }
.es-lade .es-icon { animation: es-drehen 1s linear infinite; }
@keyframes es-drehen { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .es-dav-grid { grid-template-columns: 1fr; } .es-server-zeile { grid-template-columns: 1fr 1fr; } .es-server-zeile label { grid-column: 1 / -1; } .es-server-zeile input[type="text"] { grid-column: 1 / -1; } .es-port-grid { grid-template-columns: auto 82px 1fr; } }

/* 5f. System & Admin */
.es-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--es-line); }
.es-kv:last-child { border-bottom: 0; }
.es-kv span { color: var(--es-muted); }
.es-ok-text { color: var(--es-green); } .es-warn-text { color: var(--es-warn); }
.es-check-liste { display: flex; flex-direction: column; gap: 6px; }
.es-check-liste label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.es-check-liste input { width: 15px; height: 15px; accent-color: var(--es-accent); }
.es-technik .form-group { margin-bottom: 12px; } .es-technik label { font-size: 11px; font-weight: 600; color: var(--es-muted); display: block; margin-bottom: 4px; }
.es-technik .form-input { width: 100%; }
.es-eas-geraet { padding: 8px 0 8px 14px; border-top: 1px dashed var(--es-line); font-size: 12px; }
.es-eas-geraet-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.es-eas-geraete { margin-top: 8px; }
.es-eas-scope { margin-top: 10px; padding: 10px; border: 1px solid var(--es-line); border-radius: 8px; font-size: 12px; }
.es-eas-scope .form-input { width: 100%; }
.es-diag-badge { display: inline-block; min-width: 74px; text-align: center; color: #fff; border-radius: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; margin-right: 8px; }
.es-diag-liste { max-height: 44vh; overflow: auto; border: 1px solid var(--es-line); border-radius: 8px; padding: 4px 10px; }
.es-diag-zeile { padding: 4px 0; border-bottom: 1px solid var(--es-line); font-size: 12px; line-height: 1.4; }
.es-diag-zeile:last-child { border-bottom: 0; }
.es-info-kopf { text-align: center; padding: 10px 0 16px; border-bottom: 1px solid var(--es-line); margin-bottom: 16px; }
.es-info-kopf img { height: 44px; width: auto; margin-bottom: 8px; }
.es-info-kopf .es-muted { font-size: 12.5px; margin-bottom: 10px; }
.es-impressum { font-size: 12.5px; line-height: 1.7; max-width: 360px; margin: 0 auto; }
.es-impressum a { color: var(--es-accent-ink, var(--es-accent)); }
.es-admin { padding: 18px 23px; }
.es-admin .admin-users-table { width: 100%; font-size: 12.5px; }
#esAdminSegment { flex-wrap: wrap; }
.es-info-box p code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
@media (max-width: 760px) { .es-admin { padding: 14px; } }

/* 5g. Kalender, Adressbuch, Tastenkürzel */
.es-row-stapel { flex-direction: column; align-items: stretch; }
.es-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.es-chip-reihe { display: flex; gap: 6px; flex-wrap: wrap; }
.es-chip { position: relative; }
.es-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.es-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 6px 10px; border: 1px solid var(--es-line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--es-muted); background: var(--es-surface); cursor: pointer; user-select: none; }
.es-chip input:checked + span { background: var(--es-accent-soft); border-color: var(--es-accent-line); color: var(--es-accent-ink, var(--es-accent)); }
.es-chip input:focus-visible + span { outline: 2px solid var(--es-accent); outline-offset: 2px; }
.es-slot { padding: 12px; border: 1px solid var(--es-line); border-radius: 10px; margin-bottom: 10px; background: var(--es-surface-2); }
.es-slot-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--es-muted); margin-bottom: 8px; }
.es-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; max-height: 230px; overflow: auto; border: 1px solid var(--es-line); border-radius: 8px; padding: 6px 8px; }
.es-check-grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 260px; }
.es-check-grid label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; cursor: pointer; min-width: 0; }
.es-check-grid input { width: 15px; height: 15px; accent-color: var(--es-accent); flex-shrink: 0; }
.es-waste .form-group, .es-telefon .form-group { margin-bottom: 12px; }
.es-waste .form-group label, .es-telefon .form-group label { font-size: 11px; font-weight: 600; color: var(--es-muted); display: block; margin-bottom: 4px; }
.es-waste .form-group input, .es-waste .form-group select, .es-telefon .form-group input, .es-telefon .form-group select { width: 100%; }
.es-telefon .form-group > label input[type="checkbox"] { width: auto; }
.es-tel-zeile .es-row-steuerung { flex-wrap: wrap; justify-content: flex-end; }
.es-ac-liste { max-height: 38vh; overflow: auto; border: 1px solid var(--es-line); border-radius: 8px; padding: 2px 8px; margin-top: 6px; }
.es-kbd-btn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; min-width: 150px; padding: 6px 10px; border: 1px solid var(--es-line); border-radius: 8px; background: var(--es-surface-2); color: var(--es-text); cursor: pointer; }
.es-kbd-btn:hover { border-color: var(--es-accent-line); }
@media (max-width: 570px) { .es-check-grid { grid-template-columns: 1fr; } .es-kbd-btn { min-width: 0; } }

/* 5h. Einrichtungsassistent */
.es-setup-modal:focus, .es-setup-modal:focus-visible { outline: none; }
.es-setup-modal .es-modal-head { padding-bottom: 8px; }
.es-setup-modal .es-modal-head h2 { white-space: nowrap; }
.es-setup > p { color: var(--es-muted); font-size: 12.5px; line-height: 1.7; margin: 10px 0 14px; }
.es-setup-schritte { list-style: none; display: flex; gap: 18px; padding: 0; margin: 4px 0 6px; }
.es-setup-schritte li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--es-subtle); font-weight: 600; }
.es-setup-schritte li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--es-line); font-size: 11px; }
.es-setup-schritte li span .es-icon { width: 12px; height: 12px; }
.es-setup-schritte li.aktiv { color: var(--es-text); }
.es-setup-schritte li.aktiv span { background: var(--es-accent); border-color: var(--es-accent); color: var(--es-on-accent, #fff); }
.es-setup-schritte li.fertig span { background: var(--es-green-soft); border-color: transparent; color: var(--es-green); }
.es-setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.es-setup-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px 10px 12px; border: 1.5px solid var(--es-line); border-radius: 12px; background: var(--es-surface); color: var(--es-text); text-align: center; cursor: pointer; opacity: .78; transition: border-color .15s, background .15s, opacity .15s; }
.es-setup-tile:hover { opacity: 1; border-color: var(--es-accent-line); }
.es-setup-tile[aria-pressed="true"] { opacity: 1; border-color: var(--es-accent); background: var(--es-accent-soft); }
.es-setup-tile:focus-visible { outline: 2px solid var(--es-accent); outline-offset: 2px; }
.es-setup-ico { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--es-surface-3); color: var(--es-accent-ink, var(--es-accent)); flex-shrink: 0; }
.es-setup-ico .es-icon { width: 18px; height: 18px; }
.es-setup-tile[aria-pressed="true"] .es-setup-ico { background: var(--es-accent); color: var(--es-on-accent, #fff); }
.es-setup-name { font-weight: 700; font-size: 12.5px; }
.es-setup-desc { font-size: 11px; color: var(--es-muted); line-height: 1.35; min-height: 28px; }
.es-setup-tile .es-pill { margin-top: 2px; }
.es-setup-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--es-accent); color: var(--es-on-accent, #fff); display: none; align-items: center; justify-content: center; }
.es-setup-check .es-icon { width: 11px; height: 11px; }
.es-setup-tile[aria-pressed="true"] .es-setup-check { display: inline-flex; }
.es-setup-need { border: 1px solid var(--es-line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--es-surface); }
.es-setup-need-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.es-setup-need-kopf .es-setup-ico { width: 30px; height: 30px; border-radius: 8px; }
.es-setup-need-kopf .es-setup-ico .es-icon { width: 15px; height: 15px; }
.es-setup-need-kopf strong { font-size: 13px; }
.es-setup-need-kopf .es-segment { margin-left: auto; }
.es-setup-need > p { font-size: 12px; color: var(--es-muted); margin: 8px 0 0 40px; line-height: 1.55; }
.es-setup-need .es-field { margin: 12px 0 0 40px; }
@media (max-width: 570px) { .es-setup-grid { grid-template-columns: repeat(2, 1fr); } .es-setup-need > p, .es-setup-need .es-field { margin-left: 0; } .es-setup-need-kopf .es-segment { margin-left: 0; width: 100%; } .es-setup-schritte { gap: 12px; } }

/* 6. Responsive */
@media (min-width: 1600px) { .es-content { padding-top: 43px; } .es-setting-link { padding-top: 19px; padding-bottom: 19px; } }
@media (max-width: 1220px) {
  #settingsView, #esOverlays { --es-sidebar: 220px; }
  .es-brand { padding-left: 18px; }
  .es-topbar { padding: 0 28px; }
  .es-content { padding: 30px 28px; }
  .es-topbar-right { gap: 12px; }
  .es-search-trigger { width: 235px; }
  .es-appearance-look { gap: 25px; padding: 24px; }
  .es-theme-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .es-appearance-group { padding: 20px 20px 6px; }
  .es-appearance-group .es-setting-row { gap: 12px; }
  .es-font-size-control { gap: 6px; }
  .es-font-size-control input[type="range"] { width: 76px; }
}
@media (max-width: 1060px) {
  .es-breadcrumb { font-size: 11px; gap: 8px; }
  .es-search-trigger { width: 208px; }
  .es-search-trigger kbd { display: none; }
  #settingsView h1 { font-size: 28px; }
  .es-page-header .es-btn { padding: 9px 11px; font-size: 11px; }
  .es-appearance-look { grid-template-columns: 1fr; }
  .es-live-look { display: none; }
  .es-appearance-groups { gap: 18px; }
  .es-row-title { font-size: 11.5px; }
  .es-row-desc { font-size: 10.5px; }
  .es-appearance-group .es-setting-row { flex-wrap: wrap; gap: 10px; }
  .es-appearance-group .es-row-copy { flex: 1; min-width: 110px; }
}
/* Handy und Tablet (App-Grenze 1024 px): Seitenleiste als Schublade, Bottom-Nav bleibt sichtbar */
@media (max-width: 1024px) {
  #settingsView, #esOverlays { --es-sidebar: 248px; }
  .es-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; transform: translateX(-100%); transition: transform .2s; box-shadow: none; }
  body.es-nav-offen .es-sidebar { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.3); }
  .es-scrim { display: block; position: fixed; inset: 0; background: #11182755; z-index: 299; backdrop-filter: blur(2px); border: 0; padding: 0; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.es-nav-offen .es-scrim { opacity: 1; pointer-events: auto; }
  .es-topbar { height: 64px; padding: 0 21px; gap: 12px; }
  .es-mobile-menu { display: inline-flex !important; margin-left: -6px; width: 29px; }
  .es-breadcrumb { flex: 1; font-size: 11.5px; gap: 7px; min-width: 0; }
  .es-breadcrumb .es-root-crumb, .es-breadcrumb .es-root-chevron { display: none; }
  .es-topbar-right { gap: 5px; }
  .es-search-trigger { width: 34px; height: 34px; padding: 7px; justify-content: center; border: 0; background: transparent; }
  .es-search-trigger span, .es-search-trigger kbd { display: none; }
  .es-assistent-knopf { width: 34px; height: 34px; padding: 7px; justify-content: center; border: 0; background: transparent; }
  .es-assistent-knopf span { display: none; }
  .es-search-trigger .es-icon { width: 20px; height: 20px; }
  .es-content { padding: 27px 21px calc(24px + var(--mnav-h, 52px)); }
  .es-nav-scroll { padding-bottom: 12px; }
  .es-sidebar-account { padding-bottom: calc(17px + var(--mnav-h, 52px)); }
  .es-app-nav { display: none; }   /* auf dem Handy bleibt die untere Navigation der App */
  .es-page-header { margin-bottom: 23px; gap: 13px; }
  #settingsView h1 { font-size: 27px; letter-spacing: -.8px; }
  .es-page-header p { font-size: 12px; margin-top: 8px; max-width: 310px; }
  .es-page-header .es-btn { font-size: 11px; min-height: 37px; padding: 9px 11px; }
  .es-live-look { display: flex; max-width: 420px; width: 100%; margin: 3px auto 0; }
  .es-appearance-groups { grid-template-columns: 1fr; gap: 19px; margin-bottom: 19px; }
  .es-appearance-group .es-setting-row { flex-wrap: nowrap; }
  .es-appearance-group .es-row-copy { min-width: 0; }
  .es-font-size-control input[type="range"] { width: 78px; }
  .es-more-grid { grid-template-columns: 1fr; gap: 0 24px; }
  .es-page-footer { font-size: 10px; align-items: flex-start; }
  .es-page-footer > span { max-width: 240px; align-items: flex-start; }
  .es-sheet { bottom: calc(16px + var(--mnav-h, 52px)); }
  .es-savebar { bottom: calc(10px + var(--mnav-h, 52px)); }
  .es-modal { max-height: calc(100vh - 24px - var(--mnav-h, 52px)); top: calc((100vh - var(--mnav-h, 52px)) / 2); }
}
@media (max-width: 880px) {
  .es-panel-heading { padding: 18px 18px 10px; }
  .es-settings-list { padding-left: 18px; padding-right: 18px; }
  .es-heading-icon { display: none; }
}
@media (max-width: 570px) {
  .es-page-header { align-items: flex-start; }
  .es-page-header .es-button-label { display: none; }
  .es-page-header .es-btn:has(.es-button-label) { width: 37px; padding: 0; }   /* nur Symbol, wenn die Beschriftung ausgeblendet ist */
  .es-panel-heading { padding: 20px 21px 11px; }
  .es-settings-list { padding: 0 21px 6px; }
  .es-setting-link { padding: 16px 0; }
  .es-appearance-look { padding: 22px 20px; gap: 24px; }
  .es-theme-options { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .es-theme-thumb { height: 59px; }
  .es-theme-option { padding: 6px; }
  .es-accent-line { margin-top: 21px; }
  .es-accent-line > span { font-size: 11px; }
  .es-look-bottom { gap: 8px; }
  .es-appearance-group { padding: 21px 21px 6px; }
  .es-row-title { font-size: 12.5px; }
  .es-row-desc { font-size: 11px; }
  .es-font-size-control input[type="range"] { width: 102px; }
  .es-more-options > summary { padding: 18px 20px; }
  .es-more-grid { grid-template-columns: minmax(0, 1fr); padding: 0 20px 7px; }
  .es-more-grid .es-setting-row { min-width: 0; flex-wrap: wrap; }
  .es-more-grid .es-row-copy { min-width: 100px; }
  select.es-compact-select { max-width: 100% !important; }
  .es-sheet { top: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border: 0; border-radius: 0; }
  .es-sheet-header { padding: 23px 22px 20px; }
  .es-sheet-body { padding: 22px; }
  .es-sheet-footer { padding: 16px 22px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .es-modal-head { padding: 21px 20px 12px; }
  .es-modal-content { padding: 3px 20px 21px; }
  .es-modal-actions { padding: 14px 20px; }
  .es-search { top: 8vh; max-height: 80vh; }
  .es-search-input-row { padding: 17px; }
  .es-search-input-row input { font-size: 12.5px; }
  .es-form-grid { grid-template-columns: 1fr; }
  .es-savebar { padding: 12px; bottom: 10px; flex-wrap: wrap; gap: 10px; }
  .es-save-actions { width: 100%; justify-content: space-between; gap: 9px; }
  .es-save-actions .es-btn-primary { flex: 1; }
}
@media (max-width: 380px) {
  .es-page-header { flex-wrap: wrap; }
  .es-more-grid .es-setting-row > select { width: 100%; max-width: none !important; }
  .es-look-bottom { flex-wrap: wrap; }
  .es-font-size-control input[type="range"] { width: 75px; }
  .es-theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { #settingsView *, #esOverlays *, #settingsView *::before, #esOverlays *::before { animation: none !important; transition: none !important; } }
@media print { .es-sidebar, .es-topbar, .es-page-footer, .es-savebar, #esOverlays { display: none !important; } .es-content { max-width: none; padding: 0; } }

/* Abmelden-Knopf in der Einstellungs-Seitenleiste (immer sichtbar, klar erkennbar) */
#settingsView .es-sidebar-logout { display:flex; align-items:center; gap:10px; width:100%; padding:14px 20px; border:0; border-top:1px solid var(--es-line); background:none; text-align:left; cursor:pointer; color:var(--es-danger,#dc2626); font-size:14px; font-weight:600; flex-shrink:0; transition:background .12s; }
#settingsView .es-sidebar-logout:hover { background:var(--es-surface-2); }
#settingsView .es-sidebar-logout .es-icon { width:18px; height:18px; flex-shrink:0; color:inherit; }
@media (max-width: 900px) { #settingsView .es-sidebar-logout { padding-bottom: calc(14px + var(--mnav-h, 52px)); } .es-sidebar-account { padding-bottom: 17px; } }
