/* =========================================
   HERO WIDGETS
   ========================================= */

.base-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 0 3rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

@media (min-width: 1024px) {
    .base-hero {
        flex-direction: row;
        text-align: left;
        padding: 2px 0 5rem;
        gap: 50px;
    }
}

.base-hero-content {
    flex: 1;
    max-width: 600px;
    padding: 3px;
}

/* Hero-H1: größere Display-Typografie als Standard-base-headline-h1 (briefing/design.md 003.018) */
.base-hero-title {
    font-family: var(--font-family-headline);
    font-size: clamp(1.875rem, 5vw + 0.65rem, var(--font-size-4xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.08;
    letter-spacing: -0.038em;
    margin: 0 0 1.25rem;
    padding: 0;
    max-width: 100%;
    color: var(--color-headline);
    text-wrap: balance;
    text-shadow:
        0 1px 0 rgba(var(--color-ci-accent-rgb), 0.14),
        0 14px 36px rgba(var(--color-ci-accent-rgb), 0.1);
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

@media (min-width: 768px) {
    .base-hero-title {
        font-size: clamp(2.25rem, 3.2vw + 0.85rem, var(--font-size-5xl));
        letter-spacing: -0.042em;
        line-height: 1.06;
    }
}

.base-hero-title-brand {
    display: block;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.2em;
}

.base-hero-title-text {
    display: block;
    color: var(--color-headline);
    font-weight: var(--font-weight-extrabold);
}

.base-hero-visual {
    flex: 0 0 auto;
    position: relative;
    perspective: 1000px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.base-hero-image-wrapper {
    position: relative;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
}

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

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

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

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

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

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

@media (min-width: 1024px) {
    .base-hero-image {
        max-height: 420px;
    }
}

/* Hero-CTAs immer nebeneinander; engeres Gap damit beide in schmale Spalten passen */
.base-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .base-hero-actions {
        justify-content: flex-start;
    }
}

/* Badge specific to hero usually */
.base-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--color-ci-accent-alpha-10);
    border: 1px solid var(--color-ci-accent-alpha-20);
    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);
}

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