/*
 * DownloadNext v6.1.2 — Action Button Restore Hotfix
 *
 * v6.1.1 hat die doppelten Navigationsleisten zu breit ausgeblendet und dabei
 * echte Kontext-/Download-Aktionsbuttons entfernt. Dieses Hotfix-CSS wird nach
 * downloadnext-cleanup.css geladen und stellt diese Aktionsbereiche wieder her.
 *
 * Alte externe Modulnavigation bleibt aus; neue Hero-Tabs innerhalb der DownloadNext-Shell bleiben sichtbar.
 */

:root{
    --dn-action-bg: var(--dsc-surface-2, rgba(28,20,13,.96));
    --dn-action-bg-hover: var(--dsc-surface, rgba(42,30,18,.98));
    --dn-action-border: var(--dsc-border, rgba(255,153,0,.30));
    --dn-action-border-strong: var(--dsc-border-strong, rgba(255,184,76,.56));
    --dn-action-text: var(--dsc-text, #f7e5c7);
    --dn-action-accent: var(--dsc-accent, #ff9900);
    --dn-action-radius: var(--dsc-radius-sm, 12px);
}

/* Nur die wirklich doppelte interne Modulnavigation bleibt deaktiviert. */
.downloadnext-module-nav:not(.stossachse-hero-tabs){
    display:none !important;
}

/* Echte Kontext-Aktionsleisten wieder sichtbar machen. */
.downloadnext-hero-actions,
.downloadnext-header-actions,
.downloadnext-owner-tools,
.downloadnext-release-actions,
.downloadnext-card-actions,
.downloadnext-admin-actions,
.downloadnext-form-actions,
.downloadnext-collection-actions,
.downloadnext-collection-toggle,
.downloadnext-inline-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:10px !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

.downloadnext-hero-actions,
.downloadnext-header-actions,
.downloadnext-owner-tools{
    justify-content:flex-end !important;
}

.downloadnext-release-actions,
.downloadnext-card-actions,
.downloadnext-form-actions{
    justify-content:flex-start !important;
}

.downloadnext-owner-tools{
    margin-top:12px !important;
}

/* Links/Formulare innerhalb von Aktionen dürfen nicht verschwinden. */
.downloadnext-hero-actions > *,
.downloadnext-header-actions > *,
.downloadnext-owner-tools > *,
.downloadnext-release-actions > *,
.downloadnext-card-actions > *,
.downloadnext-admin-actions > *,
.downloadnext-form-actions > *{
    display:inline-flex !important;
    max-width:100% !important;
}

.downloadnext-hero-actions form,
.downloadnext-header-actions form,
.downloadnext-owner-tools form,
.downloadnext-release-actions form,
.downloadnext-card-actions form,
.downloadnext-admin-actions form,
.downloadnext-form-actions form{
    margin:0 !important;
}

/* Einheitlicher Button-Stil, aber keine Aktionen mehr verstecken. */
.downloadnext-button,
.downloadnext-button-ghost,
.downloadnext-mini-button,
.downloadnext-mini-button-primary,
.downloadnext-filter-reset,
.downloadnext-readmore,
.downloadnext-card-actions a,
.downloadnext-card-actions button,
.downloadnext-release-actions a,
.downloadnext-release-actions button,
.downloadnext-hero-actions a,
.downloadnext-hero-actions button,
.downloadnext-header-actions a,
.downloadnext-header-actions button,
.downloadnext-owner-tools a,
.downloadnext-owner-tools button,
a.downloadnext-button,
button.downloadnext-button,
a.downloadnext-mini-button,
button.downloadnext-mini-button{
    appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-height:38px !important;
    width:auto !important;
    max-width:100% !important;
    padding:9px 14px !important;
    border-radius:var(--dn-action-radius) !important;
    border:1px solid var(--dn-action-border) !important;
    background:linear-gradient(180deg, rgba(42,30,18,.96), rgba(12,10,8,.98)) !important;
    color:var(--dn-action-text) !important;
    font-weight:800 !important;
    line-height:1.15 !important;
    text-decoration:none !important;
    box-shadow:0 10px 24px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.04) !important;
    cursor:pointer !important;
    white-space:normal !important;
    text-align:center !important;
    opacity:1 !important;
    visibility:visible !important;
}

.downloadnext-button:hover,
.downloadnext-button-ghost:hover,
.downloadnext-mini-button:hover,
.downloadnext-filter-reset:hover,
.downloadnext-readmore:hover,
.downloadnext-card-actions a:hover,
.downloadnext-card-actions button:hover,
.downloadnext-release-actions a:hover,
.downloadnext-release-actions button:hover,
.downloadnext-hero-actions a:hover,
.downloadnext-hero-actions button:hover,
.downloadnext-header-actions a:hover,
.downloadnext-header-actions button:hover,
.downloadnext-owner-tools a:hover,
.downloadnext-owner-tools button:hover{
    border-color:var(--dn-action-border-strong) !important;
    background:linear-gradient(180deg, rgba(58,40,22,.98), rgba(18,14,10,.98)) !important;
    color:#fff4df !important;
    filter:none !important;
    transform:translateY(-1px);
}

/* Wichtigste Primäraktionen dürfen als Akzent bleiben, aber im gleichen Rhythmus. */
.downloadnext-button-primary,
.downloadnext-mini-button-primary,
.downloadnext-release-actions .downloadnext-button:first-child,
.downloadnext-card-actions .downloadnext-button:first-child,
.downloadnext-hero-actions .downloadnext-button:first-child{
    border-color:rgba(255,184,76,.70) !important;
    background:linear-gradient(180deg, rgba(255,165,35,.96), rgba(178,89,0,.96)) !important;
    color:#1a0d02 !important;
    text-shadow:none !important;
}

/* Gefährliche Aktionen bleiben erkennbar, aber nicht roh. */
.downloadnext-danger,
.downloadnext-admin-actions .downloadnext-danger,
.downloadnext-owner-tools .downloadnext-danger,
.downloadnext-release-actions .downloadnext-danger,
.downloadnext-inline-form button[value="delete"],
.downloadnext-admin-actions button[name="delete"],
.downloadnext-admin-actions button[value="delete"]{
    border-color:rgba(255,90,90,.46) !important;
    color:#ffd2c9 !important;
    background:linear-gradient(180deg, rgba(58,24,20,.96), rgba(18,9,8,.98)) !important;
}

@media (max-width: 900px){
    .downloadnext-hero-actions,
    .downloadnext-header-actions,
    .downloadnext-owner-tools{
        justify-content:flex-start !important;
    }
}
