@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Syne:wght@700&family=Plus+Jakarta+Sans:wght@400;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* Leistungen Hero Image Styling (like product showcase) */
.hero-img-responsive {
    display: block;
    width: 1200px;
    max-width: 100%;
    height: 350px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

:root {
    /* Core brand tokens (centralized) */
    --xv-primary: #002340;
    --xv-primary-dark: #001629;
    --xv-accent: #0cbcdb;
    --xv-accent-hover: #09a8c4;
    --xv-accent-glow: rgba(12, 188, 219, 0.25);
    --xv-accent-subtle: rgba(12, 188, 219, 0.08);
    --xv-text-light: #ffffff;
    --xv-text-dim: #B8C8D8;
    --xv-text-dark: #333333;
    --xv-bg-light: #f4f6f8;
    --xv-border-dark: rgba(12, 188, 219, 0.15);

    /* Typography stacks */
    --xv-mono: 'JetBrains Mono', monospace;
    --xv-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --xv-head: 'Syne', var(--xv-sans);

    /* Backwards-compatible aliases used in templates and older CSS */
    --xivotec-primary: var(--xv-primary);
    --xivotec-primary-dark: var(--xv-primary-dark);
    --xivotec-accent: var(--xv-accent);
    --xivotec-accent-hover: var(--xv-accent-hover);
    --xivotec-accent-glow: var(--xv-accent-glow);
    --xivotec-text-light: var(--xv-text-light);
    --xivotec-text-dim: var(--xv-text-dim);
    --xivotec-text-dark-body: var(--xv-text-dim);
    --xivotec-bg-light: var(--xv-bg-light);
    --xivotec-border-dark: var(--xv-border-dark);
    --xivotec-mono: var(--xv-mono);
    --xivotec-text: var(--xv-text-dark);
}

/* =========================================
   Global SaaS Styles
   ========================================= */

body {
    color: var(--xivotec-text);
}

/* =========================================
   Component: Tech Card (Divi Blurb)
   Usage: Add class 'xivotec-tech-card' to a Blurb Module
   ========================================= */

.xivotec-tech-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0, 35, 64, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.xivotec-tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--xivotec-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.xivotec-tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 35, 64, 0.12);
}

.xivotec-tech-card:hover::before {
    transform: scaleX(1);
}

/* Icon styling (Divi Blurb Image) */
.xivotec-tech-card .et_pb_main_blurb_image {
    margin-bottom: 20px;
}

.xivotec-tech-card .et_pb_main_blurb_image img {
    transition: transform 0.3s ease;
}

.xivotec-tech-card:hover .et_pb_main_blurb_image img {
    transform: scale(1.1) rotate(5deg);
}

/* Title styling */
.xivotec-tech-card h4.et_pb_module_header {
    font-size: 18px;
    font-weight: 700;
    color: var(--xivotec-primary);
    margin-bottom: 10px;
}

/* =========================================
   Component: Project Card (Divi Call To Action / Blurb)
   Usage: Add class 'xivotec-project-card'
   ========================================= */

.xivotec-project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.xivotec-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 35, 64, 0.15);
    border-color: var(--xivotec-accent);
}

/* Image Area */
.xivotec-project-card .et_pb_main_blurb_image {
    margin-bottom: 0 !important; /* Reset Divi margin */
    overflow: hidden;
    border-bottom: 4px solid var(--xivotec-primary);
}

.xivotec-project-card .et_pb_main_blurb_image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.xivotec-project-card:hover .et_pb_main_blurb_image img {
    transform: scale(1.05);
}

/* Content Area */
.xivotec-project-card .et_pb_blurb_content {
    padding: 25px;
}

.xivotec-project-card h4.et_pb_module_header {
    color: var(--xivotec-primary);
    font-size: 22px;
    margin-bottom: 12px;
}

.xivotec-project-card .et_pb_blurb_description {
    color: #666;
    line-height: 1.6;
}

/* Button override inside card */
.xivotec-project-card .et_pb_button {
    margin-top: 15px;
    background: var(--xivotec-accent);
    border-color: var(--xivotec-accent);
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 20px;
}

.xivotec-project-card .et_pb_button:hover {
    background: var(--xivotec-primary);
    border-color: var(--xivotec-primary);
}

/* =========================================
   Component: Hero Section
   Usage: Add class 'xivotec-hero-section' to a Section
   ========================================= */
   
.xivotec-hero-section {
    background: linear-gradient(135deg, var(--xivotec-primary) 0%, #003366 100%);
    position: relative;
    overflow: hidden;
}

.xivotec-hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--xivotec-accent) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

/* --- Buttons --- */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--xivotec-accent);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(12, 188, 219, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* =========================================
   TECH STACK CARDS (Apple-Card Design)
   ========================================= */

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.stack-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Elegant hover feel */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stack-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Soft shadow on lift */
    border-color: rgba(12, 188, 219, 0.3); /* Slight accent highlight */
}

/* Logo Area */
.stack-logo {
    height: 60px; /* Fixed height for logos */
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.stack-logo img, 
.stack-logo svg {
    max-height: 100%;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

/* Title & Desc */
.stack-card h3 {
    font-size: 1.5rem; /* ~24px */
    font-weight: 700;
    color: #000; /* Minimalist Black */
    margin-bottom: 12px;
}

.stack-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #555; /* Soft gray Text */
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes list/footer down */
}

/* Feature List (Checkmarks) */
.stack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.stack-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.stack-features .check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xivotec-accent); /* Branded Checkmark #0cbcdb */
    background: rgba(12, 188, 219, 0.1); /* Subtle circle background optional? Or just icon? */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stack-features .check-icon svg {
    width: 14px;
    height: 14px;
}

/* Footer Link */
.stack-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.stack-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #d12026; /* AWS Red from image? NO -> Use Brand Accent */
    color: #0088cc; /* Or keep a darker blue for links for contrast? */
    color: var(--xivotec-accent); /* Let's use brand accent but darken it slightly on hover */
    text-decoration: none;
    transition: gap 0.2s ease;
}

/* Darker blue for text readability if Accent is too bright on white */
.stack-link {
    color: #007da0; 
}

.stack-link:hover {
    gap: 10px; /* Arrow moves */
    color: var(--xivotec-accent);
}

/* =========================================
   Component: Clean White Cards (Moved from Front Page)
   ========================================= */

/* --- New 3 Column Horizontal Layout (Cards) --- */
.biz-3-col-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Ensure all cards are equal height */
}

/* Card Style White/Clean */
.biz-card-white {
    position: relative;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px; /* Softer corners */
    padding: 32px 28px; /* Slightly reduced padding */
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth spring-like eased transition */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    overflow: hidden; /* For the accent line animation */
}

/* Hover State: Lift and Blue Glow */
.biz-card-white:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 35, 64, 0.15); /* Dark blue glow */
    border-color: rgba(0, 35, 64, 0.3);
}

/* Animated Accent Line (Left Side) */
.biz-card-white::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 4px; 
    height: 0%; /* Start invisible */
    background: var(--xivotec-primary);
    transition: height 0.4s ease;
    z-index: 1;
}

.biz-card-white:hover::before {
    height: 100%; /* Grow to full height on hover */
}

/* Logo at Top */
.biz-top-logo {
    height: 56px; /* Slightly larger */
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.biz-card-white:hover .biz-top-logo {
    transform: scale(1.05); /* Subtle pop */
}

.biz-top-logo img {
    height: 100%; 
    width: auto;
    object-fit: contain;
}

.biz-card-white h3 {
    font-size: 1.6rem; 
    font-weight: 800;
    color: var(--xivotec-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* WYSIWYG Content Styling */
.biz-wysiwyg-content {
    font-size: 1rem;
    color: var(--xivotec-primary);
    line-height: 1.6;
    flex: 1; /* Push link to bottom */
    margin-bottom: 24px;
}

.biz-wysiwyg-content p {
    margin-bottom: 16px;
}

.biz-wysiwyg-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.biz-wysiwyg-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--xivotec-primary);
    font-weight: 500;
}

/* Custom Checkmark for List Items */
.biz-wysiwyg-content li::before {
    content: '✔'; /* Or use SVG */
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--xivotec-primary); /* Dark Blue circle */
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bottom Link */
.biz-card-link {
    font-weight: 700;
    color: var(--xivotec-primary); /* Dark Blue */
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.biz-card-link:hover {
    gap: 10px; /* Move arrow */
    text-decoration: underline;
}
/* =========================================
   Buttons (Global)
   ========================================= */
.btn, .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px !important;
  transition: all 0.22s ease;
  cursor: pointer;
  gap: 8px;
  line-height: 1;
  text-decoration: none; /* Ensure links look like buttons */
}

/* Hero Button Variants */
.referenzen-hero .btn,
.pd-hero .btn {
  padding: 14px 32px;
  font-size: 1rem;
  white-space: nowrap;
  margin-top: 25px;
}

.btn-primary {
  background: var(--xivotec-accent);
  color: #000;
  border: 0;
}

.btn-primary:hover {
  background: #fff;
  color: var(--xivotec-primary);
  box-shadow: 0 10px 20px rgba(12, 188, 219, 0.2);
}

/* --- Responsive Rules for Shared Components --- */
@media (max-width: 1024px) {
    .biz-3-col-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .biz-3-col-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .biz-card-white {
        padding: 24px 20px;
    }

    .biz-card-white h3 {
        font-size: 1.3rem;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: 20px;
    }

    .stack-card {
        padding: 24px;
    }

    .stack-card h3 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-img-responsive {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .biz-card-white h3 {
        font-size: 1.1rem;
    }

    .biz-wysiwyg-content {
        font-size: 0.9rem;
    }

    .stack-card h3 {
        font-size: 1.1rem;
    }

    .hero-img-responsive {
        height: 200px;
    }
}

/* Remove Divi vertical line on Unsere Leistungen page */
@media (min-width: 981px) {
  #main-content .container:before {
    background-color: transparent !important;
    display: none !important;
  }
}
