/*
 * Radio Emergency Mail Administration
 * Copyright © 2026 Mario Mielke
 * Alle Rechte vorbehalten.
 */

:root {
    --re-bg: #04101d;
    --re-bg-2: #071b2e;
    --re-panel: rgba(7, 24, 40, .94);
    --re-panel-2: #0b2338;
    --re-border: rgba(255,255,255,.10);

    --re-cyan: #35aea5;
    --re-cyan-light: #55d4ca;
    --re-blue: #1685c8;

    --re-white: #f4f9fc;
    --re-muted: #91a7b7;
    --re-danger: #dc5b68;
    --re-success: #41c894;

    --re-shadow: 0 24px 80px rgba(0,0,0,.40);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--re-white);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(22,133,200,.24),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(53,174,165,.18),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #020b13 0%,
            var(--re-bg) 40%,
            #071a2b 100%
        );
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 44px 44px;
    mask-image:
        linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}

.re-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.re-header {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;

    background: rgba(2,11,19,.88);
    border-bottom: 1px solid var(--re-border);
    backdrop-filter: blur(12px);
}

.re-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.re-logo {
    display: block;
    max-width: 210px;
    max-height: 60px;
    object-fit: contain;
}

.re-brand-text {
    border-left: 1px solid rgba(255,255,255,.18);
    padding-left: 22px;
}

.re-brand-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .02em;
}

.re-brand-subtitle {
    margin-top: 3px;
    color: var(--re-muted);
    font-size: 13px;
}

.re-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;
    border: 1px solid rgba(65,200,148,.30);
    border-radius: 999px;

    background: rgba(65,200,148,.08);
    color: #b9f3d9;

    font-size: 13px;
}

.re-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--re-success);
    box-shadow: 0 0 12px rgba(65,200,148,.8);
}

.re-main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 24px;
}

.re-login-wrap {
    width: 100%;
    max-width: 1120px;

    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}

.re-intro {
    padding: 20px;
}

.re-kicker {
    color: var(--re-cyan-light);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    margin-bottom: 18px;
}

.re-intro h1 {
    margin: 0;
    max-width: 620px;

    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.re-intro h1 span {
    color: var(--re-cyan);
}

.re-intro p {
    max-width: 580px;
    margin: 24px 0 0;

    color: #b5c4cf;
    font-size: 17px;
    line-height: 1.7;
}

.re-slogan {
    margin-top: 34px;
    color: var(--re-white);
    font-weight: 700;
    letter-spacing: .04em;
}

.re-card {
    width: 100%;

    background:
        linear-gradient(
            160deg,
            rgba(13,39,61,.96),
            rgba(5,18,31,.98)
        );

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 20px;

    padding: 34px;

    box-shadow: var(--re-shadow);
}

.re-card-topline {
    width: 54px;
    height: 4px;
    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            var(--re-cyan),
            var(--re-blue)
        );

    margin-bottom: 24px;
}

.re-card h2 {
    margin: 0;
    font-size: 27px;
}

.re-card-description {
    margin: 8px 0 25px;
    color: var(--re-muted);
    line-height: 1.5;
}

.re-field {
    margin-top: 17px;
}

.re-field label {
    display: block;
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;
    color: #dbe8ef;
}

.re-field input {
    width: 100%;
    height: 49px;

    padding: 0 15px;

    color: white;
    background: rgba(1,10,18,.68);

    border: 1px solid #315069;
    border-radius: 9px;

    font-size: 16px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.re-field input:hover {
    border-color: #52728a;
}

.re-field input:focus {
    outline: none;

    border-color: var(--re-cyan);

    box-shadow:
        0 0 0 3px rgba(53,174,165,.15);
}

.re-button {
    width: 100%;
    height: 50px;
    margin-top: 24px;

    border: 0;
    border-radius: 9px;

    color: #031414;
    background:
        linear-gradient(
            90deg,
            var(--re-cyan),
            var(--re-cyan-light)
        );

    font-size: 16px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 10px 28px rgba(53,174,165,.17);

    transition:
        transform .12s ease,
        filter .12s ease;
}

.re-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.re-button:active {
    transform: translateY(0);
}

.re-error {
    margin-bottom: 18px;
    padding: 12px 14px;

    color: #ffe6e8;
    background: rgba(220,91,104,.15);

    border: 1px solid rgba(220,91,104,.45);
    border-radius: 8px;

    font-size: 14px;
}

.re-info {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--re-border);

    color: #839bab;
    font-size: 12px;
    line-height: 1.55;
}

.re-footer {
    padding: 22px 30px;

    text-align: center;
    color: #738998;
    font-size: 12px;

    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.13);
}

.re-footer strong {
    color: #aec1ce;
}

.re-footer .cyan {
    color: var(--re-cyan);
}

@media (max-width: 850px) {

    .re-header {
        height: auto;
        min-height: 86px;
        padding: 14px 20px;
    }

    .re-brand-text {
        display: none;
    }

    .re-status {
        display: none;
    }

    .re-logo {
        max-width: 180px;
    }

    .re-login-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 530px;
    }

    .re-intro {
        text-align: center;
        padding: 0;
    }

    .re-intro h1 {
        font-size: 38px;
    }

    .re-intro p {
        font-size: 15px;
    }

    .re-card {
        padding: 26px;
    }
}

/* =========================================================
   Mailbox Dashboard
   Copyright © 2026 Mario Mielke
   ========================================================= */

.re-dashboard {
    width: 100%;
    max-width: 1500px;
}

.re-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.re-dashboard-head h1 {
    margin: 0;
    font-size: 32px;
}

.re-dashboard-head p {
    margin: 7px 0 0;
    color: var(--re-muted);
}

.re-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    background: linear-gradient(
        90deg,
        var(--re-cyan),
        var(--re-cyan-light)
    );
    color: #031414;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.re-primary-action.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.re-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.re-stat {
    padding: 22px;
    border: 1px solid var(--re-border);
    border-radius: 14px;
    background: rgba(7,24,40,.86);
}

.re-stat-label {
    color: var(--re-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.re-stat-value {
    margin-top: 9px;
    font-size: 31px;
    font-weight: 750;
}

.re-stat-value.cyan {
    color: var(--re-cyan-light);
}

.re-table-card {
    overflow: hidden;
    border: 1px solid var(--re-border);
    border-radius: 15px;
    background: rgba(7,24,40,.92);
    box-shadow: var(--re-shadow);
}

.re-table-head {
    padding: 20px 22px;
    border-bottom: 1px solid var(--re-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.re-table-head strong {
    font-size: 18px;
}

.re-table-head span {
    color: var(--re-muted);
    font-size: 13px;
}

.re-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.re-mail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.re-mail-table th,
.re-mail-table td {
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.re-mail-table th {
    color: #93aabc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    background: rgba(0,0,0,.10);
}

.re-mail-table td {
    font-size: 14px;
}

.re-mail-table tr:last-child td {
    border-bottom: 0;
}

.re-mail-address {
    color: #f2f8fb;
    font-weight: 650;
}

.re-mail-name {
    display: block;
    margin-top: 4px;
    color: var(--re-muted);
    font-size: 12px;
}

.re-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.re-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.re-badge.on {
    color: #bdf5dc;
    border: 1px solid rgba(65,200,148,.28);
    background: rgba(65,200,148,.09);
}

.re-badge.on::before {
    background: var(--re-success);
}

.re-badge.off {
    color: #ffc8ce;
    border: 1px solid rgba(220,91,104,.30);
    background: rgba(220,91,104,.09);
}

.re-badge.off::before {
    background: var(--re-danger);
}

.re-edit-button {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid rgba(53,174,165,.35);
    border-radius: 7px;
    color: var(--re-cyan-light);
    text-decoration: none;
    font-size: 13px;
}

.re-edit-button.disabled {
    opacity: .45;
    cursor: not-allowed;
}

.re-dashboard-error {
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(220,91,104,.4);
    background: rgba(220,91,104,.1);
    color: #ffd7db;
}

@media (max-width: 1000px) {
    .re-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .re-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .re-stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RE MailAdmin Layout Fix V3
   Copyright © 2026 Mario Mielke
   ========================================================= */

/* Desktop: komplette Loginseite ohne vertikalen Scrollbalken */
@media (min-width: 851px) and (min-height: 650px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .re-page {
        width: 100%;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .re-header {
        flex: 0 0 78px;
        height: 78px;
        padding: 0 42px;
    }

    .re-logo {
        max-height: 52px;
    }

    .re-main {
        flex: 1 1 auto;
        min-height: 0;
        padding: 20px 24px;
        overflow: hidden;
    }

    .re-login-wrap {
        max-width: 1280px;
        gap: 64px;
        height: 100%;
        max-height: 590px;
        align-items: center;
    }

    .re-intro {
        padding: 10px 20px;
    }

    .re-intro h1 {
        font-size: clamp(42px, 4.2vw, 64px);
        line-height: .98;
    }

    .re-intro p {
        margin-top: 22px;
        line-height: 1.55;
    }

    .re-slogan {
        margin-top: 28px;
    }

    .re-card {
        padding: 30px 34px;
    }

    .re-card-topline {
        margin-bottom: 20px;
    }

    .re-card-description {
        margin-bottom: 20px;
    }

    .re-field {
        margin-top: 14px;
    }

    .re-field input {
        height: 48px;
    }

    .re-button {
        height: 48px;
        margin-top: 20px;
    }

    .re-info {
        margin-top: 20px;
        padding-top: 16px;
    }

    .re-footer {
        flex: 0 0 48px;
        height: 48px;
        padding: 0 20px;

        display: flex;
        align-items: center;
        justify-content: center;

        white-space: nowrap;
    }
}

/* Bei kleinen Displays / hoher Zoomstufe wieder normales Scrollen erlauben */
@media (max-width: 850px), (max-height: 649px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .re-page {
        min-height: 100vh;
        height: auto;
    }

    .re-main {
        overflow: visible;
    }

    .re-footer {
        white-space: normal;
    }
}

/* =========================================================
   RE MailAdmin Dashboard V1
   Copyright © 2026 Mario Mielke
   ========================================================= */

body.is-dashboard {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.is-dashboard .re-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

.is-dashboard .re-main {
    align-items: flex-start;
    overflow: visible !important;
    padding: 38px 42px;
}

.is-dashboard .re-footer {
    height: auto;
    min-height: 48px;
}

.re-dashboard {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.re-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
}

.re-dashboard-head h1 {
    margin: 0;
    font-size: 32px;
}

.re-dashboard-head p {
    margin: 7px 0 0;
    color: var(--re-muted);
}

.re-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.re-primary-action,
.re-logout-button {
    min-height: 44px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.re-primary-action {
    background:
        linear-gradient(
            90deg,
            var(--re-cyan),
            var(--re-cyan-light)
        );

    color: #031414;
}

.re-primary-action.disabled {
    opacity: .48;
    cursor: not-allowed;
}

.re-logout-button {
    color: #dbe8ef;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.15);
}

.re-stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
    margin-bottom: 24px;
}

.re-stat {
    min-height: 115px;
    padding: 20px;

    border: 1px solid var(--re-border);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(13,39,61,.88),
            rgba(5,18,31,.94)
        );
}

.re-stat-label {
    color: var(--re-muted);

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

    text-transform: uppercase;
    letter-spacing: .08em;
}

.re-stat-value {
    margin-top: 12px;

    color: var(--re-white);

    font-size: 32px;
    font-weight: 750;
}

.re-stat-value.cyan {
    color: var(--re-cyan-light);
}

.re-table-card {
    overflow: hidden;

    border: 1px solid var(--re-border);
    border-radius: 15px;

    background: rgba(7,24,40,.92);

    box-shadow:
        0 18px 55px rgba(0,0,0,.25);
}

.re-table-head {
    padding: 19px 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

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

.re-table-head strong {
    font-size: 18px;
}

.re-table-head span {
    color: var(--re-muted);
    font-size: 13px;
}

.re-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.re-mail-table {
    width: 100%;
    min-width: 950px;

    border-collapse: collapse;
}

.re-mail-table th,
.re-mail-table td {
    padding: 15px 18px;

    text-align: left;

    border-bottom:
        1px solid rgba(255,255,255,.065);
}

.re-mail-table th {
    color: #8fa8b9;

    background:
        rgba(0,0,0,.10);

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

    text-transform: uppercase;
    letter-spacing: .07em;
}

.re-mail-table td {
    font-size: 14px;
}

.re-mail-table tbody tr:hover {
    background:
        rgba(53,174,165,.035);
}

.re-mail-table tbody tr:last-child td {
    border-bottom: 0;
}

.re-mail-address {
    color: #f4f9fc;
    font-weight: 650;
}

.re-mail-name {
    display: block;
    margin-top: 4px;

    color: var(--re-muted);
    font-size: 12px;
}

.re-badge {
    min-height: 28px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 650;
}

.re-badge::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.re-badge.on {
    color: #bdf5dc;

    border:
        1px solid rgba(65,200,148,.28);

    background:
        rgba(65,200,148,.09);
}

.re-badge.on::before {
    background: var(--re-success);
}

.re-badge.off {
    color: #ffc8ce;

    border:
        1px solid rgba(220,91,104,.30);

    background:
        rgba(220,91,104,.09);
}

.re-badge.off::before {
    background: var(--re-danger);
}

.re-edit-button {
    min-height: 34px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;

    color: var(--re-cyan-light);

    border:
        1px solid rgba(53,174,165,.35);

    border-radius: 7px;

    font-size: 12px;
    text-decoration: none;
}

.re-edit-button.disabled {
    opacity: .45;
    cursor: not-allowed;
}

.re-dashboard-error {
    padding: 18px;

    color: #ffd7db;

    background:
        rgba(220,91,104,.10);

    border:
        1px solid rgba(220,91,104,.40);

    border-radius: 10px;
}

@media (max-width: 1000px) {

    .re-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .re-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .is-dashboard .re-main {
        padding: 24px 15px;
    }

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

/* =========================================================
   Dashboard Scroll Fix V1
   Copyright © 2026 Mario Mielke
   ========================================================= */

@media (min-width: 851px) and (min-height: 650px) {

    html.is-dashboard,
    html.is-dashboard body {
        width: 100%;
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html.is-dashboard .re-page {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    html.is-dashboard .re-main {
        flex: 1 0 auto;
        min-height: auto !important;
        overflow: visible !important;
    }

    html.is-dashboard .re-footer {
        flex: none;
        height: auto;
        min-height: 48px;
    }
}

/* =========================================================
   Mailbox Edit V1
   Copyright © 2026 Mario Mielke
   ========================================================= */

.re-edit-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.re-edit-card {
    overflow: hidden;

    border: 1px solid var(--re-border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(13,39,61,.88),
            rgba(5,18,31,.96)
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,.28);
}

.re-edit-section {
    padding: 26px 28px;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.re-edit-section h2 {
    margin: 0 0 20px;

    font-size: 19px;
}

.re-edit-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 20px;
}

.re-field-help {
    margin-top: 7px;

    color: var(--re-muted);
    font-size: 12px;
}

.re-switch-row {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    cursor: pointer;
}

.re-switch-row:last-child {
    border-bottom: 0;
}

.re-switch-row strong {
    display: block;

    color: var(--re-white);
}

.re-switch-row small {
    display: block;

    margin-top: 5px;

    color: var(--re-muted);
}

.re-switch {
    position: relative;

    width: 52px;
    height: 28px;

    flex: 0 0 52px;
}

.re-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.re-slider {
    position: absolute;
    inset: 0;

    border-radius: 999px;

    background: #374550;

    transition: .18s ease;
}

.re-slider::before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 4px;
    top: 4px;

    border-radius: 50%;

    background: white;

    transition: .18s ease;
}

.re-switch input:checked + .re-slider {
    background: var(--re-cyan);
}

.re-switch input:checked + .re-slider::before {
    transform: translateX(24px);
}

.re-edit-actions {
    padding: 22px 28px;

    display: flex;
    justify-content: flex-end;

    gap: 12px;
}

.re-cancel-button,
.re-save-button {
    min-height: 44px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

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

    text-decoration: none;
}

.re-cancel-button {
    color: #dce7ee;

    border:
        1px solid rgba(255,255,255,.15);

    background:
        rgba(255,255,255,.04);
}

.re-save-button {
    border: 0;

    color: #031414;

    background:
        linear-gradient(
            90deg,
            var(--re-cyan),
            var(--re-cyan-light)
        );

    cursor: pointer;
}

.re-save-success {
    margin-bottom: 18px;

    padding: 14px 16px;

    color: #bdf5dc;

    border:
        1px solid rgba(65,200,148,.30);

    border-radius: 9px;

    background:
        rgba(65,200,148,.10);
}

@media (max-width: 750px) {

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

    .re-edit-actions {
        flex-direction: column-reverse;
    }

    .re-cancel-button,
    .re-save-button {
        width: 100%;
    }
}

/* =========================================================
   Create Mailbox V1
   Copyright © 2026 Mario Mielke
   ========================================================= */

.re-address-field {
    display: flex;
    align-items: stretch;
}

.re-address-field input {
    border-radius: 9px 0 0 9px;
}

.re-address-field > span {
    display: flex;
    align-items: center;

    padding: 0 14px;

    color: var(--re-muted);
    background: rgba(255,255,255,.045);

    border:
        1px solid #315069;

    border-left: 0;

    border-radius: 0 9px 9px 0;

    white-space: nowrap;

    font-size: 14px;
}

@media (max-width: 600px) {

    .re-address-field {
        display: block;
    }

    .re-address-field input {
        border-radius: 9px;
    }

    .re-address-field > span {
        margin-top: 7px;
        padding: 8px 0;

        border: 0;
        background: transparent;
    }
}

/* =========================================================
   Account deletion
   Copyright © 2026 Mario Mielke
   ========================================================= */

.re-edit-danger-zone {
    margin-top: 26px;
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border: 1px solid rgba(220, 70, 70, .45);
    border-radius: 12px;

    background: rgba(150, 25, 25, .08);
}

.re-edit-danger-zone strong {
    font-size: 17px;
}

.re-edit-danger-zone p {
    margin: 5px 0 0;
    opacity: .72;
}

.re-delete-link,
.re-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(235, 80, 80, .72);
    border-radius: 9px;

    background: rgba(190, 35, 35, .18);
    color: #fff;

    padding: 10px 16px;

    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;

    white-space: nowrap;
}

.re-delete-link:hover,
.re-delete-button:hover {
    background: rgba(210, 45, 45, .30);
}

.re-delete-protected {
    padding: 8px 12px;
    border-radius: 8px;

    background: rgba(255,255,255,.06);

    opacity: .7;
    font-size: 13px;
}

.re-danger-card {
    padding: 24px;

    border: 1px solid rgba(220, 70, 70, .50);
    border-radius: 14px;

    background: rgba(135, 20, 20, .09);
}

.re-danger-card h2 {
    margin-top: 0;
}

.re-danger-list {
    margin: 18px 0 24px;
    padding-left: 23px;
    line-height: 1.8;
}

.re-delete-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;

    margin-top: 24px;
}

.re-delete-success {
    padding: 28px;

    border: 1px solid rgba(60, 190, 155, .35);
    border-radius: 14px;

    background: rgba(30, 145, 120, .08);
}

.re-inline-button {
    display: inline-flex;
    margin-top: 12px;
    text-decoration: none;
}

@media (max-width: 700px) {

    .re-edit-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .re-delete-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .re-delete-link,
    .re-delete-button {
        width: 100%;
    }
}

/* =========================================================
   Permission Update
   Copyright © 2026 Mario Mielke
   ========================================================= */

.re-permissions-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border:
        1px solid rgba(53, 174, 165, .75);

    border-radius: 9px;

    background:
        rgba(53, 174, 165, .17);

    color: #fff;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.re-permissions-button:hover {
    background:
        rgba(53, 174, 165, .28);
}


/* =========================================================
   RE-MAILADMIN-SETTINGS-V2-CSS-BEGIN
   Mailbox-Bearbeitung neu organisiert
   ========================================================= */


/* ---------------------------------------------------------
   SEITENBREITE
   --------------------------------------------------------- */

.re-edit-page {
    width: min(1380px, calc(100% - 48px)) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


.re-edit-card {
    overflow: visible !important;

    border:
        1px solid rgba(65, 108, 133, .28) !important;

    border-radius:
        18px !important;

    background:
        linear-gradient(
            180deg,
            rgba(9, 34, 52, .96),
            rgba(8, 27, 42, .96)
        ) !important;
}


/* ---------------------------------------------------------
   ALLGEMEINE DATEN
   --------------------------------------------------------- */

.re-edit-card > .re-edit-section:first-of-type {
    padding:
        30px
        34px
        32px !important;
}


.re-edit-card > .re-edit-section:first-of-type h2 {
    margin-bottom:
        24px !important;

    font-size:
        23px !important;
}


.re-edit-card > .re-edit-section:first-of-type
.re-edit-grid {
    gap:
        22px
        24px !important;
}


.re-edit-card > .re-edit-section:first-of-type
.re-field {
    min-width: 0;
}


/* ---------------------------------------------------------
   BERECHTIGUNGSBEREICH ALS GRID
   --------------------------------------------------------- */

.re-edit-section:has(input[name="active"]) {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    grid-template-areas:
        "heading heading"
        "account account"
        "services services"
        "cloud mailadmin"
        "chat sendeplan"
        "chatrole sendeplanrole"
        "stats stats";

    gap:
        16px
        18px;

    align-items:
        stretch;

    padding:
        30px
        34px
        34px !important;

    background:
        rgba(4, 21, 34, .26);
}


/* Hauptüberschrift */

.re-edit-section:has(input[name="active"]) > h2 {
    grid-area:
        heading;

    margin:
        0
        0
        5px !important;

    color:
        #f0f5f8;

    font-size:
        23px !important;
}


/* Reale Zwischenüberschrift per CSS-Grid */

.re-edit-section:has(input[name="active"])::before {
    content:
        "DIENSTE & ZUGÄNGE";

    grid-area:
        services;

    display:
        block;

    margin:
        14px
        0
        2px;

    color:
        #43cfc4;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        .16em;
}


/* ---------------------------------------------------------
   KONTOSTATUS
   --------------------------------------------------------- */

.re-edit-section
> label.re-switch-row:has(
    input[name="active"]
) {
    grid-area:
        account;

    min-height:
        88px;

    margin:
        0 !important;

    padding:
        20px
        22px !important;

    border:
        1px solid
        rgba(47,171,156,.30) !important;

    border-radius:
        13px !important;

    background:
        linear-gradient(
            135deg,
            rgba(47,171,156,.10),
            rgba(10,31,45,.88)
        ) !important;
}


.re-edit-section
> label.re-switch-row:has(
    input[name="active"]
) strong {
    color:
        #eef7f6 !important;

    font-size:
        16px !important;
}


.re-edit-section
> label.re-switch-row:has(
    input[name="active"]
) small {
    margin-top:
        5px;

    color:
        #94aaa9 !important;
}


/* ---------------------------------------------------------
   DIENSTKARTEN
   --------------------------------------------------------- */

.re-edit-section
> label.re-switch-row:has(
    input[name="cloud_access"]
) {
    grid-area: cloud;
}

.re-edit-section
> label.re-switch-row:has(
    input[name="mailadmin_access"]
) {
    grid-area: mailadmin;
}

.re-edit-section
> label.re-switch-row:has(
    input[name="chat_access"]
) {
    grid-area: chat;
}

.re-edit-section
> label.re-switch-row:has(
    input[name="sendeplan_access"]
) {
    grid-area: sendeplan;
}

.re-edit-section
> label.re-switch-row:has(
    input[name="stats_access"]
) {
    grid-area: stats;
}


.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]
) {
    position:
        relative;

    min-height:
        112px;

    margin:
        0 !important;

    padding:
        20px
        21px !important;

    border:
        1px solid
        #294457 !important;

    border-radius:
        13px !important;

    background:
        linear-gradient(
            145deg,
            rgba(15,40,57,.94),
            rgba(9,28,42,.96)
        ) !important;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}


.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]
):hover {
    border-color:
        rgba(47,171,156,.42) !important;

    background:
        linear-gradient(
            145deg,
            rgba(17,47,63,.97),
            rgba(10,32,46,.98)
        ) !important;
}


.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]:checked
) {
    border-color:
        rgba(47,171,156,.36) !important;

    box-shadow:
        inset 3px 0 0
        rgba(47,171,156,.76);
}


.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]
) > span:first-child {
    padding-right:
        72px;
}


.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]
) strong {
    display:
        block;

    color:
        #edf4f7 !important;

    font-size:
        16px !important;

    line-height:
        1.25;
}


.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]
) small {
    display:
        block;

    max-width:
        430px;

    margin-top:
        7px;

    color:
        #8da3b2 !important;

    line-height:
        1.45;
}


/* Switch rechts oben */

.re-edit-section
> label.re-switch-row:has(
    input[name$="_access"]
) > .re-switch {
    position:
        absolute;

    top:
        20px;

    right:
        20px;
}


/* ---------------------------------------------------------
   ROLLEN
   --------------------------------------------------------- */

.re-edit-section
> .re-field:has(
    select[name="chat_role"]
) {
    grid-area:
        chatrole;
}


.re-edit-section
> .re-field:has(
    select[name="sendeplan_role"]
) {
    grid-area:
        sendeplanrole;
}


.re-edit-section
> .re-field:has(
    select[name="chat_role"],
    select[name="sendeplan_role"]
) {
    margin:
        0 !important;

    padding:
        17px
        20px
        19px;

    border:
        1px solid
        #294457;

    border-radius:
        12px;

    background:
        rgba(7,26,39,.83);
}


.re-edit-section
> .re-field:has(
    select[name="chat_role"],
    select[name="sendeplan_role"]
) label {
    color:
        #a7bac6 !important;

    font-size:
        12px !important;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.re-edit-section
> .re-field:has(
    select[name="chat_role"],
    select[name="sendeplan_role"]
) select {
    min-height:
        44px;

    margin-top:
        8px;
}


.re-edit-section
> .re-field:has(
    select[name="chat_role"],
    select[name="sendeplan_role"]
) .re-field-help {
    margin-top:
        8px;

    color:
        #708897 !important;

    font-size:
        11px;
}


/* Rolle optisch zurücknehmen,
   wenn der Dienst ausgeschaltet ist */

.re-edit-section
> label:has(
    input[name="chat_access"]:not(:checked)
)
+ .re-field:has(
    select[name="chat_role"]
) {
    opacity:
        .48;
}


.re-edit-section
> label:has(
    input[name="sendeplan_access"]:not(:checked)
)
+ .re-field:has(
    select[name="sendeplan_role"]
) {
    opacity:
        .48;
}


/* ---------------------------------------------------------
   STATISTICS CENTER
   --------------------------------------------------------- */

.re-edit-section
> label.re-switch-row:has(
    input[name="stats_access"]
) {
    min-height:
        100px;

    background:
        linear-gradient(
            145deg,
            rgba(12,45,54,.86),
            rgba(8,29,42,.96)
        ) !important;
}


/* ---------------------------------------------------------
   AKTIONSLEISTE
   --------------------------------------------------------- */

.re-edit-actions {
    position:
        sticky;

    bottom:
        0;

    z-index:
        25;

    display:
        flex;

    justify-content:
        flex-end;

    align-items:
        center;

    gap:
        12px;

    margin:
        0 !important;

    padding:
        17px
        30px !important;

    border-top:
        1px solid
        rgba(74,111,133,.32);

    border-radius:
        0
        0
        18px
        18px;

    background:
        rgba(4,18,29,.96);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0
        -12px
        35px
        rgba(0,0,0,.18);
}


.re-edit-actions .re-cancel-button {
    min-width:
        120px;

    text-align:
        center;
}


.re-edit-actions .re-save-button {
    min-width:
        210px;
}


/* ---------------------------------------------------------
   GEFAHRENBEREICH
   --------------------------------------------------------- */

.re-edit-danger-zone {
    margin-top:
        26px !important;

    border-radius:
        14px !important;

    background:
        rgba(74,20,25,.16) !important;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .re-edit-page {
        width:
            calc(100% - 30px) !important;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .re-edit-section:has(
        input[name="active"]
    ) {
        grid-template-columns:
            1fr;

        grid-template-areas:
            "heading"
            "account"
            "services"
            "cloud"
            "mailadmin"
            "chat"
            "chatrole"
            "sendeplan"
            "sendeplanrole"
            "stats";

        padding:
            24px
            18px
            26px !important;
    }


    .re-edit-card
    > .re-edit-section:first-of-type {
        padding:
            24px
            18px !important;
    }


    .re-edit-actions {
        padding:
            13px
            15px !important;
    }


    .re-edit-actions
    .re-cancel-button {
        min-width:
            0;
    }


    .re-edit-actions
    .re-save-button {
        min-width:
            0;

        flex:
            1;
    }

}


/* RE-MAILADMIN-SETTINGS-V2-CSS-END */

