/**
 * Hero Banner Block Styles
 * Quadratischer Text-Container mit Hintergrundbild
 */

.wp-block-ulrike-wessel-coach-hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: var(--spacing-xxl);
}

/* Kein globales Overlay mehr */
.hero-banner-overlay {
    display: none;
}

/* Quadratischer Container für den typografischen Text */
.hero-banner-content {
    position: relative;
    z-index: 2;
    
    /* Feste quadratische Maße */
    width: 400px;
    height: 400px;
    
    /* Overlay-Hintergrund für den Container */
    background: var(--overlay-color, rgba(0, 0, 0, 0.7));
    
    /* 5px Umrandung */
    border: 5px solid rgba(255, 255, 255, 0.8);
    
    /* Container-Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 2em Abstand um den Text */
    padding: 2em;
    box-sizing: border-box;
    
    /* Box-Eigenschaften */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    
    /* Sanfte Erscheinungsanimation */
    animation: heroBoxAppear 1.2s ease-out forwards;
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    
    /* Sanfter Hover-Effekt */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner-content:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Keyframes für Hero-Box Animation */
@keyframes heroBoxAppear {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
        filter: blur(3px);
    }
    50% {
        opacity: 0.8;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Typografische Textzeilen - nutzt die volle Breite des Quadrats */
.hero-text-lines {
    display: block;
    width: 100%;
    text-align: justify;
    text-align-last: justify; /* Auch letzte Zeile als Blocksatz */
    overflow: visible;
    padding-bottom: 0.3em; /* Extra Platz für Unterlängen */
}

.hero-text-line {
    color: var(--text-color, #ffffff);
    font-family: var(--font-family);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0 0 0.1em 0;
    line-height: 1.1;
    word-spacing: 0.1em;
    letter-spacing: 0.02em;
    display: block;
    
    /* Kein Zeilenumbruch - Text muss in eine Zeile passen */
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    
    /* Animation */
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

/* Verschiedene Schriftgrößen für typografischen Effekt */
.hero-text-line.size-small {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    font-weight: 300;
}

.hero-text-line.size-medium {
    font-size: clamp(1rem, 3.5vw, 1.8rem);
    font-weight: 400;
}

.hero-text-line.size-large {
    font-size: clamp(1.3rem, 4.5vw, 2.5rem);
    font-weight: 500;
}

.hero-text-line.size-extra-large {
    font-size: clamp(1.6rem, 5.5vw, 3.2rem);
    font-weight: 600;
}

.hero-text-line.size-huge {
    font-size: clamp(2rem, 6.5vw, 4rem);
    font-weight: 700;
}

/* Font-Weight Varianten */
.hero-text-line.weight-light { font-weight: 300; }
.hero-text-line.weight-normal { font-weight: 400; }
.hero-text-line.weight-medium { font-weight: 500; }
.hero-text-line.weight-semibold { font-weight: 600; }
.hero-text-line.weight-bold { font-weight: 700; }

/* Animations-Verzögerung für gestaggerten Effekt */
.hero-text-line:nth-child(1) { animation-delay: 0.1s; }
.hero-text-line:nth-child(2) { animation-delay: 0.2s; }
.hero-text-line:nth-child(3) { animation-delay: 0.3s; }
.hero-text-line:nth-child(4) { animation-delay: 0.4s; }
.hero-text-line:nth-child(5) { animation-delay: 0.5s; }
.hero-text-line:nth-child(6) { animation-delay: 0.6s; }
.hero-text-line:nth-child(7) { animation-delay: 0.7s; }
.hero-text-line:nth-child(8) { animation-delay: 0.8s; }
.hero-text-line:nth-child(9) { animation-delay: 0.9s; }

/* Fade-in Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4-Ecken-Ausrichtungen für das Quadrat */
/* Oben Links */
.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-left .hero-banner-content {
    margin: 4em 0 0 4em;
}

/* Oben Rechts */
.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-right {
    align-items: flex-start;
    justify-content: flex-end;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-right .hero-banner-content {
    margin: 4em 4em 0 0;
}

/* Unten Links */
.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-left .hero-banner-content {
    margin: 0 0 4em 4em;
}

/* Unten Rechts */
.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-right .hero-banner-content {
    margin: 0 4em 4em 0;
}

/* Seitliche Ausrichtungen */
.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-left {
    justify-content: flex-start;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-left .hero-banner-content {
    margin-left: 4em;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-right {
    justify-content: flex-end;
}

.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-right .hero-banner-content {
    margin-right: 4em;
}

/* Zentriert (Standard) */
.wp-block-ulrike-wessel-coach-hero-banner.has-content-align-center {
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-block-ulrike-wessel-coach-hero-banner {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .hero-banner-content {
        width: 320px;
        height: 320px;
        padding: 1.5em;
        border-width: 3px;
    }
    
    .hero-text-line {
        line-height: 1;
        margin-bottom: 0.15em;
    }
    
    /* 4-Ecken responsive Anpassungen */
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-left .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-right .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-left .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-right .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-left .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-right .hero-banner-content {
        margin: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .wp-block-ulrike-wessel-coach-hero-banner {
        min-height: 60vh;
    }
    
    .hero-banner-content {
        width: 280px;
        height: 280px;
        padding: 1em;
        border-width: 2px;
    }
    
    /* Mobile: Kleinere Margins */
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-left .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-top-right .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-left .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-bottom-right .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-left .hero-banner-content,
    .wp-block-ulrike-wessel-coach-hero-banner.has-content-align-right .hero-banner-content {
        margin: var(--spacing-sm);
    }
}

/* Fallback für Browser ohne Background-Attachment-Support */
@supports not (background-attachment: fixed) {
    .wp-block-ulrike-wessel-coach-hero-banner {
        background-attachment: scroll;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-banner-content {
        border-color: #ffffff;
        border-width: 6px;
    }
    
    .hero-text-line {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .hero-text-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .wp-block-ulrike-wessel-coach-hero-banner {
        min-height: auto;
        background: none;
        color: #000;
    }
    
    .hero-banner-content {
        background: #f0f0f0;
        border-color: #000;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .hero-text-line {
        color: #000;
        text-shadow: none;
    }
} 