/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #1a5490;
    --secondary-color: #2a7cc7;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   HERO HEADER
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.85) 0%, rgba(42, 124, 199, 0.75) 100%);
    z-index: 1;
}

.top-nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 700px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
    background: #ff7d4d;
}

/* Fade in animations */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   LAYOUT
   ========================================= */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.stat-item.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}
.stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

    .stat-link:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

        .stat-link:hover .stat-number {
            color: var(--secondary-color);
        }

        .stat-link:hover .stat-label {
            color: var(--primary-color);
        }
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.2) 0%, transparent 100%);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 84, 144, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.overlay-link {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    transition: var(--transition);
}

.overlay-link:hover {
    background: white;
    color: var(--primary-color);
}

.service-content {
    padding: 2rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-highlights li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* =========================================
   TECHNOLOGIES SECTION
   ========================================= */
.technologies-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.tech-category.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.tech-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* =========================================
   GALLERY PREVIEW
   ========================================= */
.gallery-preview {
    background: white;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item-preview.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-preview:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-preview:hover .gallery-caption {
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.secondary-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-qr {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-qr img {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

.qr-caption {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-display);
}

.footer-brand strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 5%;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover; /* Bild wird zugeschnitten, behält Proportionen */
}

/* ── LOGOS GRID ── */
.logos-section {
    background: var(--bg);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.logo-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 140px;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
}

    .logo-card.visible {
        animation: cardIn 0.5s ease forwards;
    }

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.logo-card img {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.logo-card:hover img {
    filter: grayscale(0%);
}

.logo-name {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-align: center;
}
