/* =========================================
   HERO WIDGETS
   Änderungsprotokoll: 2026-07-17 | parent-agent | @skill-css-rules, @skill-change-provenance | Mobile/Tablet: Beschreibung, Bild, Buttons
   ========================================= */

.base-hero {
    display: block;
    padding: 0 0 1rem;
    position: relative;
    z-index: 10;
    text-align: left;
    background-color: transparent;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.base-hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    padding: 0;
    background-color: transparent;
}

.base-hero-text {
    width: 100%;
    text-align: left;
}

.base-hero-visual {
    flex: 0 0 auto;
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    margin: 0.75rem 0;
}

.base-hero-image-wrapper {
    position: relative;
    border-radius: 0;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: inline-block;
    padding: 2px;
    background: var(--color-surface);
    max-width: 100%;
}

.base-hero-image {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.base-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

.base-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--color-primary-soft-bg);
    border: 1px solid var(--color-primary-soft-border);
    border-radius: 0;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.base-badge-dot {
    display: none;
}

.base-hero-action-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    .base-hero-text {
        width: 100%;
    }

    .base-hero-visual {
        margin-left: auto;
        margin-right: auto;
    }

    .base-hero-image-wrapper {
        width: 100%;
        max-width: 360px;
    }

    .base-hero-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 1024px) {
    .base-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        grid-template-areas:
            "hero-text hero-visual"
            "hero-actions hero-visual";
        column-gap: 20px;
        row-gap: 0.75rem;
        align-items: start;
        padding-bottom: 1.25rem;
    }

    .base-hero-content {
        display: contents;
    }

    .base-hero-text {
        grid-area: hero-text;
    }

    .base-hero-visual {
        grid-area: hero-visual;
        width: 280px;
        max-width: 280px;
        margin: 0;
        justify-content: flex-start;
    }

    .base-hero-actions {
        grid-area: hero-actions;
        justify-content: flex-start;
    }

    .base-hero-image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .base-hero-image {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
}
