/* DVG Beitrag Einreichung – Frontend Styles (DVG Design Tokens) */

.dvg-be-wrap {
        max-width: 900px;
        margin: 0 auto;
        padding: 20px;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        color: #003F5C;
        font-size: 17px;
        line-height: 1.6;
}

.dvg-be-wrap h1 {
        color: #E33E86;
        font-size: 40px;
        font-weight: 800;
        margin: 0 0 20px;
}

.dvg-be-wrap h2 {
        color: #003F5C;
        font-size: 24px;
        font-weight: 800;
        margin: 0 0 14px;
}

/* Topbar (Uebersicht/Editor) */
.dvg-be-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
}
.dvg-be-topbar h1 { margin: 0; }
.dvg-be-topbar-actions {
        display: flex;
        align-items: center;
        gap: 16px;
}
.dvg-be-user { font-size: 15px; color: #6b7c85; }
.dvg-be-logout {
        color: #E33E86;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
}
.dvg-be-logout:hover { text-decoration: underline; }

/* Sektionen / Cards */
.dvg-be-section {
        background: #F5F5F5;
        border-radius: 15px;
        padding: 24px;
        margin-bottom: 22px;
}
.dvg-be-empty {
        text-align: center;
        color: #6b7c85;
}

/* Labels + Inputs */
.dvg-be-wrap label {
        display: block;
        font-weight: 600;
        margin: 14px 0 6px;
}
.dvg-be-wrap input[type="text"],
.dvg-be-wrap input[type="email"],
.dvg-be-wrap input[type="url"],
.dvg-be-wrap input[type="file"],
.dvg-be-wrap textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border: 1px solid #d5dbde;
        border-radius: 8px;
        font-family: inherit;
        font-size: 16px;
        color: #003F5C;
        background: #fff;
}
.dvg-be-wrap input:focus,
.dvg-be-wrap textarea:focus {
        outline: none;
        border-color: #E33E86;
        box-shadow: 0 0 0 3px rgba(227,62,134,0.15);
}
.dvg-be-req { color: #E33E86; font-weight: 800; }
.dvg-be-hint { font-size: 14px; color: #6b7c85; margin: 6px 0 0; }

/* Honeypot – unsichtbar */
.dvg-be-hp {
        position: absolute !important;
        left: -9999px !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
}

/* Buttons */
.dvg-be-btn {
        display: inline-block;
        background: #E33E86;
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        border: none;
        border-radius: 6px;
        padding: 13px 28px;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.05s ease;
}
.dvg-be-btn-login { margin-top: 20px; }

/* --- TinyMCE-Editor: Theme-Button-Styling neutralisieren --- */
/* Visuell/Code-Umschalter ausblenden (nur ein Editor-Modus) */
.dvg-be-wrap .wp-editor-tabs { display: none !important; }

/* Toolbar-Buttons: schwarz auf hell statt grau auf pink */
.dvg-be-wrap .mce-toolbar-grp,
.dvg-be-wrap .mce-toolbar .mce-container-body {
        background: #ffffff !important;
}
.dvg-be-wrap .mce-btn,
.dvg-be-wrap .mce-btn button,
.dvg-be-wrap .mce-menubtn button {
        background: #ffffff !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
        color: #1a1a1a !important;
        border-radius: 4px !important;
}
/* Icons dunkel einfärben */
.dvg-be-wrap .mce-ico { color: #1a1a1a !important; }
/* Dropdown "Absatz": Text dunkel */
.dvg-be-wrap .mce-btn .mce-txt { color: #1a1a1a !important; }
/* Hover/aktiv: dezentes Grau, kein Pink */
.dvg-be-wrap .mce-btn:hover,
.dvg-be-wrap .mce-btn.mce-active,
.dvg-be-wrap .mce-btn button:hover,
.dvg-be-wrap .mce-menubtn:hover button {
        background: #e9edf0 !important;
        color: #1a1a1a !important;
}
.dvg-be-wrap .mce-btn.mce-disabled .mce-ico { color: #b5bcc2 !important; }
.dvg-be-btn:hover { background: #c72f70; color: #fff; }
.dvg-be-btn:active { transform: translateY(1px); }
.dvg-be-btn-secondary { background: #003F5C; }
.dvg-be-btn-secondary:hover { background: #002a3e; }

.dvg-be-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-top: 10px;
}

.dvg-be-link {
        color: #E33E86;
        text-decoration: none;
        font-weight: 600;
}
.dvg-be-link:hover { text-decoration: underline; }

/* Notices */
.dvg-be-notice {
        border-radius: 10px;
        padding: 16px 18px;
        margin-bottom: 20px;
        border-left: 5px solid;
}
.dvg-be-success {
        background: #E5F6E0;
        color: #2FA015;
        border-color: #2FA015;
}
.dvg-be-error {
        background: #FCE4EE;
        color: #E33E86;
        border-color: #E33E86;
}

/* Autosave-Status */
.dvg-be-autosave-status {
        min-height: 20px;
        font-size: 14px;
        color: #6b7c85;
        margin-bottom: 8px;
        text-align: right;
}
.dvg-be-autosave-err { color: #E33E86; }

/* Tabelle (Meine Beitraege) */
.dvg-be-table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dvg-be-table th {
        background: #003F5C;
        color: #fff;
        text-align: left;
        padding: 14px 16px;
        font-size: 15px;
}
.dvg-be-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
}
.dvg-be-table tr:nth-child(even) td { background: #fafafa; }

/* Status-Badges */
.dvg-be-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
}
.dvg-be-status-draft   { background: #eceff1; color: #607d8b; }
.dvg-be-status-pending { background: #fff3cd; color: #a67c00; }
.dvg-be-status-publish { background: #E5F6E0; color: #2FA015; }

/* Tags */
.dvg-be-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 18px;
        margin-bottom: 6px;
}
.dvg-be-tag {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        font-weight: 400 !important;
        margin: 0 !important;
        background: #fff;
        border: 1px solid #d5dbde;
        border-radius: 20px;
        padding: 6px 14px;
        cursor: pointer;
        font-size: 15px;
}
.dvg-be-tag input { width: auto !important; margin: 0; }

/* Beitragsbild-Vorschau */
.dvg-be-thumb img {
        max-width: 240px;
        height: auto;
        border-radius: 10px;
        border: 3px solid #E33E86;
        margin: 6px 0;
}

/* Responsive */
@media ( max-width: 768px ) {
        .dvg-be-wrap h1 { font-size: 30px; }
        .dvg-be-topbar { flex-direction: column; align-items: flex-start; }

        .dvg-be-table thead { display: none; }
        .dvg-be-table, .dvg-be-table tbody, .dvg-be-table tr, .dvg-be-table td { display: block; width: 100%; box-sizing: border-box; }
        .dvg-be-table tr { margin-bottom: 14px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
        .dvg-be-table td { border: none; border-bottom: 1px solid #f0f0f0; }
        .dvg-be-table td::before {
                content: attr(data-label);
                display: block;
                font-weight: 700;
                font-size: 13px;
                color: #6b7c85;
                margin-bottom: 2px;
        }
        .dvg-be-actions { flex-direction: column; }
        .dvg-be-actions .dvg-be-btn { width: 100%; text-align: center; }
}



/* =========================================================================
 * Frontend-Freigabe (Redaktion): Info-Notice, Vorschau, Aktionen
 * ====================================================================== */
.dvg-be-info {
        background: #EAF3F8;
        color: #003F5C;
        border-color: #003F5C;
}

.dvg-be-btn-ghost {
        background: transparent;
        color: #E33E86;
        border: 2px solid #E33E86;
}
.dvg-be-btn-ghost:hover { background: #FCE4EE; color: #E33E86; }

.dvg-be-review-intro {
        color: #003F5C;
        margin: 0 0 18px;
}

.dvg-be-review-preview {
        background: #F5F5F5;
        border: 1px solid #e2e6e9;
        border-radius: 12px;
        padding: 22px 24px;
        margin-bottom: 22px;
}

.dvg-be-review-meta {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 18px;
        font-size: 15px;
}
.dvg-be-review-meta th,
.dvg-be-review-meta td {
        text-align: left;
        vertical-align: top;
        padding: 6px 10px 6px 0;
        border-bottom: 1px solid #e2e6e9;
}
.dvg-be-review-meta th {
        width: 170px;
        color: #6b7c85;
        font-weight: 600;
        white-space: nowrap;
}
.dvg-be-review-meta td { color: #1a1a1a; }
.dvg-be-review-meta a { color: #E33E86; }

.dvg-be-review-title {
        color: #003F5C;
        font-size: 28px;
        line-height: 1.25;
        margin: 6px 0 16px;
}

.dvg-be-review-thumb { margin: 0 0 18px; }
.dvg-be-review-thumb img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
}

.dvg-be-review-content {
        color: #1a1a1a;
        font-size: 16px;
        line-height: 1.7;
}
.dvg-be-review-content h2 { color: #003F5C; font-size: 22px; margin: 22px 0 10px; }
.dvg-be-review-content h3 { color: #003F5C; font-size: 19px; margin: 18px 0 8px; }
.dvg-be-review-content p { margin: 0 0 14px; }
.dvg-be-review-content img { max-width: 100%; height: auto; border-radius: 8px; }
.dvg-be-review-content blockquote {
        border-left: 4px solid #E33E86;
        margin: 0 0 14px;
        padding: 6px 16px;
        color: #003F5C;
}

.dvg-be-review-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 8px;
}
.dvg-be-review-actions form { margin: 0; }

.dvg-be-reject-box {
        background: #F5F5F5;
        border: 1px solid #e2e6e9;
        border-radius: 12px;
        padding: 18px 20px;
        margin-top: 12px;
}
.dvg-be-reject-box label {
        display: block;
        font-weight: 600;
        color: #003F5C;
        margin-bottom: 8px;
}
.dvg-be-reject-box textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #cfd6db;
        border-radius: 8px;
        padding: 12px;
        font-family: inherit;
        font-size: 15px;
        margin-bottom: 14px;
        resize: vertical;
}
