/* ALLGEMEINES SETUP */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #111;
    line-height: 1.6;
    /* Verhindert horizontales Scrollen auf Mobile */
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- NAVBAR --- */
.navbar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 90px;
    display: flex;
    align-items: center;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo-img {
    height: 90px; 
    width: auto;
    display: block;
    padding: 10px 0;
}

/* --- ANIMIERTER HEADER TEXT (LOOP) --- */
.nav-animated-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    letter-spacing: -0.5px;
    display: flex;
    gap: 5px;
    overflow: hidden;
    height: 30px;
    align-items: center;
    /* Auf Mobile evtl. ausblenden -> siehe Media Query unten */
}

.nav-animated-text span {
    display: inline-block;
    transform: translateY(-150%);
    opacity: 0;
}

.nav-animated-text.in span {
    animation: dropIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.nav-animated-text.in span:nth-child(1) { animation-delay: 0.4s; }
.nav-animated-text.in span:nth-child(2) { animation-delay: 0.8s; }
.nav-animated-text.in span:nth-child(3) { animation-delay: 1.2s; }

.nav-animated-text.out span {
    animation: dropOut 0.5s ease-in forwards;
    animation-delay: 0s;
}

@keyframes dropIn {
    0% { transform: translateY(-150%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes dropOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(150%); opacity: 0; }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar-placeholder {
    height: 90px;
    width: 100%;
    display: block;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh; 
    display: flex;
    align-items: center;
    background-image: url('../img/background.webp'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
}

.hero-bg-logo {
    display: none;
}

.hero-content {
    max-width: 800px;
    padding-left: 5%; 
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #111; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #333; 
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

/* --- BUTTONS --- */
.btn-primary {
    background: #111;
    color: #fff;
    padding: 15px 40px; 
    display: inline-block;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- BLÖCKE & CARDS --- */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 100px;
}

.paper-block {
    background: #fff;
    padding: 40px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 0px;
    position: relative;
}

.paper-block-animate {
    background-image: 
        linear-gradient(#111, #111), 
        linear-gradient(#111, #111), 
        linear-gradient(#111, #111), 
        linear-gradient(#111, #111);
    background-repeat: no-repeat;
    background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%;
    background-position: top left, top right, bottom right, bottom left;
    transition: transform 0.3s ease, background-size 0.4s ease-in-out, box-shadow 0.3s ease;
}

.paper-block-animate:hover {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-block {
    background: #fff;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-image: 
        linear-gradient(#111, #111), 
        linear-gradient(#111, #111), 
        linear-gradient(#111, #111), 
        linear-gradient(#111, #111);
    background-repeat: no-repeat;
    background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%;
    background-position: top left, top right, bottom right, bottom left;
    transition: background-size 0.4s ease-in-out;
}

.feature-block:hover {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #111;
}

.feature-block p {
    color: #555;
    font-size: 1.1rem;
}

/* --- PROJEKTE --- */
/* WICHTIG FÜR MOBILE: minmax auf 100% ändern oder kleineren Wert (z.B. 280px), um Scrollen zu vermeiden */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0px;
    transition: transform 0.3s ease;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd;
    margin-bottom: 20px;
    filter: grayscale(50%);
    transition: 0.3s;
}

.project-card:hover .project-image {
    filter: grayscale(0%);
}

.project-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 5px; color: #111; }
.project-cat { font-size: 0.8rem; text-transform: uppercase; color: #888; letter-spacing: 1px; }

.project-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.project-card:hover .project-placeholder {
    background-color: #e0e0e0;
    color: #111;
}

/* --- KONTAKT & FORMULARE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block {
    margin-bottom: 50px; 
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    display: block;
    fill: #000;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #000;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px; 
    display: block;
}

.contact-value {
    font-size: 1.1rem;
    color: #000;
    font-weight: 500;
    line-height: 1.4;
}

.contact-value a:hover {
    color: #555;
    text-decoration: underline;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    transition: all 0.3s ease;
}

.social-btn svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    fill: #111;
    display: block;
}

.social-btn:hover {
    background: #111;
    transform: translateY(-3px);
}

.social-btn:hover svg {
    fill: #fff;
}

form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000; 
    font-weight: 700; 
    margin-bottom: 8px;
    margin-top: 20px;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
    border-radius: 0px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

form button {
    margin-top: 30px;
    width: 100%;
}

/* --- SUBPAGE HEADER --- */
.subpage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 180px 0 100px 0;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.subpage-header h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    max-width: 60%; 
}

.subpage-header h2 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    max-width: 90%; 
}

.subpage-header p {
    font-size: 1.2rem;
    color: #111;
    line-height: 1.5;
    width: 350px;
    margin-top: 15px;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out, color 0.5s ease;
}

.subpage-header p.in-view {
    opacity: 0.5;
    transform: translateX(0);
}

.subpage-header p.in-view:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #fff;
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-icon {
    height: 80px;
    width: auto;
    opacity: 1;
    margin-bottom: 5px;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    position: relative;
    color: #777;
    margin: 0 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease-in-out;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::after {
    width: 100%;
}

/* --- PRICING TABLES --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 100px;
}

.pricing-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card.highlight {
    border: 2px solid #111;
    transform: scale(1.02); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    flex-grow: 1; 
}

.pricing-features li {
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #111;
    display: block;
}

/* --- PROZESS / ABLAUF --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    padding: 20px;
    border-left: 2px solid #eee; 
    transition: border-color 0.3s ease;
}

.process-step:hover {
    border-left: 2px solid #111; 
}

.process-number {
    font-size: 3rem;
    font-weight: 900;
    color: #eee; 
    line-height: 1;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.process-step:hover .process-number {
    color: #111; 
}

.process-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.process-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- TECH STACK BAR --- */
.tech-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    opacity: 0.5;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
}

/* --- ABOUT SEKTION --- */
.about-grid {
    display: flex;
    align-items: center; 
    gap: 80px; 
    margin-top: 100px;
    margin-bottom: 100px;
}

.about-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 450px; 
    background-color: #f0f0f0; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    flex-shrink: 0; 
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- PROJEKT DETAIL SEITE --- */
.project-detail-header {
    padding: 120px 0 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-detail-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #111;
}

.project-detail-cat {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 5px 15px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    margin-bottom: 80px;
}

.meta-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.meta-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.star-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

.star-column h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #111;
    padding-bottom: 15px;
    display: inline-block;
}

.star-block {
    margin-bottom: 40px;
}

.star-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5; 
}

.star-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
}

.result-box {
    background: #f4f4f4;
    padding: 30px;
    border-left: 4px solid #111;
}

.result-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 5px;
}

/* --- CAROUSEL --- */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #f0f0f0;
}

.carousel-track {
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    width: 100%; 
}

.carousel-slide {
    width: 100%; 
    flex-shrink: 0; 
    height: auto;
    object-fit: cover;
    display: block; 
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    z-index: 10;
}

.carousel-btn:hover { background-color: rgba(0, 0, 0, 0.8); }
.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    height: 12px;
    width: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* ========================================= */
/* MOBILE OPTIMIERUNG (MEDIA QUERIES)        */
/* ========================================= */

@media (max-width: 900px) {
    /* 1. Header & Text */
.subpage-header {
        flex-direction: column;
        padding-top: 120px;
        font-size: 1rem;
        
        /* WICHTIG: Das !important überschreibt deinen HTML-Style "flex-end" */
        align-items: flex-start !important; 
        text-align: left !important;
        
        
    }

    /* Das sorgt dafür, dass der Text "Kein Fachchinesisch..." die volle Breite nutzt */
    .subpage-header p {
        width: 100% !important; 
        max-width: 100% !important;
        margin-left: 0 !important;
        
    }
    
    /* Optional: Falls die Überschrift zu groß wirkt, hier anpassen */
    .subpage-header h1 {
        width: 100%;
        margin-bottom: 20px;
        font-size: 3rem;
        
    }

    .subpage-header h2 {
        width: 90%;
        margin-bottom: 20px;
       
        
    }

    h2 {
        
       font-size: 2rem !important;
        
    }

    


    /* 2. Grids (Alles auf 1 Spalte) */
    .expertise-grid, 
    .about-grid, 
    .contact-grid,
    .star-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .about-grid {
        flex-direction: column-reverse;
    }

    .about-image-placeholder {
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* 1. Navbar Anpassung */
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .nav-animated-text {
        display: none;
    }

    /* 2. Hero Section - FIX FÜR HINTERGRUND */
    .hero {
        /* WICHTIG: 'right center' zeigt den rechten Bildrand (das Schild) */
       
        background-position-x: 90% !important; 
       
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.5), rgb(255, 255, 255,1)), 
            url('../img/background.webp') !important;
        
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
        
        /* Optional: Falls der Text über dem Schild liegt, 
           kannst du hier noch einen Hintergrund hinzufügen, 
           damit man den Text lesen kann: */
        /* background: rgba(255, 255, 255, 0.8); */
        /* padding: 20px; */
        /* border-radius: 4px; */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        
    }

     .hero-content p {
        font-size: 1rem;
        font-weight: 700;
        
    }




    /* 3. Pricing & Projekte */
    .pricing-grid,
    .project-grid {
        grid-template-columns: 1fr; 
    }

    .pricing-card.highlight {
        transform: scale(1);
    }

    /* 4. Projekt Detail */
    .project-detail-header h1 {
        font-size: 2.2rem;
    }

    .carousel-btn {
        padding: 10px 15px;
    }
}