:root {
    --bg: #070a12;
    --bg-soft: #0d1120;
    --card: rgba(18, 23, 42, 0.82);
    --card-hover: rgba(24, 30, 54, 0.95);

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.13);

    --text: #f6f7fb;
    --text-soft: #9ba4bc;
    --text-muted: #69738a;

    --purple: #7c5cff;
    --purple-light: #a78bfa;
    --blue: #4c8dff;
    --cyan: #55d8ff;

    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}


/* LOGIN */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(90, 70, 255, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(30, 130, 255, 0.14),
            transparent 35%
        ),
        #070a12;
}

.login-wrapper {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 460px;
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-mark {
    width: 68px;
    height: 68px;

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

    border-radius: 20px;

    font-weight: 900;
    letter-spacing: -1px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    box-shadow:
        0 20px 70px rgba(108, 85, 255, 0.35);
}

.brand-mark.small {
    width: 43px;
    height: 43px;

    border-radius: 13px;

    font-size: 13px;
}

.login-brand h1 {
    margin:
        18px
        0
        2px;

    font-size: 27px;
}

.login-brand p {
    margin: 0;

    color: var(--text-soft);
}

.login-card {
    padding: 34px;

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

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 25, 45, 0.93),
            rgba(12, 16, 30, 0.93)
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(16px);
}

.login-card-header {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--purple-light);

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

    letter-spacing: 1.7px;
}

.login-card h2 {
    margin: 0 0 8px;

    font-size: 27px;
}

.login-card-header p {
    margin: 0;

    line-height: 1.55;

    color: var(--text-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

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

    color: #cbd2e3;
}

.form-group input {
    width: 100%;

    padding: 15px 16px;

    color: var(--text);

    border: 1px solid var(--border-light);
    border-radius: 13px;

    outline: none;

    background: rgba(5, 8, 16, 0.65);

    font-size: 15px;

    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: rgba(124, 92, 255, 0.75);

    box-shadow:
        0 0 0 4px rgba(124, 92, 255, 0.12);
}

.primary-button {
    width: 100%;

    padding: 15px;

    border: 0;
    border-radius: 13px;

    color: white;

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

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    box-shadow:
        0 15px 40px rgba(94, 80, 255, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 20px 50px rgba(94, 80, 255, 0.34);
}

.alert-error {
    margin-bottom: 20px;

    padding: 13px 15px;

    border:
        1px solid rgba(255, 85, 108, 0.25);

    border-radius: 12px;

    color: #ffb5bf;

    background:
        rgba(255, 66, 92, 0.08);

    font-size: 13px;
}

.login-back {
    margin-top: 20px;

    text-align: center;

    color: var(--text-soft);

    font-size: 13px;
}


/* DASHBOARD */

.admin-body {
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(92, 70, 255, 0.11),
            transparent 28%
        ),
        var(--bg);
}

.admin-layout {
    display: grid;

    grid-template-columns:
        260px
        1fr;

    min-height: 100vh;
}

.sidebar {
    position: fixed;

    width: 260px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 24px 18px;

    border-right:
        1px solid var(--border);

    background:
        rgba(8, 11, 20, 0.88);

    backdrop-filter:
        blur(18px);
}

.sidebar-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        0
        8px
        28px;
}

.sidebar-brand strong {
    display: block;

    font-size: 14px;
}

.sidebar-brand span {
    display: block;

    margin-top: 2px;

    color: var(--text-soft);

    font-size: 11px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.sidebar-nav a {
    position: relative;

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

    padding:
        12px
        13px;

    border-radius: 11px;

    color: var(--text-soft);

    font-size: 14px;

    transition:
        0.2s ease;
}

.sidebar-nav a:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.05);
}

.sidebar-nav a.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(124, 92, 255, 0.18),
            rgba(76, 141, 255, 0.05)
        );

    border:
        1px solid rgba(124, 92, 255, 0.18);
}

.soon {
    padding:
        2px
        6px;

    border-radius: 20px;

    color: var(--text-muted);

    background:
        rgba(255, 255, 255, 0.04);

    font-size: 9px;
}

.sidebar-bottom {
    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 10px;

    padding: 10px;
}

.sidebar-bottom > a {
    color: var(--text-soft);

    font-size: 12px;
}

.logout-button {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text-soft);

    cursor: pointer;

    background:
        rgba(255, 255, 255, 0.025);
}

.logout-button:hover {
    color: white;

    border-color: var(--border-light);
}


.dashboard {
    grid-column: 2;

    width: 100%;

    padding: 42px;

    max-width: 1500px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 34px;
}

.dashboard-header h1 {
    margin:
        0
        0
        5px;

    font-size: 33px;

    letter-spacing: -1px;
}

.dashboard-header p {
    margin: 0;

    color: var(--text-soft);
}

.user-pill {
    padding:
        10px
        15px;

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

    border-radius: 30px;

    color: var(--text-soft);

    background:
        rgba(255, 255, 255, 0.035);

    font-size: 13px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 20px;
}

.stat-card,
.welcome-card {
    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 42, 0.88),
            rgba(11, 15, 28, 0.88)
        );

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

.stat-card {
    padding: 25px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.stat-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(124, 92, 255, 0.25);
}

.stat-label {
    display: block;

    color:
        var(--text-soft);

    font-size: 13px;
}

.stat-card strong {
    display: block;

    margin:
        13px
        0
        7px;

    font-size: 38px;

    letter-spacing: -1px;
}

.stat-description {
    color:
        var(--text-muted);

    font-size: 12px;
}

.welcome-card {
    position: relative;

    overflow: hidden;

    margin-top: 18px;

    padding: 38px;

    min-height: 230px;
}

.welcome-card::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -80px;
    bottom: -160px;

    border-radius: 50%;

    background:
        rgba(98, 76, 255, 0.14);

    filter:
        blur(20px);
}

.welcome-card h2 {
    position: relative;
    z-index: 1;

    max-width: 650px;

    margin:
        0
        0
        12px;

    font-size: 29px;

    letter-spacing:
        -0.7px;
}

.welcome-card p {
    position: relative;
    z-index: 1;

    max-width: 660px;

    margin: 0;

    color:
        var(--text-soft);

    line-height: 1.7;
}


@media (max-width: 900px) {

    .admin-layout {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;
    }

    .dashboard {
        padding: 25px;
    }

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

    .dashboard-header {
        align-items: flex-start;

        gap: 20px;
    }

    .user-pill {
        display: none;
    }
}


/* ==================================================
   THEMENVERWALTUNG
   ================================================== */

.admin-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 17px;

    border: 0;
    border-radius: 12px;

    color: #fff;

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

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    box-shadow:
        0 12px 35px rgba(95, 79, 255, 0.22);
}

.admin-primary-link:hover {
    transform: translateY(-1px);
}

.inline-button {
    margin-top: 18px;
}

.secondary-link {
    display: inline-flex;
    align-items: center;

    padding: 11px 15px;

    border: 1px solid var(--border);
    border-radius: 11px;

    color: var(--text-soft);

    background:
        rgba(255, 255, 255, 0.025);

    font-size: 13px;
}

.secondary-link:hover {
    color: #fff;
    border-color: var(--border-light);
}

.empty-card {
    padding: 45px;

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

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 42, 0.88),
            rgba(11, 15, 28, 0.88)
        );
}

.empty-card h2 {
    margin: 0 0 10px;

    font-size: 25px;
}

.empty-card p {
    margin: 0;

    color: var(--text-soft);
}

.topic-list {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.topic-admin-card {
    padding: 22px;

    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        auto
        auto;

    align-items: center;

    gap: 25px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 42, 0.88),
            rgba(11, 15, 28, 0.88)
        );

    transition: 0.2s ease;
}

.topic-admin-card:hover {
    border-color:
        rgba(124, 92, 255, 0.25);

    transform:
        translateY(-1px);
}

.topic-card-main {
    display: flex;

    gap: 17px;

    align-items: flex-start;
}

.topic-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

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

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.22),
            rgba(76, 141, 255, 0.16)
        );

    border:
        1px solid rgba(124, 92, 255, 0.2);

    font-size: 22px;
}

.topic-title-line {
    display: flex;
    align-items: center;

    gap: 10px;
}

.topic-title-line h2 {
    margin: 0;

    font-size: 18px;
}

.topic-slug {
    margin-top: 4px;

    color: var(--purple-light);

    font-size: 11px;
}

.topic-info p {
    max-width: 650px;

    margin:
        9px
        0
        0;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.55;
}

.status-badge {
    padding:
        3px
        8px;

    border-radius: 50px;

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

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.status-badge.active {
    color: #7fffc7;

    background:
        rgba(52, 211, 153, 0.08);

    border:
        1px solid rgba(52, 211, 153, 0.16);
}

.status-badge.inactive {
    color: #8891a6;

    background:
        rgba(255, 255, 255, 0.035);

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

.topic-meta {
    display: flex;

    gap: 20px;
}

.topic-meta span {
    display: flex;
    flex-direction: column;

    gap: 3px;

    color: var(--text-muted);

    font-size: 10px;
}

.topic-meta strong {
    color: var(--text-soft);

    font-size: 12px;
}

.topic-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.topic-actions form {
    margin: 0;
}

.toggle-button {
    display: flex;
    align-items: center;

    gap: 7px;

    padding:
        8px
        10px;

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

    color: var(--text-muted);

    cursor: pointer;

    background:
        rgba(255, 255, 255, 0.02);

    font-size: 10px;
}

.toggle-button span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #555d70;
}

.toggle-button.on {
    color: #b8c0d2;
}

.toggle-button.on span {
    background: #60e6aa;

    box-shadow:
        0 0 10px rgba(96, 230, 170, 0.5);
}

.edit-button {
    padding:
        9px
        12px;

    border:
        1px solid rgba(124, 92, 255, 0.2);

    border-radius: 9px;

    color: #c5baff;

    background:
        rgba(124, 92, 255, 0.07);

    font-size: 11px;
}


/* EDITOR */

.topic-editor {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.editor-card {
    padding: 28px;

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

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 42, 0.88),
            rgba(11, 15, 28, 0.88)
        );
}

.editor-grid {
    display: grid;

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

    gap: 20px;
}

.editor-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.editor-field.full {
    grid-column: 1 / -1;
}

.editor-field label {
    color: #cbd2e3;

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

.editor-field input,
.editor-field textarea,
.editor-field select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border-light);
    border-radius: 11px;

    color: var(--text);

    outline: none;

    background:
        rgba(5, 8, 16, 0.62);

    font-family: inherit;

    font-size: 14px;
}

.editor-field textarea {
    resize: vertical;

    line-height: 1.6;
}

.editor-field select {
    cursor: pointer;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus {
    border-color:
        rgba(124, 92, 255, 0.7);

    box-shadow:
        0 0 0 4px
        rgba(124, 92, 255, 0.09);
}

.editor-field small {
    color: var(--text-muted);

    font-size: 10px;
}

.slug-field {
    display: flex;
    align-items: center;

    border: 1px solid var(--border-light);
    border-radius: 11px;

    overflow: hidden;

    background:
        rgba(5, 8, 16, 0.62);
}

.slug-field span {
    padding-left: 13px;

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

.slug-field input {
    border: 0;

    background: transparent;

    box-shadow: none !important;
}

.switch-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.switch-setting {
    position: relative;

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

    gap: 16px;

    padding: 18px;

    cursor: pointer;

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

    background:
        rgba(255, 255, 255, 0.025);
}

.switch-setting strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
}

.switch-setting span {
    color: var(--text-muted);

    font-size: 10px;
}

.switch-setting input {
    position: absolute;

    opacity: 0;
}

.switch-setting i {
    position: relative;

    width: 38px;
    height: 22px;

    flex: 0 0 38px;

    border-radius: 30px;

    background: #252b3a;

    transition: 0.2s ease;
}

.switch-setting i::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: #777f91;

    transition: 0.2s ease;
}

.switch-setting input:checked + i {
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );
}

.switch-setting input:checked + i::after {
    transform:
        translateX(16px);

    background: #fff;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding-bottom: 40px;
}

.form-alert {
    max-width: 100%;
}


@media (max-width: 1150px) {

    .topic-admin-card {
        grid-template-columns: 1fr;
    }

    .topic-actions {
        flex-wrap: wrap;
    }

    .switch-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-field.full {
        grid-column: auto;
    }

}


/* ==================================================
   NEWS
   ================================================== */

.news-global-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 22px;
}

.news-global-card h2 {
    margin:
        0
        0
        7px;

    font-size: 21px;
}

.news-global-card p {
    max-width: 720px;

    margin: 0;

    color: var(--text-soft);

    font-size: 12px;

    line-height: 1.6;
}

.big-status-button {
    min-width: 90px;

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

    gap: 8px;

    padding:
        12px
        17px;

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

    border-radius: 12px;

    color: var(--text-soft);

    cursor: pointer;

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

    font-weight: 800;
}

.big-status-button span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #555d70;
}

.big-status-button.enabled {
    color: #86f4c5;

    border-color:
        rgba(52, 211, 153, .18);

    background:
        rgba(52, 211, 153, .06);
}

.big-status-button.enabled span {
    background: #60e6aa;

    box-shadow:
        0 0 12px
        rgba(96, 230, 170, .6);
}


.news-admin-list {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


.news-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 23px;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 42, .88),
            rgba(11, 15, 28, .88)
        );
}


.news-admin-info {
    min-width: 0;
}


.news-admin-info h2 {
    margin: 0;

    font-size: 17px;
}


.news-admin-info p {
    max-width: 850px;

    margin:
        9px
        0
        0;

    color:
        var(--text-soft);

    font-size: 12px;

    line-height: 1.6;
}


.news-admin-meta {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 9px;

    color:
        var(--text-muted);

    font-size: 9px;
}


.news-topic-label {
    padding:
        3px
        7px;

    border-radius: 30px;

    color:
        var(--purple-light);

    border:
        1px solid rgba(124, 92, 255, .16);

    background:
        rgba(124, 92, 255, .06);
}


@media (max-width: 900px) {

    .news-global-card,
    .news-admin-card {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}

/* ==================================================
   ADMIN TOAST / POPUP MELDUNGEN
   ================================================== */

.admin-toast-container {
    position: fixed;

    top: 24px;
    right: 24px;

    z-index: 9999;

    width: min(390px, calc(100vw - 40px));

    display: flex;
    flex-direction: column;

    gap: 10px;

    pointer-events: none;
}


.admin-toast {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px 17px;

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

    color: #fff;

    background:
        rgba(13, 17, 30, 0.96);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.40);

    backdrop-filter: blur(18px);

    opacity: 0;

    transform:
        translateX(35px);

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


.admin-toast.show {
    opacity: 1;

    transform:
        translateX(0);
}


.admin-toast-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

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

    border-radius: 9px;

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


.admin-toast-content {
    font-size: 13px;
    font-weight: 600;

    line-height: 1.45;
}


/* ERFOLG */

.admin-toast-success {
    border-color:
        rgba(63, 220, 153, 0.25);

    background:
        linear-gradient(
            135deg,
            rgba(13, 30, 27, 0.97),
            rgba(11, 18, 29, 0.97)
        );
}


.admin-toast-success .admin-toast-icon {
    color: #8dffd0;

    background:
        rgba(63, 220, 153, 0.13);

    box-shadow:
        0 0 22px rgba(63, 220, 153, 0.12);
}


/* FEHLER */

.admin-toast-error {
    border-color:
        rgba(255, 85, 100, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(35, 15, 23, 0.97),
            rgba(12, 17, 29, 0.97)
        );
}


.admin-toast-error .admin-toast-icon {
    color: #ff9da8;

    background:
        rgba(255, 72, 91, 0.13);

    box-shadow:
        0 0 22px rgba(255, 72, 91, 0.12);
}


/* INFO */

.admin-toast-info {
    border-color:
        rgba(37, 140, 255, 0.25);
}


.admin-toast-info .admin-toast-icon {
    color: #77ccff;

    background:
        rgba(37, 140, 255, 0.13);
}


@media (max-width: 650px) {

    .admin-toast-container {
        top: 14px;
        right: 14px;
        left: 14px;

        width: auto;
    }

}

/* ==================================================
   AUTOSAVE
   ================================================== */

.editor-field input,
.editor-field textarea,
.editor-field select {
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.editor-field input.autosave-saving,
.editor-field textarea.autosave-saving,
.editor-field select.autosave-saving {
    border-color:
        rgba(37, 140, 255, .65);

    box-shadow:
        0 0 0 3px
        rgba(37, 140, 255, .08);
}


.editor-field input.autosave-saved,
.editor-field textarea.autosave-saved,
.editor-field select.autosave-saved {
    border-color:
        rgba(63, 220, 153, .65);

    box-shadow:
        0 0 0 3px
        rgba(63, 220, 153, .08);
}


.editor-field input.autosave-error,
.editor-field textarea.autosave-error,
.editor-field select.autosave-error {
    border-color:
        rgba(255, 72, 91, .75);

    box-shadow:
        0 0 0 3px
        rgba(255, 72, 91, .09);
}

/* ==================================================
   MEDIATHEK
   ================================================== */

.media-dropzone {
    position: relative;

    min-height: 220px;

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

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

    text-align: center;

    border: 1px dashed rgba(37, 140, 255, .40);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 106, 0, .035),
            rgba(37, 140, 255, .055)
        );

    cursor: pointer;

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


.media-dropzone:hover,
.media-dropzone.dragging {
    border-color: rgba(255, 106, 0, .75);

    background:
        linear-gradient(
            135deg,
            rgba(255, 106, 0, .08),
            rgba(37, 140, 255, .10)
        );
}


.media-dropzone.dragging {
    transform: scale(1.005);
}


.media-dropzone input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.media-dropzone-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 16px;

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

    border-radius: 14px;

    font-size: 24px;
    font-weight: 800;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #ff6a00,
            #258cff
        );
}


.media-dropzone strong {
    font-size: 17px;
}


.media-dropzone span {
    margin-top: 5px;

    font-size: 13px;

    opacity: .72;
}


.media-dropzone small {
    margin-top: 12px;

    font-size: 11px;

    opacity: .48;
}


.media-selected-files {
    margin-top: 16px !important;

    color: #ff9f1c;

    font-weight: 700;

    opacity: 1 !important;
}



.media-library-section {
    margin-top: 32px;
}


.section-admin-heading {
    margin-bottom: 20px;

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

    gap: 20px;
}


.section-admin-heading h2 {
    margin: 5px 0 0;
}


.media-count {
    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 11px;

    opacity: .7;
}



.media-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(240px, 1fr)
        );

    gap: 16px;
}



.media-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 17px;

    background:
        rgba(15, 20, 34, .78);
}



.media-preview {
    height: 180px;

    overflow: hidden;

    background: rgba(0, 0, 0, .25);
}


.media-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}



.media-card-content {
    padding: 16px;
}



.media-original-name {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 13px;
}



.media-details {
    margin-top: 7px;

    display: flex;

    gap: 10px;

    font-size: 10px;

    opacity: .55;
}



.media-alt-form {
    margin-top: 14px;
}


.media-alt-form label {
    display: block;

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

    opacity: .7;
}


.media-alt-form input {
    width: 100%;

    margin-top: 6px;
    padding: 9px 10px;

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

    color: #fff;

    background:
        rgba(5, 9, 18, .65);

    outline: none;
}


.media-alt-form input:focus {
    border-color:
        rgba(37, 140, 255, .6);
}



.media-small-button {
    margin-top: 7px;

    padding: 7px 10px;

    border: 0;
    border-radius: 8px;

    color: #fff;

    background:
        rgba(37, 140, 255, .15);

    cursor: pointer;
}



.media-card-actions {
    margin-top: 14px;

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

    gap: 8px;
}


.media-card-actions form {
    margin: 0;
}



.media-copy-button,
.media-delete-button {
    padding: 7px 9px;

    border-radius: 8px;

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

    cursor: pointer;
}



.media-copy-button {
    border: 1px solid rgba(37, 140, 255, .22);

    color: #70bcff;

    background:
        rgba(37, 140, 255, .08);
}



.media-delete-button {
    border: 1px solid rgba(255, 72, 91, .2);

    color: #ff8793;

    background:
        rgba(255, 72, 91, .07);
}



@media (max-width: 650px) {

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-dropzone {
        min-height: 180px;

        padding: 24px;
    }

}

/* ==================================================
   MEDIA PICKER
   ================================================== */

.media-image-field {
    display: flex;
    gap: 8px;
}

.media-image-field input {
    flex: 1;
}

.media-picker-button,
.media-remove-button {
    flex: 0 0 auto;

    padding: 10px 13px;

    border-radius: 10px;

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

    cursor: pointer;
}

.media-picker-button {
    border: 1px solid rgba(37, 140, 255, .25);

    color: #80c7ff;

    background:
        rgba(37, 140, 255, .10);
}

.media-remove-button {
    border: 1px solid rgba(255, 72, 91, .20);

    color: #ff909a;

    background:
        rgba(255, 72, 91, .07);
}


.selected-media-preview {
    display: none;

    width: 100%;
    max-width: 320px;
    height: 170px;

    margin-top: 12px;

    overflow: hidden;

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

    background: rgba(0, 0, 0, .25);
}

.selected-media-preview.visible {
    display: block;
}

.selected-media-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}



.media-picker-modal {
    position: fixed;
    inset: 0;

    z-index: 20000;

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

    padding: 30px;
}

.media-picker-modal.open {
    display: flex;
}

.media-picker-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(2, 5, 12, .82);

    backdrop-filter: blur(8px);
}

.media-picker-window {
    position: relative;

    width: min(1050px, 95vw);
    max-height: 85vh;

    overflow: hidden;

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

    background: #0c1120;

    box-shadow:
        0 35px 100px rgba(0,0,0,.65);
}

.media-picker-header {
    padding: 22px 24px;

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

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

.media-picker-header h2 {
    margin: 5px 0 0;
}

.media-picker-close {
    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: #fff;

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

    font-size: 23px;

    cursor: pointer;
}

.media-picker-toolbar {
    padding: 15px 24px;

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

.media-picker-toolbar input {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: #fff;

    background: rgba(5, 9, 18, .75);

    outline: none;
}

.media-picker-grid {
    max-height: 60vh;

    padding: 20px 24px 26px;

    overflow-y: auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(160px, 1fr)
        );

    gap: 12px;
}

.media-picker-item {
    overflow: hidden;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 13px;

    color: #fff;

    text-align: left;

    background:
        rgba(15, 20, 34, .82);

    cursor: pointer;

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

.media-picker-item:hover {
    border-color:
        rgba(255, 106, 0, .55);

    transform:
        translateY(-2px);
}

.media-picker-image {
    height: 120px;

    overflow: hidden;

    background: rgba(0,0,0,.25);
}

.media-picker-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.media-picker-item > span {
    display: block;

    padding: 9px 10px;

    overflow: hidden;

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.media-picker-empty {
    padding: 60px 30px;

    display: flex;
    flex-direction: column;

    gap: 6px;

    text-align: center;

    opacity: .7;
}

body.media-picker-open {
    overflow: hidden;
}


@media (max-width: 650px) {

    .media-image-field {
        flex-direction: column;
    }

    .media-picker-modal {
        padding: 10px;
    }

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

}

/* ==================================================
   NHF GALERIE PICKER
   ================================================== */

.gallery-editor {
    margin-top: 12px;
}


.gallery-selected-grid {
    margin-bottom: 14px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


.gallery-selected-card {
    position: relative;

    width: 130px;
    height: 90px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    background: rgba(0,0,0,.25);
}


.gallery-selected-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.gallery-selected-number {
    position: absolute;
    top: 6px;
    left: 6px;

    z-index: 2;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

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

    border-radius: 7px;

    color: #111;

    background: #ffe600;

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


.gallery-remove-image {
    position: absolute;

    top: 6px;
    right: 6px;

    z-index: 2;

    width: 23px;
    height: 23px;

    border: 0;
    border-radius: 7px;

    color: #fff;

    background: rgba(180,20,35,.92);

    font-size: 17px;
    line-height: 1;

    cursor: pointer;
}



.gallery-picker-item {
    position: relative;
}


.gallery-selected-mark {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 27px;
    height: 27px;

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

    border-radius: 50%;

    color: #101010;

    background: #ffe600;

    font-weight: 900;

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


.gallery-picker-item.selected {
    border-color: #ffe600 !important;

    box-shadow:
        0 0 0 1px rgba(255,230,0,.4),
        0 0 18px rgba(255,230,0,.18);
}


.gallery-picker-item.selected
.gallery-selected-mark {
    display: flex;
}



.gallery-picker-help {
    margin: 6px 0 0;

    font-size: 11px;

    opacity: .55;
}



.gallery-picker-footer {
    padding: 15px 24px;

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

    gap: 20px;

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

    background:
        rgba(7,10,18,.92);
}


.gallery-picker-footer > span {
    font-size: 11px;

    opacity: .65;
}


@media (max-width: 650px) {

    .gallery-picker-footer {
        flex-direction: column;

        align-items: stretch;
    }

    .gallery-selected-card {
        width: 105px;
        height: 75px;
    }

}

/* ==================================================
   NHF THEMENBEITRÄGE ADMIN
   ================================================== */

.topic-articles-admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;
}


.topic-articles-admin-heading h2 {
    margin: 7px 0 5px;
}


.topic-articles-admin-heading p {
    margin: 0;

    max-width: 650px;

    font-size: 12px;
    line-height: 1.6;

    opacity: .6;
}


.topic-articles-empty {
    margin-top: 20px;
    padding: 20px;

    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 14px;

    font-size: 12px;

    opacity: .55;
}


.topic-articles-admin-list {
    margin-top: 22px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.topic-article-admin-row {
    padding: 16px 18px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;

    background:
        rgba(8,12,22,.42);
}


.topic-article-admin-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.topic-article-admin-info > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.topic-article-admin-info strong {
    font-size: 14px;
}


.topic-article-admin-info > div > span {
    font-size: 10px;

    opacity: .45;
}


.topic-article-admin-row p {
    margin: 10px 0 0;

    font-size: 11px;
    line-height: 1.55;

    opacity: .6;
}


.topic-article-admin-actions {
    margin-top: 14px;

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

    gap: 12px;
}


.topic-article-admin-actions > span {
    font-size: 10px;

    opacity: .45;
}


@media (max-width: 700px) {

    .topic-articles-admin-heading {
        flex-direction: column;
    }

}

/* ==================================================
   NHF THEMENBEITRÄGE AKTIONEN
   ================================================== */

.topic-article-action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.topic-article-action-buttons form {
    margin: 0;
}


.topic-article-delete-button {
    padding: 8px 11px;

    border: 1px solid rgba(255,72,91,.22);
    border-radius: 9px;

    color: #ff8793;

    background:
        rgba(255,72,91,.07);

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

    cursor: pointer;

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


.topic-article-delete-button:hover {
    border-color:
        rgba(255,72,91,.60);

    background:
        rgba(255,72,91,.14);
}


/* ==================================================
   NHF THEMENBEITRAG AJAX TOAST
   ================================================== */

.nhf-ajax-toast {
    position: fixed;

    top: 22px;
    right: 22px;

    z-index: 99999;

    max-width: 420px;

    padding: 13px 17px;

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

    color: #fff;

    background:
        rgba(13,18,29,.97);

    box-shadow:
        0 14px 45px rgba(0,0,0,.35);

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

    opacity: 0;

    transform:
        translateY(-10px);

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


.nhf-ajax-toast.show {
    opacity: 1;

    transform:
        translateY(0);
}


.nhf-ajax-toast.success {
    border-color:
        rgba(70,220,140,.40);
}


.nhf-ajax-toast.error {
    border-color:
        rgba(255,80,100,.55);
}


.topic-article-toggle-form
.toggle-button:disabled {
    opacity: .55;

    cursor: wait;
}


/* ==================================================
   NHF THEMENBEITRAG AJAX DELETE
   ================================================== */

.topic-article-admin-row {
    transition:
        opacity .20s ease,
        transform .20s ease;
}

.topic-article-admin-row.topic-article-removing {
    opacity: 0;

    transform:
        translateX(15px);
}

.topic-article-delete-button:disabled {
    opacity: .5;

    cursor: wait;
}


/* ==================================================
   NHF CUSTOM CONFIRM MODAL
   ================================================== */

.nhf-confirm-overlay {
    position: fixed;
    inset: 0;

    z-index: 100000;

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

    padding: 24px;

    background:
        rgba(2,5,11,.76);

    backdrop-filter:
        blur(5px);

    opacity: 0;

    transition:
        opacity .18s ease;
}


.nhf-confirm-overlay.show {
    opacity: 1;
}


.nhf-confirm-dialog {
    width: min(460px, 100%);

    padding: 25px;

    box-sizing: border-box;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(18,23,38,.99),
            rgba(8,12,22,.99)
        );

    box-shadow:
        0 30px 90px rgba(0,0,0,.60);

    transform:
        translateY(8px)
        scale(.98);

    transition:
        transform .18s ease;
}


.nhf-confirm-overlay.show
.nhf-confirm-dialog {
    transform:
        translateY(0)
        scale(1);
}


.nhf-confirm-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 18px;

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

    border:
        1px solid rgba(255,76,91,.35);

    border-radius: 12px;

    color:
        #ff7582;

    background:
        rgba(255,76,91,.10);

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


.nhf-confirm-content h3 {
    margin:
        7px 0 10px;

    color: #fff;

    font-size: 21px;
    line-height: 1.25;
}


.nhf-confirm-content p {
    margin: 0;

    color:
        rgba(255,255,255,.62);

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


.nhf-confirm-actions {
    margin-top: 24px;

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

    gap: 9px;
}


.nhf-confirm-actions button {
    min-height: 38px;

    padding:
        9px 14px;

    border-radius: 10px;

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

    cursor: pointer;
}


.nhf-confirm-cancel {
    border:
        1px solid rgba(255,255,255,.10);

    color:
        rgba(255,255,255,.72);

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


.nhf-confirm-cancel:hover {
    border-color:
        rgba(255,255,255,.22);

    color: #fff;
}


.nhf-confirm-delete {
    border:
        1px solid rgba(255,76,91,.45);

    color:
        #fff;

    background:
        linear-gradient(
            135deg,
            rgba(185,35,52,.95),
            rgba(125,24,38,.95)
        );
}


.nhf-confirm-delete:hover {
    border-color:
        rgba(255,110,122,.80);

    box-shadow:
        0 0 20px
        rgba(255,55,75,.15);
}


@media (max-width: 600px) {

    .nhf-confirm-actions {
        flex-direction: column-reverse;
    }


    .nhf-confirm-actions button {
        width: 100%;
    }

}

/* ==================================================
   NHF THEMENBEITRÄGE DRAG & DROP
   ================================================== */

.topic-article-admin-row {
    position: relative;
}


.topic-article-drag-handle {
    position: absolute;

    top: 50%;
    left: -13px;

    width: 27px;
    height: 42px;

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

    transform: translateY(-50%);

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;

    color: rgba(255,255,255,.42);

    background: rgba(9,13,23,.96);

    font-size: 16px;
    font-weight: 900;
    line-height: 1;

    cursor: grab;

    user-select: none;

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


.topic-article-drag-handle:hover {
    color: #ffe600;

    border-color:
        rgba(255,230,0,.45);

    background:
        rgba(255,230,0,.055);

    box-shadow:
        0 0 16px
        rgba(255,230,0,.08);
}


.topic-article-drag-handle:active {
    cursor: grabbing;
}


.topic-article-admin-row.is-dragging {
    opacity: .45;

    border-color:
        rgba(255,230,0,.55);

    box-shadow:
        0 0 0 1px
        rgba(255,230,0,.18);
}


.topic-articles-admin-list.is-saving-order {
    pointer-events: none;
}


.topic-articles-admin-list.is-saving-order
.topic-article-admin-row {
    opacity: .72;
}


@media (max-width: 700px) {

    .topic-article-drag-handle {
        left: -8px;
    }

}

/* ==================================================
   NHF SEITEN ADMIN
   ================================================== */

.pages-admin-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.pages-empty {
    padding: 24px;

    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 14px;

    color: rgba(255,255,255,.60);
}


.pages-empty strong {
    display: block;

    margin-bottom: 6px;

    color: #fff;

    font-size: 14px;
}


.pages-empty p {
    margin: 0;

    font-size: 11px;
    line-height: 1.6;
}


.page-admin-row {
    padding: 17px 18px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;

    background:
        rgba(8,12,22,.45);

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


.page-admin-row.page-admin-removing {
    opacity: 0;

    transform:
        translateX(14px);
}


.page-admin-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.page-admin-title {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.page-admin-title strong {
    color: #fff;

    font-size: 14px;
}


.page-admin-title span {
    color: rgba(255,255,255,.38);

    font-size: 10px;
}


.page-admin-badges {
    display: flex;
    align-items: center;

    gap: 7px;
}


.page-admin-footer {
    margin-top: 17px;

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

    gap: 15px;
}


.page-admin-position {
    color: rgba(255,255,255,.38);

    font-size: 10px;
}


.page-admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.page-admin-actions form {
    margin: 0;
}


.page-delete-button {
    padding: 8px 11px;

    border: 1px solid rgba(255,72,91,.25);
    border-radius: 9px;

    color: #ff8793;

    background:
        rgba(255,72,91,.07);

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

    cursor: pointer;
}


.page-delete-button:hover {
    border-color:
        rgba(255,72,91,.60);

    background:
        rgba(255,72,91,.14);
}


.page-delete-button:disabled {
    opacity: .5;

    cursor: wait;
}


@media (max-width: 700px) {

    .page-admin-main,
    .page-admin-footer {
        flex-direction: column;
        align-items: stretch;
    }


    .page-admin-badges,
    .page-admin-actions {
        justify-content: flex-start;
    }

}

/* ==================================================
   NHF SEITEN DRAG & DROP
   ================================================== */

.page-admin-row {
    position: relative;
}


.page-drag-handle {
    position: absolute;

    top: 50%;
    left: -13px;

    width: 27px;
    height: 42px;

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

    transform:
        translateY(-50%);

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

    border-radius: 9px;

    color:
        rgba(255,255,255,.42);

    background:
        rgba(9,13,23,.96);

    font-size: 16px;
    font-weight: 900;
    line-height: 1;

    cursor: grab;

    user-select: none;

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


.page-drag-handle:hover {
    color: #ffe600;

    border-color:
        rgba(255,230,0,.45);

    background:
        rgba(255,230,0,.055);

    box-shadow:
        0 0 16px
        rgba(255,230,0,.08);
}


.page-drag-handle:active {
    cursor: grabbing;
}


.page-admin-row.is-dragging {
    opacity: .45;

    border-color:
        rgba(255,230,0,.55);

    box-shadow:
        0 0 0 1px
        rgba(255,230,0,.18);
}


.pages-admin-list.is-saving-order {
    pointer-events: none;
}


.pages-admin-list.is-saving-order
.page-admin-row {
    opacity: .72;
}


@media (max-width: 700px) {

    .page-drag-handle {
        left: -8px;
    }

}

/* ==================================================
   NHF SEITEN DRAG & DROP FIX
   ================================================== */

.page-drag-handle {
    z-index: 5 !important;

    touch-action: none;

    cursor: grab !important;
}


.page-drag-handle:active {
    cursor: grabbing !important;
}


.page-admin-row.drag-ready {
    border-color:
        rgba(255,230,0,.28);
}


.page-admin-row.is-dragging {
    opacity: .38 !important;

    transform:
        scale(.995);

    border-color:
        #ffe600 !important;

    box-shadow:
        0 0 0 1px rgba(255,230,0,.25),
        0 0 20px rgba(255,230,0,.10) !important;
}


/*
 * Der Griff ragt links etwas aus der Karte heraus.
 * Nicht abschneiden.
 */
.pages-admin-list,
#pages-list {
    overflow: visible !important;
}


/* ==================================================
   NHF PAGES DRAG HANDLE VISIBILITY FIX
   ================================================== */

.page-admin-row {
    position: relative !important;
    overflow: visible !important;
}

.page-drag-handle {
    position: absolute !important;

    top: 50% !important;
    left: -14px !important;

    width: 28px !important;
    height: 42px !important;

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

    transform: translateY(-50%) !important;

    z-index: 20 !important;

    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 9px !important;

    color: rgba(255,255,255,.65) !important;
    background: #090d17 !important;

    font-size: 17px !important;
    font-weight: 900 !important;

    cursor: grab !important;

    user-select: none !important;
}

.page-drag-handle:hover {
    color: #ffe600 !important;

    border-color: rgba(255,230,0,.55) !important;

    box-shadow:
        0 0 16px rgba(255,230,0,.12) !important;
}

.pages-admin-list,
#pages-list {
    overflow: visible !important;
}

/* ==================================================
   NHF PAGES POINTER SORT FIX
   ================================================== */

.page-drag-handle {
    touch-action: none !important;
    cursor: grab !important;

    user-select: none !important;
    -webkit-user-select: none !important;
}


.page-drag-handle.is-active {
    cursor: grabbing !important;

    color: #ffe600 !important;

    border-color:
        rgba(255,230,0,.65) !important;
}


.page-admin-row.is-dragging {
    opacity: .42 !important;

    border-color:
        #ffe600 !important;

    box-shadow:
        0 0 0 1px rgba(255,230,0,.25),
        0 0 24px rgba(255,230,0,.10) !important;

    z-index: 10;
}


body.page-sorting-active {
    user-select: none !important;
    -webkit-user-select: none !important;
}


body.page-sorting-active
.page-admin-row {
    transition:
        transform .12s ease,
        border-color .12s ease,
        opacity .12s ease !important;
}


/* ==================================================
   NHF PAGES SORT FINAL
   ================================================== */

.page-drag-handle {
    touch-action: none !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.page-drag-handle:active {
    cursor: grabbing !important;
}

.page-admin-row.is-dragging {
    opacity: .42 !important;

    border-color: #ffe600 !important;

    box-shadow:
        0 0 0 1px rgba(255,230,0,.28),
        0 0 22px rgba(255,230,0,.10) !important;

    z-index: 50 !important;
}

body.page-sorting-active {
    cursor: grabbing !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.pages-admin-list {
    overflow: visible !important;
}


/* ==================================================
   NHF DATUM / UHRZEIT PICKER
   ================================================== */

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    cursor: pointer;
    color-scheme: dark;
}


/* Chromium / Brave / Chrome */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;

    opacity: 1 !important;

    filter: invert(1);

    width: 18px;
    height: 18px;
}


/* beim Hover etwas deutlicher */
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: .75 !important;
}


/* ==================================================
   NHF EIGENE DATUM / UHRZEIT PICKER
   ================================================== */

.nhf-picker-field {
    position: relative;
    width: 100%;
}


.nhf-picker-field input {
    width: 100%;
    padding-right: 58px !important;
}


.nhf-picker-button {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 36px;
    height: 36px;

    transform: translateY(-50%);

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

    padding: 0;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;

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

    color: #b98cff;

    cursor: pointer;

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


.nhf-picker-button:hover {
    background: rgba(185,140,255,.12);
    border-color: rgba(185,140,255,.38);

    color: #ffffff;
}


.nhf-picker-button svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Browser-eigenes Symbol ausblenden,
   weil wir jetzt einen eigenen Button haben */
.nhf-picker-field input::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
}


/* ==================================================
   NHF POSITIONIERTER DATUM / UHRZEIT PICKER
   ================================================== */

.editor-card:has(.nhf-picker-field) {
    overflow: visible !important;
}


.nhf-picker-field {
    position: relative !important;
    overflow: visible !important;
}


.nhf-picker-popup {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    z-index: 5000;

    border: 1px solid rgba(185,140,255,.32);
    border-radius: 12px;

    background: #111522;

    box-shadow:
        0 16px 40px rgba(0,0,0,.45);

    color: #fff;
}


/* ==================================================
   KALENDER
   ================================================== */

.nhf-date-picker-popup {
    width: 290px;

    padding: 12px;
}


.nhf-calendar-header {
    display: grid;

    grid-template-columns: 36px 1fr 36px;

    align-items: center;

    gap: 6px;

    margin-bottom: 10px;
}


.nhf-calendar-title {
    text-align: center;

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

    color: #fff;
}


.nhf-calendar-nav {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;

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

    color: #b98cff;

    font-size: 23px;

    cursor: pointer;
}


.nhf-calendar-nav:hover {
    background: rgba(185,140,255,.12);
}


.nhf-calendar-grid {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;
}


.nhf-calendar-weekdays {
    margin-bottom: 5px;
}


.nhf-calendar-weekdays span {
    padding: 5px 0;

    text-align: center;

    color: rgba(255,255,255,.45);

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


.nhf-calendar-day {
    aspect-ratio: 1 / 1;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;

    color: rgba(255,255,255,.82);

    font-size: 11px;

    cursor: pointer;
}


.nhf-calendar-day:hover {
    border-color: rgba(185,140,255,.32);

    background: rgba(185,140,255,.10);
}


.nhf-calendar-day.is-selected {
    border-color: #b98cff;

    background: rgba(185,140,255,.18);

    color: #fff;
}


.nhf-calendar-day.is-today {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.28);
}


.nhf-calendar-footer {
    display: flex;

    justify-content: flex-end;

    margin-top: 10px;

    padding-top: 9px;

    border-top: 1px solid rgba(255,255,255,.07);
}


.nhf-calendar-footer button {
    padding: 6px 10px;

    border: 0;

    background: transparent;

    color: #b98cff;

    font-size: 11px;

    cursor: pointer;
}


/* ==================================================
   UHRZEIT
   ================================================== */

.nhf-time-picker-popup {
    width: 235px;

    padding: 12px;
}


.nhf-time-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


.nhf-time-column label {
    display: block;

    margin-bottom: 5px;

    color: rgba(255,255,255,.48);

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


.nhf-time-column select {
    width: 100%;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

    background: #090d17;

    color: #fff;

    padding: 5px;

    outline: none;
}


.nhf-time-column option {
    padding: 5px;
}


.nhf-time-apply {
    width: 100%;

    margin-top: 10px;

    padding: 8px 12px;

    border: 1px solid rgba(185,140,255,.35);
    border-radius: 8px;

    background: rgba(185,140,255,.12);

    color: #fff;

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

    cursor: pointer;
}


.nhf-time-apply:hover {
    background: rgba(185,140,255,.20);
}


/* ==================================================
   NHF UHRZEIT PICKER AKTIONEN
   ================================================== */

.nhf-time-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 10px;
}


.nhf-time-actions .nhf-time-apply {
    margin-top: 0;
}


.nhf-time-now {
    padding: 8px 10px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: rgba(255,255,255,.72);

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

    cursor: pointer;
}


.nhf-time-now:hover {
    border-color: rgba(185,140,255,.32);

    background: rgba(185,140,255,.10);

    color: #fff;
}


/* ==================================================
   NHF ZEITANGABE KOMPAKT
   ================================================== */

.editor-card:has(#created_date) .editor-grid {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;

    gap: 16px !important;
}


.editor-card:has(#created_date) .editor-field:has(#created_date) {
    width: 220px !important;
    flex: 0 0 220px !important;
}


.editor-card:has(#created_date) .editor-field:has(#created_time) {
    width: 160px !important;
    flex: 0 0 160px !important;
}


.editor-card:has(#created_date) .nhf-picker-field {
    width: 100% !important;
}


@media (max-width: 600px) {

    .editor-card:has(#created_date) .editor-field:has(#created_date),
    .editor-card:has(#created_date) .editor-field:has(#created_time) {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

}


/* ==================================================
   NHF TEXTEDITOR
   ================================================== */

.nhf-text-editor {
    width: 100%;
}


.nhf-text-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    padding: 7px;

    margin-bottom: 7px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

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


.nhf-text-toolbar button {
    min-width: 34px;
    height: 32px;

    padding: 0 9px;

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

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 7px;

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

    color: rgba(255,255,255,.72);

    font-size: 11px;

    cursor: pointer;

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


.nhf-text-toolbar button:hover {
    border-color: rgba(185,140,255,.36);

    background: rgba(185,140,255,.11);

    color: #fff;
}


.nhf-toolbar-separator {
    width: 1px;
    height: 22px;

    margin: 0 3px;

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


.nhf-content-editor {
    min-height: 260px;

    line-height: 1.65 !important;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}


.nhf-editor-help {
    display: block;

    margin-top: 6px;

    color: rgba(255,255,255,.38);
}


@media (max-width: 600px) {

    .nhf-toolbar-separator {
        display: none;
    }

}


/* ==================================================
   NHF WYSIWYG EDITOR
   ================================================== */

.nhf-wysiwyg {
    width: 100%;
}


.nhf-wysiwyg-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    padding: 7px;

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

    border-radius: 10px 10px 0 0;

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


.nhf-wysiwyg-toolbar button {
    height: 32px;

    min-width: 34px;

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

    padding: 0 9px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;

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

    color: rgba(255,255,255,.72);

    font-size: 11px;

    cursor: pointer;
}


.nhf-wysiwyg-toolbar button:hover {
    border-color: rgba(185,140,255,.40);

    background: rgba(185,140,255,.12);

    color: #fff;
}


.nhf-wysiwyg-separator {
    width: 1px;
    height: 22px;

    margin: 0 3px;

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


.nhf-wysiwyg-content {
    width: 100%;

    min-height: 320px;

    padding: 18px;

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

    border-radius: 0 0 10px 10px;

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

    color: rgba(255,255,255,.86);

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

    outline: none;
}


.nhf-wysiwyg-content:focus {
    border-color: rgba(185,140,255,.48);
}


.nhf-wysiwyg-content:empty::before {
    content: attr(data-placeholder);

    color: rgba(255,255,255,.28);

    pointer-events: none;
}


.nhf-wysiwyg-content h2 {
    margin: 24px 0 10px;

    font-size: 24px;
}


.nhf-wysiwyg-content h3 {
    margin: 20px 0 8px;

    font-size: 18px;
}


.nhf-wysiwyg-content ul,
.nhf-wysiwyg-content ol {
    padding-left: 25px;
}


.nhf-wysiwyg-content a {
    color: #b98cff;

    text-decoration: underline;
}


/*
 * echtes Formularfeld bleibt vorhanden,
 * ist aber unsichtbar
 */
.nhf-wysiwyg-source {
    display: none !important;
}


/* ==================================================
   NHF WYSIWYG LINK MODAL
   ================================================== */

.nhf-link-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 20000;

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

    padding: 24px;

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

    backdrop-filter: blur(4px);
}


.nhf-link-modal-overlay[hidden] {
    display: none !important;
}


.nhf-link-modal {
    width: min(480px, 100%);

    border: 1px solid rgba(185,140,255,.26);
    border-radius: 16px;

    background: #101522;

    box-shadow:
        0 24px 70px rgba(0,0,0,.55);

    overflow: hidden;
}


.nhf-link-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 22px 17px;

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


.nhf-link-modal-head h2 {
    margin: 7px 0 0;

    font-size: 20px;
}


.nhf-link-modal-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: rgba(255,255,255,.65);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


.nhf-link-modal-close:hover {
    border-color: rgba(185,140,255,.35);

    background: rgba(185,140,255,.10);

    color: #fff;
}


.nhf-link-modal-body {
    display: grid;

    gap: 17px;

    padding: 22px;
}


.nhf-link-modal-field label {
    display: block;

    margin-bottom: 7px;

    color: rgba(255,255,255,.72);

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


.nhf-link-modal-field input {
    width: 100% !important;

    box-sizing: border-box;

    padding: 12px 13px !important;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;

    background: #090d17;

    color: #fff;

    outline: none;
}


.nhf-link-modal-field input:focus {
    border-color: rgba(185,140,255,.65);

    box-shadow:
        0 0 0 3px rgba(185,140,255,.09);
}


.nhf-link-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding: 15px 22px 22px;
}


.nhf-link-modal-actions button {
    min-width: 110px;

    padding: 10px 15px;

    border-radius: 8px;

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

    cursor: pointer;
}


.nhf-link-cancel {
    border: 1px solid rgba(255,255,255,.10);

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

    color: rgba(255,255,255,.70);
}


.nhf-link-submit {
    border: 1px solid rgba(185,140,255,.45);

    background: rgba(185,140,255,.16);

    color: #fff;
}


.nhf-link-submit:hover {
    background: rgba(185,140,255,.25);
}


@media (max-width: 600px) {

    .nhf-link-modal-actions {
        flex-direction: column-reverse;
    }


    .nhf-link-modal-actions button {
        width: 100%;
    }

}


/* ==================================================
   NHF WYSIWYG LINK MODAL
   ================================================== */

.nhf-link-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 20000;

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

    padding: 24px;

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

    backdrop-filter: blur(4px);
}


.nhf-link-modal-overlay[hidden] {
    display: none !important;
}


.nhf-link-modal {
    width: min(480px, 100%);

    border: 1px solid rgba(185,140,255,.26);
    border-radius: 16px;

    background: #101522;

    box-shadow:
        0 24px 70px rgba(0,0,0,.55);

    overflow: hidden;
}


.nhf-link-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 22px 17px;

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


.nhf-link-modal-head h2 {
    margin: 7px 0 0;

    font-size: 20px;
}


.nhf-link-modal-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: rgba(255,255,255,.65);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


.nhf-link-modal-close:hover {
    border-color: rgba(185,140,255,.35);

    background: rgba(185,140,255,.10);

    color: #fff;
}


.nhf-link-modal-body {
    display: grid;

    gap: 17px;

    padding: 22px;
}


.nhf-link-modal-field label {
    display: block;

    margin-bottom: 7px;

    color: rgba(255,255,255,.72);

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


.nhf-link-modal-field input {
    width: 100% !important;

    box-sizing: border-box;

    padding: 12px 13px !important;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;

    background: #090d17;

    color: #fff;

    outline: none;
}


.nhf-link-modal-field input:focus {
    border-color: rgba(185,140,255,.65);

    box-shadow:
        0 0 0 3px rgba(185,140,255,.09);
}


.nhf-link-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding: 15px 22px 22px;
}


.nhf-link-modal-actions button {
    min-width: 110px;

    padding: 10px 15px;

    border-radius: 8px;

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

    cursor: pointer;
}


.nhf-link-cancel {
    border: 1px solid rgba(255,255,255,.10);

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

    color: rgba(255,255,255,.70);
}


.nhf-link-submit {
    border: 1px solid rgba(185,140,255,.45);

    background: rgba(185,140,255,.16);

    color: #fff;
}


.nhf-link-submit:hover {
    background: rgba(185,140,255,.25);
}


@media (max-width: 600px) {

    .nhf-link-modal-actions {
        flex-direction: column-reverse;
    }


    .nhf-link-modal-actions button {
        width: 100%;
    }

}


/* ==================================================
   NHF WYSIWYG EXTENDED
   ================================================== */

.nhf-editor-color-group {
    display: inline-flex;
    align-items: center;

    gap: 3px;

    margin: 0 2px;
}


.nhf-wysiwyg-toolbar .nhf-editor-color-button {
    width: 30px;
    min-width: 30px;

    padding: 0;
}


.nhf-editor-color-dot {
    width: 11px;
    height: 11px;

    display: block;

    border-radius: 50%;

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


.nhf-wysiwyg-toolbar .nhf-editor-align-button {
    min-width: 34px;

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


.nhf-wysiwyg-toolbar .nhf-editor-special-button {
    min-width: auto;

    padding-left: 10px;
    padding-right: 10px;
}


/* Farben direkt im Editor */

.nhf-wysiwyg-content .nhf-text-orange {
    color: #ff9f1c;
}

.nhf-wysiwyg-content .nhf-text-yellow {
    color: #ffe600;
}

.nhf-wysiwyg-content .nhf-text-purple {
    color: #b98cff;
}

.nhf-wysiwyg-content .nhf-text-blue {
    color: #60a5fa;
}


/* Ausrichtung */

.nhf-wysiwyg-content .nhf-align-left {
    text-align: left;
}

.nhf-wysiwyg-content .nhf-align-center {
    text-align: center;
}

.nhf-wysiwyg-content .nhf-align-right {
    text-align: right;
}


/* Zitat */

.nhf-wysiwyg-content blockquote {
    margin: 18px 0;

    padding: 14px 18px;

    border-left: 3px solid #b98cff;

    border-radius: 0 9px 9px 0;

    background: rgba(185,140,255,.07);

    color: rgba(255,255,255,.78);

    font-style: italic;
}


/* Infobox */

.nhf-wysiwyg-content .nhf-infobox {
    position: relative;

    margin: 18px 0;

    padding: 34px 16px 15px;

    border: 1px solid rgba(185,140,255,.28);
    border-radius: 10px;

    background: rgba(185,140,255,.07);
}


.nhf-wysiwyg-content .nhf-infobox::before {
    content: "INFO";

    position: absolute;

    top: 10px;
    left: 16px;

    color: #b98cff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .12em;
}


/* ==================================================
   NHF INDIVIDUELLE TEXTFARBE
   ================================================== */

.nhf-editor-color-group {
    display: inline-flex !important;
    align-items: center !important;

    gap: 6px !important;
}


/* Farbkugel */

.nhf-custom-color-picker {
    width: 30px !important;
    height: 30px !important;

    flex: 0 0 30px;

    padding: 0 !important;

    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 50% !important;

    background: transparent !important;

    cursor: pointer;

    overflow: hidden;
}


.nhf-custom-color-picker::-webkit-color-swatch-wrapper {
    padding: 3px;
}


.nhf-custom-color-picker::-webkit-color-swatch {
    border: 0;
    border-radius: 50%;
}


.nhf-custom-color-picker::-moz-color-swatch {
    border: 0;
    border-radius: 50%;
}


/* HEX Eingabe */

.nhf-custom-color-hex {
    width: 82px !important;
    height: 30px !important;

    padding: 0 8px !important;

    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 7px !important;

    background: rgba(255,255,255,.04) !important;

    color: rgba(255,255,255,.78) !important;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px !important;

    text-transform: uppercase;
}


.nhf-custom-color-hex:focus {
    border-color: rgba(185,140,255,.50) !important;

    outline: none;
}


.nhf-custom-color-hex.is-invalid {
    border-color: rgba(255,70,70,.75) !important;

    background: rgba(255,70,70,.07) !important;
}


/* ==================================================
   NHF KURZBESCHREIBUNG ZEICHENZÄHLER
   ================================================== */

.nhf-shorttext-counter {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    margin-top: 6px;

    color: rgba(255,255,255,.35);

    font-size: 10px;
    font-weight: 600;

    transition:
        color .15s ease;
}


.nhf-shorttext-counter.is-warning {
    color: #ff9f1c;
}


.nhf-shorttext-counter.is-over {
    color: #ff6464;
}


.nhf-shorttext-counter.is-over::before {
    content: "●";

    margin-right: 6px;

    font-size: 7px;
}


/* ==================================================
   NHF KURZBESCHREIBUNG HARD LIMIT
   ================================================== */

.nhf-shorttext-counter.is-blocked {
    color: #ff4f64 !important;

    font-weight: 700;
}


.nhf-shorttext-counter.is-blocked::before {
    content: "●";

    margin-right: 6px;

    font-size: 7px;
}


textarea[aria-invalid="true"] {
    border-color: rgba(255,79,100,.70) !important;

    box-shadow:
        0 0 0 3px rgba(255,79,100,.06);
}


/* ==================================================
   WARNFENSTER
   ================================================== */

.nhf-shorttext-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 25000;

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

    padding: 24px;

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

    backdrop-filter: blur(4px);
}


.nhf-shorttext-modal-overlay[hidden] {
    display: none !important;
}


.nhf-shorttext-modal {
    width: min(460px, 100%);

    overflow: hidden;

    border: 1px solid rgba(255,79,100,.30);
    border-radius: 16px;

    background: #101522;

    box-shadow:
        0 24px 70px rgba(0,0,0,.55);
}


.nhf-shorttext-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 22px 17px;

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


.nhf-shorttext-modal-head h2 {
    margin: 7px 0 0;

    font-size: 20px;
}


.nhf-shorttext-modal-close {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: rgba(255,255,255,.65);

    font-size: 22px;

    cursor: pointer;
}


.nhf-shorttext-modal-body {
    padding: 22px;
}


.nhf-shorttext-modal-body p {
    margin: 0 0 14px;

    color: rgba(255,255,255,.78);

    line-height: 1.6;
}


.nhf-shorttext-modal-count {
    margin-bottom: 14px;

    padding: 11px 13px;

    border: 1px solid rgba(255,79,100,.22);
    border-radius: 8px;

    background: rgba(255,79,100,.07);

    color: #ff6478;

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


.nhf-shorttext-modal-body small {
    color: rgba(255,255,255,.42);
}


.nhf-shorttext-modal-actions {
    display: flex;
    justify-content: flex-end;

    padding: 0 22px 22px;
}


.nhf-shorttext-modal-ok {
    padding: 10px 16px;

    border: 1px solid rgba(185,140,255,.40);
    border-radius: 8px;

    background: rgba(185,140,255,.15);

    color: #fff;

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

    cursor: pointer;
}


.nhf-shorttext-modal-ok:hover {
    background: rgba(185,140,255,.24);
}


/* ==================================================
   NHF KARTEN-HINTERGRUND PICKER
   ================================================== */

.nhf-card-bg-picker {
    width: 100%;
}


.nhf-card-bg-preview {
    position: relative;

    width: min(420px, 100%);
    aspect-ratio: 16 / 7;

    margin-top: 9px;

    overflow: hidden;

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

    border: 1px dashed rgba(255,255,255,.14);
    border-radius: 12px;

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


.nhf-card-bg-preview img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity .15s ease;
}


.nhf-card-bg-preview.has-image img {
    opacity: 1;
}


.nhf-card-bg-empty {
    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 20px;

    text-align: center;

    color: rgba(255,255,255,.40);
}


.nhf-card-bg-empty strong {
    color: rgba(255,255,255,.60);

    font-size: 11px;
}


.nhf-card-bg-empty span {
    font-size: 10px;
}


.nhf-card-bg-preview.has-image .nhf-card-bg-empty {
    display: none;
}


.nhf-card-bg-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 10px 0 7px;
}


/* MODAL */

.nhf-card-bg-modal {
    position: fixed;

    inset: 0;

    z-index: 30000;

    display: none;

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

    padding: 30px;
}


.nhf-card-bg-modal.open {
    display: flex;
}


.nhf-card-bg-backdrop {
    position: absolute;

    inset: 0;

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

    backdrop-filter: blur(4px);
}


.nhf-card-bg-window {
    position: relative;

    z-index: 2;

    width: min(950px, 100%);
    max-height: min(760px, calc(100vh - 60px));

    overflow: auto;

    border: 1px solid rgba(185,140,255,.25);
    border-radius: 16px;

    background: #101522;

    box-shadow:
        0 25px 80px rgba(0,0,0,.60);
}


.nhf-card-bg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px;

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


.nhf-card-bg-header h2 {
    margin: 7px 0 0;
}


.nhf-card-bg-close {
    width: 36px;
    height: 36px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}


.nhf-card-bg-toolbar {
    padding: 15px 22px;

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


.nhf-card-bg-toolbar input {
    width: 100% !important;
}


.nhf-card-bg-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(150px, 1fr));

    gap: 10px;

    padding: 20px 22px 24px;
}


.nhf-card-bg-item {
    min-width: 0;

    padding: 7px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

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

    color: rgba(255,255,255,.68);

    cursor: pointer;

    text-align: left;
}


.nhf-card-bg-item:hover {
    border-color: rgba(185,140,255,.40);

    background: rgba(185,140,255,.08);
}


.nhf-card-bg-thumb {
    aspect-ratio: 16 / 10;

    margin-bottom: 7px;

    overflow: hidden;

    border-radius: 7px;

    background: #080b12;
}


.nhf-card-bg-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.nhf-card-bg-item > span {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
}


.nhf-card-bg-no-media {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 35px 22px;

    text-align: center;
}


body.nhf-card-bg-open {
    overflow: hidden;
}


/* ==================================================
   NHF THEMEN ICON PICKER
   ================================================== */

.nhf-topic-icon-preview {
    width: 110px;
    height: 110px;

    margin: 10px 0;

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

    overflow: hidden;

    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 18px;

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


.nhf-topic-icon-preview img {
    display: none;

    width: 82%;
    height: 82%;

    object-fit: contain;
}


.nhf-topic-icon-preview.has-image img {
    display: block;
}


.nhf-topic-icon-empty {
    padding: 12px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    text-align: center;

    font-size: 9px;

    color: rgba(255,255,255,.40);
}


.nhf-topic-icon-empty strong {
    color: rgba(255,255,255,.64);
}


.nhf-topic-icon-preview.has-image
.nhf-topic-icon-empty {
    display: none;
}


.nhf-topic-icon-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 18px;
}


.nhf-topic-icon-url-field {
    max-width: 600px;
}


/* MODAL */

.nhf-topic-icon-modal {
    position: fixed;

    inset: 0;

    z-index: 31000;

    display: none;

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

    padding: 30px;
}


.nhf-topic-icon-modal.open {
    display: flex;
}


.nhf-topic-icon-backdrop {
    position: absolute;

    inset: 0;

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

    backdrop-filter: blur(4px);
}


.nhf-topic-icon-window {
    position: relative;

    z-index: 2;

    width: min(950px, 100%);
    max-height: calc(100vh - 60px);

    overflow: auto;

    border: 1px solid rgba(185,140,255,.25);
    border-radius: 16px;

    background: #101522;
}


.nhf-topic-icon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding: 22px;

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


.nhf-topic-icon-header h2 {
    margin: 7px 0 0;
}


.nhf-topic-icon-close {
    width: 36px;
    height: 36px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}


.nhf-topic-icon-toolbar {
    padding: 15px 22px;

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


.nhf-topic-icon-toolbar input {
    width: 100% !important;
}


.nhf-topic-icon-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(140px, 1fr));

    gap: 10px;

    padding: 20px 22px 24px;
}


.nhf-topic-icon-item {
    min-width: 0;

    padding: 7px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

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

    color: rgba(255,255,255,.68);

    cursor: pointer;

    text-align: left;
}


.nhf-topic-icon-item:hover {
    border-color: rgba(185,140,255,.40);

    background: rgba(185,140,255,.08);
}


.nhf-topic-icon-thumb {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100px;

    margin-bottom: 7px;

    overflow: hidden;

    border-radius: 8px;

    background: #080b12;
}


.nhf-topic-icon-thumb img {
    max-width: 90%;
    max-height: 90%;

    object-fit: contain;
}


.nhf-topic-icon-item > span:last-child {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
}


body.nhf-topic-icon-open {
    overflow: hidden;
}


/* ==================================================
   NHF THEMEN ICON PICKER
   ================================================== */

.nhf-topic-icon-picker {
    margin-top: 10px;
}


.nhf-topic-icon-preview {
    width: 120px;
    height: 120px;

    margin: 12px 0;

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

    overflow: hidden;

    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 16px;

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


.nhf-topic-icon-preview img {
    display: none;

    width: 82%;
    height: 82%;

    object-fit: contain;
}


.nhf-topic-icon-preview.has-image img {
    display: block;
}


.nhf-topic-icon-empty {
    padding: 12px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    text-align: center;

    color: rgba(255,255,255,.45);

    font-size: 10px;
}


.nhf-topic-icon-empty strong {
    color: rgba(255,255,255,.68);
}


.nhf-topic-icon-preview.has-image
.nhf-topic-icon-empty {
    display: none;
}


.nhf-topic-icon-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 16px;
}


.nhf-topic-icon-url-field {
    max-width: 620px;
}


/* MODAL */

.nhf-topic-icon-modal {
    position: fixed;

    inset: 0;

    z-index: 32000;

    display: none;

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

    padding: 28px;
}


.nhf-topic-icon-modal.open {
    display: flex;
}


.nhf-topic-icon-backdrop {
    position: absolute;

    inset: 0;

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

    backdrop-filter: blur(4px);
}


.nhf-topic-icon-window {
    position: relative;

    z-index: 2;

    width: min(950px, 100%);
    max-height: calc(100vh - 56px);

    overflow: auto;

    border: 1px solid rgba(185,140,255,.25);
    border-radius: 16px;

    background: #101522;

    box-shadow:
        0 25px 80px rgba(0,0,0,.60);
}


.nhf-topic-icon-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px;

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


.nhf-topic-icon-header h2 {
    margin: 7px 0 0;
}


.nhf-topic-icon-close {
    width: 36px;
    height: 36px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}


.nhf-topic-icon-toolbar {
    padding: 15px 22px;

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


.nhf-topic-icon-toolbar input {
    width: 100% !important;
}


.nhf-topic-icon-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(140px, 1fr));

    gap: 10px;

    padding: 20px 22px 24px;
}


.nhf-topic-icon-item {
    min-width: 0;

    padding: 7px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

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

    color: rgba(255,255,255,.68);

    cursor: pointer;

    text-align: left;
}


.nhf-topic-icon-item:hover {
    border-color: rgba(185,140,255,.40);

    background: rgba(185,140,255,.08);
}


.nhf-topic-icon-thumb {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100px;

    margin-bottom: 7px;

    overflow: hidden;

    border-radius: 8px;

    background: #080b12;
}


.nhf-topic-icon-thumb img {
    max-width: 90%;
    max-height: 90%;

    object-fit: contain;
}


.nhf-topic-icon-item > span:last-child {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
}


body.nhf-topic-icon-open {
    overflow: hidden;
}


/* ==================================================
   NHF THEMEN ICON FALLBACK
   ================================================== */

.nhf-topic-icon-fallback {
    margin-top: 16px;
    max-width: 300px;
}

.nhf-topic-icon-fallback label {
    display: block;
    margin-bottom: 7px;
}

.nhf-topic-icon-fallback input {
    width: 100%;
}

.nhf-topic-icon-fallback small {
    display: block;
    margin-top: 7px;
}


/* ==================================================
   NHF THEMEN ICON – GEMEINSAMER STACK
   ================================================== */

.nhf-topic-icon-stack {
    width: min(720px, 100%);

    margin-top: 18px;

    display: flex;
    flex-direction: column;

    gap: 22px;
}


.nhf-topic-icon-part {
    width: 100%;
}


.nhf-topic-icon-part-title {
    margin-bottom: 8px;

    color: rgba(255,255,255,.82);

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


.nhf-topic-icon-part input {
    width: 100%;
}


.nhf-topic-icon-part small {
    display: block;

    margin-top: 7px;
}


/*
 * Mediathek Vorschau kompakt halten
 */
.nhf-topic-icon-part .nhf-topic-icon-preview {
    margin-top: 10px;
}


/*
 * Das alte zusätzliche Fallback-Layout
 * innerhalb des Pickers wird nicht mehr benötigt.
 */
.nhf-topic-icon-fallback {
    display: none !important;
}


/*
 * Mediathek-Button ans Admin-Design angleichen
 */
.nhf-topic-icon-actions .button.secondary {
    padding: 9px 13px;

    border: 1px solid rgba(70,150,255,.35);
    border-radius: 8px;

    background: rgba(25,100,190,.12);

    color: #75c4ff;

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

    cursor: pointer;
}


.nhf-topic-icon-actions .button.secondary:hover {
    background: rgba(25,100,190,.22);

    border-color: rgba(70,150,255,.55);
}


/* ==================================================
   NHF WYSIWYG INLINE IMAGE
   ================================================== */

.nhf-inline-image-overlay {
    position: fixed;
    inset: 0;
    z-index: 35000;

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

    padding: 24px;

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

    backdrop-filter: blur(4px);
}


.nhf-inline-image-overlay[hidden] {
    display: none !important;
}


.nhf-inline-image-modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);

    overflow: auto;

    border: 1px solid rgba(185,140,255,.26);
    border-radius: 17px;

    background: #101522;

    box-shadow:
        0 28px 90px rgba(0,0,0,.65);
}


.nhf-inline-image-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 21px 22px;

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


.nhf-inline-image-head h2 {
    margin: 6px 0 0;
}


.nhf-inline-image-close,
.nhf-inline-media-close {
    width: 36px;
    height: 36px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

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

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}


.nhf-inline-image-body {
    padding: 22px;
}


.nhf-inline-image-section + .nhf-inline-image-section {
    margin-top: 20px;
}


.nhf-inline-image-section > strong,
.nhf-inline-image-section > label,
.nhf-inline-image-options label {
    display: block;

    margin-bottom: 7px;

    color: rgba(255,255,255,.78);

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


.nhf-inline-image-source-actions {
    margin-top: 10px;
}


.nhf-inline-image-selected {
    margin-top: 9px;

    color: rgba(255,255,255,.42);

    font-size: 10px;
}


.nhf-inline-image-or {
    margin: 15px 0;

    color: rgba(255,255,255,.26);

    font-size: 10px;
    text-transform: uppercase;
}


.nhf-inline-image-options {
    display: grid;

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

    gap: 14px;

    margin-top: 20px;
}


.nhf-inline-image-options select,
.nhf-inline-image-section input {
    width: 100%;
}


.nhf-inline-image-error {
    margin-top: 18px;

    padding: 10px 12px;

    border: 1px solid rgba(255,79,100,.28);
    border-radius: 8px;

    background: rgba(255,79,100,.07);

    color: #ff7182;

    font-size: 11px;
}


.nhf-inline-image-actions {
    display: flex;
    justify-content: flex-end;

    gap: 9px;

    padding: 0 22px 22px;
}


.nhf-inline-image-actions button {
    padding: 9px 14px;

    border-radius: 8px;

    cursor: pointer;
}


.nhf-inline-image-submit {
    border: 1px solid rgba(185,140,255,.40);

    background: rgba(185,140,255,.16);

    color: #fff;
}


.nhf-inline-image-cancel {
    border: 1px solid rgba(255,255,255,.10);

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

    color: rgba(255,255,255,.68);
}


/* MEDIATHEK */

.nhf-inline-media-modal {
    position: absolute;

    inset: 0;

    z-index: 5;

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

    padding: 24px;

    background: rgba(0,0,0,.72);
}


.nhf-inline-media-modal[hidden] {
    display: none !important;
}


.nhf-inline-media-window {
    width: min(950px, 100%);
    max-height: calc(100vh - 60px);

    overflow: auto;

    border: 1px solid rgba(185,140,255,.25);
    border-radius: 16px;

    background: #101522;
}


.nhf-inline-media-toolbar {
    padding: 14px 22px;

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


.nhf-inline-media-toolbar input {
    width: 100%;
}


.nhf-inline-media-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(140px, 1fr));

    gap: 10px;

    padding: 20px 22px 24px;
}


.nhf-inline-media-item {
    min-width: 0;

    padding: 7px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

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

    color: rgba(255,255,255,.65);

    cursor: pointer;

    text-align: left;
}


.nhf-inline-media-item:hover {
    border-color: rgba(185,140,255,.42);

    background: rgba(185,140,255,.08);
}


.nhf-inline-media-thumb {
    height: 100px;

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

    margin-bottom: 7px;

    overflow: hidden;

    border-radius: 7px;

    background: #080b12;
}


.nhf-inline-media-thumb img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


.nhf-inline-media-item > span:last-child {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
}


body.nhf-inline-image-open {
    overflow: hidden;
}


@media (max-width: 650px) {

    .nhf-inline-image-options {
        grid-template-columns: 1fr;
    }

}

/* ==================================================
   NHF INLINE-BILDER – EDITOR DARSTELLUNG
   ================================================== */

.nhf-wysiwyg-content .nhf-content-image {
    position: relative;

    max-width: 100%;

    margin-top: 22px;
    margin-bottom: 22px;
}


.nhf-wysiwyg-content .nhf-content-image img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    border-radius: 10px;
}


.nhf-wysiwyg-content .nhf-image-small {
    width: min(220px, 100%);
}


.nhf-wysiwyg-content .nhf-image-medium {
    width: min(380px, 100%);
}


.nhf-wysiwyg-content .nhf-image-large {
    width: min(620px, 100%);
}


.nhf-wysiwyg-content .nhf-image-full {
    width: 100%;
}


.nhf-wysiwyg-content .nhf-image-left {
    margin-left: 0;
    margin-right: auto;
}


.nhf-wysiwyg-content .nhf-image-center {
    margin-left: auto;
    margin-right: auto;
}


.nhf-wysiwyg-content .nhf-image-right {
    margin-left: auto;
    margin-right: 0;
}


/* ==================================================
   NHF INLINE IMAGE RESIZE
   ================================================== */

.nhf-image-resize-overlay {
    position: absolute;

    z-index: 40000;

    box-sizing: border-box;

    border: 2px solid #8f63ff;

    pointer-events: none;
}


.nhf-image-resize-overlay[hidden] {
    display: none !important;
}


.nhf-image-resize-handle {
    position: absolute;

    width: 13px;
    height: 13px;

    padding: 0;

    border: 2px solid #8f63ff;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 2px rgba(10,14,24,.70);

    pointer-events: auto;

    cursor: nwse-resize;
}


.nhf-image-resize-nw {
    left: -7px;
    top: -7px;
}


.nhf-image-resize-ne {
    right: -7px;
    top: -7px;

    cursor: nesw-resize;
}


.nhf-image-resize-sw {
    left: -7px;
    bottom: -7px;

    cursor: nesw-resize;
}


.nhf-image-resize-se {
    right: -7px;
    bottom: -7px;
}


.nhf-image-resize-label {
    position: absolute;

    left: -2px;
    top: -31px;

    padding: 5px 8px;

    border-radius: 6px;

    background: #8f63ff;

    color: #fff;

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

    white-space: nowrap;

    pointer-events: none;
}


body.nhf-image-is-resizing {
    user-select: none;

    cursor: nwse-resize;
}


/* ==================================================
   NHF INLINE IMAGE – DRAG & DROP
   ================================================== */

.nhf-wysiwyg-content .nhf-content-image {
    cursor: grab;
}


.nhf-wysiwyg-content .nhf-content-image:active {
    cursor: grabbing;
}


.nhf-content-image.nhf-image-dragging {
    opacity: .38;
}


/*
 * Zielposition oberhalb
 */
.nhf-image-drop-before {
    position: relative;
}


.nhf-image-drop-before::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: -7px;

    height: 3px;

    border-radius: 999px;

    background: #8f63ff;

    box-shadow:
        0 0 12px rgba(143,99,255,.55);
}


/*
 * Zielposition unterhalb
 */
.nhf-image-drop-after {
    position: relative;
}


.nhf-image-drop-after::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 3px;

    border-radius: 999px;

    background: #8f63ff;

    box-shadow:
        0 0 12px rgba(143,99,255,.55);
}


/*
 * Hinweis am ausgewählten Bild
 */
.nhf-image-move-label {
    position: absolute;

    right: -2px;
    top: -31px;

    padding: 5px 8px;

    border: 1px solid rgba(143,99,255,.55);
    border-radius: 6px;

    background: #101522;

    color: #cbb9ff;

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

    white-space: nowrap;

    pointer-events: none;
}


/* ==================================================
   NHF INLINE IMAGE – POINTER MOVE
   ================================================== */

.nhf-wysiwyg-content .nhf-content-image {
    cursor: grab;
}


body.nhf-image-moving,
body.nhf-image-moving * {
    cursor: grabbing !important;
}


body.nhf-image-moving {
    user-select: none;
}


.nhf-content-image.nhf-image-dragging {
    opacity: .38;

    outline:
        2px dashed rgba(143,99,255,.55);

    outline-offset: 4px;
}


/* ==================================================
   NHF INLINE IMAGE – MOVE HANDLE
   ================================================== */

.nhf-image-move-label {
    pointer-events: auto !important;

    cursor: grab;

    user-select: none;
}


.nhf-image-move-label:hover {
    background: #171d2d;

    border-color: #8f63ff;

    color: #ffffff;
}


body.nhf-image-moving .nhf-image-move-label {
    cursor: grabbing;
}


/* ==================================================
   NHF IMAGE MOVE GHOST
   ================================================== */

.nhf-image-move-ghost {
    position: fixed;

    z-index: 50000;

    width: 110px;
    max-height: 140px;

    padding: 5px;

    overflow: hidden;

    border: 2px solid #8f63ff;
    border-radius: 9px;

    background: #0c101b;

    opacity: .82;

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

    pointer-events: none;
}


.nhf-image-move-ghost img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 128px;

    object-fit: contain;
}


body.nhf-image-moving {
    user-select: none;
}


body.nhf-image-moving,
body.nhf-image-moving * {
    cursor: grabbing !important;
}


/* ==================================================
   NHF INLINE IMAGE – FREIE POSITION
   ================================================== */

.nhf-wysiwyg-content .nhf-image-free-position {
    position: relative;
}


.nhf-image-moving-active {
    z-index: 20;
}


.nhf-image-move-label {
    pointer-events: auto !important;
    cursor: grab !important;
}


body.nhf-image-moving,
body.nhf-image-moving * {
    cursor: grabbing !important;
    user-select: none !important;
}


/* ==================================================
   NHF INLINE IMAGE – RESET
   ================================================== */

.nhf-image-reset-position {
    position: absolute;

    right: -2px;
    bottom: -34px;

    padding: 5px 8px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;

    background: #101522;

    color: rgba(255,255,255,.72);

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

    white-space: nowrap;

    cursor: pointer;

    pointer-events: auto;
}


.nhf-image-reset-position:hover {
    border-color: rgba(143,99,255,.55);

    color: #ffffff;
}


/* ==================================================
   NHF INLINE IMAGE – TEXTFLUSS IM EDITOR
   ================================================== */

.nhf-wysiwyg-content .nhf-image-float-left {
    float: left;

    margin:
        6px
        24px
        18px
        0;
}


.nhf-wysiwyg-content .nhf-image-float-right {
    float: right;

    margin:
        6px
        0
        18px
        24px;
}


.nhf-wysiwyg-content::after {
    content: "";

    display: block;

    clear: both;
}


/* ==================================================
   NHF INLINE IMAGE – FLOAT FIX
   ================================================== */

.nhf-wysiwyg-content .nhf-image-float-left,
.nhf-wysiwyg-content .nhf-image-float-right {
    clear: both;
}


/* ==================================================
   NHF TEXTFLUSS – KORREKTUR
   ================================================== */

.nhf-wysiwyg-content figure.nhf-image-float-left {
    position: static !important;

    float: left !important;

    left: auto !important;
    top: auto !important;

    margin: 6px 24px 18px 0 !important;

    clear: both;
}


.nhf-wysiwyg-content figure.nhf-image-float-right {
    position: static !important;

    float: right !important;

    left: auto !important;
    top: auto !important;

    margin: 6px 0 18px 24px !important;

    clear: both;
}


/* ==================================================
   NHF TEXTFLUSS – ABSTAND + ÜBERSCHRIFTEN
   ================================================== */

.nhf-wysiwyg-content figure.nhf-image-float-left {
    margin:
        4px
        28px
        20px
        0 !important;
}


.nhf-wysiwyg-content figure.nhf-image-float-right {
    margin:
        4px
        0
        20px
        28px !important;
}


/*
 * Überschriften nicht halb neben einem Float beginnen.
 */
.nhf-wysiwyg-content h2,
.nhf-wysiwyg-content h3 {
    clear: both;
}


/* ==================================================
   NHF TEXTFLUSS – SAUBERER ABSATZSTART
   ================================================== */

.nhf-wysiwyg-content figure.nhf-image-float-left,
.nhf-wysiwyg-content figure.nhf-image-float-right {
    position: static !important;

    top: auto !important;
    left: auto !important;

    transform: none !important;

    margin-top: 2px !important;
}


.nhf-wysiwyg-content h2,
.nhf-wysiwyg-content h3 {
    clear: both !important;
}


/* ==================================================
   NHF FREIE BILDPOSITION – ABSOLUTER MODUS
   ================================================== */

.nhf-wysiwyg-content {
    position: relative;
}


.nhf-wysiwyg-content figure.nhf-image-free-position {
    position: absolute !important;

    margin: 0 !important;

    float: none !important;

    z-index: 10;
}

