/* CRA Page Styles - Xivotec / Innfactory Inspired */

:root {
    --cra-primary: #002340;
    --cra-accent: #0cbcdb;
    --cra-text: #333333;
    --cra-bg-light: #f9fafb;
    --cra-bg-white: #ffffff;
    --cra-shadow: 0 10px 30px rgba(0, 35, 64, 0.08);
    --cra-card-radius: 16px;
}

/* Wrapper to isolate styles */
.cra-wrapper {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: var(--cra-text);
    overflow-x: hidden;
    width: 100%;
}

.cra-wrapper * {
    box-sizing: border-box;
}

.cra-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

.cra-section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.text-muted { color: #666; }
.text-alert { color: #e74c3c; }
.text-primary { color: var(--cra-primary); }
.text-white { color: #fff; }

.section-title-darkblue {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cra-primary);
    margin-bottom: 70px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 70px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* BUTTONS */
.cra-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.cra-btn-primary {
    background: var(--cra-accent);
    color: #fff;
    border: 2px solid var(--cra-accent);
}
.cra-btn-primary:hover {
    background: transparent;
    color: var(--cra-accent);
}

.cra-btn-secondary {
    background: transparent;
    color: var(--cra-primary);
    border: 2px solid var(--cra-primary);
    margin-left: 15px;
}
.cra-btn-secondary:hover {
    background: var(--cra-primary);
    color: #fff;
}

.cra-btn-white {
    background: #fff;
    color: var(--cra-primary);
    border: 2px solid #fff;
}
.cra-btn-white:hover {
    background: transparent;
    color: #fff;
}

.cra-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 10px;
}
.cra-btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* HERO SECTION */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.cra-hero {
    position: relative;
    padding: 120px 0 80px 0;
    min-height: 550px;
    background-color: var(--cra-primary); /* Dark Blue */
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* subtle radial accent similar to leistungen hero */
    background-image: radial-gradient(circle at 50% 50%, rgba(12,188,219,0.05) 0%, transparent 60%);
}

.cra-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* hexagon pattern overlay (SVG data URI) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='32' viewBox='0 0 36 32'><defs><pattern id='h' width='36' height='32' patternUnits='userSpaceOnUse'><polygon points='18,0 36,8 36,24 18,32 0,24 0,8' fill='%230cbcdb' fill-opacity='0.06'/></pattern></defs><rect width='100%' height='100%' fill='url(%23h)'/></svg>");
    background-size: auto;
    opacity: 0.16;
    mix-blend-mode: overlay;
}

.cra-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 1024px) {
    .cra-hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
        gap: 60px;
    }
}

.cra-badge {
    display: inline-block;
    background: rgba(12, 188, 219, 0.15);
    color: var(--cra-accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.cra-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.cra-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85); /* Lightened text */
    margin-bottom: 40px;
    max-width: 600px;
}

/* Extended hero text styles adapted from leistungen.css */
.cra-hero-text h1, .cra-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .cra-hero-text h1, .cra-title {
        font-size: 3.5rem;
    }
}

.cra-hero-text .highlight { color: var(--cra-accent);
font-size: 2.0rem; }

.cra-hero-text p, .cra-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.cra-scroll-link, .scroll-down-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.cra-scroll-link:hover, .scroll-down-link:hover { color: var(--cra-accent); }

.scroll-arrow { margin-right: 8px; animation: bounce 2s infinite; }

@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateY(0);}40%{transform:translateY(-5px);}60%{transform:translateY(-3px);} }

.cra-hero-visual { display: none; }
@media (min-width: 1024px) { .cra-hero-visual { display: block; width: 100%; height: auto; opacity: 0.9; } }

/* Exact hero visuals copied from leistungen.css to match look */
.cra-hero {
    background-color: #001629; /* xivotec-dark */
    color: #ffffff; /* xivotec-text-dark-headline */
    min-height: 50;
    display: flex;
    align-items: center;
    position: relative;
    background-image: radial-gradient(circle at 50% 50%, rgba(12, 188, 219, 0.05) 0%, transparent 60%);
}

.cra-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMTIsMTg4LDIxOSwwLjEyKSIvPjwvc3ZnPg==');
    pointer-events: none;
    z-index: 0;
}

.cra-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 1024px) {
    .cra-hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
    }
}

.cra-hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .cra-hero-text h1 {
        font-size: 3.5rem;
    }
}

.cra-hero-text .highlight { color: #0cbcdb; }

.cra-hero-text p {
    font-size: 1.125rem;
    color: #B8C8D8; /* xivotec-text-dark-body */
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.cra-hero-visual {
    display: none;
}
@media (min-width: 1024px) {
    .cra-hero-visual {
        display: block;
        width: 100%;
        height: auto;
        opacity: 0.8;
    }
}

.cra-countdown-box {
    margin-bottom: 40px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08); /* Glass effect */
    padding: 15px 25px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cra-countdown-timer {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-feature-settings: "tnum";
}

.cra-countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cra-shield-graphic {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-icon {
    font-size: 180px;
    color: #fff;
    opacity: 0.05;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    animation: floatBadge 3s infinite ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.badge-1 { top: 20%; right: 10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; left: 10%; animation-delay: 1.5s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* GRIDS */
.cra-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARDS - SERVICE */
.cra-card {
    background: var(--cra-bg-white);
    padding: 40px;
    border-radius: var(--cra-card-radius);
    box-shadow: var(--cra-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    height: 100%;
    position: relative;
}

.cra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 35, 64, 0.12);
    border-top-color: var(--cra-accent);
}

.service-card h3 {
    color: var(--cra-primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cra-accent); /* Dark Blue */
    position: relative;
    display: block;
    margin-bottom: 20px;
    line-height: 1;
    z-index: 2;
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.cra-card ul {
    padding-left: 20px;
    margin: 0;
}
.cra-card li {
    margin-bottom: 8px;
    color: #666;
}

/* WHY IMPORTANT */
.cra-light-bg { background: var(--cra-bg-light); }

.cra-banner {
    background: var(--cra-primary);
    color: #fff;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-top: 60px;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,35,64,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.cra-banner::before {
    content: '!';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: var(--cra-accent);
    color: var(--cra-primary);
    border-radius: 50%;
    font-weight: 900;
}

.why-grid {
    gap: 40px;
}

.cra-col {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.cra-col:hover {
    transform: translateY(-5px);
    box-shadow: var(--cra-shadow);
}

.why-grid .cra-col h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* REQUIREMENTS */
.requirements-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (min-width: 992px) {
    .requirements-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .requirements-grid .req-card {
        grid-column: span 2;
    }
    .requirements-grid .req-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
}
.req-card {
    border-left: 4px solid var(--cra-accent);
    border-top: none;
    background: #fff;
    padding: 35px;
}
.req-card h4 {
    color: var(--cra-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* CATEGORIES */
.cra-dark-bg { background: var(--cra-primary); color: #fff; }

.cat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
}

.cat-critical {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.cat-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ROADMAP */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cra-accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--cra-bg-white);
    border: 2px solid var(--cra-accent);
    border-radius: 50%;
    color: var(--cra-accent);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--cra-bg-white);
}

.timeline-content h3 {
    color: var(--cra-primary);
    margin-bottom: 15px;
}

/* TRUST & CTA */
.cra-footer-cta {
    background: linear-gradient(135deg, var(--cra-primary) 0%, #001525 100%);
    color: #fff;
    padding-bottom: 100px;
}

.trust-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.check-icon {
    color: var(--cra-accent);
    font-weight: bold;
}

.final-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.f-cta-left h3 {
    font-size: 2rem;
    color: #fff;
    max-width: 500px;
}

.link-simple {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-left: 20px;
}
.link-simple:hover { color: #fff; }


/* IMAGES */
.hero-image-styled {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}
.hero-image-styled:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.roadmap-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
}

.roadmap-image-styled {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--cra-shadow);
    position: sticky;
    top: 100px;
}

.cta-person {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
}
.cta-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cra-accent);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .cra-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .cra-hero-text {
        order: 1;
    }
    
    .cra-hero-visual {
        order: 2;
        /* height: 300px; Remove fixed height to allow image to scale */
    }
    
    .roadmap-layout {
        grid-template-columns: 1fr;
    }
    .roadmap-visual {
        display: none; /* Hide sticky image on mobile to save space */
    }

    .cra-hero-actions {
        justify-content: center;
    }
    .cra-countdown-box {
        margin: 0 auto 30px auto;
    }
    
    /* 2 Columns for Tablet */
    .cra-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .trust-grid {
        justify-content: center;
    }
    
    .final-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .f-cta-right {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .cra-btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        max-width: 350px;
        text-align: center;
    }
    
    .link-simple {
        margin-left: 0;
        margin-top: 10px;
        display: block;
    }
}

@media (max-width: 767px) {
    .cra-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .cra-grid-3, .why-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline Adjustments for Mobile */
    .roadmap-timeline::before {
        left: 19px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 30px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 0;
    }
    
    .cra-card {
        padding: 30px 20px;
    }

    .cra-section {
        padding: 60px 0;
    }

    .cra-container {
        padding: 0 16px;
    }

    .cra-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cra-hero-actions .cra-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .cra-title {
        font-size: 1.8rem;
    }

    .section-title-darkblue {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .cra-card {
        padding: 20px 16px;
    }
}
