:root {
  --bg:#08111f;
  --sidebar:#0d1829;
  --panel:#132238;
  --panel2:#172940;
  --text:#edf4ff;
  --muted:#8ea6c3;
  --line:#263c55;
  --blue:#1686f7;
  --blue2:#0068e8;
  --input:#0c182a;
  --hover:#1b3554;
  --shadow:0 20px 60px rgba(0,0,0,.18);
}

html[data-theme="light"] {
  --bg:#f1f5fb;
  --sidebar:#ffffff;
  --panel:#ffffff;
  --panel2:#f7faff;
  --text:#18283f;
  --muted:#637991;
  --line:#dbe4f0;
  --blue:#0876e9;
  --blue2:#005dcc;
  --input:#f8fbff;
  --hover:#eaf3ff;
  --shadow:0 15px 45px rgba(32,65,110,.08);
}

* {box-sizing:border-box}
html {min-height:100%}
body {
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font:14px/1.5 Inter,Segoe UI,Arial,sans-serif;
}
a {color:inherit;text-decoration:none}
button,input,textarea {font:inherit}
button {cursor:pointer}
.topbar {
  height:83px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  background:var(--sidebar);
  border-bottom:1px solid var(--line);
  gap:24px;
}
.brand {display:flex;align-items:center;gap:15px;min-width:230px}
.brand img {width:165px;max-height:53px;object-fit:contain}
.brand span {
  color:var(--muted);
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  border-left:1px solid var(--line);
  padding-left:14px;
}
.top-title {
  color:var(--text);
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
}
.top-title span {color:var(--muted)}
.top-actions {display:flex;align-items:center;gap:16px}
.account {color:var(--muted);font-size:13px}
.theme-button,.logout,.outline-action {
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:9px;
  padding:10px 14px;
}
.theme-button:hover,.logout:hover,.outline-action:hover {
  background:var(--hover);
}
.workspace {
  display:grid;
  grid-template-columns:254px minmax(0,1fr);
  min-height:calc(100vh - 83px);
}
.sidebar {
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:26px 16px;
  display:flex;
  flex-direction:column;
}
.new-mail {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  padding:13px 18px;
  background:linear-gradient(120deg,var(--blue),var(--blue2));
  color:#fff;
  font-weight:700;
  box-shadow:0 8px 22px rgba(0,107,245,.18);
}
.new-mail:hover {filter:brightness(1.12)}
.nav-caption {
  color:var(--muted);
  letter-spacing:1.7px;
  font-size:10px;
  font-weight:800;
  margin:32px 13px 12px;
}
.nav-item {
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 15px;
  border-radius:9px;
  margin:3px 0;
  color:var(--muted);
}
.nav-item>span:first-child {font-size:18px;width:21px}
.nav-item:hover:not(.disabled) {background:var(--hover)}
.nav-item.active {
  color:#fff;
  background:linear-gradient(100deg,#164a84,#12345b);
  border-left:3px solid var(--blue);
}
.nav-item.disabled {opacity:.55;cursor:not-allowed}
.nav-item small {margin-left:auto;font-size:10px}
.folder-caption {margin-top:38px}
.folder-label {color:var(--muted);padding:10px;overflow-wrap:anywhere}
.sidebar-bottom {
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:22px 8px 5px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.sidebar-bottom strong {font-size:12px}
.sidebar-bottom p {margin:2px 0;color:var(--muted);font-size:11px}
.secure-dot {
  width:9px;height:9px;flex:none;
  margin-top:5px;border-radius:50%;background:#26c98b;
  box-shadow:0 0 12px #26c98b55;
}
.main-content {
  min-width:0;
  padding:36px clamp(18px,3vw,55px);
}
.page-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}
.eyebrow {
  color:var(--blue);
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
}
h1 {font-size:29px;letter-spacing:-.7px;margin:6px 0}
.page-header p {margin:0;color:var(--muted)}
.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 25px;
  border-bottom:1px solid var(--line);
}
.panel-heading strong {font-size:16px}
.panel-heading .muted {margin-left:18px;font-size:12px}
.muted {color:var(--muted)}
.counter {
  background:var(--hover);
  border:1px solid var(--line);
  color:var(--blue);
  border-radius:8px;
  padding:4px 12px;
  font-weight:800;
}
.mail-row {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) minmax(120px,250px) 16px;
  align-items:center;
  gap:17px;
  padding:19px 25px;
  border-bottom:1px solid var(--line);
  transition:background .15s;
}
.mail-row:last-child {border-bottom:0}
.mail-row:hover {background:var(--hover)}
.avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border-radius:50%;
  color:white;
  font-weight:800;
  background:linear-gradient(145deg,#268fff,#16477e);
}
.avatar.large {width:52px;height:52px;font-size:18px;flex:none}
.mail-info {min-width:0}
.sender {
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.subject {
  color:var(--muted);
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mail-date {
  color:var(--muted);
  font-size:11px;
  text-align:right;
  overflow-wrap:anywhere;
}
.mail-arrow {color:var(--blue);font-size:24px}
.empty {text-align:center;padding:85px 20px}
.empty-icon {font-size:40px;color:var(--blue)}
.empty p {color:var(--muted)}
.reading-panel {padding:32px}
.reading-title {padding-bottom:25px;border-bottom:1px solid var(--line)}
.reading-title h2 {font-size:26px;margin:10px 0 0;overflow-wrap:anywhere}
.reading-meta {display:flex;gap:16px;align-items:center;padding:25px 0;border-bottom:1px solid var(--line)}
.reading-address {min-width:0;overflow-wrap:anywhere}
.reading-address p {margin:4px 0;color:var(--muted)}
.reading-body {
  min-height:230px;
  padding:32px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.8;
  font-size:15px;
}
.reading-footer {
  border-top:1px solid var(--line);
  padding-top:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.compose-panel {padding:25px 30px}
.form-row {
  display:grid;
  grid-template-columns:85px minmax(0,1fr);
  gap:15px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.form-row label {color:var(--muted);font-weight:600}
.form-row input {
  background:transparent;
  border:0;
  outline:none;
  color:var(--text);
  padding:11px;
  width:100%;
}
.form-row input:focus {background:var(--hover);border-radius:7px}
.readonly {padding:11px;color:var(--text)}
.editor-label {
  margin:24px 0 12px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:1.5px;
  font-weight:800;
}
.compose-panel textarea {
  width:100%;
  min-height:330px;
  resize:vertical;
  background:var(--input);
  border:1px solid var(--line);
  border-radius:10px;
  padding:20px;
  color:var(--text);
  outline:none;
  line-height:1.7;
}
.compose-panel textarea:focus {border-color:var(--blue)}
.compose-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:20px;
}
.notice {margin:15px 0;padding:15px;border-radius:9px}
.notice.error {background:#642e38;color:#ffe4e7}
.notice.success {background:#123c32;color:#a5f4cf}
.login-body {
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:35px 20px;
  min-height:100vh;
  overflow-x:hidden;
}
.login-background {
  position:fixed;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse at 15% 10%,rgba(0,118,255,.22),transparent 50%),
    radial-gradient(ellipse at 90% 85%,rgba(0,75,180,.16),transparent 45%);
}
.login-shell {position:relative;width:100%;max-width:465px}
.login-brand {text-align:center;margin-bottom:30px}
.login-brand img {width:min(320px,85%);max-height:145px;object-fit:contain}
.login-brand span {
  display:block;color:var(--muted);
  letter-spacing:4px;font-size:12px;font-weight:700;
}
.login-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:17px;
  padding:38px;
  box-shadow:var(--shadow);
}
.login-card h1 {font-size:27px;margin:12px 0}
.login-card p {color:var(--muted);margin-bottom:25px}
.login-card label {display:block;margin:17px 0 8px;font-weight:600}
.login-card input {
  display:block;width:100%;padding:14px 15px;
  background:var(--input);
  border:1px solid var(--line);
  border-radius:9px;color:var(--text);
  outline:none;
}
.login-card input:focus {border-color:var(--blue)}
.login-submit {width:100%;margin-top:25px}
.login-bottom {
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-top:22px;color:var(--muted);font-size:11px;
}
@media(max-width:1000px) {
  .top-title {display:none}
  .workspace {grid-template-columns:210px minmax(0,1fr)}
  .mail-row {grid-template-columns:42px minmax(0,1fr) 15px}
  .mail-date {grid-column:2;text-align:left}
  .mail-arrow {grid-column:3;grid-row:1}
}
@media(max-width:680px) {
  .topbar {height:auto;min-height:75px;padding:12px;flex-wrap:wrap}
  .brand {min-width:0}
  .brand img {width:125px}
  .brand span {display:none}
  .account {font-size:11px}
  .top-actions {gap:6px}
  .workspace {display:block}
  .sidebar {border-right:0;border-bottom:1px solid var(--line);padding:12px}
  .sidebar nav {display:grid;grid-template-columns:1fr 1fr;gap:3px}
  .sidebar-bottom,.folder-caption,.folder-label {display:none}
  .nav-caption {margin:15px 8px 5px}
  .main-content {padding:24px 12px}
  .page-header {align-items:flex-start}
  .page-header h1 {font-size:24px}
  .mail-row {padding:15px 12px;gap:10px}
  .reading-panel {padding:18px}
  .reading-footer,.compose-footer {flex-wrap:wrap}
  .compose-panel {padding:16px}
  .form-row {grid-template-columns:1fr;gap:0}
  .login-card {padding:25px}
}

/* ZECtorZ Original-Logo – große Darstellung */
.topbar {
    min-height: 112px;
    height: auto;
    padding: 12px 30px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-width: 320px;
}

.brand img {
    width: 310px;
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
    object-position: left center;
}

.brand span {
    border-left: none;
    padding-left: 0;
    margin-top: -4px;
    font-size: 10px;
    letter-spacing: 3px;
}

.workspace {
    min-height: calc(100vh - 112px);
}

@media (max-width: 680px) {
    .topbar {
        min-height: 80px;
        padding: 10px 14px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 185px;
        max-height: 65px;
    }

    .brand span {
        display: none;
    }
}


/* ZECtorZ Webmail – kompakte Kopfzeile */
.topbar {
    height: 82px;
    min-height: 82px;
    padding: 8px 25px;
}

.brand {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.brand img {
    width: 190px;
    height: 60px;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
}

.brand span {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: 2px;
}

.workspace {
    min-height: calc(100vh - 82px);
}

@media (max-width: 680px) {
    .topbar {
        height: auto;
        min-height: 75px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 145px;
        height: auto;
    }

    .brand span {
        display: none;
    }
}

/* ZECtorZ TMS Sidebar Design */

.workspace {
    grid-template-columns: 320px minmax(0,1fr);
}

.sidebar {
    padding: 0 10px 25px;
    background: #0c1b2c;
}

.brand-sidebar {
    display: block;
    margin: 0 -10px 18px;
    padding: 10px 25px;
    background: #050b14;
    border-bottom: 2px solid #166ba7;
    text-align: center;
}

.brand-sidebar img {
    display: block;
    width: 100%;
    max-width: 270px;
    max-height: 110px;
    object-fit: contain;
    margin: auto;
}

.sidebar > .new-mail {
    margin: 0 3px 12px;
}

.zectorz-nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.zectorz-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 65px;
    margin: 0;
    padding: 10px 13px;
    background: #10283b;
    border: 1px solid #34516a;
    border-radius: 11px;
    color: #edf4ff;
    opacity: 1;
}

.zectorz-nav .nav-item.active {
    background: #2474c5;
    border-color: #2589ef;
}

.zectorz-nav .nav-item.disabled {
    opacity: .65;
}

.zectorz-nav .nav-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #123d60;
    color: #3298ff;
    border-radius: 8px;
    font-size: 23px;
}

.zectorz-nav .nav-item.active .nav-icon {
    background: #1462aa;
    color: white;
}

.zectorz-nav .nav-item strong {
    font-size: 16px;
}

.zectorz-nav .nav-arrow {
    margin-left: auto;
    color: #4b96ce;
    font-size: 30px;
}

.top-brand-label {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

@media (max-width: 680px) {
    .workspace {
        display: block;
    }

    .sidebar {
        padding: 10px;
    }

    .brand-sidebar {
        display: none;
    }

    .zectorz-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .zectorz-nav .nav-item {
        min-height: 55px;
        padding: 8px;
    }

    .zectorz-nav .nav-item strong {
        font-size: 12px;
    }

    .zectorz-nav .nav-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 16px;
    }
}

/* =====================================
   ZECtorZ WEBMAIL – COMPACT DESIGN
   ===================================== */

@media (min-width: 681px) {

  .topbar {
    height: 64px;
    min-height: 64px;
    padding: 0 22px;
  }

  .top-brand-label {
    font-size: 13px;
    letter-spacing: 1.4px;
  }

  .top-title {
    font-size: 11px;
  }

  .workspace {
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
  }

  .sidebar {
    padding: 0 9px 18px;
  }

  .brand-sidebar {
    margin: 0 -9px 12px;
    padding: 8px 15px;
  }

  .brand-sidebar img {
    width: 205px;
    max-height: 75px;
  }

  .sidebar > .new-mail {
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .nav-caption {
    margin: 17px 10px 9px;
    font-size: 10px;
  }

  .zectorz-nav {
    gap: 6px;
  }

  .zectorz-nav .nav-item {
    min-height: 46px;
    padding: 7px 10px;
    gap: 10px;
    border-radius: 8px;
  }

  .zectorz-nav .nav-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 16px;
    border-radius: 6px;
  }

  .zectorz-nav .nav-item strong {
    font-size: 13px;
    font-weight: 600;
  }

  .zectorz-nav .nav-arrow {
    font-size: 20px;
  }

  .folder-label {
    padding: 7px 10px;
    font-size: 12px;
  }

  .main-content {
    padding: 24px 28px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .panel-heading {
    padding: 15px 20px;
  }

  .mail-row {
    padding: 12px 20px;
    gap: 12px;
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .sender {
    font-size: 13px;
  }

  .subject {
    font-size: 12px;
  }

  .mail-date {
    font-size: 10px;
  }

}


/* ======================================
   ZECtorZ – Logo oben links
   ====================================== */

.topbar {
    height: 76px;
    min-height: 76px;
    padding: 0 18px;
}

.top-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 242px;
    height: 100%;
    flex-shrink: 0;
}

.top-logo img {
    display: block;
    width: 205px;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

.workspace {
    min-height: calc(100vh - 76px);
}

.sidebar {
    padding-top: 16px;
}

/* Desktop: bisherige Größenregeln überschreiben */
@media (min-width: 681px) {
    .topbar {
        height: 76px;
        min-height: 76px;
    }

    .workspace {
        min-height: calc(100vh - 76px);
    }
}

/* Smartphone */
@media (max-width: 680px) {
    .topbar {
        height: auto;
        min-height: 70px;
        padding: 8px 12px;
    }

    .top-logo {
        width: 155px;
        height: 55px;
    }

    .top-logo img {
        width: 150px;
        max-height: 52px;
    }
}

/* ==========================================================
   ZECTORZ WEBMAIL - COMPACT DESIGN V2
   Logo bleibt unverändert
   ========================================================== */

/* Allgemeine Größen */
.page-header {
    margin-bottom: 16px !important;
}

.page-header h1 {
    font-size: 23px !important;
    line-height: 1.3 !important;
    margin: 6px 0 !important;
}

.page-header p {
    font-size: 12px !important;
}

.eyebrow {
    font-size: 10px !important;
    letter-spacing: 1.6px !important;
}

/* Sidebar - moderne kompakte Buttons */
.sidebar .nav-item,
.nav-item {
    min-height: 39px !important;
    padding: 5px 10px !important;
    margin-bottom: 5px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

.nav-item:not(.disabled):hover {
    background: #193b61 !important;
    border-color: #2584e9 !important;
    transform: translateX(2px);
    box-shadow: 0 3px 12px rgba(0, 110, 255, .12);
}

.nav-item.active,
.nav-item[aria-current="page"] {
    background: linear-gradient(
        110deg,
        #247bc9,
        #1262b5
    ) !important;
    border-color: #318ef0 !important;
    color: #fff !important;
}

.nav-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
}

.nav-arrow {
    font-size: 15px !important;
    opacity: .65;
}

.nav-item.disabled {
    opacity: .65;
}

/* Neue E-Mail */
.sidebar .new-mail,
.new-mail {
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    min-height: 39px !important;
    padding: 9px 14px !important;
    background: linear-gradient(
        110deg,
        #238df8,
        #0866d8
    ) !important;
    box-shadow: 0 5px 15px rgba(0, 110, 255, .16);
    transition: filter .18s ease, transform .18s ease;
}

.new-mail:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* Nachrichtenliste */
.mail-row {
    min-height: 56px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

.mail-row:hover {
    background: rgba(35, 126, 225, .10) !important;
}

.mail-row .avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 12px !important;
}

.mail-row strong {
    font-size: 12px !important;
}

.mail-row p,
.mail-row small {
    font-size: 11px !important;
}

/* Karten und Überschriften */
.panel {
    border-radius: 12px !important;
}

.panel-header {
    padding: 14px 18px !important;
}

/* Editor kompakter */
.compose-panel {
    padding: 18px 22px !important;
}

.compose-panel .form-row {
    min-height: 49px !important;
}

.compose-panel label {
    font-size: 12px !important;
}

.compose-panel input {
    font-size: 12px !important;
}

.compose-panel textarea {
    min-height: 260px !important;
    height: 300px !important;
    max-height: 55vh;
    padding: 15px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    border-radius: 9px !important;
}

.editor-label {
    font-size: 10px !important;
    letter-spacing: 1.4px !important;
}

.compose-footer {
    padding-top: 14px !important;
}

/* Nachrichtenansicht */
.reading-panel {
    padding: 22px !important;
}

.reading-title h2 {
    font-size: 19px !important;
}

.reading-body {
    font-size: 13px !important;
    line-height: 1.7 !important;
}

/* Allgemeine Aktionsbuttons */
.outline-action,
.theme-button,
.logout {
    border-radius: 9px !important;
    font-size: 12px !important;
    padding: 9px 13px !important;
    transition: all .18s ease !important;
}

.outline-action:hover,
.theme-button:hover,
.logout:hover {
    border-color: #298bf1 !important;
    background: rgba(37, 126, 225, .12) !important;
}

/* Kleine Bildschirme */
@media (max-width: 900px) {
    .compose-panel {
        padding: 14px !important;
    }

    .compose-panel textarea {
        min-height: 220px !important;
        height: 260px !important;
    }

    .reading-panel {
        padding: 15px !important;
    }
}


/* =========================================
   ZECTORZ SIDEBAR COMPACT V3
   ========================================= */

/* Sidebar-Inhalt schmaler */
.sidebar .nav-item,
.sidebar .new-mail {
    width: calc(100% - 28px) !important;
    box-sizing: border-box !important;
}

/* Menübuttons */
.sidebar .nav-item {
    min-height: 34px !important;
    padding: 4px 9px !important;
    margin-bottom: 5px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Beschriftung */
.sidebar .nav-item strong {
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Icons kleiner */
.sidebar .nav-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

/* Pfeile kleiner */
.sidebar .nav-arrow {
    font-size: 12px !important;
}

/* Neue E-Mail */
.sidebar .new-mail {
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 7px !important;
}

/* Sidebar-Überschriften */
.sidebar .sidebar-label,
.sidebar .nav-label {
    font-size: 10px !important;
    letter-spacing: 1.2px !important;
}

/* Kontoinformation */
.sidebar .account-email {
    font-size: 11px !important;
}


/* ZECTORZ SIDEBAR – BALANCED V4 */

.sidebar .nav-item,
.sidebar .new-mail {
    width: calc(100% - 12px) !important;
    box-sizing: border-box !important;
}

.sidebar .nav-item {
    min-height: 40px !important;
    padding: 6px 11px !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

.sidebar .nav-item strong {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.sidebar .nav-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
}

.sidebar .nav-arrow {
    font-size: 14px !important;
}

.sidebar .new-mail {
    min-height: 43px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}


/* =========================================
   ZECTORZ LOGO V5
   Nur Logo – Sidebar unverändert
   ========================================= */

.topbar img[src*="zectorz-logo"],
.topbar .brand img,
.topbar .logo img {
    width: 340px !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ZECTORZ LOGO V6 – 400px */
.topbar img[src*="zectorz-logo"],
.topbar .brand img,
.topbar .logo img {
    width: 400px !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ZECTORZ LOGO V7 – gezielte Korrektur */

@media (min-width: 901px) {

    .topbar .top-logo {
        width: 350px !important;
        min-width: 350px !important;
        height: 76px !important;
        max-width: none !important;
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .topbar .top-logo img {
        width: 350px !important;
        max-width: none !important;
        max-height: 76px !important;
        height: 76px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

}


/* ZECTORZ LOGO V8 – saubere Darstellung */

@media (min-width: 901px) {

    .topbar .top-logo {
        width: 300px !important;
        min-width: 300px !important;
        height: 76px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .topbar .top-logo img {
        display: block !important;
        width: 300px !important;
        height: 76px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

}


/* ==================================================
   ZECTORZ WEBMAIL – LOGO & TOPBAR V9
   Sidebar-Buttons bleiben unverändert
   ================================================== */

@media (min-width: 901px) {

    /* Gesamte obere Leiste vergrößern */
    body > header.topbar {
        height: 120px !important;
        min-height: 120px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Logo-Container */
    body > header.topbar > a.top-logo {
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;

        height: 112px !important;
        min-height: 112px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Logo-Bild */
    body > header.topbar > a.top-logo > img {
        display: block !important;

        width: 380px !important;
        height: 112px !important;

        max-width: 380px !important;
        max-height: 112px !important;

        object-fit: contain !important;
        object-position: left center !important;
    }

    /* Arbeitsbereich an neue Topbar-Höhe anpassen */
    .workspace {
        min-height: calc(100vh - 120px) !important;
    }

}


/* ZECTORZ LOGO V10 – kleiner und linksbündig */

@media (min-width: 901px) {

    body > header.topbar > a.top-logo {
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        height: 110px !important;
        min-height: 110px !important;
        margin-left: -12px !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    body > header.topbar > a.top-logo > img {
        width: 340px !important;
        height: 110px !important;
        max-width: 340px !important;
        max-height: 110px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

}


/* ZECTORZ LOGO V11 */
@media (min-width: 901px) {
    body > header.topbar > a.top-logo {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }

    body > header.topbar > a.top-logo > img {
        width: 300px !important;
        max-width: 300px !important;
        height: 100px !important;
        max-height: 100px !important;
        object-fit: contain !important;
    }
}

/* ============================================
   ZECTORZ MAIL SYSTEM – TOPBAR BRANDING
   ============================================ */

@media (min-width: 901px) {

    .topbar {
        position: relative !important;
    }

    .topbar .mail-system-brand {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;

        width: max-content !important;
        margin: 0 !important;
        text-align: center !important;
        pointer-events: none;
    }
}

.mail-system-icon {
    color: #238dff;
    font-size: 19px;
    line-height: 1;
}

.mail-system-text {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    color: #e8eef8;
}

.mail-system-text em {
    font-style: normal;
    color: #319dff;
}

.mail-system-subtitle {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #7f9cbd;
}

@media (max-width: 900px) {
    .mail-system-text {
        font-size: 15px;
    }

    .mail-system-subtitle {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .mail-system-icon {
        font-size: 14px;
    }
}


/* ZECTORZ MAIL SYSTEM – METALLIC BRANDING V13 */

.topbar .mail-system-brand {
    gap: 1px !important;
}

.mail-system-icon {
    color: #4aaeff !important;
    font-size: 18px !important;
    filter: drop-shadow(0 0 4px rgba(0,130,255,.35));
}

.mail-system-text {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -0.8px !important;
    line-height: 1.15 !important;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #dce7f3 25%,
        #7f96b2 49%,
        #f0f5fc 55%,
        #8d9aaf 82%,
        #53657e 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.mail-system-text em {
    font-style: italic !important;

    background: linear-gradient(
        180deg,
        #91dcff 0%,
        #168eff 35%,
        #0060cf 65%,
        #003d92 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.mail-system-subtitle {
    color: #a3b1c4 !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 3.5px !important;
    margin-top: 4px !important;
}


/* ================================================
   ZECTORZ MAIL SYSTEM – PREMIUM METALLIC V14
   Nur mittleres Branding
   ================================================ */

.topbar .mail-system-brand {
    gap: 0 !important;
    padding: 0 12px !important;
}

/* Briefsymbol ausblenden */
.topbar .mail-system-icon {
    display: none !important;
}

/* Hauptschrift */
.topbar .mail-system-text {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 37px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -1.8px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f2f6fc 19%,
        #a7b8cd 39%,
        #50647d 48%,
        #e7eff9 55%,
        #a6b5c8 70%,
        #52647b 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

/* SYSTEM in ZECtorZ-Blau */
.topbar .mail-system-text em {
    font-style: italic !important;

    background: linear-gradient(
        180deg,
        #c4edff 0%,
        #55baff 18%,
        #007ef5 42%,
        #004eac 51%,
        #168eff 61%,
        #003a85 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Blaue Akzentlinie */
.topbar .mail-system-text::after {
    content: "" !important;
    display: block !important;
    width: 82% !important;
    height: 2px !important;
    margin: 7px auto 5px !important;

    background: linear-gradient(
        90deg,
        transparent,
        #168cff 18%,
        #8edaff 50%,
        #168cff 82%,
        transparent
    ) !important;

    box-shadow: 0 0 7px rgba(0,130,255,.3);
}

/* Unterzeile */
.topbar .mail-system-subtitle {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 5px !important;
    color: #a9bbd0 !important;
    margin-top: 1px !important;
    text-align: center !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .topbar .mail-system-text {
        font-size: 26px !important;
    }

    .topbar .mail-system-subtitle {
        font-size: 8px !important;
        letter-spacing: 2px !important;
    }
}


/* ==================================================
   ZECTORZ MAIL SYSTEM – CLEAN TECH V16
   Nur mittleres Branding
   ================================================== */

.topbar .mail-system-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: max-content !important;
    padding: 0 !important;
    text-align: left !important;
    filter: none !important;
}

.mail-brand-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg,#188df5,#064b9d);
    border: 1px solid #329bff;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(0,100,220,.18);
}

.mail-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mail-brand-name {
    color: #f0f5ff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.1;
}

.mail-brand-product {
    color: #3c9eff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .mail-brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .mail-brand-name {
        font-size: 18px;
    }

    .mail-brand-product {
        font-size: 9px;
        letter-spacing: 1px;
    }
}


/* =====================================================
   ZECTORZ MAIL SYSTEM V17
   Direkt rechts neben dem Original-Logo
   Sidebar bleibt unverändert
   ===================================================== */

@media (min-width: 901px) {

    body > header.topbar {
        position: relative !important;
    }

    body > header.topbar > .mail-system-brand {
        position: absolute !important;

        left: 470px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;

        width: max-content !important;
        gap: 5px !important;
        padding: 0 !important;
        margin: 0 !important;

        text-align: left !important;
        pointer-events: none !important;
    }
}

/* Hauptschrift */
.topbar .mail-system-main {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 38px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -1.2px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

/* Silber wie ZECtorZ */
.topbar .mail-system-silver {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #dce6f2 30%,
        #74869d 49%,
        #e8eef7 57%,
        #64758d 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Blau wie ZECtorZ */
.topbar .mail-system-blue {
    background: linear-gradient(
        180deg,
        #a6e7ff 0%,
        #229fff 30%,
        #0056c8 50%,
        #168dff 62%,
        #003b88 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Kleine Unterzeile */
.topbar .mail-system-caption {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 4px !important;
    color: #9bacc3 !important;
    padding-left: 3px !important;
}

/* Auf kleineren Bildschirmen */
@media (max-width: 900px) {

    .topbar .mail-system-brand {
        display: none !important;
    }

}


/* ZECTORZ MAIL SYSTEM V18 – SILBER / BLAU */

@media (min-width: 901px) {
    body > header.topbar > .mail-system-brand {
        left: 455px !important;
        gap: 4px !important;
    }
}

.topbar .mail-system-main {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 35px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    gap: 10px !important;
    filter: none !important;
}

/* Helles Metallic-Silber */
.topbar .mail-system-silver {
    color: #e7edf6 !important;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f5f8ff 28%,
        #c4d1e2 49%,
        #ffffff 54%,
        #b3c3d7 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none !important;
}

/* ZECtorZ-Blau */
.topbar .mail-system-blue {
    color: #168dff !important;
    background: linear-gradient(
        180deg,
        #8cdaff 0%,
        #319fff 40%,
        #0871dc 65%,
        #0051ac 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none !important;
}

.topbar .mail-system-caption {
    font-size: 9px !important;
    letter-spacing: 3px !important;
    color: #a6b8d0 !important;
}


/* ==========================================
   ZECTORZ MAIL SYSTEM V19
   Chrome / Electric Blue 3D
   ========================================== */

.topbar .mail-system-main {
    display: flex !important;
    align-items: baseline !important;
    gap: 7px !important;

    font-family: "Arial Black", Arial, sans-serif !important;
    font-size: 39px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -2px !important;
    line-height: 1.05 !important;
    filter: none !important;
}

/* MAIL – helles Chrom */
.topbar .mail-system-main .mail-system-silver {
    display: inline-block !important;

    color: #eaf2ff !important;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 25%,
        #cbd8e9 43%,
        #7f90a9 49%,
        #ffffff 52%,
        #dbe5f2 65%,
        #9baec7 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

    text-shadow: none !important;
    filter: drop-shadow(1px 2px 1px #000814) !important;
}

/* SYSTEM – glänzendes ZECtorZ-Blau */
.topbar .mail-system-main .mail-system-blue {
    display: inline-block !important;

    color: #168fff !important;
    background: linear-gradient(
        to bottom,
        #d0f3ff 0%,
        #71cfff 22%,
        #159dff 42%,
        #004caa 49%,
        #2baaff 54%,
        #0067d9 75%,
        #003b8e 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

    text-shadow: none !important;
    filter: drop-shadow(1px 2px 1px #000814) !important;
}

.topbar .mail-system-caption {
    color: #aebed3 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    padding-left: 4px !important;
}


/* ZECTORZ MAIL SYSTEM – FINAL WORDMARK */

@media (min-width: 901px) {
    body > header.topbar > .mail-system-brand {
        position: absolute !important;
        left: 410px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
}

.topbar .zmail-wordmark {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 7px !important;
    font-family: "Arial Black", Arial, sans-serif !important;
    font-size: 43px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -2px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.topbar .zmail-silver {
    display: inline-block !important;
    background: none !important;
    -webkit-text-fill-color: #f0f5fc !important;
    color: #f0f5fc !important;
    text-shadow:
        1px 1px 0 #91a4bd,
        2px 2px 0 #52657e,
        3px 3px 2px #071426 !important;
}

.topbar .zmail-blue {
    display: inline-block !important;
    background: none !important;
    -webkit-text-fill-color: #258fff !important;
    color: #258fff !important;
    text-shadow:
        1px 1px 0 #65bdff,
        2px 2px 0 #004eaa,
        3px 3px 2px #061a36 !important;
}

@media (max-width: 900px) {
    .topbar .mail-system-brand {
        display: none !important;
    }
}


/* ZECtorZ MAIL SYSTEM – an Hauptlogo angepasst */

@media (min-width: 901px) {
    body > header.topbar > .mail-system-brand {
        left: 510px !important;
    }
}

.topbar .zmail-wordmark {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -1.5px !important;
    gap: 8px !important;
}

.topbar .zmail-silver {
    color: #c4d0e1 !important;
    -webkit-text-fill-color: #c4d0e1 !important;
    text-shadow:
        1px 1px 0 #64768d,
        2px 2px 1px #081322 !important;
}

.topbar .zmail-blue {
    color: #1686df !important;
    -webkit-text-fill-color: #1686df !important;
    text-shadow:
        1px 1px 0 #0759ac,
        2px 2px 1px #081322 !important;
}


/* ========================================
   ZECTORZ MAIL SVG – VERSION 103
   ======================================== */

@media (min-width: 901px) {

    body > header.topbar > .mail-system-brand {
        position: absolute !important;
        left: 485px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 450px !important;
        height: 105px !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    .topbar .zectorz-mail-svg {
        display: block !important;
        width: 450px !important;
        height: auto !important;
        max-height: 105px !important;
        overflow: visible !important;
    }
}

@media (max-width: 900px) {
    .topbar .mail-system-brand {
        display: none !important;
    }
}


/* =========================================
   ZECTORZ MAIL – COMPACT EDITION V104
   ========================================= */

@media (min-width: 901px) {

    body > header.topbar > .mail-system-brand {
        left: 510px !important;
        width: 280px !important;
        height: 70px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .topbar .zectorz-mail-svg {
        width: 280px !important;
        height: auto !important;
        max-height: 70px !important;
        overflow: visible !important;
    }
}


/* ZECtorZ Webmail – dezentes Branding V105 */

@media (min-width: 901px) {
    body > header.topbar > .mail-system-brand {
        position: absolute !important;
        left: 510px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 9px !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
}

.topbar .zmail-clean-title {
    font-family: Arial, sans-serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 4px !important;
    color: #cbd5e3 !important;
    white-space: nowrap !important;
}

.topbar .zmail-clean-title strong {
    color: #258fea !important;
    font-weight: 700 !important;
}

.topbar .zmail-clean-line {
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    background: linear-gradient(
        90deg,
        #168fff,
        rgba(22,143,255,0)
    ) !important;
}

@media (max-width: 900px) {
    .topbar .mail-system-brand {
        display: none !important;
    }
}


/* ZECtorZ – MAIL SYSTEM V106 */

@media (min-width: 901px) {
    body > header.topbar > .mail-system-brand {
        position: absolute !important;
        left: 500px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
}

.topbar .zmail-logo-text {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    white-space: nowrap !important;

    font-family: Impact, "Arial Black", sans-serif !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -0.5px !important;

    transform: skewX(-9deg) scaleX(1.12) !important;
    transform-origin: left center !important;
}

.topbar .zmail-logo-mail {
    color: #cbd8e8 !important;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #e9f1fc 30%,
        #8fa4bd 49%,
        #e7eef7 53%,
        #71859d 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(1px 2px 1px #07101c) !important;
}

.topbar .zmail-logo-system {
    color: #168fff !important;
    background: linear-gradient(
        180deg,
        #a9eaff 0%,
        #229fff 35%,
        #0053b5 49%,
        #169dff 54%,
        #00438f 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(1px 2px 1px #07101c) !important;
}

@media (max-width: 900px) {
    .topbar .mail-system-brand {
        display: none !important;
    }
}


/* ZECtorZ MAIL SYSTEM – Headerlogo */
.topbar .top-logo img {
    display: block !important;
    width: 285px !important;
    max-width: 285px !important;
    height: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    object-position: left center !important;
}


/* ==========================================================
   ZECtorZ MAIL SYSTEM – Logo final kompakt
   ========================================================== */

.topbar .top-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 255px !important;
    height: 108px !important;
    padding: 4px 0 4px 4px !important;
    margin: 0 !important;
}

.topbar .top-logo img {
    display: block !important;
    width: 245px !important;
    max-width: 245px !important;
    height: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    object-position: left center !important;
}


/* ==========================================================
   ZECtorZ WEBMAIL – TOP POSTEINGANG + KONTO-AKTIONEN
   ========================================================== */

/* Posteingang oben neben dem Logo */
.top-inbox-link {
    position: absolute;
    left: 310px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.top-inbox-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(76, 130, 180, .45);
    border-radius: 9px;
    background: rgba(18, 45, 69, .72);
    color: #dce9f8;
    text-decoration: none;
    font-size: 14px;
    transition: .18s ease;
}

.top-inbox-button span {
    color: #2494ff;
    font-size: 17px;
}

.top-inbox-button:hover {
    border-color: #238cf0;
    background: rgba(28, 86, 139, .55);
    color: #fff;
}

/* Konto-Bereich unten links */
.account-email {
    margin-bottom: 20px !important;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 6px;
}

.account-actions form {
    margin: 0;
    padding: 0;
}

.account-action {
    width: 100%;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 0 13px !important;
    border: 1px solid rgba(76, 130, 180, .38) !important;
    border-radius: 8px !important;
    background: rgba(16, 39, 59, .72) !important;
    color: #aebfd2 !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: .18s ease;
}

.account-action span {
    font-size: 12px;
}

.account-action:hover {
    border-color: #2589ef !important;
    background: rgba(30, 91, 145, .55) !important;
    color: #fff !important;
}

.account-action.theme-button {
    font-size: 16px !important;
}

.account-action.logout {
    font-size: 16px !important;
}

/* Die alten oberen Aktionen werden nicht mehr benötigt */
.top-actions {
    display: none !important;
}

/* Mobile */
@media (max-width: 900px) {
    .top-inbox-link {
        left: 265px;
    }

    .top-inbox-button {
        padding: 0 13px;
        font-size: 12px;
    }
}

@media (max-width: 650px) {
    .top-inbox-link {
        display: none;
    }
}



/* ==========================================================
   ZECTORZ WEBMAIL – TOP POSTEINGANG
   ========================================================== */

.top-page-title {
    position: absolute;
    left: 285px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;

    color: #e6f0ff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;

    white-space: nowrap;
    pointer-events: none;
}

/* Inbox direkt unter der Topbar */
.inbox-panel {
    margin-top: 18px !important;
}

.inbox-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inbox-refresh {
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
}

@media (max-width: 900px) {

    .top-page-title {
        left: 265px;
        font-size: 14px;
        letter-spacing: 1.7px;
    }

}

@media (max-width: 650px) {

    .top-page-title {
        display: none;
    }

    .inbox-heading-actions {
        gap: 6px;
    }

}

/* ==========================================================
   ZECtorZ WEBMAIL – TOPBAR POSTEINGANG
   ========================================================== */

.topbar {
    position: relative !important;
    overflow: hidden !important;
}

/* Logo bleibt links */
.topbar .top-logo {
    position: relative !important;
    z-index: 5 !important;
}

/* Neues Feld direkt rechts neben dem Logo */
.top-inbox-box {
    position: absolute !important;

    left: 275px !important;
    top: 10px !important;
    bottom: 10px !important;

    width: 270px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    padding-left: 24px !important;

    border-left: 1px solid rgba(78, 137, 190, .32) !important;

    box-sizing: border-box !important;
}

/* kleine Kennzeichnung */
.top-inbox-eyebrow {
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;

    color: #238cf0 !important;

    margin-bottom: 5px !important;
}

/* POSTEINGANG */
.top-inbox-title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;

    color: #edf5ff !important;

    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: 1.7px !important;

    line-height: 1 !important;
}

.top-inbox-icon {
    color: #2995f5 !important;
    font-size: 17px !important;
}

/* Konto rechts */
.top-actions {
    position: relative !important;
    z-index: 10 !important;
}

/* kein alter Top-Inbox-Button */
.top-inbox-link,
.top-inbox-button {
    display: none !important;
}

@media (max-width: 900px) {

    .top-inbox-box {
        left: 265px !important;
        width: 240px !important;
        padding-left: 18px !important;
    }

    .top-inbox-title {
        font-size: 16px !important;
    }

}

@media (max-width: 650px) {

    .top-inbox-box {
        display: none !important;
    }

}



/* ==========================================================
   ZECtorZ WEBMAIL – NACHRICHTENANSICHT
   ========================================================== */

.reading-panel {
    max-width: none;
}

.reading-title {
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(130, 160, 190, .20);
}

.reading-title h2 {
    margin: 8px 0 0;
    font-size: 25px;
    line-height: 1.3;
    color: #f3f7fc;
}

.reading-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(130, 160, 190, .16);
}

.avatar.large {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #238ff0, #1264b7);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.reading-address strong {
    display: block;
    color: #f1f6fc;
    font-size: 15px;
}

.reading-address p {
    margin: 3px 0 0;
    color: #7fa5cc;
    font-size: 13px;
}

.reading-body {
    padding: 30px 28px;
    min-height: 260px;
    color: #dce8f5;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.reading-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 28px;
    border-top: 1px solid rgba(130, 160, 190, .16);
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .reading-title,
    .reading-meta,
    .reading-body,
    .reading-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .reading-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   ZECtorZ WEBMAIL – VERFASSEN
   ========================================================== */

.compose-page {
    width: 100%;
}

.compose-head {
    margin-bottom: 18px;
}

.compose-head h1 {
    margin: 5px 0 4px;
    font-size: 23px;
    line-height: 1.2;
}

.compose-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.compose-page > .notice {
    margin-bottom: 16px;
}

.compose-panel {
    padding: 0 !important;
    overflow: hidden;
}

.compose-fields {
    padding: 6px 24px 0;
}

.compose-row {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    align-items: center;
    min-height: 55px;

    border-bottom: 1px solid var(--line);
}

.compose-row label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.compose-row input,
.compose-readonly {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;

    border: 0;
    outline: none;
    background: transparent;

    color: var(--text);
    font-size: 13px;
}

.compose-row input::placeholder {
    color: #60748a;
}

.compose-row input:focus {
    background: var(--hover);
    border-radius: 7px;
}

.compose-readonly {
    color: #9db1c8;
}

.compose-editor {
    padding: 20px 24px 0;
}

.compose-editor-head {
    margin-bottom: 9px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.compose-editor textarea {
    display: block;

    width: 100%;
    min-height: 340px;
    height: 340px;

    resize: vertical;

    padding: 17px;

    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 9px;

    color: var(--text);
    outline: none;

    font: inherit;
    font-size: 13px;
    line-height: 1.7;
}

.compose-editor textarea::placeholder {
    color: #60748a;
}

.compose-editor textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(37, 137, 239, .08);
}

.compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 18px 24px;
    margin-top: 18px;

    border-top: 1px solid var(--line);
}

.compose-cancel {
    text-decoration: none !important;
}

.compose-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 0 18px;

    border: 1px solid #238bf0;
    border-radius: 8px;

    background: linear-gradient(
        180deg,
        #258fe9,
        #176fc0
    );

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 4px 14px rgba(20, 105, 190, .20);

    transition: .18s ease;
}

.compose-send span {
    font-size: 15px;
}

.compose-send:hover {
    background: linear-gradient(
        180deg,
        #319cff,
        #1b79ca
    );

    border-color: #42a4ff;

    transform: translateY(-1px);
}

.compose-send:active {
    transform: translateY(0);
}

@media (max-width: 700px) {

    .compose-fields,
    .compose-editor {
        padding-left: 16px;
        padding-right: 16px;
    }

    .compose-row {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .compose-editor textarea {
        min-height: 260px;
        height: 260px;
    }

    .compose-actions {
        padding: 15px 16px;
    }

}

/* ZECtorZ Webmail – Nachrichtenübersicht mit 3 Spalten */

.inbox-panel .mail-column-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 230px;
    padding: 13px 58px 13px 75px;
    border-bottom: 1px solid rgba(125, 165, 210, .18);
    color: #62aaff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.inbox-panel .mail-column-header span:nth-child(2) {
    text-align: center;
}

.inbox-panel .mail-column-header span:nth-child(3) {
    text-align: right;
}

.inbox-panel .mail-row {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) 230px 16px !important;
    gap: 16px !important;
    align-items: center !important;
}

.inbox-panel .mail-info,
.inbox-panel .mail-subject-column {
    min-width: 0;
}

.inbox-panel .sender,
.inbox-panel .mail-subject-column {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-panel .mail-subject-column {
    text-align: center;
    font-size: 14px;
    color: #d9e8fa;
}

.inbox-panel .mail-date {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .inbox-panel .mail-column-header {
        display: none;
    }

    .inbox-panel .mail-row {
        grid-template-columns: 36px minmax(0, 1fr) 18px !important;
    }

    .inbox-panel .mail-subject-column {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }

    .inbox-panel .mail-date {
        grid-column: 2;
        grid-row: 3;
        text-align: left;
    }

    .inbox-panel .mail-arrow {
        grid-column: 3;
        grid-row: 1;
    }
}

/* ZECtorZ – kompakte Nachrichtenübersicht */

@media (min-width: 901px) {

    .inbox-panel {
        max-width: 1350px !important;
        width: 100% !important;
    }

    .inbox-panel .mail-column-header {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            185px !important;

        padding-left: 70px !important;
        padding-right: 48px !important;
    }

    .inbox-panel .mail-row {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            minmax(0, 1fr)
            185px
            14px !important;

        gap: 12px !important;
        min-height: 62px !important;
    }

    .inbox-panel .mail-column-header span:nth-child(2),
    .inbox-panel .mail-subject-column {
        text-align: center !important;
    }
}
