/**
 * Pure Planning - Hero Sections
 * Full-viewport heroes with parallax
 */

/* ===== Main Hero (Homepage) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img,
.hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.6) 0%,
        rgba(17, 17, 17, 0.3) 40%,
        rgba(17, 17, 17, 0.5) 70%,
        rgba(17, 17, 17, 0.8) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-xl);
}

.hero__tagline {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--warm);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-hero);
    font-weight: 600;
    color: var(--text-light);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 300;
    color: rgba(254, 253, 251, 0.85);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero__actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s var(--ease-out) 1.2s forwards;
}

/* ===== Scroll Indicator ===== */
.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 1.5s forwards;
}

.hero__scroll-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: rgba(254,253,251,0.5);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--warm), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Page Hero (Subpages) ===== */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    padding-top: var(--nav-height);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, 0.85) 0%,
        rgba(26, 26, 26, 0.7) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-4xl) var(--space-xl);
}

.page-hero__tagline {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--warm);
    margin-bottom: var(--space-lg);
}

.page-hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.page-hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(254,253,251,0.8);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Hero Animations ===== */
@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }
    .hero__content {
        padding: 0 var(--space-lg);
    }
    .hero__tagline {
        font-size: var(--text-xs);
        margin-bottom: var(--space-lg);
    }
    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: var(--space-lg);
    }
    .hero__subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }
    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    .hero__actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .hero__scroll {
        bottom: var(--space-lg);
    }

    .page-hero {
        min-height: 45vh;
    }
    .page-hero__content {
        padding: var(--space-2xl) var(--space-lg);
    }
    .page-hero__title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-hero__subtitle {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
    }
    .hero__title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }
    .hero__subtitle {
        font-size: var(--text-sm);
    }
    .hero__actions .btn {
        padding: 14px 24px;
        font-size: var(--text-xs);
    }
    .page-hero {
        min-height: 40vh;
    }
    .page-hero__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-hero__tagline {
        font-size: var(--text-xs);
    }
}

/* ===== Bauturbo Conversion Hero ===== */
.bauturbo-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.bauturbo-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bauturbo-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.bauturbo-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(17, 17, 17, 0.5) 0%,
        rgba(17, 17, 17, 0.6) 40%,
        rgba(17, 17, 17, 0.85) 100%
    );
}

.bauturbo-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-2xl) var(--space-xl);
}

/* Badge */
.bauturbo-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.6s var(--ease-out) 0.2s forwards;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #34d058;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 208, 88, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(52, 208, 88, 0); }
}

.badge-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: var(--tracking-wide);
}

/* Title */
.bauturbo-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s var(--ease-out) 0.4s forwards;
}

.text-gradient {
    background: linear-gradient(135deg, var(--warm) 0%, #ff6b4a 50%, var(--warm) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Subtitle */
.bauturbo-hero__subtitle {
    font-size: var(--text-lg);
    font-weight: 300;
    color: rgba(254, 253, 251, 0.85);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s var(--ease-out) 0.6s forwards;
}

.bauturbo-hero__subtitle strong {
    color: var(--warm);
    font-weight: 600;
}

/* CTA Box */
.bauturbo-hero__cta-box {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s var(--ease-out) 0.8s forwards;
}

/* Quick Check Form */
.hero-quickcheck {
    display: flex;
    gap: 0;
    max-width: 580px;
    margin: 0 auto var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: all var(--duration-normal) var(--ease-out);
}

.hero-quickcheck:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--warm);
    box-shadow: 0 0 30px rgba(153, 1, 0, 0.3), 0 0 60px rgba(153, 1, 0, 0.1);
}

.hero-quickcheck__input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
}

.hero-quickcheck__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--warm);
}

.hero-quickcheck__icon svg {
    width: 100%;
    height: 100%;
}

.hero-quickcheck__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--text-light);
}

.hero-quickcheck__input::placeholder {
    color: rgba(254, 253, 251, 0.5);
}

.hero-quickcheck__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}

.hero-quickcheck__btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.hero-quickcheck__btn:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(153, 1, 0, 0.4);
}

.hero-quickcheck__btn:hover svg {
    transform: translateX(4px);
}

/* Hint */
.hero-quickcheck__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(254, 253, 251, 0.6);
}

.hero-quickcheck__hint svg {
    width: 16px;
    height: 16px;
    color: #34d058;
}

/* Trust Indicators */
.bauturbo-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-4xl); /* Space before scroll indicator */
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.6s var(--ease-out) 1s forwards;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--warm);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.trust-label {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: rgba(254, 253, 251, 0.5);
    white-space: nowrap;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll Indicator */
.bauturbo-hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease-out) 1.2s forwards;
}

.bauturbo-hero__scroll span {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: rgba(254, 253, 251, 0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--warm), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== Bauturbo Hero Responsive ===== */
@media (max-width: 768px) {
    .bauturbo-hero {
        min-height: 100svh;
    }

    .bauturbo-hero__content {
        padding: var(--space-xl) var(--space-lg);
    }

    .bauturbo-hero__title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .bauturbo-hero__subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }

    .hero-quickcheck {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }

    .hero-quickcheck__input-group {
        padding: var(--space-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-quickcheck__btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-lg);
    }

    .bauturbo-hero__trust {
        gap: var(--space-lg);
        flex-wrap: nowrap;
        margin-top: var(--space-2xl);
        margin-bottom: var(--space-3xl);
        padding-top: var(--space-xl);
    }

    .trust-item {
        flex: 1;
    }

    .trust-number {
        font-size: var(--text-xl);
    }

    .trust-label {
        white-space: normal;
        font-size: 9px;
    }

    .trust-divider {
        display: none;
    }

    .bauturbo-hero__scroll {
        bottom: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .bauturbo-hero__badge {
        padding: 6px 14px;
    }

    .badge-text {
        font-size: var(--text-xs);
    }

    .bauturbo-hero__title {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
    }

    .bauturbo-hero__subtitle {
        font-size: var(--text-sm);
    }

    .hero-quickcheck__input {
        font-size: var(--text-sm);
    }

    .hero-quickcheck__btn {
        font-size: var(--text-xs);
        padding: var(--space-md);
    }

    .hero-quickcheck__hint {
        font-size: var(--text-xs);
        flex-wrap: wrap;
    }

    .bauturbo-hero__trust {
        gap: var(--space-sm);
        margin-bottom: var(--space-2xl);
    }

    .trust-item {
        flex: 1;
        min-width: 70px;
    }

    .trust-number {
        font-size: var(--text-base);
    }

    .trust-label {
        font-size: 8px;
        line-height: 1.3;
    }

    /* More space before scroll indicator on mobile */
    .bauturbo-hero__scroll {
        bottom: var(--space-sm);
    }
}

/* ===== Hero Inline Results ===== */
.hero-results {
    margin-top: var(--space-xl);
    background: var(--bg-white, #1C1C1C);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: heroFadeUp 0.5s ease forwards;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    color: var(--text-dark, #F0EDE8);
}

.hero-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.hero-results__header h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--text-dark, #F0EDE8);
    margin: 0;
}

.hero-results__close {
    background: none;
    border: none;
    color: var(--text-muted, #7A7672);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.hero-results__close:hover {
    color: var(--accent, #990100);
}

.hero-results__meta {
    font-size: var(--text-sm);
    color: var(--text-muted, #7A7672);
    margin-bottom: var(--space-lg);
}

/* Pruefergebnisse */
.hero-results__checks {
    margin-bottom: var(--space-lg);
}

.hero-results__source {
    margin-bottom: var(--space-md);
}

.hero-results__source-title {
    font-size: var(--text-xs);
    color: var(--text-muted, #7A7672);
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.hero-results__check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-color-light, rgba(255,255,255,0.05));
    font-size: var(--text-sm);
}

.hero-results__check-item:last-child {
    border-bottom: none;
}

.hero-results__check-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.hero-results__check-icon--ok { color: #22c55e; }
.hero-results__check-icon--warnung { color: var(--warm, #C9A96E); }
.hero-results__check-icon--kritisch { color: var(--accent, #990100); }

.hero-results__check-content {
    flex: 1;
}

.hero-results__check-thema {
    font-weight: 600;
    color: var(--text-dark, #F0EDE8);
}

.hero-results__check-ergebnis {
    color: var(--text-body, #B5B0A8);
}

.hero-results__check-details {
    font-size: var(--text-xs);
    color: var(--text-muted, #7A7672);
    margin-top: 2px;
}

/* KI Box */
.hero-results__ki-box {
    background: var(--bg-light, #181818);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.hero-results__ki-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #7A7672);
    margin-bottom: var(--space-xs);
}

.hero-results__ki-text {
    font-size: var(--text-sm);
    color: var(--text-body, #B5B0A8);
    line-height: 1.6;
}

/* Eignung Badge */
.hero-results__eignung {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.hero-results__eignung.eignung--geeignet {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
}

.hero-results__eignung.eignung--bedingt_geeignet {
    background: rgba(201, 169, 110, 0.15);
    border: 2px solid var(--warm, #C9A96E);
}

.hero-results__eignung.eignung--nicht_geeignet {
    background: rgba(153, 1, 0, 0.15);
    border: 2px solid var(--accent, #990100);
}

.hero-results__eignung .eignung-label {
    font-size: var(--text-xs);
    color: var(--text-muted, #7A7672);
    margin-bottom: var(--space-xs);
}

.hero-results__eignung .eignung-text {
    font-size: var(--text-base);
    font-weight: 700;
}

.hero-results__eignung.eignung--geeignet .eignung-text { color: #22c55e; }
.hero-results__eignung.eignung--bedingt_geeignet .eignung-text { color: var(--warm, #C9A96E); }
.hero-results__eignung.eignung--nicht_geeignet .eignung-text { color: var(--accent, #990100); }

/* Map */
.hero-results__map {
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

/* Actions */
.hero-results__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

/* Hint */
.hero-results__hint {
    background: var(--bg-light, #181818);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-muted, #7A7672);
}

/* Loading spinner in button */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Improved Scroll Indicator ===== */
.bauturbo-hero__scroll {
    text-decoration: none;
    cursor: pointer;
}

.bauturbo-hero__scroll:hover span {
    color: var(--warm);
}

/* Ensure scroll indicator doesn't overlap content on mobile */
@media (max-width: 768px) {
    .bauturbo-hero__content {
        padding-bottom: 80px;
    }

    .hero-results {
        padding: var(--space-md);
    }

    .hero-results__map {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-results__actions {
        flex-direction: column;
    }

    .hero-results__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
