/* =========================================
   HERO WIDGETS
   Mobile-First: 011-ui-css-mobile.mdc (576 / 600 / 1024)
   ========================================= */

.base-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 0 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow-x: hidden;
}

.base-hero-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

.base-hero-visual {
    flex: 1;
    min-width: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: clip;
    overflow-y: visible;
    padding: 0.75rem 0;
    box-sizing: border-box;
}

/* Rahmen: feine Kontur auf Weiß, ohne Schatten (briefing/design.md 003.007) */
.base-hero-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: none;
    filter: none;
    overflow: hidden;
    box-sizing: border-box;
}

.base-hero-image-wrapper::before,
.base-hero-image-wrapper::after {
    content: none;
    display: none;
}

.base-hero-image-wrapper:hover {
    box-shadow: none;
    filter: none;
    transform: none;
}

.base-hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(72vw, 300px);
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border-faint);
    box-shadow: none;
    filter: none;
}

.base-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.base-hero-actions .base-button-primary-lg,
.base-hero-actions .base-button-secondary-lg {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile + iPad: Hero-Grafik zwischen Beschreibung und CTA-Buttons */
@media (max-width: 1023px) {
    .base-hero-content {
        display: contents;
    }

    .base-hero-content > .base-badge {
        order: 1;
        width: 100%;
    }

    .base-hero-content > .base-headline-h1 {
        order: 2;
        width: 100%;
    }

    .base-hero-content > .base-content-text-large {
        order: 3;
        width: 100%;
    }

    .base-hero-visual {
        order: 4;
        width: 100%;
    }

    .base-hero-content > .base-hero-actions {
        order: 5;
        width: 100%;
    }

    .base-hero-content > .base-info-text {
        order: 6;
        width: 100%;
    }
}

/* Tablet / iPad (600px–1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
    .base-hero {
        gap: 2.5rem;
        padding: 0.5rem 0 2.5rem;
    }

    .base-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.75rem;
    }

    .base-hero-actions .base-button-primary-lg,
    .base-hero-actions .base-button-secondary-lg {
        width: auto;
        flex: 1 1 calc(50% - 0.5rem);
        min-width: min(100%, 12.5rem);
        max-width: 100%;
    }

    .base-hero-image-wrapper {
        max-width: min(100%, 32rem);
    }

    .base-hero-image {
        max-height: min(50vw, 22rem);
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .base-hero {
        flex-direction: row-reverse;
        align-items: center;
        min-height: 70vh;
        text-align: left;
        padding: 0 0 5rem;
        gap: 3rem;
    }

    .base-hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 600px;
    }

    .base-hero-image-wrapper {
        display: inline-block;
        width: auto;
        max-width: 800px;
    }

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

    .base-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .base-hero-actions .base-button-primary-lg,
    .base-hero-actions .base-button-secondary-lg {
        width: auto;
        flex: 0 1 auto;
    }
}

/* Hero-Badge: Premium-Pill (colors.css --color-badge-*, --gradient-badge-bg) */
.base-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.4375rem 1.125rem 0.4375rem 0.875rem;
    max-width: 100%;
    background: var(--gradient-badge-bg);
    background-color: var(--color-badge-bg);
    border: 1px solid var(--color-badge-border);
    border-radius: 9999px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-badge-text);
    margin: 0 auto 1.25rem auto;
    box-shadow: var(--shadow-badge);
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
    .base-badge {
        margin-left: 0;
        margin-right: auto;
        align-self: flex-start;
    }
}

.base-badge-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    background: linear-gradient(
        145deg,
        var(--color-button-accent-start) 0%,
        var(--color-button-accent-end) 100%
    );
    border-radius: 50%;
    border: 2px solid var(--color-badge-dot-ring);
    animation: base-badge-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes base-badge-dot-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}
