/*
 * 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 SECURITY ADMINISTRATION
   Sichtbarer Schutzstatus / Login-Sperren
   ========================================================= */

.re-security-seal {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 18px;
    padding: 13px 14px;

    border:
        1px solid
        rgba(65, 190, 255, .28);

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 104, 180, .11),
            rgba(0, 34, 68, .13)
        );
}

.re-security-shield {
    position: relative;

    flex: 0 0 38px;

    width: 38px;
    height: 43px;

    display: grid;
    place-items: center;

    clip-path:
        polygon(
            50% 0,
            94% 15%,
            88% 68%,
            50% 100%,
            12% 68%,
            6% 15%
        );

    background:
        linear-gradient(
            160deg,
            #64d4ff,
            #0784dc 52%,
            #00478c
        );

    color: #001b32;

    font-size: 12px;
    font-weight: 950;
    letter-spacing: -.04em;

    box-shadow:
        0 0 20px
        rgba(35, 166, 255, .34);
}

.re-security-seal-text {
    min-width: 0;

    color: #c9d9e5;

    font-size: 12px;
    line-height: 1.45;
}

.re-security-seal-title {
    display: block;

    margin-bottom: 2px;

    color: #69ccff;

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

    letter-spacing: .08em;

    text-transform: uppercase;
}

.re-security-warning {
    margin: 16px 0 0;
    padding: 12px 13px;

    border:
        1px solid
        rgba(255, 188, 67, .42);

    border-radius: 10px;

    background:
        rgba(255, 176, 32, .08);

    color: #ffd27b;

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

    line-height: 1.45;
}

.re-security-lock {
    margin: 16px 0 0;
    padding: 14px;

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

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(144, 20, 31, .17),
            rgba(78, 10, 18, .10)
        );

    color: #ffb1b1;

    font-size: 14px;
    line-height: 1.5;
}

.re-security-lock strong {
    display: block;

    margin-bottom: 3px;

    color: #ff8484;

    font-size: 15px;
}

.re-security-lock .re-security-minutes {
    color: #fff;

    font-size: 17px;
    font-weight: 900;
}

.re-security-error {
    margin-top: 16px;
}

.re-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none !important;
}

.re-field input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 700px) {

    .re-security-seal {
        align-items: flex-start;
    }

    .re-security-shield {
        flex-basis: 34px;
        width: 34px;
        height: 39px;
    }
}

/* RE-FORGOT-PASSWORD-STYLE-BEGIN */

.re-forgot-row {
    display: flex;
    justify-content: flex-end;

    margin-top: 8px;
    margin-bottom: 2px;
}

.re-forgot-link {
    color: #54c8e8;

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

    text-decoration: none;

    transition:
        color .15s ease,
        opacity .15s ease;
}

.re-forgot-link:hover {
    color: #7fe6ff;
    text-decoration: underline;
}

.re-forgot-info {
    margin-top: 14px;
    padding: 12px 13px;

    border:
        1px solid
        rgba(80, 201, 232, .30);

    border-radius: 10px;

    background:
        rgba(30, 151, 190, .08);

    color: #cbdbe4;

    font-size: 13px;
    line-height: 1.5;
}

.re-forgot-info strong {
    display: block;

    margin-bottom: 4px;

    color: #67d7ef;
}

/* RE-FORGOT-PASSWORD-STYLE-END */

/* RE-SECURITY-COMPACT-LOGIN-BEGIN */

/*
 * Nur Security-Login kompakter.
 * Grunddesign des Mailadmin-Themes bleibt erhalten.
 */

body.is-login .re-card {
    padding:
        26px 38px 22px
        !important;
}


/* Cyaner Strich oben */
body.is-login .re-card-topline {
    margin-bottom:
        20px
        !important;
}


/* Administration */
body.is-login .re-card h2 {
    margin-top:
        0
        !important;

    margin-bottom:
        7px
        !important;
}


/* Beschreibung unter Administration */
body.is-login .re-card-description {
    margin-bottom:
        17px
        !important;
}


/* Abstand der Formularfelder */
body.is-login .re-field {
    margin-bottom:
        12px
        !important;
}


/* Labels näher an das Eingabefeld */
body.is-login .re-field label {
    margin-bottom:
        5px
        !important;
}


/* Felder minimal niedriger */
body.is-login .re-field input {
    min-height:
        50px
        !important;

    padding:
        11px 14px
        !important;
}


/* Passwort vergessen dichter ans Passwortfeld */
body.is-login .re-forgot-row {
    margin-top:
        4px
        !important;

    margin-bottom:
        0
        !important;
}


/* Anmeldebutton weniger Abstand */
body.is-login .re-button {
    margin-top:
        17px
        !important;

    min-height:
        52px
        !important;

    padding:
        11px 16px
        !important;
}


/* Security-Siegel kompakter */
body.is-login .re-security-seal {
    margin-top:
        13px
        !important;

    padding:
        10px 12px
        !important;

    gap:
        11px
        !important;
}


body.is-login .re-security-shield {
    flex-basis:
        34px
        !important;

    width:
        34px
        !important;

    height:
        39px
        !important;
}


/* Unterer Sicherheitshinweis */
body.is-login .re-info {
    margin-top:
        13px
        !important;

    padding-top:
        12px
        !important;

    padding-bottom:
        0
        !important;
}


/*
 * Falls "Passwort vergessen?" geöffnet wurde,
 * auch diesen Hinweis kompakt halten.
 */
body.is-login .re-forgot-info {
    margin-top:
        10px
        !important;

    padding:
        9px 11px
        !important;

    line-height:
        1.4
        !important;
}


/*
 * Kleine Bildschirmhöhen:
 * Karte nochmals etwas kompakter.
 */
@media (max-height: 850px) {

    body.is-login .re-card {
        padding:
            20px 34px 17px
            !important;
    }

    body.is-login .re-card-topline {
        margin-bottom:
            15px
            !important;
    }

    body.is-login .re-card-description {
        margin-bottom:
            12px
            !important;
    }

    body.is-login .re-field {
        margin-bottom:
            9px
            !important;
    }

    body.is-login .re-field input {
        min-height:
            46px
            !important;
    }

    body.is-login .re-button {
        margin-top:
            13px
            !important;

        min-height:
            48px
            !important;
    }

    body.is-login .re-security-seal {
        margin-top:
            10px
            !important;

        padding:
            8px 11px
            !important;
    }

    body.is-login .re-info {
        margin-top:
            9px
            !important;

        padding-top:
            9px
            !important;
    }
}

/* RE-SECURITY-COMPACT-LOGIN-END */

/* RE-FORGOT-PASSWORD-CENTER-BEGIN */

body.is-login .re-forgot-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;

    margin-top: 7px !important;
    margin-bottom: 0 !important;

    text-align: center !important;
}

body.is-login .re-forgot-link {
    display: inline-block !important;
    text-align: center !important;
}

/* RE-FORGOT-PASSWORD-CENTER-END */

/* RE-SECURITY-TOAST-V2-BEGIN */


/* Passwort vergessen mittig */

body.is-login .re-forgot-row {
    display: flex !important;

    justify-content:
        center !important;

    align-items:
        center !important;

    width:
        100% !important;

    margin-top:
        7px !important;

    margin-bottom:
        0 !important;

    text-align:
        center !important;
}

.re-forgot-link {
    display:
        inline-block;

    color:
        #54c8e8;

    font-size:
        13px;

    font-weight:
        650;

    text-decoration:
        none;
}

.re-forgot-link:hover {
    color:
        #80e5ff;

    text-decoration:
        underline;
}


/* Neues Security-Symbol ohne RE */

.re-security-icon {
    flex:
        0 0 42px;

    width:
        42px;

    height:
        42px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        12px;

    color:
        #56ccff;

    background:
        linear-gradient(
            145deg,
            rgba(25,151,220,.18),
            rgba(0,63,116,.16)
        );

    border:
        1px solid
        rgba(79,197,255,.34);

    box-shadow:
        0 0 18px
        rgba(30,157,229,.15);
}

.re-security-icon svg {
    width:
        29px;

    height:
        29px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.7;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* Altes RE-Schild nicht mehr relevant */

.re-security-shield {
    display:
        none !important;
}


/* Meldungen unten links */

.re-admin-toast {
    position:
        fixed;

    z-index:
        9999;

    left:
        34px;

    bottom:
        72px;

    width:
        min(
            430px,
            calc(100vw - 68px)
        );

    padding:
        15px 46px 15px 17px;

    border-radius:
        13px;

    background:
        rgba(7,22,36,.96);

    border:
        1px solid
        rgba(68,174,230,.38);

    box-shadow:
        0 18px 50px
        rgba(0,0,0,.42);

    backdrop-filter:
        blur(12px);

    color:
        #d4e2eb;

    font-size:
        14px;

    line-height:
        1.5;

    animation:
        reSecurityToastIn
        .28s
        ease-out;
}


.re-admin-toast-title {
    display:
        block;

    margin-bottom:
        4px;

    color:
        #71d8ff;

    font-size:
        15px;

    font-weight:
        850;
}


.re-admin-toast-warning {
    border-color:
        rgba(255,190,69,.46);

    background:
        linear-gradient(
            135deg,
            rgba(54,40,11,.97),
            rgba(14,24,34,.97)
        );
}


.re-admin-toast-warning
.re-admin-toast-title {
    color:
        #ffd06a;
}


.re-admin-toast-danger {
    border-color:
        rgba(255,94,94,.48);

    background:
        linear-gradient(
            135deg,
            rgba(63,17,23,.97),
            rgba(14,22,31,.97)
        );
}


.re-admin-toast-danger
.re-admin-toast-title {
    color:
        #ff9292;
}


.re-admin-toast-minutes {
    color:
        #fff;

    font-size:
        17px;

    font-weight:
        900;
}


.re-admin-toast-close {
    position:
        absolute;

    top:
        9px;

    right:
        11px;

    width:
        27px;

    height:
        27px;

    display:
        grid;

    place-items:
        center;

    padding:
        0;

    margin:
        0;

    border:
        0;

    border-radius:
        7px;

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

    color:
        #b8cad5;

    font-size:
        19px;

    line-height:
        1;

    cursor:
        pointer;
}


.re-admin-toast-close:hover {
    background:
        rgba(255,255,255,.11);

    color:
        #fff;
}


.re-admin-toast.is-leaving {
    opacity:
        0;

    transform:
        translateY(8px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}


@keyframes reSecurityToastIn {

    from {
        opacity:
            0;

        transform:
            translateY(12px);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0);
    }
}


/* Gesperrter Login */

.re-login-locked {
    opacity:
        .52;
}

.re-login-locked input,
.re-login-locked button {
    cursor:
        not-allowed !important;
}

.re-login-locked .re-button {
    transform:
        none !important;
}


@media (max-width: 700px) {

    .re-admin-toast {
        left:
            16px;

        right:
            16px;

        bottom:
            18px;

        width:
            auto;
    }
}

/* RE-SECURITY-TOAST-V2-END */

/* RE-FORGOT-CLEAN-URL-BEGIN */

.re-forgot-button {
    appearance: none !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    font: inherit !important;

    color: #54c8e8 !important;

    cursor: pointer !important;

    box-shadow: none !important;
}

.re-forgot-button:hover {
    background: transparent !important;

    color: #80e5ff !important;

    text-decoration: underline;
}

.re-forgot-button:focus-visible {
    outline:
        2px solid
        rgba(84,200,232,.75);

    outline-offset:
        4px;
}

/* RE-FORGOT-CLEAN-URL-END */
