/**
 * Komponenten: Premium Buttons & Cards
 * 
 * @package VertriebsWikinger
 */

/* ========================================
   CTA BUTTON
   ======================================== */

.cta-button {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    /* Spacing */
    padding: 0.625rem 1.25rem;
    
    /* Typography */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    
    /* Visual */
    border-radius: 0.5rem;
    border: 2px solid transparent;
    
    /* Animation */
    transition: all 0.25s ease-out;
    
    /* Accessibility */
    cursor: pointer;
    position: relative;
}

.cta-button svg {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition-basis) var(--ease-out);
}

.cta-button:hover svg {
    transform: translateX(0.25rem);
}

/* ========================================
   BUTTON VARIANTEN
   ======================================== */

/* Gold (Primär) - ELO Akzentfarbe */
.cta-button--kupfer,
.cta-button--gold {
    background: var(--farbe-gold);
    color: #F5F5F0; /* Warmes Off-White, nie reinweiß */
    border: 2px solid var(--farbe-gold);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 0.25rem 1rem rgba(200, 111, 39, 0.35);
}

.cta-button--kupfer:hover,
.cta-button--gold:hover {
    background: var(--farbe-schwarz);
    color: var(--farbe-gold);
    border-color: var(--farbe-schwarz);
    transform: translateY(-0.125rem);
    box-shadow: 
        0 0.5rem 1.5rem rgba(0, 0, 0, 0.25),
        0 0 1rem rgba(200, 111, 39, 0.2);
}

.cta-button--kupfer:active,
.cta-button--gold:active {
    transform: translateY(0);
    background: var(--farbe-schwarz);
    color: var(--farbe-gold);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Weiss (für dunkle Hintergründe) */
.cta-button--weiss {
    background: rgba(255, 255, 255, 0.98);
    color: var(--farbe-schwarz);
    border-color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    box-shadow: 
        0 0.25rem 0.75rem rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button--weiss:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-0.125rem);
    box-shadow: 
        0 0.5rem 1.25rem rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Ghost (Outline für dunkle Hintergründe) */
.cta-button--ghost {
    background: transparent;
    color: rgba(245, 245, 245, 0.95);
    border-color: rgba(245, 245, 245, 0.3);
}

.cta-button--ghost:hover {
    background: rgba(245, 245, 245, 0.1);
    border-color: rgba(245, 245, 245, 0.5);
    transform: translateY(-0.125rem);
}

/* ========================================
   BUTTON GRÖSSEN
   ======================================== */

.cta-button--gross {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.cta-button--gross svg {
    width: 1.125rem;
    height: 1.125rem;
}

.cta-button--klein {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.cta-button--klein svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* ========================================
   BUTTON MODIFIERS
   ======================================== */

.cta-button--block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 48em) {
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .cta-button--gross {
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }
}


/* ========================================
   PROBLEM-SEKTION
   ======================================== */

.problem-sektion {
    background: var(--farbe-grau);
    padding: var(--abstand-sektion) 0;
    position: relative;
}

.problem-sektion__container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--abstand-container);
}

/* Header */
.problem-sektion__header {
    text-align: center;
    max-width: var(--container-text);
    margin: 0 auto var(--abstand-3xl);
}

.problem-sektion__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--farbe-gold);
    margin-bottom: var(--abstand-md);
}

.problem-sektion__titel {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--farbe-schwarz);
    margin: 0;
}

.problem-sektion__titel .akzent {
    color: var(--farbe-gold);
}

.problem-sektion__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--farbe-grau-dunkel);
    margin-top: var(--abstand-sm);
    max-width: 40rem;
}

/* Problem-Grid */
.problem-sektion__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--abstand-xl);
    margin-bottom: var(--abstand-3xl);
}

@media (max-width: 64em) {
    .problem-sektion__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48em) {
    .problem-sektion__grid {
        grid-template-columns: 1fr;
        gap: var(--abstand-lg);
    }
}

/* Problem-Karten */
.problem-karte {
    background: var(--farbe-schwarz);
    padding: var(--abstand-xl);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-karte:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.problem-karte__icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(245, 166, 35, 0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--abstand-lg);
}

.problem-karte__icon svg {
    color: var(--farbe-gold);
}

.problem-karte__titel {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--farbe-weiss);
    margin: 0 0 var(--abstand-sm);
    line-height: 1.3;
}

.problem-karte__text {
    font-size: 0.9375rem;
    color: rgba(var(--farbe-weiss-rgb), 0.75);
    line-height: 1.6;
    margin: 0;
}

/* Abgrenzung / Anti-Positioning */
.problem-sektion__abgrenzung {
    background: var(--farbe-schwarz);
    border-radius: 1rem;
    padding: var(--abstand-2xl);
    margin-bottom: var(--abstand-2xl);
    text-align: center;
}

.abgrenzung__content {
    max-width: var(--container-md);
    margin: 0 auto;
}

.abgrenzung__negativ,
.abgrenzung__positiv {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--abstand-sm);
}

.abgrenzung__negativ {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--abstand-md);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.abgrenzung__positiv {
    color: var(--farbe-weiss);
    font-weight: 600;
}

.abgrenzung__icon {
    font-weight: 700;
    font-size: 1.25rem;
}

.abgrenzung__negativ .abgrenzung__icon {
    color: rgba(255, 255, 255, 0.4);
}

.abgrenzung__positiv .abgrenzung__icon {
    color: var(--farbe-gold);
}

/* CTA */
.problem-sektion__cta {
    text-align: center;
}


/* ========================================
   OUTCOME-PILL (Hero unten links)
   ======================================== */

.outcome-pill {
    position: absolute;
    bottom: 3rem;
    /* Gleiche Fluchtlinie wie Hero-Content! */
    left: var(--hero-padding-inline, clamp(2rem, 6vw, 6rem));
    
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(200, 111, 39, 0.5);
    color: var(--farbe-weiss);
    
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    
    z-index: 10;
}

.outcome-pill__label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.outcome-pill__rotator {
    position: relative;
    height: 1.5rem;
    min-width: 9rem;
    overflow: hidden;
}

.outcome-pill__text {
    position: absolute;
    top: 0;
    left: 0;
    
    font-size: 1rem;
    font-weight: 700;
    color: var(--farbe-gold);
    white-space: nowrap;
    
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.outcome-pill__text.ist-aktiv {
    opacity: 1;
    transform: translateY(0);
}

.outcome-pill__text.ist-raus {
    opacity: 0;
    transform: translateY(-100%);
}

.outcome-pill__suffix {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .outcome-pill {
        display: none; /* Auf kleineren Screens verstecken */
    }
}


/* ========================================
   TERMIN-WIDGET (Sticky unten rechts)
   Minimalistisch, einzeilig
   ======================================== */

.termin-widget {
    position: fixed;
    bottom: 3rem; /* Gleiche Höhe wie outcome-pill und hero-social */
    right: 2rem;
    
    display: flex;
    align-items: center;
    gap: 0.875rem;
    
    /* Glassmorphism */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 0.625rem 0.75rem 0.625rem 0.875rem;
    border-radius: 3rem;
    
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    
    cursor: pointer;
    transition: all 0.3s ease-out;
    z-index: 1000;
}

.termin-widget:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Icon ohne Box */
.termin-widget__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--farbe-weiss);
    opacity: 0.7;
}

.termin-widget__icon-box svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Text */
.termin-widget__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Button in Kupfer */
.termin-widget__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 0.5rem 1rem;
    
    background: #C86F27;
    color: var(--farbe-weiss);
    
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    
    border: none;
    border-radius: 2rem;
    
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.termin-widget__button:hover {
    background: var(--farbe-weiss);
    color: #C86F27;
}

/* Responsive */
@media (max-width: 480px) {
    .termin-widget {
        right: 1rem;
        bottom: 1rem;
        gap: 0.625rem;
        padding: 0.5rem 0.625rem 0.5rem 0.75rem;
    }
    
    .termin-widget__text {
        font-size: 0.75rem;
    }
    
    .termin-widget__button {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
}


/* ========================================
   TERMIN-MODAL
   ======================================== */

.termin-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Initial versteckt */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.termin-modal.ist-offen {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.termin-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.termin-modal__container {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    height: 85vh;
    max-height: 800px;
    
    background: var(--farbe-weiss);
    border-radius: 1.5rem;
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    box-shadow: 
        0 2rem 4rem rgba(0, 0, 0, 0.3),
        0 1rem 2rem rgba(0, 0, 0, 0.2);
    
    transform: translateY(2rem) scale(0.95);
    transition: transform 0.3s ease-out;
}

.termin-modal.ist-offen .termin-modal__container {
    transform: translateY(0) scale(1);
}

.termin-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    
    padding: 1.5rem 2rem;
    
    background: var(--farbe-schwarz);
    color: var(--farbe-weiss);
}

.termin-modal__header-content {
    flex: 1;
}

.termin-modal__titel {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--farbe-weiss);
}

.termin-modal__untertitel {
    font-size: 0.9375rem;
    opacity: 0.7;
    margin: 0;
}

.termin-modal__schliessen {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 2.5rem;
    height: 2.5rem;
    
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    
    color: var(--farbe-weiss);
    cursor: pointer;
    
    transition: all 0.2s ease-out;
}

.termin-modal__schliessen:hover {
    background: var(--farbe-gold);
    transform: rotate(90deg);
}

.termin-modal__body {
    flex: 1;
    overflow: hidden;
}

.termin-modal__body .calendly-inline-widget {
    width: 100%;
    height: 100%;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .termin-modal__container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
    .termin-modal__header {
        padding: 1rem 1.25rem;
    }
    
    .termin-modal__titel {
        font-size: 1.25rem;
    }
}

