/* CLAUDE: Custom Applications Landing Page Styles */
/* CLAUDE: Datei: assets/css/page-custom-applications.css */
/* CLAUDE: Anpassen: Farben über CSS-Variablen in base.css */

/* ==========================================================================
   CLAUDE: 1. Hero Section - Custom Applications spezifisch
   CLAUDE: Mit animiertem Hintergrund (Partikel + Grid)
   ========================================================================== */

.pvm-hero--customapps {
    background: linear-gradient(135deg, #5a0778 0%, #3a2db0 50%, #2d1f8a 100%); /* CLAUDE: Dunklerer Gradient für Kontrast */
    color: var(--pvm-bg-white);
    padding: var(--pvm-space-3xl) 0 var(--pvm-space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh; /* CLAUDE: Mindesthöhe für Impact */
    display: flex;
    align-items: center;
}

/* CLAUDE: Animierter Hintergrund-Container */
.pvm-hero__bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* CLAUDE: Grid-Overlay für Tech-Look */
.pvm-hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* CLAUDE: Animierte Partikel (CSS-basiert, kein JS nötig) */
.pvm-hero__particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.pvm-hero__particle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--pvm-primary-light) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.pvm-hero__particle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--pvm-secondary) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.pvm-hero__particle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.08;
}

/* CLAUDE: Float-Animation für Partikel */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-30px) scale(1.05);
    }
    50% {
        transform: translateY(-10px) scale(0.95);
    }
    75% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* CLAUDE: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pvm-hero__particle {
        animation: none;
    }
}

.pvm-hero--customapps::before { /* CLAUDE: Dunkles Overlay für besseren Kontrast */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* CLAUDE: Leichtes Abdunkeln */
    pointer-events: none;
    z-index: 1;
}

.pvm-hero--customapps .content {
    position: relative;
    z-index: 2; /* CLAUDE: Content über Animation und Overlay */
    width: 100%;
}

/* CLAUDE: Kicker/Trust-Badge - gut sichtbar mit Hintergrund */
.pvm-hero--customapps .pvm-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: var(--pvm-font-size-sm);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--pvm-space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

/* CLAUDE: H1 mit Text-Shadow für bessere Lesbarkeit */
.pvm-hero--customapps h1 {
    font-size: var(--pvm-font-size-3xl);
    margin-bottom: var(--pvm-space-sm);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CLAUDE: Subline mit voller Opacity und Shadow */
.pvm-hero--customapps .pvm-hero-text {
    font-size: var(--pvm-font-size-lg);
    max-width: 750px;
    margin: 0 auto var(--pvm-space-lg);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
}

/* CLAUDE: CTA Container */
.pvm-hero--customapps .pvm-hero-ctas {
    display: flex;
    gap: var(--pvm-space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* CLAUDE: Primary Button - Weiß auf dunklem Hintergrund */
.pvm-hero--customapps .pvm-btn--primary {
    background: #ffffff;
    color: var(--pvm-primary);
    border: 2px solid #ffffff;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pvm-hero--customapps .pvm-btn--primary:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* CLAUDE: Secondary/Outline Button - Weißer Rahmen, gut sichtbar */
.pvm-hero--customapps .pvm-btn--outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pvm-hero--customapps .pvm-btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   CLAUDE: 2. Services Grid - Custom Applications spezifisch
   CLAUDE: Mit Icon-Container und animiertem Hover
   ========================================================================== */

.pvm-customapps-services {
    padding: var(--pvm-space-2xl) 0;
    background: var(--pvm-bg-light);
}

.pvm-customapps-services h2,
.pvm-customapps-services .pvm-section-subtitle {
    text-align: center;
}

.pvm-customapps-services .pvm-section-subtitle {
    margin-bottom: var(--pvm-space-xl);
    color: var(--pvm-text-muted);
}

/* ==========================================================================
   CLAUDE: FIX - Services Grid 2x2 Layout auf Desktop
   CLAUDE: Problem: auto-fit erzeugt 3:1 bei 4 Cards auf breiten Screens
   CLAUDE: Lösung: Festes 2-Spalten-Grid für die Custom Applications-Seite
   ========================================================================== */
.pvm-customapps-services .pvm-services-grid--4col {
    grid-template-columns: repeat(2, 1fr); /* CLAUDE: Festes 2x2 Grid */
    max-width: 1000px; /* CLAUDE: Breitenbegrenzung für bessere Proportionen */
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .pvm-customapps-services .pvm-services-grid--4col {
        grid-template-columns: 1fr; /* CLAUDE: Single column auf Mobile */
        max-width: 100%;
    }
}

/* CLAUDE: Service Card mit Icon */
.pvm-service-card--customapps {
    background: var(--pvm-bg-white);
    padding: var(--pvm-space-lg);
    border-radius: 16px; /* CLAUDE: Größerer Radius für modernen Look */
    border: 1px solid var(--pvm-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* CLAUDE: Hover-Gradient am oberen Rand */
.pvm-service-card--customapps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pvm-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pvm-service-card--customapps:hover::before {
    transform: scaleX(1);
}

.pvm-service-card--customapps:hover {
    border-color: var(--pvm-primary);
    box-shadow: var(--pvm-shadow-primary);
    transform: translateY(-4px);
}

/* CLAUDE: Icon Container */
.pvm-service-card--customapps .pvm-service-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(140, 10, 183, 0.1) 0%, rgba(76, 65, 224, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--pvm-space-md);
    transition: all 0.3s ease;
}

.pvm-service-card--customapps .pvm-service-card__icon svg {
    color: var(--pvm-primary);
    transition: transform 0.3s ease;
}

.pvm-service-card--customapps:hover .pvm-service-card__icon {
    background: var(--pvm-gradient);
}

.pvm-service-card--customapps:hover .pvm-service-card__icon svg {
    color: #ffffff;
    transform: scale(1.1);
}

.pvm-service-card--customapps h3 {
    font-size: var(--pvm-font-size-lg);
    margin-bottom: var(--pvm-space-xs);
    color: var(--pvm-text);
}

.pvm-service-card--customapps > p {
    color: var(--pvm-text-muted);
    margin-bottom: var(--pvm-space-sm);
}

/* ==========================================================================
   CLAUDE: 3. Problem Cards - Anpassungen für Icon-Darstellung
   ========================================================================== */

.pvm-problem-card__icon svg {
    color: #ffffff;
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   CLAUDE: 4. Responsive Anpassungen
   ========================================================================== */

@media (max-width: 768px) {
    .pvm-hero--customapps {
        padding: var(--pvm-space-xl) 0 var(--pvm-space-lg);
        min-height: auto;
    }

    .pvm-hero--customapps h1 {
        font-size: var(--pvm-font-size-2xl);
    }

    .pvm-hero--customapps .pvm-hero-text {
        font-size: var(--pvm-font-size-base);
    }

    .pvm-hero--customapps .pvm-hero-kicker {
        font-size: var(--pvm-font-size-xs);
        padding: 0.4rem 1rem;
    }

    .pvm-hero--customapps .pvm-btn--primary,
    .pvm-hero--customapps .pvm-btn--outline {
        padding: 0.75rem 1.5rem;
        font-size: var(--pvm-font-size-sm);
        width: 100%;
        text-align: center;
    }

    .pvm-hero--customapps .pvm-hero-ctas {
        flex-direction: column;
        gap: var(--pvm-space-xs);
    }

    /* CLAUDE: Partikel auf Mobile kleiner */
    .pvm-hero__particle--1 {
        width: 200px;
        height: 200px;
    }

    .pvm-hero__particle--2 {
        width: 150px;
        height: 150px;
    }

    .pvm-hero__particle--3 {
        display: none;
    }
}

/* ==========================================================================
   CLAUDE: 5. Dark Mode Support
   CLAUDE: Migriert am 2026-01-09 auf einheitliche Selektoren
   ========================================================================== */

/* CLAUDE: Manueller Toggle */
html[data-theme="dark"] .pvm-customapps-services {
    background: var(--color-bg-secondary);
}

html[data-theme="dark"] .pvm-service-card--customapps {
    background: var(--color-bg-primary);
    border-color: var(--color-border-primary);
}

html[data-theme="dark"] .pvm-service-card--customapps h3 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .pvm-service-card--customapps > p {
    color: var(--color-text-secondary);
}

/* CLAUDE: System-Präferenz - Fallback */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .pvm-customapps-services {
        background: var(--color-bg-secondary);
    }

    html:not([data-theme="light"]) .pvm-service-card--customapps {
        background: var(--color-bg-primary);
        border-color: var(--color-border-primary);
    }

    html:not([data-theme="light"]) .pvm-service-card--customapps h3 {
        color: var(--color-text-primary);
    }

    html:not([data-theme="light"]) .pvm-service-card--customapps > p {
        color: var(--color-text-secondary);
    }
}

/* ==========================================================================
   CLAUDE: 6. Accessibility - Fokus-States
   CLAUDE: Sichtbare Fokus-Indikatoren für Keyboard-Navigation
   ========================================================================== */

/* CLAUDE: Fokus-States für Hero CTAs */
.pvm-hero--customapps .pvm-btn--primary:focus-visible,
.pvm-hero--customapps .pvm-btn--outline:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9); /* CLAUDE: Weißer Outline auf dunklem Hintergrund */
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2); /* CLAUDE: Zusätzlicher Glow für Sichtbarkeit */
}

/* CLAUDE: Fokus-States für Service Cards (falls sie klickbar werden) */
.pvm-service-card--customapps:focus-within {
    outline: 3px solid var(--pvm-primary);
    outline-offset: 2px;
}

/* CLAUDE: Fokus-State für FAQ Buttons */
.pvm-faq-item__question:focus-visible {
    outline: 3px solid var(--pvm-primary);
    outline-offset: 2px;
    background: rgba(140, 10, 183, 0.05);
}

/* CLAUDE: FAQ Liste zentrieren mit max-width (konsistent mit anderen Seiten) */
.pvm-faq__list {
    max-width: 800px;  /* CLAUDE: Lesbare Breite */
    margin: 0 auto;    /* CLAUDE: Zentriert mit gleichem Abstand links/rechts */
}

/* ==========================================================================
   CLAUDE: 7. Trust Bar Separatoren
   CLAUDE: Visuelle Trenner zwischen den Statistiken
   ========================================================================== */

.pvm-trust-bar__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--pvm-space-lg);
    flex-wrap: wrap;
}

.pvm-trust-stat {
    position: relative;
    padding: 0 var(--pvm-space-lg);
    text-align: center;
}

/* CLAUDE: Vertikaler Separator zwischen Stats */
.pvm-trust-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.12);
}

/* CLAUDE: Separator auf Dark Mode anpassen */
html[data-theme="dark"] .pvm-trust-stat:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.15);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .pvm-trust-stat:not(:last-child)::after {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* CLAUDE: Separator auf Mobile ausblenden */
@media (max-width: 768px) {
    .pvm-trust-stat:not(:last-child)::after {
        display: none;
    }

    .pvm-trust-stat {
        padding: var(--pvm-space-xs) var(--pvm-space-sm);
        flex: 1 1 45%;
    }
}

/* ==========================================================================
   CLAUDE: 8. Timeline Verbindungslinie
   CLAUDE: Visuelle Verbindung zwischen den Prozessschritten
   ========================================================================== */

/* CLAUDE: 2025-01-09: Umgestellt auf CSS Grid für einheitliche Card-Größen */
.pvm-process__timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* CLAUDE: 5 gleichmäßige Spalten */
    gap: var(--pvm-space-lg, 2rem);
    position: relative;
    padding: var(--pvm-space-xl) 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* CLAUDE: Horizontale Verbindungslinie */
.pvm-process__timeline::before {
    content: '';
    position: absolute;
    top: calc(var(--pvm-space-xl) + 20px); /* CLAUDE: Auf Höhe der Step-Nummer */
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--pvm-gradient);
    z-index: 0;
    border-radius: 2px;
}

/* CLAUDE: Alle Cards haben durch Grid automatisch gleiche Breite */
.pvm-process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;                            /* CLAUDE: Überlauf verhindern */
}

/* CLAUDE: Step-Nummer mit weißem Hintergrund */
.pvm-process-step__number {
    width: 44px;
    height: 44px;
    background: var(--pvm-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--pvm-font-size-lg);
    margin: 0 auto var(--pvm-space-sm);
    box-shadow: 0 4px 12px rgba(140, 10, 183, 0.3);
    border: 3px solid var(--pvm-bg-white); /* CLAUDE: Weißer Ring für Trennung von Linie */
}

.pvm-process-step h3 {
    font-size: var(--pvm-font-size-base);
    margin-bottom: var(--pvm-space-2xs);
    color: var(--pvm-text);
}

.pvm-process-step p {
    font-size: var(--pvm-font-size-sm);
    color: var(--pvm-text-muted);
    line-height: 1.5;
}

/* CLAUDE: Tablet-Landscape (1024px) - 5 Spalten bleiben, kompakter */
@media (max-width: 1024px) {
    .pvm-process__timeline {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: var(--pvm-space-md, 1.5rem);
        max-width: 900px;
    }

    .pvm-process__timeline::before {
        display: none;
    }
}

/* CLAUDE: Tablet-Portrait (768px) - 3 Spalten Grid */
@media (max-width: 768px) {
    .pvm-process__timeline {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--pvm-space-md, 1.5rem);
        padding: var(--pvm-space-lg) 0;
        max-width: 600px;
    }

    .pvm-process-step {
        flex-direction: column;
        text-align: center;
    }

    .pvm-process-step__number {
        margin: 0 auto var(--pvm-space-sm);
    }

    .pvm-process-step h3,
    .pvm-process-step p {
        text-align: center;
    }
}

/* CLAUDE: Mobile (unter 600px) - 2 Spalten Grid */
@media (max-width: 600px) {
    .pvm-process__timeline {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--pvm-space-sm, 1rem);
        max-width: 100%;
    }
}

/* ==========================================================================
   CLAUDE: 9. Interne Verlinkung Sektion
   CLAUDE: ENTFERNT 2025-01-07: Styles jetzt in related-services.css (zentral)
   ========================================================================== */

/* ==========================================================================
   CLAUDE: Split-Layout Override für Custom Applications MIT Animation
   CLAUDE: Animation-Elemente bleiben absolut positioniert im Hintergrund
   ========================================================================== */

.pvm-hero--customapps.pvm-hero--split {
    text-align: left;
}

.pvm-hero--customapps.pvm-hero--split .pvm-hero__grid {
    display: grid; /* CLAUDE: Grid-Layout aktivieren */
    grid-template-columns: 1.1fr 0.9fr; /* CLAUDE: 55/45 Text/Bild Aufteilung */
    gap: var(--pvm-space-xl); /* CLAUDE: Abstand zwischen Spalten */
    align-items: center; /* CLAUDE: Vertikale Zentrierung */
    position: relative;
    z-index: 2; /* CLAUDE: Grid über Animation */
}

.pvm-hero--customapps.pvm-hero--split .pvm-hero__content {
    position: relative;
    z-index: 2;
}

.pvm-hero--customapps.pvm-hero--split .pvm-hero-ctas {
    justify-content: flex-start;
}

/* CLAUDE: Bild-Container Styling für Animation-Hintergrund */
.pvm-hero--customapps.pvm-hero--split .pvm-hero__image {
    position: relative;
    z-index: 2;
}

.pvm-hero--customapps.pvm-hero--split .pvm-hero__img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* CLAUDE: Tablet-Breakpoint für optimierte Darstellung */
@media (min-width: 769px) and (max-width: 1024px) {
    .pvm-hero--customapps.pvm-hero--split .pvm-hero__grid {
        grid-template-columns: 1.2fr 0.8fr; /* CLAUDE: Mehr Platz für Text auf Tablet */
        gap: var(--pvm-space-lg);
    }
    .pvm-hero--customapps h1 {
        font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
    }
}

/* CLAUDE: Responsive - Stack auf Mobile */
@media (max-width: 768px) {
    .pvm-hero--customapps.pvm-hero--split {
        text-align: center;
    }
    .pvm-hero--customapps.pvm-hero--split .pvm-hero__grid {
        grid-template-columns: 1fr; /* CLAUDE: Single-Column auf Mobile */
        gap: var(--pvm-space-md);
    }
    .pvm-hero--customapps.pvm-hero--split .pvm-hero__image {
        order: -1; /* CLAUDE: Bild zuerst auf Mobile */
        max-width: 100%;
        margin: 0 auto var(--pvm-space-sm);
    }
    .pvm-hero--customapps.pvm-hero--split .pvm-hero__content {
        max-width: 100%;
    }
    .pvm-hero--customapps.pvm-hero--split .pvm-hero-ctas {
        justify-content: center;
    }
}
