/* ==========================================================================
   #HERO-SEKTION - Professionelles Layout mit Fluchtlinien
   ========================================================================== */

/**
 * Hero Layout (Drittel-Regel):
 * - Hauptinhalt im oberen Drittel (nicht zentriert!)
 * - Breathing Room in der Mitte
 * - Bottom-Elemente am unteren Rand
 * - Einheitliche horizontale Fluchtlinien
 */

/* Globale Fluchtlinien-Variable */
:root {
    --hero-padding-inline: clamp(2rem, 6vw, 6rem);
}

@media (min-width: 75em) {
    :root {
        --hero-padding-inline: clamp(6rem, 12vw, 14rem);
    }
}

.held-sektion {
    position: relative;
    min-height: 100vh;
    background-color: var(--farbe-schwarz);
    background-image: url('../../Bilder/Hg_Knoten.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--farbe-weiss);
    
    /* Flexbox für vertikale Struktur */
    display: flex;
    flex-direction: column;
    
    overflow: hidden;
}

/* Overlay für bessere Lesbarkeit */
.held-sektion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 0;
}

.held-sektion > * {
    position: relative;
    z-index: 1;
}

/* Container - Haupt-Layout */
.held-sektion__container {
    flex: 1;
    display: flex;
    flex-direction: column;
    
    /* Einheitliches Padding (Fluchtlinie!) */
    padding-inline: var(--hero-padding-inline);
    
    /* Vertikale Struktur: Header-Platz oben, Content, dann Platz unten */
    padding-top: 10rem; /* Platz für Header + Abstand */
    padding-bottom: 8rem; /* Platz für Bottom-Elemente */
}

@media (min-width: 75em) {
    .held-sektion__container {
        /* Zwei-Spalten Grid für Content + Kalender */
        display: grid;
        grid-template-columns: 1fr 520px; /* Breiter für größeren Kalender */
        grid-template-rows: 1fr;
        align-items: start; /* Oben ausrichten, nicht zentriert! */
        gap: 3rem;
        
        padding-top: 11rem;
        padding-bottom: 10rem;
    }
}

/* ===== Hero Content (oben links) ===== */
.held-sektion__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* KEIN text-align: center - Links ausgerichtet! */
    max-width: 50rem;
}

/* Overline Label */
.held-sektion__label {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    color: var(--farbe-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Titel */
.held-sektion__titel {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1;
}

.held-sektion__titel-line {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5); /* Grau - dezenter Kontrast */
    letter-spacing: -0.01em;
}

.held-sektion__titel-highlight {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--farbe-gold);
    letter-spacing: -0.02em;
}

/* Untertitel */
.held-sektion__untertitel {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 40rem;
}

/* Vorteile-Liste (Risk Reversal + Speed-to-Value) */
.held-sektion__vorteile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.held-sektion__vorteile li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    font-weight: 500;
    color: var(--farbe-weiss);
}

.held-sektion__vorteile li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--farbe-gold);
    color: var(--farbe-schwarz);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Button in Hero */
.held-sektion__content .cta-button {
    align-self: flex-start; /* Links ausgerichtet */
    margin-top: 1rem;
    border-radius: 2rem; /* Gleich wie Header-Button */
}

@media (min-width: 48em) {
    .held-sektion__content .cta-button {
        margin-top: 2rem;
    }
}

/* ===== Kalender-Animation rechts (JS-gesteuert) ===== */
.kalender-animation {
    display: none; /* Mobile versteckt */
}

@media (min-width: 75em) {
    .kalender-animation {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        
        /* Teil des Grids - oben ausrichten wie Content! */
        align-self: start;
        justify-self: end;
        
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 1.25rem;
        
        padding: 1rem 1.25rem;
        min-width: 480px; /* Breiter für bessere Lesbarkeit */
        
        /* Sehr dezent */
        opacity: 0.75;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .kalender-animation:hover {
        opacity: 0.95;
    }
    
    /* Monatswechsel-Animation */
    .kalender-animation.ist-wechselnd {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.kalender-animation__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Counter für Termine */
.kalender-animation__counter {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kalender-animation__zahl {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--farbe-gold);
    font-variant-numeric: tabular-nums;
    min-width: 1.5rem;
    text-align: right;
}

.kalender-animation__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.kalender-animation__monat {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

.kalender-animation__wochentage {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
}

.kalender-animation__wochentage span {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0;
}

.kalender-animation__wochentage span.ist-wochenende {
    color: rgba(255, 255, 255, 0.2);
}

.kalender-animation__tage {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
}

.kalender-animation__tage span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
    /* Breiter als hoch für kompakteres Layout */
    min-width: 2.75rem;
    height: 2rem;
    
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    
    border-radius: 0.375rem;
    background: transparent;
    border: 1px solid transparent;
    
    transition: all 0.2s ease-out;
}

.kalender-animation__tage span:not(.ist-leer):not(.hat-termin):hover {
    background: rgba(255, 255, 255, 0.05);
}

.kalender-animation__tage span.ist-leer {
    visibility: hidden;
}

.kalender-animation__tage span.ist-wochenende {
    color: rgba(255, 255, 255, 0.25);
}

/* Heute markieren */
.kalender-animation__tage span.ist-heute {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Termin-Basis (vor Animation) */
.kalender-animation__tage span.hat-termin {
    position: relative;
    font-weight: 600;
    cursor: pointer;
    
    /* Start: normal */
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    border-color: transparent;
    
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Termin animiert (JS fügt .ist-animiert hinzu) */
.kalender-animation__tage span.hat-termin.ist-animiert {
    background: var(--farbe-gold);
    color: var(--farbe-schwarz);
    border-color: var(--farbe-gold);
    box-shadow: 0 2px 12px rgba(200, 111, 39, 0.25);
    
    animation: terminPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes terminPop {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover auf animierten Terminen */
.kalender-animation__tage span.hat-termin.ist-animiert:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(200, 111, 39, 0.35);
}

/* ===== Entscheider-Termin Detail (JS-gesteuert) ===== */
.kalender-animation__termin-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    
    background: rgba(200, 111, 39, 0.08);
    border: 1px solid rgba(200, 111, 39, 0.2);
    border-radius: 0.75rem;
    
    /* Start: versteckt */
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* JS fügt .ist-sichtbar hinzu */
.kalender-animation__termin-detail.ist-sichtbar {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.termin-detail__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid var(--farbe-gold);
    overflow: hidden;
}

.termin-detail__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.termin-detail__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.termin-detail__zeit {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.termin-detail__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--farbe-weiss);
}

.termin-detail__position {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.termin-detail__badge {
    padding: 0.25rem 0.5rem;
    
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    color: var(--farbe-gold);
    background: rgba(200, 111, 39, 0.15);
    border: 1px solid rgba(200, 111, 39, 0.3);
    border-radius: 0.25rem;
    
    white-space: nowrap;
}

/* ===== Kalender Tooltip (Hover auf Terminen) ===== */
.kalender-tooltip {
    position: fixed;
    z-index: 9999;
    
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    
    padding: 0.75rem 1rem;
    background: var(--farbe-schwarz);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Zentriert über Element */
    transform: translateX(-50%) translateY(-100%);
    
    /* Start: versteckt */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kalender-tooltip.ist-sichtbar {
    opacity: 1;
    visibility: visible;
}

.tooltip-zeit {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--farbe-gold);
    letter-spacing: 0.02em;
}

.tooltip-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--farbe-weiss);
}

.tooltip-position {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Logo-Reihe (Social Proof) ===== */
.logo-reihe {
    display: none; /* Mobile versteckt */
}

@media (min-width: 75em) {
    .logo-reihe {
        /* Positionierung: tiefer um Kalender nicht zu überlappen */
        position: absolute;
        bottom: 8rem;
        left: var(--hero-padding-inline);
        
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.logo-reihe__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.logo-reihe__logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo-reihe__logo {
    opacity: 0.6;
    transition: opacity 0.3s ease-out;
}

.logo-reihe__logo:hover {
    opacity: 1;
}

.logo-reihe__logo span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
}

/* Echte Logos */
.logo-reihe__logo img {
    height: 2.5rem;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Weiß machen */
    transition: all 0.3s ease-out;
}

.logo-reihe__logo:hover img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

/* Stats (Zahlen) */
.trust-block__stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trust-block__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-block__zahl {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--farbe-gold);
    line-height: 1;
}

.trust-block__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* Abgrenzung (Anti-Positioning) */
.trust-block__abgrenzung {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-block__abgrenzung li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.trust-block__abgrenzung li::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.trust-block__abgrenzung li.ist-negativ {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.trust-block__abgrenzung li.ist-negativ::before {
    content: '✗';
    color: rgba(255, 100, 100, 0.7);
    font-size: 0.875rem;
    font-weight: 700;
}

.trust-block__abgrenzung li.ist-positiv {
    color: var(--farbe-weiss);
}

.trust-block__abgrenzung li.ist-positiv::before {
    content: '✓';
    color: var(--farbe-gold);
    font-size: 0.875rem;
    font-weight: 700;
}

/* ===== Ticker Wrapper am unteren Rand ===== */
.held-sektion__ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(245, 166, 35, 0.4);
    border-bottom: 1px solid rgba(245, 166, 35, 0.4);
}

@media (max-width: 47.9375em) {
    .held-sektion__ticker-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Ticker Label */
.held-sektion__ticker-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.7);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 47.9375em) {
    .held-sektion__ticker-label {
        font-size: 0.875rem;
    }
}

/* Ticker Container */
.held-sektion__ticker {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

/* Ticker Track (scrollt) */
.ticker__track {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

/* Ticker Items */
.ticker__item {
    font-size: 1rem;
    color: #F5F5F5;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 47.9375em) {
    .ticker__item {
        font-size: 0.875rem;
    }
}

.ticker__separator {
    color: #C86F27;
    font-weight: 700;
    flex-shrink: 0;
}

/* Ticker Suffix (&More) */
.held-sektion__ticker-suffix {
    font-size: 1rem;
    font-weight: 600;
    color: #F5F5F5;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 47.9375em) {
    .held-sektion__ticker-suffix {
        font-size: 0.875rem;
    }
}

/* Ticker Scroll Animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== Scroll Indicator ===== */
.held-sektion__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid #C86F27;
    border-radius: 50%;
    color: #C86F27;
    animation: scroll-bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.held-sektion__scroll-indicator:hover {
    background-color: #C86F27;
    color: #0F2131;
    transform: translateX(-50%) scale(1.1);
}

/* Scroll Bounce Animation */
@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(0.5rem);
    }
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 47.9375em) {
    .held-sektion {
        min-height: 100svh; /* Mobile: svh für bessere Browser-Unterstützung */
    }
    
    .held-sektion__container {
        gap: 3rem;
    }
    
    .held-sektion__content {
        gap: 1.5rem;
    }
    
    .held-sektion__titel {
        gap: 0.25rem;
    }
    
    .held-sektion__scroll-indicator {
        bottom: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ========================================
   HERO SOCIAL ICONS
   ======================================== */

.hero-social {
    position: absolute;
    bottom: 3rem; /* Gleiche Höhe wie outcome-pill und termin-widget */
    left: 50%;
    transform: translateX(-50%);
    
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.hero-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.3); /* Dunkler Hintergrund wie outcome-pill */
    border: 1px solid rgba(200, 111, 39, 0.5); /* Kupfer-Border wie outcome-pill */
    border-radius: 50%;
    color: #F5F5F0; /* Off-White Icon */
    text-decoration: none;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}

.hero-social__link:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--farbe-gold);
    transform: scale(1.1);
}

.hero-social__link svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile: etwas kleiner */
@media (max-width: 48em) {
    .hero-social {
        bottom: 1.5rem;
        gap: 0.375rem;
    }
    
    .hero-social__link {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .hero-social__link svg {
        width: 1rem;
        height: 1rem;
    }
}
