/* ==========================================================================
   V6 DESIGN SYSTEM - Premium Storen-Service Design
   ========================================================================== */

:root {
    --blue: #0c2b71;
    --blue-dark: #071a45;
    --gold: #ba9363;
    --sand: #f4f4f0; 
    --white: #ffffff;
    --bg-dark: #12151c;
    --text-main: #222222;
    --text-muted: #666666;
    --border: rgba(12, 43, 113, 0.15);
    --border-dark: rgba(255, 255, 255, 0.1);
    --alert: #d32f2f;
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 100px; /* Verhindert, dass der Header beim Scrollen den Titel verdeckt */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Entfernung der ungewollten schwarzen Linie aus der Originaldatei IMG_8951.jpg */
img[src="IMG_8951.jpg"] {
    clip-path: inset(8% 0 0 0);
}

/* Utility Classes */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }
.mt-5 { margin-top: 50px; }
.mb-5 { margin-bottom: 50px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.text-blue { color: var(--blue); }
.text-alert { color: var(--alert); }
.text-light { color: var(--sand); }
.bg-sand { background-color: var(--sand); }
.bg-navy { background-color: var(--blue); }
.syne-heading { font-family: var(--font-heading); font-weight: 700; }

a { text-decoration: none; color: inherit; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader-tech {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--white);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-line {
    width: 0; height: 2px;
    background-color: var(--blue);
    animation: loadLine 1s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}
.loader-text {
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
}
@keyframes loadLine {
    0% { width: 0; }
    100% { width: 250px; }
}
body.loaded .preloader-tech { opacity: 0; pointer-events: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.tech-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9500;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.tech-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    transition: var(--transition);
}
.tech-header.scrolled .header-inner { padding: 12px 5%; }

.brand-logo img {
    height: 68px;
    width: auto;
    transition: var(--transition);
    transform: translateY(2px);
}
.tech-header.scrolled .brand-logo img { height: 54px; }

/* Slat Hover Effect */
.main-nav { display: flex; gap: 40px; }
.nav-link {
    position: relative;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--blue);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.slat-effect {
    position: absolute;
    bottom: 5px; left: 0;
    width: 100%;
    height: 6px;
    overflow: hidden;
}
.slat-effect::before, .slat-effect::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 1.5px;
    background-color: var(--gold);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.slat-effect::before { top: 1px; transition-delay: 0s; }
.slat-effect::after { top: 4px; transition-delay: 0.1s; }

.nav-link:hover .slat-effect::before, 
.nav-link:hover .slat-effect::after {
    transform: translateX(0);
}

/* Header Buttons */
.header-right { display: flex; align-items: center; gap: 20px; }

.btn-tech {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    padding: 14px 28px;
    border-radius: 4px; 
    transition: var(--transition);
}

.btn-tech.solid { background: var(--blue); color: var(--white); border: 1px solid var(--blue); }
.btn-tech.solid:hover { background: var(--gold); border-color: var(--gold); }

.btn-tech.outline { background: transparent; color: var(--blue); border: 1px solid var(--border); }
.btn-tech.outline:hover { border-color: var(--blue); }

.btn-tech.alert { background: transparent; color: var(--alert); border: 1px solid var(--alert); }
.btn-tech.alert:hover { background: var(--alert); color: var(--white); }

.status-dot { width: 8px; height: 8px; background: var(--alert); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hover-scale { transition: transform 0.2s ease; }
.hover-scale:hover { transform: scale(1.02); }

.scroll-progress {
    height: 2px; width: 0%; background: var(--gold);
    position: absolute; bottom: -1px; left: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn { 
    position: relative;
    display: none; 
    flex-direction: column; 
    gap: 6px; 
    background: none; 
    border: none; 
    padding: 10px; 
    z-index: 9501;
}
.mobile-menu-btn .bar { width: 30px; height: 2px; background: var(--blue); transition: var(--transition); }
.mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.mobile-menu-btn.active .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--white); 
    z-index: 9400; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: var(--transition);
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-link { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--text-main); }

/* ==========================================================================
   HERO SECTION 
   ========================================================================== */
.hero-tech {
    min-height: 100vh;
    padding-top: 160px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6vw;
    align-items: center;
}

.reveal-box { overflow: hidden; padding-bottom: 5px; }
.hero-content h1 {
    font-size: 5vw;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
body.loaded .hero-content h1 { transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }

.hero-sub {
    font-size: 1.2rem; margin: 40px 0; color: var(--text-muted); max-width: 90%; font-weight: 300;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

.reveal-fade { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
body.loaded .reveal-fade { opacity: 1; transform: translateY(0); }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.tech-image-container {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
}
.tech-image-container img {
    width: 100%; height: auto; display: block;
    filter: contrast(1.05) saturate(0.9);
}

/* ==========================================================================
   SECTIONS & LEISTUNGEN
   ========================================================================== */
.section-tech { padding: 12vh 0; }

.tech-heading {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-header { margin-bottom: 60px; max-width: 800px; }
.section-header p { font-size: 2.5rem; color: var(--text-main); line-height: 1.2; font-weight: 600; }

.centered-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-accordion { 
    border-top: 1px solid var(--border); 
}

.service-item { border-bottom: 1px solid var(--border); }

.service-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 0;
    transition: var(--transition);
    cursor: pointer;
}
.service-head h3 { font-size: 2.5rem; font-weight: 600; color: var(--blue); transition: color 0.3s; }
.service-item:hover .service-head h3 { color: var(--gold); }
.service-item:hover .service-head { padding-left: 15px; }

.toggle-icon { width: 18px; height: 18px; position: relative; }
.toggle-icon::before, .toggle-icon::after {
    content: ''; position: absolute; background: var(--blue); transition: var(--transition);
}
.toggle-icon::before { top: 8px; left: 0; width: 100%; height: 2px; }
.toggle-icon::after { top: 0; left: 8px; width: 2px; height: 100%; }
.service-item.active .toggle-icon::after { transform: rotate(90deg); opacity: 0; }

.service-content {
    max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 0;
}
.service-item.active .service-content { max-height: 600px; padding: 0 0 40px 0; }
.service-content p { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; margin-bottom: 25px; font-weight: 300; }

/* ==========================================================================
   VIDEO SHOWCASE (Kompakt & Animiert)
   ========================================================================== */
.video-showcase {
    max-width: 360px;
    margin: 60px auto 0 auto; 
    background: var(--white);
    padding: 8px; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(12, 43, 113, 0.1);
    position: relative; 
    cursor: pointer;
}

.tech-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    pointer-events: none; 
    z-index: 2;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.play-indicator svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

/* ==========================================================================
   ÜBER UNS (Zentriertes Layout)
   ========================================================================== */
.about-centered {
    max-width: 800px;
    margin: 0 auto;
}

.about-title { font-size: 2.8rem; margin-bottom: 30px; line-height: 1.2; font-weight: 600; color: var(--blue); }

.about-text-content p { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    margin-bottom: 20px; 
    font-weight: 300; 
}

.tech-stats { display: flex; gap: 40px; border-top: 1px solid var(--border); padding-top: 30px; }
.stat-box { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-heading); font-size: 3rem; color: var(--gold); font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 5px; font-weight: 500; }

/* ==========================================================================
   TEAM PORTRAITS (Lösung für unsaubere Bildränder)
   ========================================================================== */
.team-showcase-wrapper {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Der unsichtbare Bilderrahmen, der exakt rund abschneidet und den Schatten wirft */
.team-circle-frame {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1; 
    border-radius: 50%;
    overflow: hidden; /* Schneidet alles ab, was über den Kreis hinausgeht */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    background-color: var(--white);
}

/* Das Bild zoomen wir minimal heran, um den fehlerhaften Rand der JPGs abzuschneiden */
.team-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06); /* Schiebt die Ränder um 6% unsichtbar aus dem Frame heraus! */
    display: block;
}


/* ==========================================================================
   KUNDENSTIMMEN (Reviews)
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 3px solid var(--gold);
    transition: transform 0.3s ease;
}
.review-card:hover { transform: translateY(-5px); }

.stars { color: #f39c12; font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 2px; }
.review-text { font-style: italic; margin-bottom: 20px; color: var(--text-muted); line-height: 1.6; }
.review-author { font-weight: 600; font-family: var(--font-heading); color: var(--text-main); }

/* ==========================================================================
   MARKENQUALITÄT (BILDER)
   ========================================================================== */
.brand-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.brand-image-card {
    position: relative;
    border-radius: 4px; 
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    aspect-ratio: 4 / 3;
}

.brand-image-card .brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.brand-image-card:hover .brand-img { transform: scale(1.05); }

.brand-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.brand-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--blue);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   PARTNER OHNE LOGOS
   ========================================================================== */
.section-partner { padding: 80px 0; overflow: hidden; }
.partner-label { font-size: 1rem; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8;}

.tech-marquee { display: flex; overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; align-items: center; gap: 80px; padding-right: 80px; animation: scrollMarquee 35s linear infinite; }

.partner-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.6;
    padding: 0 20px;
}

@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }

.info-card { background: var(--white); padding: 40px; border: 1px solid var(--border); }
.info-row { display: flex; flex-direction: column; margin-bottom: 30px; }
.info-row:last-child { margin-bottom: 0; }
.tech-label { font-size: 0.85rem; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; font-weight: 500; letter-spacing: 0.05em; }
.info-val { font-size: 1.2rem; font-weight: 400; color: var(--blue); }

.link-hover { position: relative; display: inline-block; width: fit-content; }
.link-hover::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--blue); transition: width 0.3s; }
.link-hover:hover::after { width: 100%; }

.map-box { position: relative; border: 1px solid var(--border); overflow: hidden; }
.map-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(12, 43, 113, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); color: var(--white); font-family: var(--font-body); font-weight: 500;}
.map-box:hover .map-overlay { opacity: 1; }

.tech-form { display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.input-wrap { display: flex; flex-direction: column; }
.input-wrap label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.input-wrap input, .input-wrap textarea { padding: 15px; border: 1px solid var(--border); background: var(--white); font-family: var(--font-body); font-size: 1.05rem; outline: none; transition: border-color 0.3s; border-radius: 2px; }
.input-wrap input:focus, .input-wrap textarea:focus { border-color: var(--blue); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tech-footer { background: var(--bg-dark); color: var(--white); padding: 50px 0; border-top: 1px solid var(--border-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left img { height: 55px; mix-blend-mode: screen; filter: grayscale(100%); margin-bottom: 15px; transform: translateY(3px); }
.footer-left p { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* Custom Leonify Webdesign Signatur */
.crafted-by { font-size: 0.85rem; color: rgba(255,255,255,0.3) !important; margin-top: 8px; font-weight: 300; }
.crafted-by a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.3s; font-weight: 400; }
.crafted-by a:hover { color: var(--gold); }

.footer-right { display: flex; gap: 30px; }
.footer-right a { font-size: 0.95rem; color: rgba(255,255,255,0.5); transition: color 0.3s; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-right a:hover { color: var(--gold); }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner-tech {
    position: fixed; bottom: 30px; left: 5%; right: 5%;
    background: var(--blue); border: 1px solid var(--border);
    padding: 20px 30px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 9999;
    border-radius: 4px;
    
    /* Out-of-screen initial state */
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner-tech.show { 
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-tech p { font-size: 0.95rem; margin: 0; color: var(--white); }
.cookie-actions { display: flex; gap: 10px; }
.btn-tech.small { padding: 10px 20px; font-size: 0.9rem; background: var(--gold); border-color: var(--gold); color: var(--white); cursor: pointer; }
.btn-tech.small:hover { background: var(--white); border-color: var(--white); color: var(--blue); }

.btn-tech.outline.small { background: transparent; color: var(--white); border: 1px solid var(--white); cursor: pointer; }
.btn-tech.outline.small:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE (Mobile Optimized)
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .hero-content h1 { font-size: 6vw; }
}

@media screen and (max-width: 992px) {
    .hero-container, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-img-col { height: auto; }
    .form-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .section-header p { font-size: 2rem; }
    .service-head h3 { font-size: 1.8rem; }
}

@media screen and (max-width: 768px) {
    body { width: 100%; overflow-x: hidden; }
    .container { padding: 0 20px; }
    
    .main-nav, .btn-tech.outline { display: none; }
    .mobile-menu-btn { display: flex; cursor: pointer; }
    
    .hero-tech { padding-top: 140px; min-height: auto; padding-bottom: 60px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-sub { font-size: 1.1rem; max-width: 100%; }
    
    .tech-heading { font-size: 0.9rem; }
    .section-header p { font-size: 1.6rem; }
    
    /* Mobile-Optimierung für das Video */
    .video-showcase { 
        margin-top: 40px; 
        padding: 5px; 
        border-radius: 8px; 
    }
    .play-indicator {
        width: 48px;
        height: 48px;
    }
    .play-indicator svg {
        width: 20px;
        height: 20px;
        margin-left: 3px;
    }
    
    .service-head h3 { font-size: 1.4rem; padding-right: 20px; }
    .service-head { padding: 25px 0; }
    
    .about-title { font-size: 1.8rem; }
    .stat-num { font-size: 2.2rem; }
    
    .partner-name { font-size: 1.5rem; padding: 0 10px; }
    
    .info-card { padding: 25px; }
    .info-val { font-size: 1.1rem; word-break: break-word; }
    
    .footer-inner { flex-direction: column; gap: 30px; text-align: center; }
    .footer-right { flex-direction: column; gap: 15px; }
    
    .cookie-banner-tech { flex-direction: column; gap: 20px; text-align: center; padding: 20px; }

    /* Mobile Optimierung für die Team-Portraits */
    .team-showcase-wrapper {
        grid-template-columns: 1fr; 
        gap: 30px;
        max-width: 320px;
    }
}