/* =========================================
   HERO WIDGETS
   Mobile-First: 011-ui-mobile.mdc. Breakpoints: 576px, 600px, 1024px, 1280px, 1440px.
   ========================================= */

.base-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet: weiterhin Spalte, damit Content volle Breite hat */
@media (min-width: 600px) {
    .base-hero {
        gap: 1.5rem;
    }
}

/* Desktop: erst ab 1280px zwei Spalten, davor Spalte = kein Abschneiden der rechten Seite */
@media (min-width: 1280px) {
    .base-hero {
        flex-direction: row;
        text-align: left;
        padding: 0;
        gap: 3rem;
        align-items: center;
    }
}

.base-hero-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (min-width: 1280px) {
    .base-hero-content {
        max-width: 560px;
    }
}

.base-hero-visual {
    flex: 0 0 auto;
    position: relative;
    perspective: 1000px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

@media (min-width: 1280px) {
    .base-hero-visual {
        width: auto;
        max-width: 560px;
        flex-shrink: 0;
    }
}

/* Wrapper passt sich exakt den Bilddimensionen an – 0px Padding, keine Zwangs-Proportionen */
.base-hero-image-wrapper {
    position: relative;
    transform: rotateY(-5px) rotateX(2px);
    transition: transform 0.5s ease;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: block;
    line-height: 0;
    padding: 0;
    margin: 0;
    width: fit-content;
    max-width: 100%;
}

.base-hero-image-wrapper:hover {
    transform: rotateY(-2px) rotateX(1px);
}

/* Bild in natürlichen Dimensionen, 0px Padding - passt sich dem Bild an */
.base-hero-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    vertical-align: top;
    padding: 0;
    margin: 0;
}

/* Smartphone: Bild skaliert mit max-width, behaelt Proportionen */
@media (max-width: 575px) {
    .base-hero-image-wrapper {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

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

/* Tablet: Bild skaliert mit max-width */
@media (min-width: 600px) and (max-width: 1023px) {
    .base-hero-image-wrapper {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

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

/* Desktop: Wrapper passt sich Bilddimensionen an */
@media (min-width: 1280px) {
    .base-hero-image-wrapper {
        max-width: 560px;
        overflow: hidden;
    }

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

.base-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    max-width: 100%;
}

/* Badge specific to hero usually */
.base-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--color-primary-muted-bg);
    border: 1px solid var(--color-primary-muted-border);
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.base-badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
}