/*
 * Howanti Mail – dunkler Look (Lila, Glas) für den goconsult-Skin
 * Wird in templates/includes/layout.html NACH styles.css geladen und gilt auch in eingebetteten Rahmen (html.iframe).
 * Ergänzende Bausteine (Kopfleiste, Avatare, Pillen, Schublade, Tab-Leiste …) baut look.js.
 * Icons: eigene Linien-Icons als SVG-Masken (Block unten wird von Hand gepflegt).
 */
:root {
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  --i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  --i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E");
  --i-tasks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='3'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
  --i-notes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5Z'/%3E%3Cpath d='M15 3v5a1 1 0 0 0 1 1h5M7 13h6M7 17h9'/%3E%3C/svg%3E");
  --i-vault: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 8.5V7M12 17v-1.5M8.5 12H7M17 12h-1.5M6.5 21v1M17.5 21v1'/%3E%3C/svg%3E");
  --i-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1.5'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1.5'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1.5'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1.5'/%3E%3C/svg%3E");
  --i-chev-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
  --i-chev-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --i-chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --i-chevs-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5M18 17l-5-5 5-5'/%3E%3C/svg%3E");
  --i-chevs-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m13 17 5-5-5-5M6 17l5-5-5-5'/%3E%3C/svg%3E");
  --i-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
  --i-inbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E");
  --i-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
  --i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");
  --i-spam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86z'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
  --i-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M10 11v6M14 11v6'/%3E%3C/svg%3E");
  --i-archive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8M10 12h4'/%3E%3C/svg%3E");
  --i-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E");
  --i-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z'/%3E%3C/svg%3E");
  --i-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16'/%3E%3Cpath d='M16 16h5v5'/%3E%3C/svg%3E");
  --i-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4'/%3E%3C/svg%3E");
  --i-filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54z'/%3E%3C/svg%3E");
  --i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E");
  --i-clip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
  --i-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
  --i-reply: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M20 20v-7a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E");
  --i-reply-all: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 17-5-5 5-5M12 17l-5-5 5-5'/%3E%3Cpath d='M22 18v-2a4 4 0 0 0-4-4H7'/%3E%3C/svg%3E");
  --i-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 14 5-5-5-5'/%3E%3Cpath d='M4 20v-7a4 4 0 0 1 4-4h12'/%3E%3C/svg%3E");
  --i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.59 2.59A2 2 0 0 0 11.17 2H4a2 2 0 0 0-2 2v7.17a2 2 0 0 0 .59 1.42l8.7 8.7a2.43 2.43 0 0 0 3.42 0l6.58-6.58a2.43 2.43 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.2'/%3E%3C/svg%3E");
  --i-more-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.3'/%3E%3Ccircle cx='19' cy='12' r='1.3'/%3E%3Ccircle cx='5' cy='12' r='1.3'/%3E%3C/svg%3E");
  --i-more-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.3'/%3E%3Ccircle cx='12' cy='5' r='1.3'/%3E%3Ccircle cx='12' cy='19' r='1.3'/%3E%3C/svg%3E");
  --i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  --i-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  --i-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
  --i-printer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect width='12' height='8' x='6' y='14'/%3E%3C/svg%3E");
  --i-threads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
  --i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  --i-star-voll: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E");
  --i-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3C/svg%3E");
}

/* ======================================================================
   1. Grundfarben, Schrift, Zoom-Sperre, Fokus
   ====================================================================== */
:root {
  --gc-bg: #0d0b1e;
  --gc-bg2: #120f2a;
  --gc-panel: rgba(255, 255, 255, .045);
  --gc-panel2: rgba(255, 255, 255, .065);
  --gc-fest: #17142f;          /* deckende Fläche für Menüs und Dialoge */
  --gc-fest2: #1e1a3b;
  --gc-rand: rgba(255, 255, 255, .08);
  --gc-rand2: rgba(255, 255, 255, .14);
  --gc-text: #f5f3ff;
  --gc-text2: #a5a3c2;
  --gc-akzent: #7c5cff;        /* einheitlicher Akzent: Rahmen, Icons, Ringe */
  --gc-lila: #7c5cff;
  --gc-lila2: #7457f5;
  --gc-lila-tief: #5b3fe0;     /* Vollfläche hinter weißem Text: 6,5:1 */
  --gc-rand-feld: rgba(255, 255, 255, .38);  /* Rahmen von Bedienelementen ≥ 3:1 */
  --gc-lila-hell: #c4b5fd;
  --gc-blau: #3b82f6;
  --gc-link: #b9a8ff;
  --gc-aktiv: rgba(124, 92, 255, .32);
  --gc-verlauf: linear-gradient(135deg, #5b3fe0 0%, #7457f5 100%);  /* weiß: 6,5 → 4,75:1 */
  --gc-schrift: "Onest Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gc-kopf-h: 64px;
  --gc-tabs-h: 68px;
  color-scheme: dark;
}
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
* { touch-action: pan-x pan-y; scrollbar-color: rgba(255, 255, 255, .18) transparent; scrollbar-width: thin; }
img { -webkit-user-drag: none; }
html, body { background: var(--gc-bg); color: var(--gc-text); font-family: var(--gc-schrift); }
body { -webkit-touch-callout: none; }
a { color: var(--gc-link); }
a:hover { color: #a9c9ff; }
:focus-visible { outline: 2px solid var(--gc-lila-hell) !important; outline-offset: 2px; }
::selection { background: rgba(124, 92, 255, .45); color: #fff; }

/* Masken-Icons: .gc-i ist ein eigenes Icon, die übrigen Selektoren ersetzen Elastic-Font-Icons */
.gc-i {
  display: inline-block; flex: none; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.gc-i[data-i] { --i: none; }
.gc-i[data-i="mail"] { --i: var(--i-mail); } .gc-i[data-i="users"] { --i: var(--i-users); }
.gc-i[data-i="calendar"] { --i: var(--i-calendar); } .gc-i[data-i="tasks"] { --i: var(--i-tasks); }
.gc-i[data-i="notes"] { --i: var(--i-notes); } .gc-i[data-i="vault"] { --i: var(--i-vault); }
.gc-i[data-i="settings"] { --i: var(--i-settings); } .gc-i[data-i="grid"] { --i: var(--i-grid); }
.gc-i[data-i="chev-left"] { --i: var(--i-chev-left); } .gc-i[data-i="chev-right"] { --i: var(--i-chev-right); }
.gc-i[data-i="chev-down"] { --i: var(--i-chev-down); } .gc-i[data-i="pen"] { --i: var(--i-pen); }
.gc-i[data-i="inbox"] { --i: var(--i-inbox); } .gc-i[data-i="file"] { --i: var(--i-file); }
.gc-i[data-i="send"] { --i: var(--i-send); } .gc-i[data-i="spam"] { --i: var(--i-spam); }
.gc-i[data-i="trash"] { --i: var(--i-trash); } .gc-i[data-i="archive"] { --i: var(--i-archive); }
.gc-i[data-i="folder"] { --i: var(--i-folder); } .gc-i[data-i="cloud"] { --i: var(--i-cloud); }
.gc-i[data-i="refresh"] { --i: var(--i-refresh); } .gc-i[data-i="sliders"] { --i: var(--i-sliders); }
.gc-i[data-i="filter"] { --i: var(--i-filter); } .gc-i[data-i="star"] { --i: var(--i-star); }
.gc-i[data-i="star-voll"] { --i: var(--i-star-voll); } .gc-i[data-i="clip"] { --i: var(--i-clip); }
.gc-i[data-i="arrow-left"] { --i: var(--i-arrow-left); } .gc-i[data-i="reply"] { --i: var(--i-reply); }
.gc-i[data-i="reply-all"] { --i: var(--i-reply-all); } .gc-i[data-i="forward"] { --i: var(--i-forward); }
.gc-i[data-i="tag"] { --i: var(--i-tag); } .gc-i[data-i="more-h"] { --i: var(--i-more-h); }
.gc-i[data-i="more-v"] { --i: var(--i-more-v); } .gc-i[data-i="download"] { --i: var(--i-download); }
.gc-i[data-i="search"] { --i: var(--i-search); } .gc-i[data-i="menu"] { --i: var(--i-menu); }
.gc-i[data-i="logout"] { --i: var(--i-logout); } .gc-i[data-i="info"] { --i: var(--i-info); }
.gc-i[data-i="plus"] { --i: var(--i-plus); } .gc-i[data-i="x"] { --i: var(--i-x); }
.gc-i[data-i="pdf"] { --i: var(--i-pdf); } .gc-i[data-i="user"] { --i: var(--i-user); }
.gc-i[data-i="printer"] { --i: var(--i-printer); } .gc-i[data-i="external"] { --i: var(--i-external); }

/* Elastic-Knöpfe mit Masken-Icon statt Font-Icon */
#taskmenu a:before, #mailtoolbar a.button:before, #mailtoolbar > a:before, #mailtoolbar .dropbutton > a.button:before,
#messagelist-header a.button:before, #toolbar-list-menu a:before, #layout-content > .header a.back-list-button:before,
#layout-list > .header a.task-menu-button:before, #layout-list > .header a.back-sidebar-button:before,
#layout-sidebar > .header a.sidebar-menu:before, #layout-sidebar > .header a.back-list-button:before,
#mailboxlist li > a:before, .pagenav a:before, #gc-ordner-plus:before {
  content: "" !important; font-family: inherit !important;
  -webkit-mask: var(--gi, var(--i-folder)) center / 20px 20px no-repeat; mask: var(--gi, var(--i-folder)) center / 20px 20px no-repeat;
  background-color: currentColor;
}
#taskmenu a.mail { --gi: var(--i-mail); } #taskmenu a.contacts { --gi: var(--i-users); }
#taskmenu a.calendar { --gi: var(--i-calendar); } #taskmenu a.tasklist { --gi: var(--i-tasks); }
#taskmenu a.gc-notizen { --gi: var(--i-notes); } #taskmenu a.gc-tresor { --gi: var(--i-vault); }
#taskmenu a.settings { --gi: var(--i-settings); } #taskmenu a.compose { --gi: var(--i-pen); }
#taskmenu a.about { --gi: var(--i-info); } #taskmenu a.logout { --gi: var(--i-logout); }
#taskmenu a:not(.mail):not(.contacts):not(.calendar):not(.tasklist):not(.gc-notizen):not(.gc-tresor):not(.settings):not(.compose):not(.about):not(.logout) { --gi: var(--i-grid); }
#mailtoolbar a.reply { --gi: var(--i-reply); } #mailtoolbar a.reply-all { --gi: var(--i-reply-all); }
#mailtoolbar a.forward { --gi: var(--i-forward); } #mailtoolbar a.delete { --gi: var(--i-trash); }
#mailtoolbar a.archive { --gi: var(--i-archive); } #mailtoolbar a.junk { --gi: var(--i-spam); }
#mailtoolbar a.notjunk { --gi: var(--i-inbox); } #mailtoolbar a.markmessage { --gi: var(--i-tag); }
#mailtoolbar a.more { --gi: var(--i-more-h); } #mailtoolbar a.print { --gi: var(--i-printer); }
#mailtoolbar a.compose { --gi: var(--i-pen); } #mailtoolbar a.prev { --gi: var(--i-chev-left); } #mailtoolbar a.next { --gi: var(--i-chev-right); }
#mailtoolbar a.dropdown { --gi: var(--i-chev-down); }
#messagelist-header a.refresh { --gi: var(--i-refresh); } #toolbar-list-menu a.select { --gi: var(--i-select); }
#toolbar-list-menu a.options { --gi: var(--i-sliders); } #toolbar-list-menu a.threads { --gi: var(--i-threads); }
#messagelist-header a.toolbar-menu-button, #messagelist-header a.toolbar-list-button { --gi: var(--i-more-v); }
#layout-list > .header a.task-menu-button { --gi: var(--i-menu); } #layout-list > .header a.back-sidebar-button { --gi: var(--i-folder); }
#layout-content > .header a.back-list-button, #layout-sidebar > .header a.back-list-button { --gi: var(--i-arrow-left); }
#layout-sidebar > .header a.sidebar-menu { --gi: var(--i-more-v); }
#gc-ordner-plus { --gi: var(--i-plus); }
#mailboxlist li.inbox > a { --gi: var(--i-inbox); } #mailboxlist li.drafts > a { --gi: var(--i-file); }
#mailboxlist li.sent > a { --gi: var(--i-send); } #mailboxlist li.junk > a { --gi: var(--i-spam); }
#mailboxlist li.trash > a { --gi: var(--i-trash); } #mailboxlist li.archive > a { --gi: var(--i-archive); }
.pagenav a.firstpage { --gi: var(--i-chevs-left); } .pagenav a.prevpage { --gi: var(--i-chev-left); }
.pagenav a.nextpage { --gi: var(--i-chev-right); } .pagenav a.lastpage { --gi: var(--i-chevs-right); }

/* ======================================================================
   2. Logo „G Howanti Mail“
   ====================================================================== */
.gc-marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: #fff !important; white-space: nowrap; }
.gc-marke svg { width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: 0 0 18px rgba(124, 92, 255, .45); }
.gc-marke .gc-marke-text { font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.gc-marke .gc-marke-text b { font-weight: 700; color: var(--gc-blau); }
.gc-marke .gc-marke-text span { font-weight: 500; }

/* ======================================================================
   3. Hauptfenster: Hintergrund, Kopfleiste, Paneele (Desktop und Tablet)
   ====================================================================== */
html:not(.iframe) body:not(.task-login) {
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(124, 92, 255, .30), transparent 62%),
    radial-gradient(620px 360px at 102% 22%, rgba(59, 130, 246, .16), transparent 62%),
    radial-gradient(520px 300px at 62% -12%, rgba(124, 92, 255, .14), transparent 60%),
    linear-gradient(180deg, #120f2a 0%, #0d0b1e 55%) !important;
  color: var(--gc-text);
}
#layout { background: transparent !important; }
html.layout-large:not(.iframe) body:not(.task-login) #layout,
html.layout-normal:not(.iframe) body:not(.task-login) #layout,
html.layout-small:not(.iframe) body:not(.task-login) #layout { position: fixed; top: var(--gc-kopf-h); left: 0; right: 0; bottom: 0; width: auto; height: auto; margin: 0; }

#gc-kopf { display: none; }
html.layout-large:not(.iframe) #gc-kopf, html.layout-normal:not(.iframe) #gc-kopf, html.layout-small:not(.iframe) #gc-kopf {
  display: flex; align-items: center; gap: 20px; position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: var(--gc-kopf-h); padding: 0 22px 0 18px;
}
#gc-kopf .gc-marke { width: 250px; }
html.layout-small #gc-kopf .gc-marke .gc-marke-text { display: none; }
html.layout-small #gc-kopf .gc-marke { width: auto; }
#gc-suche { flex: 1; max-width: 620px; margin: 0 auto; position: relative; display: flex; align-items: center; }
#gc-suche .gc-i { position: absolute; left: 18px; color: var(--gc-text2); pointer-events: none; }
#gc-suche input {
  width: 100%; height: 44px; padding: 0 44px 0 50px; border-radius: 999px; font-size: 15px;
  background: rgba(255, 255, 255, .06); color: var(--gc-text); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); outline: none; transition: border-color .15s, background .15s;
}
#gc-suche input::placeholder { color: #9d9abd; }
#gc-suche input:focus { border-color: rgba(196, 181, 253, .7); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
#gc-suche .gc-suche-weg { position: absolute; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--gc-text2); display: none; align-items: center; justify-content: center; cursor: pointer; }
#gc-suche.voll .gc-suche-weg { display: flex; }
#gc-suche .gc-suche-weg:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#gc-konto { position: relative; margin-left: auto; }
#gc-kopf #gc-konto { margin-left: 0; }
#gc-avatar-knopf { display: flex; align-items: center; gap: 6px; height: 46px; padding: 3px 8px 3px 3px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--gc-text2); cursor: pointer; }
#gc-avatar-knopf:hover, #gc-avatar-knopf[aria-expanded="true"] { background: rgba(255, 255, 255, .06); border-color: var(--gc-rand); color: #fff; }
.gc-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--gc-lila-tief);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25); user-select: none;
}
.gc-avatar.gc-ich { background: linear-gradient(135deg, #5b3fe0, #7457f5); box-shadow: 0 0 0 2px rgba(196, 181, 253, .25); }
.gc-konto-menue {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; z-index: 1100; padding: 8px;
  background: var(--gc-fest); border: 1px solid var(--gc-rand2); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
}
.gc-konto-menue[hidden] { display: none; }
.gc-konto-menue .gc-konto-kopf { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--gc-rand); }
.gc-konto-menue .gc-konto-adr { font-size: 14px; color: var(--gc-text); overflow-wrap: anywhere; }
.gc-konto-menue button, .gc-mehr-blatt button, .gc-mini-menue button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--gc-text); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.gc-konto-menue button:hover, .gc-mehr-blatt button:hover, .gc-mini-menue button:hover { background: rgba(255, 255, 255, .07); }
.gc-konto-menue button .gc-i, .gc-mini-menue button .gc-i { color: var(--gc-text2); }
.gc-konto-menue button.gc-abmelden { color: #fca5a5; }
.gc-konto-menue button.gc-abmelden .gc-i { color: #fca5a5; }

/* ---- Linke Icon-Leiste ---- */
#layout-menu { background: transparent !important; border: 0 !important; }
html.layout-large #layout-menu, html.layout-normal #layout-menu, html.layout-small #layout-menu { width: 92px; min-width: 92px; flex: none; }
html.layout-large #layout-menu .popover-header, html.layout-normal #layout-menu .popover-header, html.layout-small #layout-menu .popover-header { display: none !important; }
#taskmenu { display: flex !important; flex-direction: column; height: 100%; padding: 4px 0 14px; overflow: hidden auto; }
#taskmenu .action-buttons { order: 0; } #taskmenu a.mail { order: 1; } #taskmenu a.contacts { order: 2; }
#taskmenu a.calendar { order: 3; } #taskmenu a.tasklist { order: 4; } #taskmenu a.gc-notizen { order: 5; }
#taskmenu a.gc-tresor { order: 6; } #taskmenu > a { order: 7; }
#taskmenu a.settings { order: 20; margin-top: auto !important; }
#taskmenu .special-buttons { order: 21; } #taskmenu .gc-einklappen { order: 22; }
#taskmenu a, #taskmenu a.selected, #taskmenu a.compose {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 78px !important; height: 66px; margin: 3px auto !important; padding: 0 !important; border-radius: 16px;
  background: transparent !important; color: var(--gc-text2) !important; line-height: 1.1; text-decoration: none; position: relative;
}
#taskmenu a:before { display: block; width: 24px !important; height: 24px !important; margin: 0 !important; -webkit-mask-size: 23px 23px; mask-size: 23px 23px; font-size: 0 !important; }
#taskmenu a .inner { display: block; font-size: 11.5px !important; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; }
#taskmenu a:hover { background: rgba(255, 255, 255, .06) !important; color: #fff !important; }
#taskmenu a.selected {
  background: var(--gc-verlauf) !important; color: #fff !important;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}
#taskmenu a.compose { color: #e9e3ff !important; }
html.layout-large body.task-mail #taskmenu .action-buttons, html.layout-normal body.task-mail #taskmenu .action-buttons { display: none !important; }
html:not(.layout-phone) #taskmenu .special-buttons { display: none !important; }
.gc-einklappen { display: none; }
html.layout-large .gc-einklappen {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 10px auto 0; border-radius: 50%;
  border: 1px solid var(--gc-rand2); background: rgba(255, 255, 255, .04); color: var(--gc-text2); cursor: pointer;
}
.gc-einklappen:hover { color: #fff; background: rgba(255, 255, 255, .09); }
html.gc-zu .gc-einklappen .gc-i { transform: rotate(180deg); }
html.layout-large.gc-zu #layout-sidebar { display: none !important; }

/* ---- Paneele ---- */
html:not(.iframe) body:not(.task-login) #layout > #layout-sidebar,
html:not(.iframe) body:not(.task-login) #layout > #layout-list,
html:not(.iframe) body:not(.task-login) #layout > #layout-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03)) !important;
  border: 1px solid var(--gc-rand) !important; border-radius: 18px !important; overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--gc-text);
}
html.layout-large:not(.iframe) body:not(.task-login) #layout > div:not(#layout-menu),
html.layout-normal:not(.iframe) body:not(.task-login) #layout > div:not(#layout-menu),
html.layout-small:not(.iframe) body:not(.task-login) #layout > div:not(#layout-menu) { margin: 0 12px 12px 0 !important; height: auto !important; }
html.layout-large:not(.iframe) body.task-mail #layout > #layout-sidebar { flex: 0 0 258px; max-width: none; min-width: 230px; }
html.layout-large:not(.iframe) body.task-mail #layout > #layout-list { flex: 0 0 clamp(350px, 29%, 460px); max-width: none; }
#layout-sidebar > .header, #layout-list > .header, #layout-content > .header, #layout > div > .header, #layout > div > .footer,
.header, .footer, .pagenav, .searchbar, .formbuttons {
  background: transparent !important; border-color: var(--gc-rand) !important; color: var(--gc-text);
}
#layout > div > .header { border-bottom: 1px solid var(--gc-rand) !important; }
.header-title { color: var(--gc-text); }
.column-resizer { opacity: 0; }

/* allgemeine Werkzeugknöpfe */
.toolbar a.button, .toolbar .button, a.button.icon, .header a.button { color: #e6e3f7 !important; }
.toolbar a.button:hover, .header a.button:hover { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
.toolbar a.button.disabled, .toolbar a.disabled, a.button.disabled { color: rgba(165, 163, 194, .45) !important; }
.toolbar a.button .inner { font-size: 12px; font-weight: 500; }

/* ======================================================================
   4. Ordnerspalte
   ====================================================================== */
.gc-schreiben {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex: none;
  height: 54px; margin: 14px 14px 6px; border-radius: 12px; border: 0; font: inherit; font-size: 16px; font-weight: 650;
  color: #fff !important; text-decoration: none !important; cursor: pointer; background: var(--gc-verlauf);
  box-shadow: 0 10px 28px -10px rgba(124, 92, 255, .9), 0 0 22px -6px rgba(124, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  text-shadow: 0 1px 2px rgba(60, 10, 120, .45); transition: filter .15s, transform .15s;
}
.gc-schreiben:hover { filter: brightness(1.08); }
.gc-schreiben:active { transform: translateY(1px); }
html.layout-phone .gc-schreiben, html.layout-small #layout-sidebar .gc-schreiben { display: none; }
body.task-mail.action-none #layout-sidebar > .header {
  height: 40px !important; min-height: 40px !important; line-height: 40px !important; border: 0 !important;
  display: flex; align-items: center; padding: 0 10px 0 22px !important; justify-content: flex-start;
}
body.task-mail.action-none #layout-sidebar > .header .header-title {
  flex: 1; margin: 0 !important; padding: 0 !important; text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gc-text2);
}
#layout-sidebar > .header a.sidebar-menu, #layout-sidebar > .header #gc-ordner-plus { display: inline-flex; }
#layout-sidebar > .header a.button { width: 34px; height: 34px; min-width: 34px; border-radius: 10px; align-items: center; justify-content: center; padding: 0 !important; }
#layout-sidebar > .header a.button:before { width: 20px !important; height: 20px !important; margin: 0 !important; display: block; }
#layout-sidebar > .header a.button .inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#gc-ordner-plus { order: 5; }
#layout-sidebar > .header a.sidebar-menu { order: 6; }

#folderlist-content, #layout-sidebar > .scroller { padding: 2px 0 8px; }
#mailboxlist li, .listing.treelist li, #directorylist li, #settings-menu li, #calendarslist li, .treelist li {
  border: 0 !important; background: transparent !important; color: var(--gc-text);
}
#mailboxlist li > a, #directorylist li > a, #settings-menu li > a, .treelist li > a, .treelist li > div > a {
  display: flex !important; align-items: center; gap: 12px; min-height: 44px; margin: 1px 12px !important; padding: 0 12px !important;
  border-radius: 11px; color: #e7e4f7 !important; font-size: 15px; font-weight: 500; text-decoration: none !important; position: relative;
}
#mailboxlist li > a:before { position: static !important; flex: none; width: 20px !important; height: 20px !important; margin: 0 !important; color: var(--gc-text2); }
#mailboxlist li > a:hover, #directorylist li > a:hover, #settings-menu li > a:hover, .treelist li > a:hover { background: rgba(255, 255, 255, .06) !important; }
#mailboxlist li.selected > a, #directorylist li.selected > a, #settings-menu li.selected > a, .treelist li.selected > a, .treelist li.selected > div > a,
.listing.treelist li.selected > a {
  background: var(--gc-aktiv) !important; color: #fff !important; font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .18);
}
#mailboxlist li.selected > a:before { color: #fff; }
#mailboxlist li.unread > a { color: #fff !important; font-weight: 650; }
#mailboxlist li ul { padding-left: 14px; }
#mailboxlist .treetoggle { color: var(--gc-text2) !important; top: 6px; z-index: 2; }
.unreadcount, .listing li .unreadcount, #mailboxlist .unreadcount {
  margin-left: auto !important; min-width: 26px; height: 22px; padding: 0 8px !important; line-height: 22px !important; border-radius: 999px !important;
  background: rgba(124, 92, 255, .28) !important; color: #efe9ff !important; font-size: 12px !important; font-weight: 700 !important; text-align: center;
  position: static !important; flex: none;
}
#mailboxlist li.selected .unreadcount, #mailboxlist li.junk .unreadcount { background: var(--gc-lila-tief) !important; color: #fff !important; }
.listing li.droptarget > a, #mailboxlist li.droptarget > a { background: rgba(59, 130, 246, .25) !important; }

/* Speicher-Karte (aus Roundcubes Quota-Anzeige) */
#layout-sidebar > .footer.small { height: auto !important; min-height: 0 !important; line-height: 1.3 !important; border: 0 !important; padding: 0 14px 14px !important; display: block; }
#layout-sidebar > .footer:not(:has(#quotadisplay)) { display: none; }
#quotadisplay { display: none !important; }
.gc-speicher {
  display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid var(--gc-rand); font-weight: 400; white-space: normal;
}
.gc-speicher .gc-speicher-icon { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(124, 92, 255, .2); color: var(--gc-lila-hell); }
.gc-speicher .gc-speicher-titel { font-size: 14px; font-weight: 650; color: var(--gc-text); }
.gc-speicher .gc-speicher-wert { grid-column: 2; font-size: 12.5px; white-space: nowrap; color: var(--gc-text2); }
.gc-speicher .gc-speicher-proz { grid-column: 3; grid-row: 1 / 3; font-size: 13px; font-weight: 650; color: var(--gc-lila-hell); }
.gc-speicher .gc-speicher-balken { grid-column: 1 / 4; height: 6px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gc-speicher .gc-speicher-balken span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b3fe0, #7457f5); box-shadow: 0 0 12px rgba(124, 92, 255, .7); }
.gc-speicher.warnung .gc-speicher-balken span { background: linear-gradient(90deg, #f97316, #ef4444); }

/* ======================================================================
   5. Listen-Spalte: Kopf, Pillen, Karten-Zeilen, Seitenleiste
   ====================================================================== */
#messagelist-header.header {
  display: grid !important; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 6px; height: auto !important; min-height: 0 !important; line-height: 1.2 !important;
  padding: 18px 16px 10px 22px !important; border: 0 !important; overflow: visible;
}
#messagelist-header > * { grid-row: 1 / 3; }
#messagelist-header .header-title {
  grid-column: 3; grid-row: 1; margin: 0 !important; padding: 0 !important; text-align: left; font-size: 24px; font-weight: 750;
  letter-spacing: -.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#messagelist-header .gc-zahl { grid-column: 3; grid-row: 2; font-size: 13px; font-weight: 500; color: var(--gc-text2); margin-top: 3px; }
#messagelist-header a.task-menu-button { grid-column: 1; } #messagelist-header a.back-sidebar-button { grid-column: 2; }
#messagelist-header #toolbar-list-menu { grid-column: 4; } #messagelist-header a.refresh { grid-column: 5; }
#messagelist-header a.toolbar-menu-button { grid-column: 6; } #messagelist-header a.toolbar-list-button { grid-column: 7; }
#messagelist-header .gc-logo-mitte, #messagelist-header .gc-suchknopf { display: none; }
#messagelist-header .header-title { display: block !important; text-align: left !important; justify-self: start; }
@media screen and (min-width: 481px) { html #messagelist-header a.task-menu-button { display: none; } }
@media screen and (min-width: 769px) { html #messagelist-header a.toolbar-menu-button { display: none; } }
@media screen and (min-width: 1201px) { html #messagelist-header a.toolbar-list-button, html #messagelist-header a.back-sidebar-button { display: none; } }
html:not(.layout-phone) #messagelist-header .gc-suchknopf { display: none; }
#messagelist-header ul#toolbar-list-menu:not(.popupmenu) { display: flex; gap: 6px; margin: 0; padding: 0; background: transparent; border: 0; }
#messagelist-header ul#toolbar-list-menu li { list-style: none; }
.gc-rund, #messagelist-header a.button, #messagelist-header ul#toolbar-list-menu:not(.popupmenu) a {
  display: inline-flex; align-items: center; justify-content: center; width: 42px !important; height: 42px !important; min-width: 42px;
  padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 1px solid var(--gc-rand2) !important;
  background: rgba(255, 255, 255, .04) !important; color: #ece9fb !important; cursor: pointer; position: relative; text-decoration: none;
}
.gc-rund:hover, #messagelist-header a.button:hover, #messagelist-header ul#toolbar-list-menu:not(.popupmenu) a:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }
#messagelist-header a.button:before, #messagelist-header ul#toolbar-list-menu:not(.popupmenu) a:before { display: block; width: 20px !important; height: 20px !important; margin: 0 !important; position: static !important; font-size: 0; }
#messagelist-header a.button .inner, #messagelist-header ul#toolbar-list-menu:not(.popupmenu) a .inner,
#layout-content > .header a.back-list-button .inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#messagelist-header a.button.disabled, #messagelist-header ul#toolbar-list-menu a.disabled { opacity: .45; }

/* Pillen-Reiter */
.gc-pillen { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px 22px; flex: none; }
.gc-pille {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gc-rand2); background: rgba(255, 255, 255, .03);
  color: #dcd8f2; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.gc-pille:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.gc-pille[aria-pressed="true"] {
  background: var(--gc-verlauf); border-color: rgba(196, 181, 253, .65); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(124, 92, 255, .9);
}
.gc-pillen .gc-rund { flex: none; margin-left: auto !important; width: 38px !important; height: 38px !important; min-width: 38px; }
.gc-pillen .gc-rund.aktiv { border-color: rgba(196, 181, 253, .7) !important; color: var(--gc-lila-hell) !important; }
html:not(.layout-phone) body.task-mail #layout-list > .searchbar { display: none !important; }
#searchmenu { background: var(--gc-fest) !important; color: var(--gc-text); border-bottom: 1px solid var(--gc-rand); }
#searchmenu .formbuttons { background: transparent !important; }

/* Karten-Zeilen */
#messagelist-content { padding: 0 10px 8px; }
table.messagelist { display: block; border: 0 !important; background: transparent !important; }
table.messagelist > tbody { display: block; }
table.messagelist tr.message {
  display: grid !important; grid-template-columns: auto auto 54px minmax(0, 1fr) auto; grid-template-areas: "sel thr av von zeit" "sel thr av betreff zeichen";
  column-gap: 0; row-gap: 3px; align-items: center; position: relative;
  padding: 12px 12px; margin: 0; border: 2px solid transparent; border-radius: 14px; background: transparent !important; cursor: default;
}
table.messagelist tr.message + tr.message:before { content: ""; position: absolute; left: 66px; right: 12px; top: -1px; height: 1px; background: rgba(255, 255, 255, .06); }
table.messagelist tr.message.selected + tr.message:before, table.messagelist tr.message:hover + tr.message:before { opacity: 0; }
#messagelist tr.message > td, table.messagelist tr.message > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; width: auto !important; line-height: 1.3; color: inherit; }
table.messagelist tr.message > td.subject { display: contents !important; }
#messagelist.messagelist tr.message td.selection { grid-area: sel; display: none !important; }
#messagelist.messagelist.withselection tr.message td.selection { display: block !important; align-self: center; }
#messagelist tr.message > td:first-child { box-shadow: none !important; }
table.messagelist tr.message td.threads { grid-area: thr; }
#messagelist.messagelist tr.message td.threads:empty, #messagelist.messagelist tr.message td.threads:not(:has(div)) { display: none !important; }
table.messagelist tr.message .gc-zeilen-avatar { grid-area: av; width: 42px; height: 42px; font-size: 14px; margin-right: 12px; }
#messagelist.messagelist.withselection tr.message td.selection { margin-right: 10px; }
table.messagelist tr.message td.subject span.fromto {
  grid-area: von; padding: 0 !important; font-size: 15px !important; font-weight: 650; color: #f2f0ff !important; line-height: 1.3 !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
table.messagelist tr.message td.subject span.fromto * { color: inherit !important; }
table.messagelist tr.message td.subject span.date, table.messagelist tr.message td.subject span.size {
  grid-area: zeit; margin-left: 10px; font-size: 13px !important; color: var(--gc-text2) !important; line-height: 1.3 !important; white-space: nowrap; text-align: right;
}
table.messagelist tr.message td.subject span.size { display: none !important; }
table.messagelist tr.message:hover td.subject span.date { display: block !important; }
table.messagelist tr.message td.subject span.subject {
  grid-area: betreff; display: flex; align-items: center; gap: 6px; min-width: 0; width: auto !important; line-height: 1.35 !important;
  font-size: 14px; color: #c9c5e2; padding: 0 !important;
}
table.messagelist tr.message td.subject span.subject a { color: inherit !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 400 !important; }
table.messagelist tr.message td.subject span.msgicon.status { flex: none; width: auto; }
table.messagelist tr.message td.subject span.msgicon.status:before { width: 14px !important; height: auto !important; line-height: 1 !important; font-size: 7px !important; color: transparent !important; }
table.messagelist tr.message td.subject span.msgicon.status.unread:before { color: #a78bfa !important; }
table.messagelist tr.message td.subject span.msgicon.status.replied:before, table.messagelist tr.message td.subject span.msgicon.status.forwarded:before { color: var(--gc-text2) !important; font-size: 11px !important; }
table.messagelist tr.message td.subject span.msgicon.status:not(.unread):not(.replied):not(.forwarded):not(.unreadchildren) { display: none; }
table.messagelist tr.message.unread td.subject span.fromto { color: #fff !important; font-weight: 750; }
table.messagelist tr.message.unread td.subject span.subject { color: #eeeaff; }
table.messagelist tr.message.unread td.subject span.subject a { font-weight: 600 !important; }
table.messagelist tr.message.flagged td, table.messagelist tr.message.flagged td.subject span.subject a { color: inherit !important; }
table.messagelist tr.message.deleted { opacity: .55; }
table.messagelist tr.message td.flags {
  grid-area: zeichen; margin-left: 10px; position: static !important; display: flex !important; flex-direction: row-reverse; align-items: center; gap: 8px;
  height: auto; background: transparent !important;
}
table.messagelist tr.message td.flags > span { display: flex !important; align-items: center; height: 22px !important; line-height: 1 !important; }
table.messagelist tr.message td.flags span.attachment span:before { content: "" !important; display: block; width: 16px; height: 16px; background: var(--gc-text2); -webkit-mask: var(--i-clip) center/contain no-repeat; mask: var(--i-clip) center/contain no-repeat; }
table.messagelist tr.message td.flags span.attachment span:not(.attachment):not(.report):not(.encrypted):not(.vcard):before { display: none; }
table.messagelist tr.message td.flags span.flag { visibility: visible !important; cursor: pointer; width: 22px; justify-content: center; }
table.messagelist tr.message td.flags span.flag span:before {
  content: "" !important; display: block; width: 18px; height: 18px; background: rgba(165, 163, 194, .55);
  -webkit-mask: var(--i-star) center/contain no-repeat; mask: var(--i-star) center/contain no-repeat;
}
table.messagelist tr.message td.flags span.flag span.flagged:before { background: #fbbf24; -webkit-mask-image: var(--i-star-voll); mask-image: var(--i-star-voll); filter: drop-shadow(0 0 6px rgba(251, 191, 36, .55)); }
table.messagelist tr.message td.flags span.flag span:hover:before { background: #fde68a; }
table.messagelist tr.message:hover { background: rgba(255, 255, 255, .04) !important; }
table.messagelist tr.message.selected, table.messagelist tr.message.selected:hover {
  border-color: var(--gc-lila) !important; background: linear-gradient(180deg, rgba(124, 92, 255, .16), rgba(124, 92, 255, .08)) !important;
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .25), 0 0 26px -4px rgba(124, 92, 255, .55), inset 0 0 18px -8px rgba(124, 92, 255, .5);
}
table.messagelist tr.message.focused:not(.selected) { border-color: rgba(196, 181, 253, .35); }
table.messagelist:focus tr.message.focused { outline: none; }
table.messagelist tr.message.droptarget { background: rgba(59, 130, 246, .2) !important; }
table.messagelist .tree, table.messagelist td.threads div { color: var(--gc-text2); }
.listing-info, #messagelist-content .listing-info { color: var(--gc-text2); }

/* Seitenleiste unten */
#layout-list > .pagenav {
  display: flex !important; align-items: center; justify-content: center; gap: 6px; height: 58px !important; min-height: 58px !important; line-height: 1 !important;
  padding: 0 14px !important; border-top: 1px solid var(--gc-rand) !important; font-weight: 500;
}
#layout-list > .pagenav a {
  display: inline-flex !important; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; padding: 0 !important; margin: 0 !important;
  border-radius: 10px; color: #e7e4f7 !important; position: relative;
}
#layout-list > .pagenav a:before { display: block; width: 18px; height: 18px; margin: 0 !important; position: static !important; -webkit-mask-size: 18px; mask-size: 18px; }
#layout-list > .pagenav a .inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#layout-list > .pagenav a.disabled { opacity: .35; }
#layout-list > .pagenav a:not(.disabled):hover { background: rgba(255, 255, 255, .08); }
body.task-mail #layout-list > .pagenav .pagenav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.task-mail #layout-list > .pagenav input.rcpagejumper { display: none; }
body.task-mail #layout-list > .pagenav a.prevpage, body.task-mail #layout-list > .pagenav a.lastpage { display: none !important; }
.gc-seiten-text { font-size: 13px; color: var(--gc-text2); margin: 0 8px; white-space: nowrap; }
.gc-seiten { display: flex; gap: 4px; margin-left: auto; }
#layout-list > .pagenav a.nextpage { margin-left: 2px !important; }
.gc-seite {
  min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #d9d5ef;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gc-seite:hover { background: rgba(255, 255, 255, .07); }
.gc-seite[aria-current="page"] { border-color: var(--gc-lila); color: #fff; background: rgba(124, 92, 255, .18); box-shadow: 0 0 12px -3px rgba(124, 92, 255, .7); }
.gc-seiten .gc-luecke { color: var(--gc-text2); padding: 0 2px; align-self: center; }

/* ======================================================================
   6. Lese-Spalte (Hauptfenster)
   ====================================================================== */
body.task-mail #layout-content > .header {
  height: 78px !important; min-height: 78px !important; line-height: 1 !important; justify-content: flex-start; align-items: center;
  padding: 0 12px 0 14px !important; gap: 6px; overflow: visible;
}
body.task-mail #layout-content > .header .header-title { display: none; }
body.task-mail #layout-content > .header a.back-list-button {
  display: inline-flex !important; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; min-width: 42px; padding: 0 !important;
  border-radius: 50%; border: 1px solid var(--gc-rand2); background: rgba(255, 255, 255, .04); color: #ece9fb !important; position: relative; margin-right: 8px;
}
body.task-mail #layout-content > .header a.back-list-button:before { display: block; width: 20px !important; height: 20px !important; margin: 0 !important; position: static !important; }
body.task-mail.action-none #layout-content.gc-leer > .header a.back-list-button { visibility: hidden; }
#mailtoolbar { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: flex-start; background: transparent !important; }
#mailtoolbar .spacer { display: none; }
#mailtoolbar a.reply { order: 1; } #mailtoolbar .dropbutton { order: 2; } #mailtoolbar .dropbutton + .dropbutton { order: 3; }
#mailtoolbar a.archive { order: 4; } #mailtoolbar a.delete { order: 5; } #mailtoolbar a.junk, #mailtoolbar a.notjunk { order: 6; }
#mailtoolbar a.markmessage { order: 7; } #mailtoolbar a.more { order: 8; } #mailtoolbar > * { order: 7; }
#mailtoolbar a.button, #mailtoolbar .dropbutton > a.button {
  display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 50px; height: 62px;
  padding: 0 4px !important; margin: 0 !important; border-radius: 12px; color: #e9e6f8 !important; line-height: 1 !important;
}
#mailtoolbar a.button:before { display: block; width: 22px; height: 22px; margin: 0 !important; -webkit-mask-size: 21px 21px; mask-size: 21px 21px; font-size: 0 !important; position: static !important; }
#mailtoolbar a.button .inner { font-size: 11.5px !important; font-weight: 500; color: inherit; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
#mailtoolbar .dropbutton { display: inline-flex; align-items: center; }
#mailtoolbar .dropbutton a.dropdown { width: 14px !important; min-width: 14px; height: 40px; padding: 0 !important; color: var(--gc-text2) !important; display: inline-flex; align-items: center; justify-content: center; }
#mailtoolbar .dropbutton a.dropdown:before { content: "" !important; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--i-chev-down) center/contain no-repeat; mask: var(--i-chev-down) center/contain no-repeat; }
#mailtoolbar .dropbutton a.dropdown .inner { display: none; }
#mailtoolbar a.button.disabled, #mailtoolbar .dropbutton a.disabled { color: rgba(165, 163, 194, .42) !important; }
#mailtoolbar a.button:not(.disabled):hover { background: rgba(255, 255, 255, .07) !important; }
#layout-content .iframe-wrapper { background: transparent; }
#layout-content .iframe-wrapper iframe { background: transparent; color-scheme: dark; }
#layout-content > .footer { border-top: 1px solid var(--gc-rand) !important; }

/* ======================================================================
   7. Geöffnete Mail (Vorschau-Rahmen und eigenes Fenster)
   ====================================================================== */
html.iframe, html.iframe body { background: transparent !important; color: var(--gc-text); }
html.iframe body.task-mail.action-preview #layout-content, html.iframe body.task-mail.action-show #layout-content,
body.task-mail.action-show #layout-content .content, body.task-mail.action-preview #layout-content .content { background: transparent !important; }
body.action-preview .frame-content, body.action-show .frame-content { padding: 6px 26px 28px !important; }
#message-header { border: 0 !important; padding: 0 !important; margin: 0 0 18px; background: transparent !important; }
#message-header h2.subject {
  display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 20px !important; padding: 0 !important;
  font-size: 24px !important; font-weight: 750 !important; line-height: 1.25 !important; letter-spacing: -.02em; color: #fff !important;
}
#message-header h2.subject .gc-betreff-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#message-header h2.subject a.extwin { display: none !important; }
.gc-stern { flex: none; width: 40px; height: 40px; margin-top: -4px; border: 0; border-radius: 50%; background: transparent; color: var(--gc-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gc-stern:hover { background: rgba(255, 255, 255, .07); color: #fde68a; }
.gc-stern[aria-pressed="true"] { color: #fbbf24; }
.gc-stern[aria-pressed="true"] .gc-i { --i: var(--i-star-voll) !important; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .55)); }
#message-header > .header { display: block !important; padding: 0 !important; border: 0 !important; background: transparent !important; height: auto !important; }
#message-header .contactphoto, #message-header img.contactphoto { display: none !important; }
#message-header .header-content { margin: 0 !important; padding: 0 !important; }
#message-header:not(.gc-details-offen) .header-content { display: none !important; }
#message-header .header-summary { display: none !important; }
#message-header .header-headers { display: none !important; }
#message-header.gc-details-offen .header-headers {
  display: table !important; width: 100%; margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--gc-rand);
}
#message-header .header-headers td { color: var(--gc-text) !important; padding: 4px 10px 4px 0 !important; border: 0 !important; background: transparent !important; vertical-align: top; }
#message-header .header-headers td.header-title { color: var(--gc-text2) !important; width: 1%; white-space: nowrap; }
#message-header .header-links { display: none !important; }
#message-header.gc-details-offen .header-links { display: flex !important; flex-wrap: wrap; gap: 14px; padding: 4px 2px 0; }
#message-header .header-links a.headers-summary, #message-header .header-links a.headers-details { display: none !important; }
#message-header .header-links a { color: var(--gc-link) !important; font-size: 13px; }
#message-header .header-links a:before { color: inherit !important; }
.gc-absender { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "av name rechts" "av an rechts"; column-gap: 14px; row-gap: 2px; align-items: center; }
.gc-absender .gc-avatar { grid-area: av; width: 48px; height: 48px; font-size: 16px; }
.gc-absender .gc-abs-name { grid-area: name; min-width: 0; font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-absender .gc-abs-name b { color: #fff; font-weight: 700; cursor: pointer; }
.gc-absender .gc-abs-name .gc-adr { color: var(--gc-text2); margin-left: 4px; }
.gc-absender .gc-an { grid-area: an; justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 0; border: 0; background: transparent; color: var(--gc-text2); font: inherit; font-size: 13.5px; cursor: pointer; border-radius: 6px; }
.gc-absender .gc-an:hover { color: #fff; }
.gc-absender .gc-an .gc-i { width: 14px; height: 14px; transition: transform .15s; }
#message-header.gc-details-offen .gc-an .gc-i { transform: rotate(180deg); }
.gc-absender .gc-abs-rechts { grid-area: rechts; display: flex; align-items: center; gap: 4px; }
.gc-absender .gc-datum { color: var(--gc-text2); font-size: 13.5px; margin-right: 8px; white-space: nowrap; }
.gc-kreis { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #e6e2f7; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.gc-kreis:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.gc-mini-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 230px; padding: 6px; background: var(--gc-fest); border: 1px solid var(--gc-rand2); border-radius: 14px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .75); }
.gc-mini-menue[hidden] { display: none; }
#message-content { display: flex; flex-direction: column; gap: 16px; }
#message-content .rightcol { order: 1; width: 100% !important; margin: 0 !important; padding: 0 !important; }
#message-content .leftcol { order: 2; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
#message-content .leftcol:not(:has(li)) { display: none; }
#messagebody {
  padding: 22px 24px !important; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--gc-rand);
  color: #dcd8ef; font-size: 15px; line-height: 1.65; overflow-x: auto;
}
#messagebody div.pre, #messagebody pre, #messagebody .message-part { color: #dcd8ef; background: transparent; font-family: var(--gc-schrift); }
#messagebody blockquote { border-left: 3px solid rgba(124, 92, 255, .55) !important; color: #bdb9d6 !important; padding-left: 12px; }
#messagebody a { color: var(--gc-link); }
#messagebody hr { border-color: var(--gc-rand2); }
/* HTML-Mails: helle „Papier“-Karte, damit Mails mit eigener Gestaltung lesbar bleiben */
#messagebody.gc-papier { background: #ffffff; color: #1c1b29; border-color: rgba(255, 255, 255, .5); padding: 20px 22px !important; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); }
#messagebody.gc-papier .message-htmlpart, #messagebody.gc-papier .message-part { color: #1c1b29; }
#messagebody.gc-papier .message-htmlpart a { color: #1d4ed8; }
#messagebody.gc-papier div.pre { color: #1c1b29; }
#messagebody .message-htmlpart { background: transparent; }
#message-objects .alert, .boxwarning, .boxinformation { border-radius: 12px; }
/* Anhänge als Karten */
#message-content .leftcol, .attachmentslist, #attachment-list { background: transparent !important; }
#attachment-list { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
#attachment-list li {
  display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 12px 10px 12px 14px !important; border-radius: 14px;
  background: rgba(255, 255, 255, .045) !important; border: 1px solid var(--gc-rand) !important; float: none !important; width: auto !important; max-width: 520px; height: auto !important;
}
#attachment-list li a.filename { flex: 1; display: flex !important; align-items: center; gap: 14px; min-width: 0; color: var(--gc-text) !important; text-decoration: none; padding: 0 !important; background: none !important; height: auto !important; line-height: 1.3 !important; }
#attachment-list li a.filename:before, #attachment-list li:before, #attachment-list li .attachment-name:before, #attachment-list li a.drop:after { display: none !important; }
#attachment-list li .gc-dateiicon { flex: none; width: 44px; height: 48px; border-radius: 9px; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; box-shadow: 0 6px 16px -8px rgba(239, 68, 68, .9); }
#attachment-list li .gc-dateiicon:after { content: ""; position: absolute; top: 0; right: 0; width: 13px; height: 13px; background: linear-gradient(225deg, var(--gc-fest) 50%, rgba(255, 255, 255, .55) 50%); border-bottom-left-radius: 4px; }
#attachment-list li .gc-dateiicon.anders { background: #6366f1; box-shadow: 0 6px 16px -8px rgba(99, 102, 241, .9); }
#attachment-list li .gc-dateiicon.bild { background: #0ea5e9; }
#attachment-list li .attachment-name { display: block; font-weight: 650; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#attachment-list li .attachment-size { display: block; font-size: 13px; color: var(--gc-text2); padding: 0 !important; }
#attachment-list li .gc-datei-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#attachment-list li a.drop { position: static !important; width: 38px; height: 38px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%; color: #e6e2f7 !important; background: transparent !important; padding: 0 !important; }
#attachment-list li a.drop:before { content: "" !important; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-more-h) center/contain no-repeat; mask: var(--i-more-h) center/contain no-repeat; margin: 0 !important; }
#attachment-list li a.drop:hover { background: rgba(255, 255, 255, .08) !important; }
#attachment-list li a.drop .inner { display: none; }
/* Antwort-Knöpfe unten */
.gc-antworten { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.gc-antworten button {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gc-rand2);
  background: rgba(255, 255, 255, .03); color: #f1eefc; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.gc-antworten button:first-child { border-color: var(--gc-lila); box-shadow: 0 0 16px -6px rgba(124, 92, 255, .8); }
.gc-antworten button:hover { background: rgba(255, 255, 255, .08); }
.gc-antworten .gc-i { width: 18px; height: 18px; }

/* ======================================================================
   8. Allgemein dunkel: Menüs, Dialoge, Formulare, Listen, Meldungen
   ====================================================================== */
.popover { background: var(--gc-fest) !important; border: 1px solid var(--gc-rand2) !important; border-radius: 14px !important; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .8) !important; color: var(--gc-text); }
.popover .popover-body, .popover-body { color: var(--gc-text); background: transparent; }
.popover .popover-header { background: var(--gc-fest2) !important; color: var(--gc-text) !important; border-color: var(--gc-rand) !important; }
.popover .arrow:before, .popover .arrow:after { border-bottom-color: var(--gc-fest) !important; border-top-color: var(--gc-fest) !important; }
.popover.bs-popover-bottom .arrow:before, .popover.bs-popover-top .arrow:before { border-bottom-color: var(--gc-rand2) !important; border-top-color: var(--gc-rand2) !important; }
.popover .arrow:after { border-left-color: transparent !important; border-right-color: transparent !important; }
.popover .arrow:before { border-left-color: transparent !important; border-right-color: transparent !important; }
ul.menu.listing li a, .popupmenu a, .popover ul.menu a, .popover a.active, #rcm_folderlist a, .contextmenu a, ul.toolbarmenu a {
  color: var(--gc-text) !important; border-color: var(--gc-rand) !important;
}
.popover ul.menu li, .popover .listing li, .contextmenu li { border-color: var(--gc-rand) !important; }
.popover ul.menu a:hover, .popover .listing li a:hover, .popover a.active:hover, .contextmenu li a.active:hover, ul.menu.listing li a:focus { background: rgba(255, 255, 255, .07) !important; }
.popover a.disabled, .popupmenu a.disabled, .contextmenu a.disabled, ul.menu a.disabled { color: rgba(165, 163, 194, .5) !important; }
.popover ul.menu a:before, .contextmenu a:before { color: var(--gc-text2); }
.popover ul.menu a.selected, .popover ul.menu li.selected a { background: var(--gc-aktiv) !important; }
.popover-overlay { background: rgba(5, 3, 15, .55) !important; }
.ui-dialog, html body .ui-dialog.ui-widget, .ui-widget-content {
  background: var(--gc-fest) !important; color: var(--gc-text) !important; border: 1px solid var(--gc-rand2) !important;
}
html body .ui-dialog { border-radius: 18px !important; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85) !important; overflow: hidden; }
html body .ui-dialog .ui-dialog-titlebar { background: transparent !important; color: #fff !important; border: 0 !important; border-bottom: 1px solid var(--gc-rand) !important; }
html body .ui-dialog .ui-dialog-title { color: #fff !important; font-weight: 700; }
html body .ui-dialog .ui-dialog-titlebar-close, html body .ui-dialog .ui-dialog-titlebar-close:before { color: var(--gc-text2) !important; background: transparent !important; }
html body .ui-dialog .ui-dialog-content { background: transparent !important; color: var(--gc-text) !important; border: 0 !important; }
html body .ui-dialog .ui-dialog-buttonpane { background: rgba(255, 255, 255, .03) !important; border-top: 1px solid var(--gc-rand) !important; }
.ui-widget-overlay { background: rgba(5, 3, 15, .7) !important; opacity: 1 !important; }
.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: var(--gc-schrift) !important; }
.ui-widget-header { background: var(--gc-fest2) !important; color: var(--gc-text) !important; border-color: var(--gc-rand) !important; }
.ui-datepicker { background: var(--gc-fest) !important; color: var(--gc-text); border: 1px solid var(--gc-rand2) !important; border-radius: 12px; }
.ui-datepicker td a, .ui-datepicker td span { color: var(--gc-text) !important; background: transparent !important; border: 0 !important; }
.ui-datepicker td a.ui-state-active, .ui-datepicker td a.ui-state-highlight { background: var(--gc-lila-tief) !important; color: #fff !important; border-radius: 8px; }
.ui-menu, .ui-autocomplete { background: var(--gc-fest) !important; border: 1px solid var(--gc-rand2) !important; color: var(--gc-text) !important; }
.ui-menu .ui-menu-item, .ui-autocomplete li { color: var(--gc-text) !important; }
.ui-menu .ui-state-active, .ui-autocomplete .ui-state-focus, .ui-autocomplete li.selected { background: var(--gc-aktiv) !important; color: #fff !important; border: 0 !important; }

.btn { border-radius: 10px !important; font-weight: 600; }
.btn-primary, .btn.btn-primary, .ui-dialog .ui-button.mainaction, .ui-dialog .btn.mainaction, button.mainaction, .formbuttons .btn.mainaction, .btn.submit, input.button.mainaction {
  background: var(--gc-verlauf) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 8px 20px -10px rgba(124, 92, 255, .9);
}
.btn-primary:hover, .btn-primary:focus, .ui-dialog .ui-button.mainaction:hover { filter: brightness(1.08); }
.btn-secondary, .btn.btn-secondary, .ui-dialog .ui-button:not(.mainaction):not(.delete), .btn-default, .btn-light, .btn.cancel, .ui-dialog .btn.cancel, button.btn:not(.btn-primary):not(.btn-danger):not(.mainaction) {
  background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--gc-rand2) !important; color: var(--gc-text) !important;
}
.btn-secondary:hover, .btn-default:hover, .btn.cancel:hover { background: rgba(255, 255, 255, .11) !important; }
.btn-danger, .btn.delete, .ui-dialog .btn.delete, .ui-dialog .ui-button.delete { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
.btn-link { color: var(--gc-link) !important; }
.form-control, .custom-select, input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"], textarea, select, .recipient-input, .input-group .form-control {
  background-color: rgba(255, 255, 255, .055) !important; color: var(--gc-text) !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 10px;
}
.form-control:focus, .custom-select:focus, input:focus, textarea:focus, select:focus { border-color: rgba(196, 181, 253, .75) !important; box-shadow: 0 0 0 3px rgba(124, 92, 255, .25) !important; background-color: rgba(255, 255, 255, .08) !important; }
.form-control::placeholder, input::placeholder, textarea::placeholder { color: #8f8cae !important; }
.form-control:disabled, .form-control[readonly], select:disabled { background-color: rgba(255, 255, 255, .025) !important; color: #9c99b8 !important; }
.custom-select, select.custom-select { background-image: var(--gc-pfeil) !important; background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 14px !important; padding-right: 30px !important; }
:root { --gc-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a3c2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select option, select optgroup { background: var(--gc-fest2); color: var(--gc-text); }
.input-group-text, .input-group-prepend .input-group-text, .input-group-append .input-group-text { background: rgba(255, 255, 255, .07) !important; color: var(--gc-text2) !important; border-color: rgba(255, 255, 255, .16) !important; }
.custom-control-label:before, input[type="checkbox"].form-check-input, .custom-switch .custom-control-label:before { background-color: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .28) !important; }
.custom-control-input:checked ~ .custom-control-label:before, .custom-switch .custom-control-input:checked ~ .custom-control-label:before { background-color: var(--gc-lila-tief) !important; border-color: var(--gc-lila) !important; }
input.pretty-checkbox, input[type="checkbox"] { accent-color: var(--gc-lila); }
label, legend, .col-form-label, .formcontent, .propform, fieldset { color: var(--gc-text); }
fieldset legend, .propform legend { color: #fff !important; border-color: var(--gc-rand) !important; }
.text-muted, .hint, .form-text, small.text-muted { color: var(--gc-text2) !important; }
hr { border-color: var(--gc-rand); }
.table td, .table th, table.propform td, table.records-table td, table.records-table th, table.table thead th { border-color: var(--gc-rand) !important; color: var(--gc-text); background: transparent; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, .025); }
.nav-tabs { border-color: var(--gc-rand) !important; }
.nav-tabs .nav-link { color: var(--gc-text2) !important; border: 0 !important; border-bottom: 2px solid transparent !important; background: transparent !important; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: #fff !important; border-bottom-color: var(--gc-lila) !important; background: transparent !important; }
.tab-content { background: transparent !important; border-color: var(--gc-rand) !important; }
.listing li, .listing tr, table.listing td, table.records-table tr td, ul.listing li { border-color: var(--gc-rand) !important; color: var(--gc-text); background: transparent; }
table.records-table tr td, .listing li a, table.records-table tr td a { color: var(--gc-text) !important; }
table.records-table tr:hover td, ul.listing li:hover { background: rgba(255, 255, 255, .035); }
table.records-table tr.selected td, .listing li.selected, ul.listing li.selected, table.listing tr.selected td, table.records-table tr.selected td a { background: var(--gc-aktiv) !important; color: #fff !important; }
table.records-table tr.focused td { background: rgba(255, 255, 255, .03); }
table.records-table thead td, table.records-table thead th { background: transparent !important; color: var(--gc-text2) !important; }
.searchbar input, .searchbar .form-control { background: rgba(255, 255, 255, .055) !important; }
.searchbar a.button, .searchbar .button { color: var(--gc-text2) !important; }
.searchbar.open, .searchoptions { background: var(--gc-fest) !important; }
#messagestack .alert, .ui.alert, div.alert {
  background: var(--gc-fest2) !important; color: var(--gc-text) !important; border: 1px solid var(--gc-rand2) !important; border-left: 4px solid var(--gc-lila) !important;
  border-radius: 12px !important; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8);
}
#messagestack .alert-danger, div.alert-danger { border-left-color: #ef4444 !important; }
#messagestack .alert-success, div.alert-success { border-left-color: #22c55e !important; }
#messagestack .alert-warning, div.alert-warning { border-left-color: #f59e0b !important; }
.alert .icon, #messagestack .alert i.icon { color: var(--gc-lila-hell); }
.watermark, #layout-content .watermark { opacity: .25 !important; filter: grayscale(1) brightness(2.2); }
html.iframe body.task-mail.action-none, html.iframe body.watermark { background: transparent !important; }
.voice + .watermark { background-color: transparent !important; }
.tooltip-inner { background: var(--gc-fest2) !important; color: var(--gc-text) !important; border: 1px solid var(--gc-rand2); }
.dropbutton a.dropdown, .listing .treetoggle { color: var(--gc-text2) !important; }
.boxtitle, .header-title, h1, h2, h3, h4 { color: #fff; }
#messagebody.gc-papier h1, #messagebody.gc-papier h2, #messagebody.gc-papier h3, #messagebody.gc-papier h4, #messagebody.gc-papier table, #messagebody.gc-papier td, #messagebody.gc-papier th { color: inherit; }
.content.frame-content, .formcontent, html.iframe .formcontent, html.iframe #layout-content { background: transparent !important; color: var(--gc-text); }
.propform .row, .form-group { color: var(--gc-text); }
.quota-widget .bar { background: rgba(255, 255, 255, .1) !important; }
.quota-widget .value { background: var(--gc-lila) !important; }
.recipient-input .recipient { background: rgba(124, 92, 255, .25) !important; color: #fff !important; border-color: rgba(196, 181, 253, .3) !important; }
.editor-toolbar, .mce-tinymce, .tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-edit-area, .tox:not(.tox-tinymce-inline) .tox-editor-header { border-color: var(--gc-rand) !important; }
.tox-tinymce { border-radius: 12px !important; border-color: var(--gc-rand2) !important; }
#compose-attachments, .compose-headers, #compose-options { color: var(--gc-text); }
#layout-sidebar .scroller, #layout-list .scroller, #layout-content .scroller { background: transparent !important; }
.listing-info, .listing .listing-info { color: var(--gc-text2) !important; }
#contacts-table td.name, #contacts-table td { color: var(--gc-text); }
.contactlist .contact.selected td, table.contactlist tr.selected td { color: #fff !important; }
#settings-menu li > a:before, #directorylist li > a:before, .treelist li > a:before { color: var(--gc-text2) !important; }
#settings-menu li.selected > a:before, #directorylist li.selected > a:before { color: #fff !important; }
iframe { color-scheme: normal; }
.floating-action-buttons a.button { background: var(--gc-verlauf) !important; color: #fff !important; }

/* Plugins mit hellen Farben: Ordner/Regeln, fremde Kalender, Tresor, Kontextmenü */
html body .gfo-hinweis, html body .gfk-hinweis, html body .gfo-folge, html body .gfk-hilfe { color: #c9c5e2; }
html body .gfo-liste, html body .gfk-liste, html body .gc-tresor-liste { border-color: var(--gc-rand2); background: rgba(255, 255, 255, .02); }
html body .gfo-zeile, html body .gfk-zeile, html body .gc-tresor-zeile { border-bottom-color: var(--gc-rand); }
html body .gfo-symbol { color: var(--gc-lila-hell); }
html body .gfo-zusatz, html body .gfk-status, html body .gc-tresor-groesse, html body .gc-tresor-platz, html body .gfo-leer, html body .gfk-leer, html body .gc-tresor-leer { color: var(--gc-text2); }
html body .gfo-leer.fehler, html body .gfk-status.fehler { color: #fca5a5; }
html body .gfo-knopf, html body .gfk-knopf, html body .gc-tresor-knopf { color: #d6d2ec; }
html body .gfo-knopf:hover, html body .gfo-knopf:focus-visible, html body .gfk-knopf:hover, html body .gfk-knopf:focus-visible, html body .gc-tresor-knopf:hover, html body .gc-tresor-knopf:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
html body .gfo-regelform, html body .gfk-form { background: rgba(255, 255, 255, .035); border-color: var(--gc-rand2); }
html body .gfk-hilfe summary { color: var(--gc-link); }
html body .gfk-farbe { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
html body .gfk-farbe.an { border-color: var(--gc-fest); box-shadow: 0 0 0 2px #fff; }
html body .gc-tresor-fenster.ziel .gc-tresor-liste { outline-color: var(--gc-lila); }
#rcm_folderlist, .contextmenu, .popover.contextmenu { background: var(--gc-fest) !important; }

/* Anmeldeseite */
body.task-login {
  background:
    radial-gradient(800px 460px at 85% -10%, rgba(124, 92, 255, .32), transparent 62%),
    radial-gradient(640px 380px at 0% 110%, rgba(59, 130, 246, .16), transparent 62%),
    linear-gradient(180deg, #120f2a 0%, #0d0b1e 70%) !important;
  color: var(--gc-text);
}
body.task-login .gc-kopf { margin-bottom: 1.6rem !important; justify-content: center; }
body.task-login #logo.gc-marke { position: static !important; display: inline-flex !important; max-height: none !important; width: auto !important; height: auto !important; top: auto !important; }
body.task-login .gc-marke svg { width: 46px; height: 46px; }
body.task-login .gc-marke .gc-marke-text { font-size: 27px; }
body.task-login #login-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04)) !important; border: 1px solid rgba(255, 255, 255, .12) !important;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08) !important; color: var(--gc-text);
}
body.task-login #login-form .form-control { background: rgba(255, 255, 255, .06) !important; height: 48px !important; font-size: 16px; }
body.task-login #login-form .input-group-text { border-radius: 10px 0 0 10px !important; }
body.task-login #login-footer, body.task-login #login-footer a { color: #b6b3d3 !important; }
body.task-login #login-footer a:hover { color: #fff !important; }
body.task-login #rcmloginsubmit { height: 48px !important; font-size: 16px !important; }
body.task-login .gc-login-titel { color: var(--gc-text2); font-size: 15px; margin-top: 6px; text-align: center; }

/* ======================================================================
   9. Handy (Elastic „layout-phone“, bis 480 px Breite)
   ====================================================================== */
html.layout-phone:not(.iframe) body:not(.task-login) #layout > div:not(#layout-menu) {
  margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.layout-phone.gc-tabs-an:not(.iframe) body:not(.task-login) #layout { height: calc(100% - var(--gc-tabs-h) - env(safe-area-inset-bottom, 0px)); }
html.layout-phone #messagelist-header.header {
  grid-template-columns: 48px minmax(0, 1fr) 48px 48px; grid-template-rows: 58px auto auto; column-gap: 8px; padding: 4px 14px 6px !important;
}
html.layout-phone #messagelist-header > * { grid-row: auto; }
html.layout-phone #messagelist-header a.task-menu-button { grid-column: 1; grid-row: 1; justify-self: start; border-color: transparent !important; background: transparent !important; width: 46px !important; height: 46px !important; }
html.layout-phone #messagelist-header a.task-menu-button:before { width: 24px !important; height: 24px !important; -webkit-mask-size: 24px; mask-size: 24px; }
html.layout-phone #messagelist-header .gc-logo-mitte { display: inline-flex; grid-column: 1 / -1; grid-row: 1; justify-self: center; gap: 8px; }
html.layout-phone #messagelist-header .gc-logo-mitte svg { width: 28px; height: 28px; }
html.layout-phone #messagelist-header .gc-logo-mitte .gc-marke-text { font-size: 17px; }
html.layout-phone #messagelist-header .gc-suchknopf { display: inline-flex !important; grid-column: 4; grid-row: 1; justify-self: end; z-index: 1; width: 44px !important; height: 44px !important; }
html.layout-phone #messagelist-header a.task-menu-button { z-index: 1; }
html.layout-phone #messagelist-header .header-title { grid-column: 1 / 3; grid-row: 2; justify-self: start; text-align: left !important; font-size: 28px; margin-top: 8px !important; }
html.layout-phone #messagelist-header .gc-zahl { grid-column: 1 / 3; grid-row: 3; font-size: 14px; }
html.layout-phone #messagelist-header a.refresh { grid-column: 3; grid-row: 2 / 4; justify-self: end; align-self: end; width: 44px !important; height: 44px !important; }
html.layout-phone #messagelist-header a.toolbar-list-button, html.layout-phone #messagelist-header a.toolbar-menu-button { grid-column: 4; grid-row: 2 / 4; justify-self: end; align-self: end; width: 44px !important; height: 44px !important; --gi: var(--i-sliders); }
html.layout-phone #messagelist-header a.back-sidebar-button { display: none !important; }
html.layout-phone body.task-mail #layout-list > .searchbar { display: none !important; }
html.layout-phone body.task-mail.gc-suche-offen #layout-list > .searchbar { display: flex !important; margin: 0 14px 8px; border: 1px solid var(--gc-rand2) !important; border-radius: 999px; height: 46px; }
html.layout-phone .gc-pillen { padding: 6px 14px 10px; }
html.layout-phone .gc-pille { height: 40px; padding: 0 18px; font-size: 15px; }
html.layout-phone .gc-pillen .gc-rund { width: 44px !important; height: 44px !important; }
html.layout-phone #messagelist-content { padding: 0 8px 96px; }
html.layout-phone table.messagelist tr.message { padding: 12px 10px; }
html.layout-phone table.messagelist tr.message { grid-template-columns: auto auto 58px minmax(0, 1fr) auto; }
html.layout-phone table.messagelist tr.message .gc-zeilen-avatar { width: 46px; height: 46px; font-size: 15px; }
html.layout-phone table.messagelist tr.message + tr.message:before { left: 68px; }
html.layout-phone table.messagelist tr.message td.flags { position: static !important; }
html.layout-phone #layout-list > .pagenav { height: 52px !important; min-height: 52px !important; }
html.layout-phone #layout-list > .pagenav .gc-seiten { margin-left: 0; }
html.layout-phone #layout-list .floating-action-buttons, html.layout-phone .floating-action-buttons {
  position: fixed !important; right: 18px !important; bottom: calc(var(--gc-tabs-h) + 18px + env(safe-area-inset-bottom, 0px)) !important; z-index: 20;
}
.floating-action-buttons a.button, html.layout-phone .floating-action-buttons a.button {
  width: 64px !important; height: 64px !important; border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(124, 92, 255, .95), 0 0 0 1px rgba(255, 255, 255, .15) inset !important; padding: 0 !important;
}
.floating-action-buttons a.button:before {
  content: "" !important; width: 26px !important; height: 26px !important; margin: 0 !important; background: #fff;
  -webkit-mask: var(--fab-i, var(--i-plus)) center/contain no-repeat; mask: var(--fab-i, var(--i-plus)) center/contain no-repeat; font-size: 0 !important; position: static !important;
}
.floating-action-buttons a.compose { --fab-i: var(--i-pen); }
.floating-action-buttons a.button .inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.gc-inhalt-offen .floating-action-buttons { display: none !important; }

/* Untere Tab-Leiste */
#gc-tabs { display: none; }
html.layout-phone.gc-tabs-an #gc-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
  height: calc(var(--gc-tabs-h) + env(safe-area-inset-bottom, 0px)); padding: 6px 6px env(safe-area-inset-bottom, 0px);
  background: rgba(16, 13, 36, .92); border-top: 1px solid var(--gc-rand); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
#gc-tabs button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; margin: 0 3px; border: 0; border-radius: 14px;
  background: transparent; color: var(--gc-text2); font: inherit; font-size: 11.5px; font-weight: 550; cursor: pointer; padding: 0;
}
#gc-tabs button .gc-i { width: 23px; height: 23px; }
#gc-tabs button[aria-current="page"] { color: #fff; background: var(--gc-verlauf); box-shadow: 0 8px 20px -8px rgba(124, 92, 255, .9); }
.gc-mehr-blatt {
  position: fixed; z-index: 1060; left: 10px; right: 10px; bottom: calc(var(--gc-tabs-h) + 10px + env(safe-area-inset-bottom, 0px)); padding: 10px;
  background: var(--gc-fest); border: 1px solid var(--gc-rand2); border-radius: 20px; box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .85);
}
.gc-mehr-blatt[hidden] { display: none; }
.gc-mehr-blatt h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gc-text2); margin: 4px 10px 8px; font-weight: 650; }
.gc-mehr-blatt button { min-height: 52px; font-size: 16px; }
.gc-mehr-blatt button .gc-i { width: 22px; height: 22px; color: var(--gc-lila-hell); }

/* Schublade */
#gc-schleier { position: fixed; inset: 0; z-index: 1040; background: rgba(5, 3, 15, .62); opacity: 0; pointer-events: none; transition: opacity .2s; }
#gc-schleier.offen { opacity: 1; pointer-events: auto; }
#gc-schublade {
  position: fixed; z-index: 1050; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); display: flex; flex-direction: column; gap: 4px;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px)); overflow: hidden auto; transform: translateX(-104%); transition: transform .22s ease, visibility .22s;
  visibility: hidden; background: radial-gradient(420px 260px at 100% 0%, rgba(124, 92, 255, .22), transparent 70%), linear-gradient(180deg, #1a1638, #110e27);
  border-right: 1px solid var(--gc-rand2); box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .8); color: var(--gc-text);
}
#gc-schublade.offen { transform: none; visibility: visible; }
#gc-schublade .gc-s-kopf { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
#gc-schublade .gc-s-kopf .gc-kreis { width: 44px; height: 44px; }
#gc-schublade .gc-s-konto { position: relative; margin: 0 2px 10px; }
#gc-schublade .gc-s-konto > button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--gc-rand2);
  background: rgba(255, 255, 255, .05); color: var(--gc-text); font: inherit; cursor: pointer; text-align: left;
}
#gc-schublade .gc-s-konto .gc-avatar { position: relative; width: 42px; height: 42px; }
#gc-schublade .gc-s-konto .gc-avatar:after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #1a1638; }
#gc-schublade .gc-s-konto .gc-s-adr { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gc-schublade .gc-s-konto .gc-konto-menue { left: 0; right: 0; top: calc(100% + 6px); }
.gc-s-eintrag {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 12px 0 14px; border: 0; border-radius: 12px; background: transparent;
  color: #e9e6f8; font: inherit; font-size: 15.5px; font-weight: 500; text-align: left; cursor: pointer; text-decoration: none !important;
}
.gc-s-eintrag:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.gc-s-eintrag .gc-i { color: var(--gc-text2); width: 21px; height: 21px; }
.gc-s-eintrag[aria-current="true"] { background: var(--gc-aktiv); color: #fff; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .18); }
.gc-s-eintrag[aria-current="true"] .gc-i { color: #fff; }
.gc-s-eintrag .gc-s-zahl { margin-left: auto; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(124, 92, 255, .28); color: #efe9ff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.gc-s-eintrag.gc-s-spam .gc-s-zahl, .gc-s-eintrag[aria-current="true"] .gc-s-zahl { background: var(--gc-lila-tief); color: #fff; }
.gc-s-eintrag.gc-s-schreiben .gc-i { color: var(--gc-lila-hell); }
.gc-s-trenner { height: 1px; margin: 8px 10px; background: var(--gc-rand); flex: none; }
.gc-s-abschnitt { display: flex; align-items: center; gap: 4px; }
.gc-s-abschnitt > button:first-child { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px 0 14px; border: 0; background: transparent; color: var(--gc-text2); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 10px; }
.gc-s-abschnitt > button:first-child .gc-i { width: 16px; height: 16px; transition: transform .15s; }
.gc-s-abschnitt > button[aria-expanded="false"] .gc-i { transform: rotate(-90deg); }
.gc-s-abschnitt .gc-kreis { width: 44px; height: 44px; color: var(--gc-text2); }
.gc-s-ordner[hidden] { display: none; }
.gc-quadrat { flex: none; width: 14px; height: 14px; margin: 0 3px; border-radius: 4px; box-shadow: 0 0 10px -2px currentColor; }
.gc-s-fuss { margin-top: auto; padding-top: 8px; }

/* Geöffnete Mail auf dem Handy */
html.layout-phone body.task-mail #layout-content > .header { height: 62px !important; min-height: 62px !important; padding: 0 8px 0 10px !important; }
html.layout-phone body.task-mail #layout-content > .header a.back-list-button { border-color: transparent; background: transparent; width: 46px; height: 46px; }
.gc-handy-aktionen { display: none; }
html.layout-phone body.task-mail #layout-content > .header .gc-handy-aktionen, html.layout-small body.task-mail #layout-content > .header .gc-handy-aktionen { display: flex; margin-left: auto; gap: 2px; }
html.layout-small body.task-mail #layout-content > .header .gc-handy-aktionen .gc-kreis, html.layout-phone body.task-mail #layout-content > .header .gc-handy-aktionen .gc-kreis { width: 44px; height: 44px; }
.gc-handy-aktionen .gc-kreis.disabled { opacity: .4; pointer-events: none; }
html.layout-small body.task-mail #layout-content > .header a.toolbar-menu-button, html.layout-phone body.task-mail #layout-content > .header a.toolbar-menu-button {
  width: 44px !important; height: 44px !important; min-width: 44px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%; position: relative;
}
html.layout-small body.task-mail #layout-content > .header a.toolbar-menu-button:before, html.layout-phone body.task-mail #layout-content > .header a.toolbar-menu-button:before { content: "" !important; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i-more-v) center/contain no-repeat; mask: var(--i-more-v) center/contain no-repeat; margin: 0 !important; position: static !important; }
html.layout-small body.task-mail #layout-content > .header a.toolbar-menu-button .inner, html.layout-phone body.task-mail #layout-content > .header a.toolbar-menu-button .inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.layout-phone body.task-mail #layout-content > .footer { display: none !important; }
html.layout-phone body.action-preview .frame-content, html.layout-phone body.action-show .frame-content { padding: 4px 16px 24px !important; }
html.layout-phone #message-header h2.subject { font-size: 26px !important; margin: 6px 0 18px !important; }
html.layout-phone .gc-absender { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "av name knoepfe" "av datum knoepfe" "av an knoepfe"; column-gap: 12px; row-gap: 0; }
html.layout-phone .gc-absender .gc-avatar { width: 46px; height: 46px; }
html.layout-phone .gc-absender .gc-abs-rechts { display: contents; }
html.layout-phone .gc-absender .gc-datum { grid-area: datum; margin: 0; font-size: 13px; }
html.layout-phone .gc-absender .gc-abs-knoepfe { grid-area: knoepfe; }
html.layout-phone .gc-absender .gc-adr { display: none; }
html.layout-phone #messagebody { padding: 18px 16px !important; font-size: 15.5px; }
html.layout-phone .gc-antworten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
html.layout-phone .gc-antworten button { flex-direction: column; justify-content: center; gap: 8px; height: 82px; padding: 0 6px; border-radius: 16px; font-size: 13px; text-align: center; line-height: 1.2; }
html.layout-phone .gc-antworten .gc-i { width: 22px; height: 22px; }
.gc-abs-knoepfe { display: flex; gap: 2px; position: relative; }

/* Handy: übrige Bereiche (Kontakte, Kalender, Einstellungen) */
html.layout-phone #layout > div > .header { background: transparent !important; }
html.layout-phone #layout-menu.popover { background: var(--gc-fest) !important; }
html.layout-phone #layout-menu .popover-header { background: transparent !important; }
html.layout-phone #layout-menu .popover-header #logo { display: none !important; }
html.layout-phone body.task-mail #layout-sidebar > .header { height: 56px !important; min-height: 56px !important; }

/* Kalender (Kolab): nur grob an den dunklen Look angepasst */
.fc .fc-toolbar, .fc-header-toolbar, #calendar .fc-toolbar, .fc-toolbar.fc-header-toolbar { background: transparent !important; color: var(--gc-text) !important; border-color: var(--gc-rand) !important; }
.fc-toolbar h2, .fc-toolbar .fc-center, .fc-toolbar .timezone { color: var(--gc-text) !important; }
.fc td, .fc th, .fc-unthemed td, .fc-unthemed th, .fc-unthemed thead, .fc-unthemed tbody, .fc-unthemed .fc-divider, .fc-unthemed .fc-row, .fc-unthemed .fc-content, .fc-unthemed .fc-popover, .fc-unthemed .fc-list-view { border-color: rgba(255, 255, 255, .08) !important; }
.fc-unthemed th, .fc th.fc-widget-header, .fc-unthemed .fc-widget-header { background: transparent !important; color: var(--gc-text2) !important; }
.fc-unthemed td.fc-today, .fc .fc-today, .fc-unthemed .fc-today { background: rgba(124, 92, 255, .12) !important; }
.fc-unthemed .fc-divider, .fc-unthemed .fc-list-heading td, .fc-unthemed .fc-popover .fc-header { background: rgba(255, 255, 255, .05) !important; }
.fc-unthemed .fc-popover, .fc-list-view, .fc-list-table td { background: var(--gc-fest) !important; color: var(--gc-text) !important; }
.fc .fc-axis, .fc-time, .fc-day-header, .fc-day-number, .fc .fc-week-number { color: var(--gc-text2) !important; }
.fc-unthemed .fc-list-item:hover td { background: rgba(255, 255, 255, .05) !important; }
.ui-datepicker tr, .ui-datepicker td, .ui-datepicker th, .ui-datepicker .ui-datepicker-header, .ui-datepicker-calendar tr:hover td { background: transparent !important; }
.ui-datepicker th, .ui-datepicker .ui-datepicker-week-col { color: var(--gc-text2) !important; }
#calendarslist li, #calendarslist li div, #calendarslist .actions, .treelist li > div, .listing li .actions { background: transparent !important; color: var(--gc-text); }
#calendarslist li.selected > div, #calendarslist li.selected > div > a { background: var(--gc-aktiv) !important; color: #fff !important; }
.eventdialog, #eventshow, #eventedit, .calendar-dialog { color: var(--gc-text); }

/* Handy: Dialoge füllen den Bildschirm, ohne Rand (sonst 2 px zu breit) */
@media screen and (max-width: 480px) {
  html body .ui-dialog, html body .ui-dialog.ui-widget { border: 0 !important; border-radius: 0 !important; box-sizing: border-box; }
}

/* Mail-Werkzeugleiste: Elastic baut #mailtoolbar zur Laufzeit in ul#toolbar-menu um.
   Gleiche Masken-Icons wie im Rest (statt der Font-Icons, z. B. Flamme bei Spam), nur im breiten Modus –
   im Handy-/Tablet-Menü bleibt Elastics Listen-Darstellung. */
html.layout-large body.task-mail #layout-content > .header #toolbar-menu a.button:is(.reply, .reply-all, .forward, .delete, .archive, .junk, .notjunk, .markmessage, .more, .print):before {
  content: "" !important; font-family: inherit !important; font-size: 0 !important; display: block;
  width: 22px !important; height: 22px !important; margin: 0 auto !important; position: static !important;
  background-color: currentColor;
  -webkit-mask: var(--gi) center / 21px 21px no-repeat; mask: var(--gi) center / 21px 21px no-repeat;
}
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu a.button:is(.reply, .reply-all, .forward, .delete, .archive, .junk, .notjunk, .markmessage, .more, .print):before {
  content: "" !important; font-family: inherit !important; font-size: 0 !important; display: block;
  width: 22px !important; height: 22px !important; margin: 0 auto !important; position: static !important;
  background-color: currentColor;
  -webkit-mask: var(--gi) center / 21px 21px no-repeat; mask: var(--gi) center / 21px 21px no-repeat;
}
#toolbar-menu a.reply { --gi: var(--i-reply); } #toolbar-menu a.reply-all { --gi: var(--i-reply-all); }
#toolbar-menu a.forward { --gi: var(--i-forward); } #toolbar-menu a.delete { --gi: var(--i-trash); }
#toolbar-menu a.archive { --gi: var(--i-archive); } #toolbar-menu a.junk { --gi: var(--i-spam); }
#toolbar-menu a.notjunk { --gi: var(--i-inbox); } #toolbar-menu a.markmessage { --gi: var(--i-tag); }
#toolbar-menu a.more { --gi: var(--i-more-h); } #toolbar-menu a.print { --gi: var(--i-printer); }

/* Schmale Listen-Spalte (Tablet quer / kleines Fenster): Titel darf nicht unter die Knöpfe laufen, Pillen kompakter */
#messagelist-header .header-title { max-width: 100%; min-width: 0; }
html.layout-normal #messagelist-header.header { padding: 16px 12px 8px 16px !important; column-gap: 4px; }
html.layout-normal #messagelist-header .header-title { font-size: 20px; }
html.layout-normal #messagelist-header a.button, html.layout-normal #messagelist-header ul#toolbar-list-menu:not(.popupmenu) a { width: 38px !important; height: 38px !important; min-width: 38px; }
html.layout-normal .gc-pillen { gap: 5px; padding: 6px 12px 10px 16px; }
html.layout-normal .gc-pille { padding: 0 10px; font-size: 13px; min-width: 0; }
html.layout-normal .gc-pillen .gc-rund { width: 34px !important; height: 34px !important; min-width: 34px; }
/* Kolab-Kalender: Heute-Spalte (dort .fc-state-highlight, gelblich) im Lila-Ton */
html body .fc td.fc-today.fc-state-highlight, html body .fc .fc-state-highlight, html body #calendar .fc-today { background: rgba(124, 92, 255, .14) !important; }

/* ======================================================================
   10. Nachbesserungen nach UI-Prüfung (04.12.): Zusatz-Icons, Akzent, Plugin-Bereiche
   ====================================================================== */
/* Zusatz-Icons (scratchpad lookbau/icons2.py) */
:root {
  --i-check-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='3'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
  --i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12'/%3E%3Ccircle cx='4' cy='6' r='.6'/%3E%3Ccircle cx='4' cy='12' r='.6'/%3E%3Ccircle cx='4' cy='18' r='.6'/%3E%3C/svg%3E");
  --i-list-ol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h11M10 12h11M10 18h11M4 4h1v4M4 8h2M6 18H4c0-1 2-2 2-3s-1-1.5-2-1'/%3E%3C/svg%3E");
  --i-sort-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 16 4 4 4-4M7 20V4M11 4h10M11 8h7M11 12h4'/%3E%3C/svg%3E");
  --i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21'/%3E%3C/svg%3E");
  --i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
  --i-grip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='6' r='1'/%3E%3Ccircle cx='15' cy='6' r='1'/%3E%3Ccircle cx='9' cy='12' r='1'/%3E%3Ccircle cx='15' cy='12' r='1'/%3E%3Ccircle cx='9' cy='18' r='1'/%3E%3Ccircle cx='15' cy='18' r='1'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E");
  --i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --i-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  --i-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  --i-save: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E");
  --i-signature: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17c3-1 4-9 6-9s1 8 3 8 2-4 4-4 1 3 5 3M3 21h18'/%3E%3C/svg%3E");
  --i-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h6v6H6l-2 4M14 7h6v6h-4l-2 4'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  --i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3'/%3E%3C/svg%3E");
  --i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  --i-id: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Cpath d='M14 10h4M14 14h4M5 16c.5-1.5 1.7-2 3-2s2.5.5 3 2'/%3E%3C/svg%3E");
  --i-reply-tpl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5l7 7-7 7v-4c-6 0-9 2-11 5 0-6 3-11 11-11z'/%3E%3C/svg%3E");
  --i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  --i-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E");
  --i-columns: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M9 3v18'/%3E%3C/svg%3E");
}

/* ---- P1/4 + P2/14: ein Akzent, Links und Formular-Haken in Lila ---- */
:root { accent-color: var(--gc-akzent); }
input[type=radio], input[type=checkbox], progress, input[type=range] { accent-color: var(--gc-akzent); }
a { color: var(--gc-link); }
a:hover { color: #d6ccff; }
#preferences-frame a, .propform a, .content a:not(.button):not(.btn) { color: var(--gc-link); }
.custom-radio .custom-control-input:checked ~ .custom-control-label:before { background-color: var(--gc-lila-tief) !important; border-color: var(--gc-akzent) !important; }
#rcmfd_skin input[type=radio], .skinselection input[type=radio] { accent-color: var(--gc-akzent); }

/* ---- P2/12: Rahmen von Bedienelementen ≥ 3:1 (Karten-Ränder bleiben dezent) ---- */
.form-control, .custom-select, input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=time],
textarea, select, .recipient-input, .gc-pille[aria-pressed="false"], .gc-antworten button, .btn-secondary, .gc-rund, #gc-suche input,
#messagelist-header a.button, #messagelist-header ul#toolbar-list-menu:not(.popupmenu) a, .gc-seite, .gc-einklappen, #layout-content > .header a.back-list-button {
  border-color: var(--gc-rand-feld) !important;
}
.input-group > .input-group-append > .input-group-text, .input-group > .input-group-prepend > .input-group-text { border-color: var(--gc-rand-feld) !important; }

/* ---- P2/13: Knöpfe einheitlich als Pille ---- */
.btn:not(.btn-link):not(.dropdown-toggle), .ui-dialog .ui-button, .ui-dialog-buttonpane .btn, .formbuttons .btn, .gc-schreiben, .gfo-knopf, .gfk-knopf, .gc-tresor-knopf {
  border-radius: 999px !important;
}
.formbuttons .btn, .ui-dialog-buttonpane .btn, .ui-dialog .ui-button { min-height: 40px; padding: 0 20px !important; font-weight: 600 !important; }
.btn-group > .btn:not(:first-child):not(:last-child) { border-radius: 0 !important; }
.btn-group > .btn:first-child:not(:last-child) { border-radius: 999px 0 0 999px !important; }
.btn-group > .btn:last-child:not(:first-child) { border-radius: 0 999px 999px 0 !important; }
body.task-login #rcmloginsubmit { text-transform: none !important; letter-spacing: 0 !important; border-radius: 999px !important; }
/* Dialog-/Formular-Knöpfe ohne Font-Icon wie in der Vorlage; „Senden“ behält ein Linien-Icon */
.ui-dialog-buttonpane .btn:before, .formbuttons .btn:not(.send):before, .ui-dialog-buttonpane .ui-button:before { display: none !important; }
.formbuttons .btn.send:before, #layout-content > .footer a.send:before {
  content: "" !important; display: inline-block !important; width: 18px; height: 18px; margin: 0 8px 0 0 !important; vertical-align: -3px;
  background-color: currentColor; -webkit-mask: var(--i-send) center / 18px 18px no-repeat; mask: var(--i-send) center / 18px 18px no-repeat; font-size: 0 !important;
}

/* ---- P2/8: Masken-Icons auch in den Werkzeugleisten der übrigen Bereiche ---- */
:is(#layout-content, #layout-sidebar, #layout-list) > .header :is(.toolbar, #toolbar-menu):not(.popupmenu) a:is(.create, .print, .delete, .import, .export, .search, .more, .select, .save, .draft, .attach, .signature, .responses, .compose, .options, .threads, .gcn-anheften, .edit, .extwin, .encrypt, .reply, .forward, .qrcode, .download, .upload, .mark, .flag, .complete, .add, .vcard, .groupassign, .groupremove)::before,
.searchbar a.button:is(.search, .reset, .date, .options)::before {
  content: "" !important; font-family: inherit !important; font-size: 0 !important; background-color: currentColor;
  -webkit-mask: var(--gi) center / 20px 20px no-repeat; mask: var(--gi) center / 20px 20px no-repeat;
}
html:not(.layout-phone) body:not(.task-mail.action-none) :is(#layout-content, #layout-sidebar, #layout-list) > .header:not(#messagelist-header) :is(.toolbar, #toolbar-menu):not(.popupmenu) a:is(.create, .print, .delete, .import, .export, .search, .more, .select, .save, .draft, .attach, .signature, .responses, .compose, .options, .threads, .gcn-anheften, .edit, .extwin, .encrypt, .reply, .forward, .qrcode, .download, .upload, .mark, .flag, .complete, .add, .vcard, .groupassign, .groupremove)::before {
  display: block !important; width: 22px !important; height: 22px !important; margin: 0 auto 6px !important; -webkit-mask-size: 21px 21px; mask-size: 21px 21px; position: static !important;
}
.searchbar a.button:is(.search, .reset, .date, .options)::before { -webkit-mask-size: 18px 18px; mask-size: 18px 18px; }
:is(.toolbar, #toolbar-menu, .searchbar, #gcn-werkzeug, #listcontrols) a.create { --gi: var(--i-plus); }
:is(.toolbar, #toolbar-menu) a.print { --gi: var(--i-printer); }
:is(.toolbar, #toolbar-menu) a.delete { --gi: var(--i-trash); }
:is(.toolbar, #toolbar-menu) a.import { --gi: var(--i-upload); }
:is(.toolbar, #toolbar-menu) a.export, :is(.toolbar, #toolbar-menu) a.download { --gi: var(--i-download); }
:is(.toolbar, #toolbar-menu, .searchbar) a.search { --gi: var(--i-search); }
:is(.toolbar, #toolbar-menu) a.more { --gi: var(--i-more-h); }
:is(.toolbar, #toolbar-menu) a.select { --gi: var(--i-select); }
:is(.toolbar, #toolbar-menu) a.save, :is(.toolbar, #toolbar-menu) a.draft { --gi: var(--i-save); }
:is(.toolbar, #toolbar-menu) a.attach { --gi: var(--i-clip); }
:is(.toolbar, #toolbar-menu) a.signature { --gi: var(--i-signature); }
:is(.toolbar, #toolbar-menu) a.responses { --gi: var(--i-reply-tpl); }
:is(.toolbar, #toolbar-menu) a.compose { --gi: var(--i-mail); }
:is(.toolbar, #toolbar-menu, .searchbar) a.options { --gi: var(--i-sliders); }
:is(.toolbar, #toolbar-menu) a.threads { --gi: var(--i-message); }
:is(.toolbar, #toolbar-menu) a.gcn-anheften { --gi: var(--i-pin); }
:is(.toolbar, #toolbar-menu) a.edit { --gi: var(--i-edit); }
:is(.toolbar, #toolbar-menu) a.extwin { --gi: var(--i-external); }
:is(.toolbar, #toolbar-menu) a.encrypt { --gi: var(--i-lock); }
:is(.toolbar, #toolbar-menu) a.reply { --gi: var(--i-reply); } :is(.toolbar, #toolbar-menu) a.forward { --gi: var(--i-forward); }
:is(.toolbar, #toolbar-menu) a.qrcode { --gi: var(--i-grid); } :is(.toolbar, #toolbar-menu) a.upload { --gi: var(--i-upload); }
:is(.toolbar, #toolbar-menu) a.mark, :is(.toolbar, #toolbar-menu) a.flag { --gi: var(--i-tag); }
:is(.toolbar, #toolbar-menu) a.complete { --gi: var(--i-check); } :is(.toolbar, #toolbar-menu) a.add { --gi: var(--i-plus); }
:is(.toolbar, #toolbar-menu) a.vcard { --gi: var(--i-id); }
:is(.toolbar, #toolbar-menu) a.groupassign { --gi: var(--i-users); } :is(.toolbar, #toolbar-menu) a.groupremove { --gi: var(--i-x); }
.searchbar a.reset { --gi: var(--i-x); } .searchbar a.date { --gi: var(--i-calendar); }
/* Kopf-Knöpfe der Spalten (Menü, Ordner, zurück, ⋮) */
:is(#layout-sidebar, #layout-list, #layout-content) > .header:not(#messagelist-header) a:is(.task-menu-button, .back-sidebar-button, .back-list-button, .toolbar-menu-button, .sidebar-menu)::before {
  content: "" !important; font-family: inherit !important; font-size: 0 !important; background-color: currentColor;
  -webkit-mask: var(--gk) center / 22px 22px no-repeat; mask: var(--gk) center / 22px 22px no-repeat;
}
:is(#layout-sidebar, #layout-list, #layout-content) > .header a.task-menu-button { --gk: var(--i-menu); }
:is(#layout-sidebar, #layout-list, #layout-content) > .header a.back-sidebar-button { --gk: var(--i-folder); }
:is(#layout-sidebar, #layout-list, #layout-content) > .header a.back-list-button { --gk: var(--i-arrow-left); }
:is(#layout-sidebar, #layout-list, #layout-content) > .header a:is(.toolbar-menu-button, .sidebar-menu) { --gk: var(--i-more-v); }

/* Einstellungen: Menü und Abschnitte */
#settings-menu li:is(.preferences, .folders, .identities, .responses, .filter, .vacation, .forward, .password, .enigma, .managesieve, .calendar, .tasklist) > a:before,
#sections-table tr:is(.general, .mailbox, .mailview, .compose, .addressbook, .folders, .server, .encryption, .calendar, .tasklist, .tasks) td.section:before {
  content: "" !important; font-family: inherit !important; font-size: 0 !important; background-color: currentColor; display: inline-block !important;
  width: 20px !important; height: 20px !important; flex: none; vertical-align: -4px; margin-right: 10px !important;
  -webkit-mask: var(--gs) center / 20px 20px no-repeat; mask: var(--gs) center / 20px 20px no-repeat; position: static !important;
}
#settings-menu li.preferences { --gs: var(--i-sliders); } #settings-menu li.folders { --gs: var(--i-folder); }
#settings-menu li.identities { --gs: var(--i-id); } #settings-menu li.responses { --gs: var(--i-reply-tpl); }
#settings-menu li.filter, #settings-menu li.managesieve { --gs: var(--i-filter); } #settings-menu li.vacation { --gs: var(--i-calendar); }
#settings-menu li.forward { --gs: var(--i-forward); } #settings-menu li.password, #settings-menu li.enigma { --gs: var(--i-key); }
#settings-menu li.calendar { --gs: var(--i-calendar); } #settings-menu li.tasklist { --gs: var(--i-tasks); }
#sections-table tr.general { --gs: var(--i-columns); } #sections-table tr.mailbox { --gs: var(--i-inbox); }
#sections-table tr.mailview { --gs: var(--i-mail); } #sections-table tr.compose { --gs: var(--i-pen); }
#sections-table tr.addressbook { --gs: var(--i-users); } #sections-table tr.folders { --gs: var(--i-folder); }
#sections-table tr.server { --gs: var(--i-settings); } #sections-table tr.encryption { --gs: var(--i-lock); }
#sections-table tr.calendar { --gs: var(--i-calendar); } #sections-table tr.tasklist, #sections-table tr.tasks { --gs: var(--i-tasks); }
#sections-table td.section { color: #e7e4f7 !important; }
#sections-table tr td.section { border-bottom-color: var(--gc-rand) !important; }

/* Kontakte: Adressbuch-Liste */
#directorylist li a, #calendarslist li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#directorylist li > a { display: block !important; line-height: 44px; }
#directorylist li > a:before {
  content: "" !important; font-size: 0 !important; display: inline-block; vertical-align: -4px; width: 20px !important; height: 20px !important; position: static !important; margin: 0 12px 0 0 !important;
  background-color: currentColor; -webkit-mask: var(--i-book) center / 20px 20px no-repeat; mask: var(--i-book) center / 20px 20px no-repeat;
}
#directorylist li.contactgroup > a:before { -webkit-mask-image: var(--i-users); mask-image: var(--i-users); }

/* ---- P2/11: linke Leiste stabil – „Schreiben“ nie, Einstellungen immer unten ---- */
html:not(.layout-phone) #taskmenu a.compose, html:not(.layout-phone) #taskmenu .action-buttons { display: none !important; }
#taskmenu a.settings, #taskmenu a.settings.selected { margin-top: auto !important; }

/* ---- P2/16: Ordnerbaum ohne weiße Linien, Einzug gleichmäßig ---- */
#mailboxlist li ul, #mailboxlist li ul li { border: 0 !important; background: transparent !important; box-shadow: none !important; }
#mailboxlist li ul { padding-left: 0 !important; margin: 0 !important; }
#mailboxlist li ul li > a { padding-left: 36px !important; }
#mailboxlist li ul li ul li > a { padding-left: 56px !important; }

/* ---- P2/17: Listen-Kopf ausgerichtet, keine Strich-Reste ---- */
#messagelist-header.header { align-items: center; }
#messagelist-header a.refresh, #messagelist-header #toolbar-list-menu { align-self: center; margin: 0 !important; }
#messagelist-header ul#toolbar-list-menu:not(.popupmenu) li, #messagelist-header ul#toolbar-list-menu:not(.popupmenu) li a { border-bottom: 0 !important; box-shadow: none !important; }
#messagelist-header ul#toolbar-list-menu:not(.popupmenu) li { border: 0 !important; }
#messagelist-header ul#toolbar-list-menu:not(.popupmenu) a { border: 1px solid var(--gc-rand-feld) !important; }

/* ---- P1/7: Mail-Werkzeugleiste passt in schmalere Desktop-Fenster ---- */
@media (max-width: 1600px) {
  html.layout-large body.task-mail #layout-content > .header #toolbar-menu a:not(.dropdown) { min-width: 0 !important; padding: 4px 6px !important; }
  html.layout-large body.task-mail #layout-content > .header #toolbar-menu .dropbutton a.dropdown { width: 12px !important; min-width: 12px !important; }
}
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu a:not(.dropdown) .inner { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu a:not(.dropdown) { min-width: 0 !important; width: 42px !important; padding: 0 !important; }

/* ---- P1/5: Optionen-Spalte beim Schreiben – Beschriftung umbrechen, Schalter rechts ---- */
body.action-compose #compose-options .form-group.row, body.action-compose #layout-sidebar .form-group.row {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-left: 0; margin-right: 0;
}
body.action-compose #compose-options .form-group.row > label, body.action-compose #layout-sidebar .form-group.row > label {
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important; min-width: 0; max-width: none; width: auto; flex: none; padding: 0 !important;
}
body.action-compose #compose-options .form-group.row > div, body.action-compose #layout-sidebar .form-group.row > div { flex: none; max-width: none; width: auto; padding: 0 !important; justify-self: end; }
body.action-compose #compose-options .form-group.row select, body.action-compose #layout-sidebar .form-group.row select { min-width: 0; width: 150px; }

/* ---- P1/1: Schreib-Editor dunkel (Inhalt per look.js → rcmail_editor_settings) ---- */
.tox.tox-tinymce { background: rgba(255, 255, 255, .04) !important; border: 1px solid var(--gc-rand2) !important; border-radius: 16px !important; }
.tox .tox-editor-header, .tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar-overlord, .tox .tox-toolbar__overflow { background: #17142f !important; background-image: none !important; }
.tox .tox-toolbar__group { border-color: var(--gc-rand) !important; }
.tox .tox-tbtn, .tox .tox-tbtn svg, .tox .tox-split-button .tox-tbtn { color: #d9d5f2 !important; fill: #d9d5f2 !important; }
.tox .tox-tbtn { border-radius: 8px !important; }
.tox .tox-tbtn:hover, .tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:hover, .tox .tox-split-button:hover { background: rgba(124, 92, 255, .22) !important; }
.tox .tox-tbtn--disabled svg, .tox .tox-tbtn:disabled svg { fill: rgba(217, 213, 242, .4) !important; }
.tox .tox-edit-area, .tox .tox-edit-area__iframe { background: #14112b !important; }
.tox .tox-menu, .tox .tox-collection--list, .tox .tox-swatches-menu, .tox .tox-dialog, .tox .tox-dialog__header, .tox .tox-dialog__footer { background: #17142f !important; color: var(--gc-text) !important; border-color: var(--gc-rand2) !important; }
.tox .tox-collection__item { color: var(--gc-text) !important; }
.tox .tox-collection__item--active { background: rgba(124, 92, 255, .25) !important; }
/* Klartext-Editor */
body.action-compose textarea#composebody { background: #14112b !important; color: var(--gc-text) !important; }

/* ---- P1/6: Handy-Schreiben – Kopf mit Zurück, Titel und Senden ---- */
html.layout-phone body.action-compose #layout-content > .header { display: flex !important; align-items: center; gap: 8px; padding: 8px 10px !important; }
html.layout-phone body.action-compose #layout-content > .header .header-title { display: block !important; flex: 1; min-width: 0; text-align: left !important; font-size: 18px !important; font-weight: 700; color: #fff; position: static !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.layout-phone body.action-compose #layout-content > .header a.task-menu-button, html.layout-phone body.action-compose #layout-content > .header a.toolbar-menu-button { width: 44px !important; height: 44px !important; min-width: 44px; flex: none; display: inline-flex !important; align-items: center; justify-content: center; color: #ece9fb !important; position: static !important; }
html.layout-phone body.action-compose #layout-content > .header a.task-menu-button { --gk: var(--i-arrow-left); }
html.layout-phone body.action-compose #layout-content > .header a.task-menu-button::before, html.layout-phone body.action-compose #layout-content > .header a.toolbar-menu-button::before { width: 22px !important; height: 22px !important; margin: 0 !important; display: block; position: static !important; }
.gc-senden-kopf { display: none; }
html.layout-phone body.action-compose .gc-senden-kopf {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--gc-verlauf); color: #fff; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(124, 92, 255, .9);
}
html.layout-phone body.action-compose #layout-content > .footer { display: none !important; }

/* ---- P2/18: Tipp-Flächen am Handy ≥ 44 px ---- */
html.layout-phone .gc-pille, html.layout-phone .gc-rund { min-height: 44px; }
html.layout-phone .gc-pille { height: 44px; }
html.layout-phone #messagelist .gc-stern, html.layout-phone #messagelist td.flags span.flag, html.layout-phone #messagelist .flag span { position: relative; }
html.layout-phone #messagelist .gc-stern::after, html.layout-phone #messagelist td.flags span.flag::after { content: ""; position: absolute; inset: -12px; }
html.layout-phone .fc-header-toolbar .btn, html.layout-phone .fc-toolbar .btn, html.layout-phone .fc-button,
html.layout-phone :is(#layout-content, #layout-list, #layout-sidebar) > .header a.button { min-width: 44px; min-height: 44px; }
html.layout-phone input[type=checkbox]:not(.custom-control-input) { width: 22px; height: 22px; }
html.layout-phone .input-group-text.icon { min-width: 44px; justify-content: center; }

/* ---- P2/19: Handy-Schreibknopf über der Blätter-Leiste, Liste mit Luft ---- */
html.layout-phone #layout-list .floating-action-buttons, html.layout-phone .floating-action-buttons { bottom: calc(var(--gc-tabs-h) + 66px + env(safe-area-inset-bottom, 0px)) !important; }
html.layout-phone #layout-list .scroller { padding-bottom: 88px; }

/* ---- P2/20: Kalender – Jetzt-Linie im Akzent, Handy-Spaltenköpfe ohne Umbruch ---- */
.fc .fc-now-indicator { border-color: var(--gc-akzent) !important; }
.fc .fc-now-indicator-arrow { border-left-color: var(--gc-akzent) !important; border-right-color: transparent !important; }
html.layout-phone .fc-day-header, html.layout-phone .fc th { white-space: normal; word-break: keep-all; overflow-wrap: normal; hyphens: none; font-size: 11px; line-height: 1.2; }

/* ---- P1/2 + P1/3: Aufgaben (Kolab tasklist) durchgefärbt ---- */
body.task-tasks #tasklists li .actions, body.task-tasks #tasklists li .actions a, body.task-tasks #tasklists li a.quickview,
body.task-tasks #tasklists li .custom-switch, body.task-tasks #tasklists li input + .custom-switch,
body.task-tasks #tasklists li .custom-control-label, body.task-tasks #tasklists li > div { background: transparent !important; background-color: transparent !important; box-shadow: none !important; }
body.task-tasks #tasklists li > div { display: flex !important; align-items: center; gap: 6px; min-height: 48px; margin: 1px 12px; padding: 0 6px 0 0; border-radius: 11px; border: 0 !important; }
body.task-tasks #tasklists li.selected > div, body.task-tasks #tasklists li > div.selected { background: var(--gc-aktiv) !important; box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .18) !important; }
body.task-tasks #tasklists li > div > a.listname { flex: 1; min-width: 0; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.task-tasks #tasklists li > div > a.listname:before {
  content: "" !important; font-size: 0 !important; flex: none; width: 20px; height: 20px; position: static !important; margin: 0 !important;
  background-color: currentColor; -webkit-mask: var(--i-tasks) center / 20px 20px no-repeat; mask: var(--i-tasks) center / 20px 20px no-repeat;
}
body.task-tasks #tasklists li .actions { display: inline-flex; align-items: center; gap: 2px; }
body.task-tasks #tasklists li a.quickview { color: var(--gc-text2) !important; }
body.task-tasks #tasklists li a.quickview:before {
  content: "" !important; font-size: 0 !important; display: inline-block; width: 20px; height: 20px;
  background-color: currentColor; -webkit-mask: var(--i-eye) center / 20px 20px no-repeat; mask: var(--i-eye) center / 20px 20px no-repeat;
}
body.task-tasks #tasklists li a.quickview.active, body.task-tasks #tasklists li.quickview-active a.quickview { color: var(--gc-lila-hell) !important; }
body.task-tasks #tasklist li.taskitem > div, body.task-tasks #tasklist li.taskitem > span, body.task-tasks #tasklist li.taskitem { border-bottom-color: var(--gc-rand) !important; border-color: var(--gc-rand) !important; }
body.task-tasks #tasklist li.taskitem div.taskhead.selected { background: var(--gc-aktiv) !important; }
body.task-tasks #tasklist li.taskitem div.taskhead span.title { color: var(--gc-text) !important; }
#tasklist li.taskitem div.taskhead.complete span.title, body.task-tasks #tasklist li.taskitem div.taskhead.complete span.title {
  color: var(--gc-text2) !important; text-decoration: line-through; text-decoration-color: rgba(165, 163, 194, .6);
}
body.task-tasks #taskselector li a, body.task-tasks #taskselector-name { color: #e7e4f7 !important; }
body.task-tasks #taskselector li.selected a { color: #fff !important; }
body.task-tasks #taskselector li .count { background: rgba(124, 92, 255, .28) !important; color: #efe9ff !important; border-radius: 999px; }
body.task-tasks #layout-content, body.task-tasks #layout-content > .content, body.task-tasks #layout-content .iframe-wrapper, body.task-tasks #layout-content iframe,
body.task-tasks #taskshow, body.task-tasks #taskedit, html.iframe body.task-tasks, body.task-tasks .watermark { background: transparent !important; background-image: none !important; }
body.task-tasks #taskshow, html.iframe body.task-tasks #taskedit, html.iframe body.task-tasks .content { color: var(--gc-text); }
body.task-tasks #taskshow .form-group label, body.task-tasks #taskshow .task-text { color: var(--gc-text2); }
body.task-tasks #listcontrols a.threads .inner { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
body.task-tasks #tasklist .progressbar { background: rgba(255, 255, 255, .1) !important; }
body.task-tasks #tasklist .progressbar .progressvalue { background: var(--gc-akzent) !important; }
body.task-tasks #tasklist .flagged .flag, body.task-tasks #tasklist .taskhead.flagged { color: #fcd34d !important; }

/* ---- P2/21 + P2/9: Notizen – Knopf „Neue Notiz“ mit Plus, Liste als Karten (Rest in goconsult_notizen.css) ---- */
#toolbar-list-menu a.create, #layout-list > .header .toolbar a.create { --gi: var(--i-plus); }
html:not(.layout-phone):not(.layout-small) body.task-notizen #gcn-neu { display: none !important; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar a#gcn-neu-oben {
  display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px !important; width: auto !important;
  border-radius: 999px; background: var(--gc-verlauf) !important; color: #fff !important; box-shadow: 0 8px 20px -10px rgba(124, 92, 255, .9);
}
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar a#gcn-neu-oben::before { margin: 0 !important; width: 18px !important; height: 18px !important; -webkit-mask-size: 18px 18px; mask-size: 18px 18px; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar a#gcn-neu-oben .inner { font-size: 14px !important; font-weight: 650; position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
html.layout-phone body.task-notizen #layout-content > .header a.toolbar-menu-button { color: var(--gc-text) !important; }

/* ---- P2/10: Kopf-Suche ohne passendes Ziel ausblenden (z. B. Einstellungen) ---- */
html.gc-ohne-suche #gc-suche { visibility: hidden; }

/* ---- P3/23: inaktive Knöpfe ruhiger, aber erkennbar (≈3:1) ---- */
.toolbar a.disabled, #toolbar-menu a.disabled, .pagenav a.disabled, .gc-seite[disabled] { color: rgba(165, 163, 194, .62) !important; opacity: 1 !important; }

/* ---- P3/24: Dialog ohne Ziehgriff, ohne Leerraum ---- */
.ui-dialog .ui-resizable-handle { display: none !important; }
.ui-dialog .ui-dialog-content { min-height: 0 !important; }

/* ---- P3/25: HTML-Mail-Papier mit Abstand und Rundung ---- */
#messagebody.gc-papier, .gc-papier { border-radius: 16px !important; }

/* Kolab-Kalender: Knopfgruppen als Pillen (Tag/Woche/Monat) */
.fc-header-toolbar .btn-group .btn, .fc-toolbar .btn-group .btn { border-color: var(--gc-rand-feld) !important; }
.fc-header-toolbar .btn.active, .fc-toolbar .btn.active { background: var(--gc-verlauf) !important; color: #fff !important; border-color: transparent !important; }
html.layout-phone body.action-compose #layout-content > .header .header-title {
  flex: 1 1 auto !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 4px !important; line-height: 44px !important; text-indent: 0 !important;
  left: auto !important; right: auto !important; transform: none !important;
}
html.layout-phone body.action-compose #layout-content > .header > a { margin: 0 !important; }
/* Schreiben: Knöpfe an den Adressfeldern als Linien-Icons */
body.action-compose .input-group-text.icon:is(.add, .edit, .delete)::before {
  content: "" !important; font-family: inherit !important; font-size: 0 !important; display: inline-block; width: 18px; height: 18px; background-color: currentColor;
  -webkit-mask: var(--gq) center / 18px 18px no-repeat; mask: var(--gq) center / 18px 18px no-repeat;
}
body.action-compose .input-group-text.icon.add { --gq: var(--i-plus); } body.action-compose .input-group-text.icon.add.recipient { --gq: var(--i-users); }
body.action-compose .input-group-text.icon.edit { --gq: var(--i-edit); } body.action-compose .input-group-text.icon.delete { --gq: var(--i-x); }

/* Notizen: „Neue Notiz“ als Pille im Listenkopf vollständig, Suchfeld mit Lupe */
html:not(.layout-phone) body.task-notizen #layout-list > .header { justify-content: space-between; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar { overflow: visible !important; width: auto !important; max-width: none !important; flex: none; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar a#gcn-neu-oben .inner { max-width: none !important; overflow: visible !important; white-space: nowrap; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .header-title { display: block !important; position: static !important; font-size: 20px; font-weight: 750; color: #fff; }
body.task-notizen #layout-list .searchbar input[type=search] { padding-left: 2.6rem !important; border-radius: 999px !important; }

/* Kopf-Knöpfe der Spalten: Masken-Icon braucht feste Größe (Elastic rechnet in em bei Schriftgröße 0) */
:is(#layout-sidebar, #layout-list, #layout-content) > .header:not(#messagelist-header) a:is(.task-menu-button, .back-sidebar-button, .back-list-button, .toolbar-menu-button, .sidebar-menu)::before {
  display: block !important; width: 22px !important; height: 22px !important; margin: 0 auto !important;
}
/* Feinschliff nach Prüfbildern */
:is(#layout-sidebar, #layout-list, #layout-content) > .header:not(#messagelist-header) a:is(.task-menu-button, .back-sidebar-button, .back-list-button, .toolbar-menu-button, .sidebar-menu) { position: relative; }
:is(#layout-sidebar, #layout-list, #layout-content) > .header:not(#messagelist-header) a:is(.task-menu-button, .back-sidebar-button, .back-list-button, .toolbar-menu-button, .sidebar-menu)::before {
  position: absolute !important; top: 50% !important; left: 50% !important; margin: 0 !important; transform: translate(-50%, -50%);
}
body.task-mail #layout-content > .header a.back-list-button::before { position: static !important; transform: none; }
#directorylist li > a { position: relative; padding-left: 44px !important; }
#directorylist li > a:before { position: absolute !important; left: 12px; top: 50%; transform: translateY(-50%); margin: 0 !important; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .header-title { flex: 1 1 auto; text-align: left !important; padding-left: 10px !important; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar { position: static !important; margin-left: auto !important; }
html:not(.layout-phone) body.task-notizen #layout-list > .header .toolbar a#gcn-neu-oben { max-width: none !important; min-width: max-content !important; margin-right: 10px !important; }
html body.task-notizen #layout-list .searchbar input#gcn-suche { padding-left: 2.6rem !important; }
/* P3/25: Login-Felder als Pille, Symbol im Feld */
body.task-login #login-form .input-group { border: 1px solid var(--gc-rand-feld); border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; flex-wrap: nowrap; }
body.task-login #login-form .input-group:focus-within { border-color: rgba(196, 181, 253, .8); box-shadow: 0 0 0 3px rgba(124, 92, 255, .3); }
body.task-login #login-form .input-group .input-group-text { background: transparent !important; border: 0 !important; padding: 0 4px 0 18px !important; color: var(--gc-text2) !important; }
body.task-login #login-form .input-group .form-control { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu { align-items: center; border: 0 !important; height: auto; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu li { border: 0 !important; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu a:not(.dropdown) { align-items: center; justify-content: center; height: 44px !important; border-radius: 12px; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu a:not(.dropdown)::before { display: block !important; width: 22px !important; height: 22px !important; margin: 0 !important; -webkit-mask-size: 21px 21px !important; mask-size: 21px 21px !important; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) { display: flex !important; align-self: center; margin: 0 !important; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) > li { display: flex; align-items: center; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) > li.hidden-big, html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) > li:has(> a.hidden) { display: none; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) a:not(.dropdown) { padding: 11px 0 0 !important; box-sizing: border-box; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) a:not(.dropdown)::before { margin: 0 auto !important; }
html.layout-normal body.task-mail #layout-content > .header #toolbar-menu:not(.popupmenu) .dropbutton { display: inline-flex; align-items: center; }
#sections-table td.section { display: flex !important; align-items: center; }
#sections-table td.section:before { vertical-align: middle; }
/* Handy-Schublade: Regeln je Ordner (kein Rechtsklick am Handy) */
.gc-s-zeile { display: flex; align-items: center; gap: 2px; }
.gc-s-zeile > .gc-s-eintrag { flex: 1; min-width: 0; }
.gc-s-regel { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--gc-text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gc-s-regel:hover, .gc-s-regel:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.gc-s-regel .gc-i { width: 18px; height: 18px; }

/* ---- Aufgaben (UX-Prüfung): Suchfelder mit Lupe im Feld, Abhak-Kreis statt Schalter, lesbare Ansicht ---- */
body.task-tasks .searchbar { position: relative; }
body.task-tasks .searchbar { padding: 0 10px !important; }
body.task-tasks .searchbar form { position: relative !important; }
body.task-tasks .searchbar form::before { position: absolute !important; left: 14px !important; top: 50% !important; transform: translateY(-50%); margin: 0 !important; z-index: 2; pointer-events: none; }
html body.task-tasks :is(#layout-sidebar, #layout-list) .searchbar form input { padding-left: 2.5rem !important; }
body.task-tasks .searchbar form { padding: 0 !important; margin: 0 !important; flex: 1 1 auto; min-width: 0; display: flex; }
body.task-tasks .searchbar input { padding-left: 2.6rem !important; border-radius: 999px !important; margin: 0 !important; flex: 1 1 auto; width: 100% !important; }
body.task-tasks .searchbar a.button.search { position: absolute !important; left: 22px !important; top: 50% !important; transform: translateY(-50%); z-index: 2; margin: 0 !important; pointer-events: none; }
body.task-tasks #tasklist .taskhead .custom-switch { padding-left: 0 !important; width: 26px; min-height: 26px; }
body.task-tasks #tasklist .taskhead .custom-switch .custom-control-label { width: 26px; height: 26px; padding: 0 !important; cursor: pointer; }
body.task-tasks #tasklist .taskhead .custom-switch .custom-control-label::before {
  left: 0 !important; top: 1px !important; width: 22px !important; height: 22px !important; border-radius: 50% !important;
  border: 2px solid var(--gc-rand-feld) !important; background: transparent !important; transition: background-color .15s, border-color .15s;
}
body.task-tasks #tasklist .taskhead .custom-switch .custom-control-label::after {
  left: 5px !important; top: 6px !important; width: 12px !important; height: 12px !important; border-radius: 0 !important; transform: none !important;
  background: #fff !important; opacity: 0; -webkit-mask: var(--i-check, none) center / 12px 12px no-repeat; mask: var(--i-check, none) center / 12px 12px no-repeat;
}
body.task-tasks #tasklist .taskhead .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background: var(--gc-verlauf) !important; border-color: transparent !important; }
body.task-tasks #tasklist .taskhead .custom-switch .custom-control-input:checked ~ .custom-control-label::after { opacity: 1; }
body.task-tasks #tasklist .taskhead .custom-switch .custom-control-input:focus-visible ~ .custom-control-label::before { box-shadow: 0 0 0 3px var(--gc-aktiv) !important; }
body.task-tasks #taskshow h2, body.task-tasks #taskshow #task-title, body.task-tasks #taskshow .task-title { color: #fff !important; opacity: 1 !important; }
body.task-tasks #taskshow .form-group .col-form-label, body.task-tasks #taskshow label { color: var(--gc-text2) !important; opacity: 1 !important; }
body.task-tasks #taskshow .form-group .task-text, body.task-tasks #taskshow .form-group .form-control-plaintext, body.task-tasks #taskshow .form-group > div { color: var(--gc-text) !important; opacity: 1 !important; }
body.task-tasks .formbuttons button, body.task-tasks .formbuttons .btn { opacity: 1 !important; }
body.task-tasks .formbuttons .btn-primary, body.task-tasks .formbuttons button.mainaction { background: var(--gc-verlauf) !important; color: #fff !important; border-color: transparent !important; }
body.task-tasks .formbuttons .btn-secondary, body.task-tasks .formbuttons button:not(.mainaction):not(.btn-primary) { background: rgba(255, 255, 255, .07) !important; color: var(--gc-text) !important; border: 1px solid var(--gc-rand2) !important; }
body.task-tasks #listcontrols a.threads .inner { max-width: none !important; }
/* Aufgaben am Handy: Filterliste (Alle/Überfällig …) nicht als lange Liste, sondern über das Ordner-Symbol */
html.layout-phone body.task-tasks .pagenav-list:not(.expanded) + #taskselector-content { height: 0 !important; min-height: 0 !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; }
/* Aufgaben: Detailansicht liegt in .watermark – nicht abdunkeln; erledigte Aufgabe hell + durchgestrichen */
body.task-tasks #layout-content .formcontainer.watermark { opacity: 1 !important; filter: none !important; }
body.task-tasks #taskshow.status-completed h2, body.task-tasks #taskshow.status-completed .task-title { color: var(--gc-text2) !important; text-decoration: line-through; }

/* howanti: Logo ist eine abgerundete Kachel statt eines Kreises (erzeugt von werkzeuge/howanti-skin.mjs) */
.gc-marke svg { border-radius: 22% !important; }
