/* ============================================
   KI-BERATUNG UNIQUE STYLES
   Modern, clean animations distinct from Leistungen
   ============================================ */

/* Challenge Cards - Slide-in from bottom with indicator */
.problem-section-unique {
    background: var(--bg);
    padding: 5rem 0;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.challenge-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.6s ease-out forwards;
}

.challenge-card:nth-child(1) { animation-delay: 0.1s; }
.challenge-card:nth-child(2) { animation-delay: 0.2s; }
.challenge-card:nth-child(3) { animation-delay: 0.3s; }
.challenge-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.challenge-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(155, 127, 196, 0.25);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.challenge-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.challenge-card:hover .challenge-icon {
    transform: rotate(10deg) scale(1.1);
}

.challenge-card h3 {
    font-size: var(--step-1);
    color: var(--fg);
    font-weight: 600;
}

.challenge-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: var(--step--1);
}

.challenge-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.challenge-card:hover .challenge-indicator {
    transform: scaleX(1);
}

/* Solution Section - Grid with Number Badges */
.solution-section-unique {
    background: var(--card-bg);
    padding: 5rem 0;
}

.solution-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.solution-intro h2 {
    font-size: var(--step-3);
    margin-bottom: 1rem;
}

.solution-intro .lead {
    font-size: var(--step-1);
    color: var(--muted);
    line-height: 1.7;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.approach-card {
    position: relative;
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(155, 127, 196, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.approach-card:hover::before {
    opacity: 1;
}

.approach-card:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: -8px 8px 24px rgba(155, 127, 196, 0.2);
}

.approach-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(155, 127, 196, 0.1);
    line-height: 1;
    transition: all 0.4s ease;
}

.approach-card:hover .approach-number {
    color: rgba(155, 127, 196, 0.2);
    transform: scale(1.2);
}

.approach-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.approach-card:hover .approach-icon {
    transform: translateY(-5px);
}

.approach-card h3 {
    font-size: var(--step-1);
    margin-bottom: 1rem;
    color: var(--fg);
}

.approach-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: var(--step--1);
}

/* Results Showcase - Horizontal Stats */
.results-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
}

.result-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.result-stat:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(155, 127, 196, 0.15);
}

.result-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.result-content {
    flex: 1;
}

.result-value {
    font-size: var(--step-2);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Process Section - Connected Journey Flow */
.process-section-unique {
    background: var(--bg);
    padding: 5rem 0;
}

.journey-flow {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.journey-step {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInRight 0.6s ease-out forwards;
}

.journey-step:nth-child(1) { animation-delay: 0.1s; }
.journey-step:nth-child(2) { animation-delay: 0.2s; }
.journey-step:nth-child(3) { animation-delay: 0.3s; }
.journey-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(155, 127, 196, 0.3);
    transition: all 0.3s ease;
}

.journey-step:hover .step-circle {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 32px rgba(155, 127, 196, 0.4);
}

.step-circle svg {
    width: 36px;
    height: 36px;
    color: white;
}

.step-connector {
    position: absolute;
    left: 100px;
    top: 100px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--primary), var(--border));
}

.journey-step:last-child .step-connector {
    display: none;
}

.step-details {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.journey-step:hover .step-details {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(155, 127, 196, 0.15);
}

.step-details h3 {
    font-size: var(--step-1);
    margin-bottom: 1rem;
    color: var(--fg);
}

.step-details p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: var(--step-0);
}

.step-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(155, 127, 196, 0.1);
    border: 1px solid rgba(155, 127, 196, 0.3);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        min-height: 80vh;
        padding-top: 4rem;
    }

    .hero-content {
        max-width: 800px;
        padding-top: 1.5rem;
    }

    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .journey-flow {
        padding: 0 1.5rem;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-showcase {
        padding: 2.5rem;
    }
}

@media (max-width: 968px) {
    .journey-flow {
        padding: 0 1rem;
    }

    .journey-step {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }

    .step-circle {
        width: 60px;
        height: 60px;
    }

    .step-circle svg {
        width: 28px;
        height: 28px;
    }

    .step-connector {
        left: 75px;
        top: 80px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .results-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .problem-section-unique,
    .solution-section-unique,
    .process-section-unique {
        padding: 3rem 0;
    }

    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .journey-step {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-badge {
        flex-direction: row;
        justify-content: flex-start;
    }

    .step-circle {
        width: 50px;
        height: 50px;
    }

    .step-circle svg {
        width: 24px;
        height: 24px;
    }

    .step-connector {
        display: none;
    }

    .step-details {
        padding: 1.5rem;
    }

    .approach-number {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }
}

/* FAQ Section - Professional Accordion */
.faq-section {
    background: var(--card-bg);
    padding: 5rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(155, 127, 196, 0.4);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    background: none;
    border: none;
    color: var(--fg);
    font-size: var(--step-0);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1.5rem;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
}

.faq-question svg {
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.75rem;
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.8;
    font-size: var(--step-0);
    padding-right: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(155, 127, 196, 0.2);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.25rem;
}

.testimonial-text {
    font-size: var(--step-0);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--fg);
}

.author-name {
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .challenge-card,
    .journey-step {
        animation-play-state: paused;
    }

    .challenge-card.visible,
    .journey-step.visible {
        animation-play-state: running;
    }
}

/* ============================================
   Contact Form
   ============================================ */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.contact-form:hover {
    box-shadow: 0 10px 60px rgba(155, 127, 196, 0.15);
    border-color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: var(--step--1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg);
    color: var(--fg);
    font-family: inherit;
    font-size: var(--step--1);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--primary);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: var(--primary);
    font-size: var(--step--2);
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: var(--step--2);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-alternative {
    text-align: center;
    color: var(--muted);
    font-size: var(--step--1);
}

.contact-alternative a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-alternative a:hover {
    text-shadow: 0 0 10px var(--glow);
}







/* ============================================
   Contact Form
   ============================================ */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.contact-form:hover {
    box-shadow: 0 10px 60px rgba(155, 127, 196, 0.15);
    border-color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: var(--step--1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg);
    color: var(--fg);
    font-family: inherit;
    font-size: var(--step--1);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--primary);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: var(--primary);
    font-size: var(--step--2);
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: var(--step--2);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-alternative {
    text-align: center;
    color: var(--muted);
    font-size: var(--step--1);
}

.contact-alternative a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-alternative a:hover {
    text-shadow: 0 0 10px var(--glow);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('/assets/images/ines-alvarez-fdez-F-gfrzSIPZo-unsplash.jpg');
    background-image: -webkit-image-set(
        url('/assets/images/ines-alvarez-fdez-F-gfrzSIPZo-unsplash.jpg') 1x
    );
    background-image: image-set(
        url('/assets/images/ines-alvarez-fdez-F-gfrzSIPZo-unsplash.jpg') type("image/jpeg") 1x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}




/* ============================================
   MOBILE-ONLY FIXES für KI-BERATUNG PAGE
   Füge diese Styles ans ENDE deiner ki.css hinzu!
   ============================================ */

/* ============================================
   TEXT OVERFLOW FIX - "Unser Vorgehen" Section
   ============================================ */
@media (max-width: 968px) {
    /* Approach Section Container */
    .process-section-unique,
    .approach-section {
        padding: 3rem 1rem !important;
        overflow-x: hidden;
    }

    /* Approach Grid - Verhindere Overflow */
    .approach-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    /* Approach Cards - Verhindere Text-Overflow */
    .approach-card {
        padding: 1.5rem !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Approach Card Text */
    .approach-card h3 {
        font-size: var(--step-0) !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .approach-card p {
        font-size: var(--step--1) !important;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Approach Number - Kleiner auf Mobile */
    .approach-number {
        font-size: 2rem !important;
        top: 1rem !important;
        right: 1rem !important;
    }

    /* Container generell */
    .container {
        padding: 0 1rem !important;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    /* Extra kleine Screens */
    .approach-card {
        padding: 1.25rem !important;
    }

    .approach-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem;
    }

    .approach-card p {
        font-size: 0.875rem !important;
    }

    .approach-number {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   PARTICLES DEAKTIVIEREN auf Mobile (Ki-Beratung)
   ============================================ */
@media (max-width: 968px) {
    #particle-canvas,
    .particle-canvas {
        display: none !important;
    }

    /* ============================================
       FULL-WIDTH PURPLE HERO AREA ON MOBILE (KI-Beratung Page)
       Edge-to-edge purple background
       ============================================ */
    .hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Full-width purple overlay - edge to edge */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100%;
        background: var(--primary);
        opacity: 0.95;
        z-index: 0;
        pointer-events: none;
    }

    /* Hero background with proper stacking */
    .hero .hero-background {
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 0;
    }

    /* Container should have padding but content stays within */
    .hero .container {
        position: relative;
        z-index: 3;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }

    /* Hero content above overlay */
    .hero-content {
        position: relative;
        z-index: 4;
        padding-left: 0;
        padding-right: 0;
    }

    /* Canvas below overlay but above background */
    #particle-canvas {
        z-index: 1 !important;
    }
}