/* =========================================
   1. VARIABLEN & BASIS
   ========================================= */
:root {
    --primary-color: #256988;
    --primary-dark: #054968;
    --bg-light: #f4f6f8;
    --bg-dark: #111827;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
    /* ZURÜCK AUF STANDARD: 1rem (16px) wirkt professioneller */
    font-size: 1rem; 
}

p, li, label {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light); /* Leicht grauer Text ist angenehmer zu lesen */
}

/* Überschriften: Elegant & Kräftig */
h1 { font-size: 3rem; line-height: 1.2; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 2.2rem; margin-bottom: 20px; font-weight: 700; color: var(--text-dark); }
h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 600; }

/* Globales Reset */
ul, li { list-style: none !important; }
a { text-decoration: none !important; }

/* Layout Helfer */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.highlight { color: var(--primary-color); font-weight: 700; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   2. NAVIGATION & LOGO
   ========================================= */
.navbar {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 60px; /* Etwas dezenter */
    width: auto;
    transition: all 0.3s ease;
    display: block;
}

.navbar-scrolled .nav-logo { height: 45px; }

.nav-links {
    display: flex;
    gap: 25px; /* Etwas enger zusammen, damit alles Platz hat */
    align-items: center;
}
.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 5px 0; /* Vergrößert die Klickfläche minimal */
    position: relative;
}
.nav-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    padding: 160px 0 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('images/Laptop.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero h1, .hero p { color: white; }
.hero p { font-size: 1.15rem; opacity: 0.9; } /* Hero Text darf etwas größer sein */

/* =========================================
   4. SERVICE & PORTFOLIO GRID (ANGEPASST)
   ========================================= */
.services-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card, .portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover, .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card { padding: 40px; }
.icon-box { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }

/* HIER IST DIE ÄNDERUNG FÜR DIE BILDER */
/* Ich habe den Namen auf "wrapper" geändert, damit er zum HTML passt */
.portfolio-img-wrapper {
    width: 100%;
    height: 200px;      /* Feste Höhe erzwingen */
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;   /* Überstehendes abschneiden */
}

/* Das sorgt dafür, dass das Bild perfekt reinpasst */
.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Kasten ohne Verzerrung */
    object-position: top center; /* Zeigt den oberen Teil der Website */
    transition: transform 0.5s ease;
}

/* Zoom Effekt */
.portfolio-item:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-info { padding: 25px; }
.link-arrow { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }

/* =========================================
   5. PRODUCT SLIDER
   ========================================= */
.productSlider { padding: 20px 0 60px 0; }

.product-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.product-row.reverse { flex-direction: row-reverse; }
.product-image { flex: 1; display: flex; justify-content: center; }
.product-text { flex: 1; text-align: left; }

.product-logo {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.badge {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

/* =========================================
   6. ÜBER UNS
   ========================================= */
.about-content { text-align: center; max-width: 800px; margin: 0 auto; }
.check-list { display: inline-block; text-align: left; margin-top: 30px; }
.check-list li { margin-bottom: 15px; }

/* =========================================
   7. KONTAKT & FORMULAR
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem; /* Labels dezent kleiner */
    color: var(--text-dark);
}

/* Inputs & Selects */
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px 18px; /* Etwas feiner als vorher */
    font-size: 1rem;    /* Standard Größe */
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fcfcfc;
    font-family: inherit;
    transition: border 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256988' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 45px;
    cursor: pointer;
}

/* =========================================
   8. BUTTONS & FOOTER
   ========================================= */
.btn {
    display: inline-block;
    /* Padding passend zu den Inputs (14px oben/unten) */
    padding: 14px 28px; 
    font-size: 1rem; 
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    /* Rahmen-Trick für exakte Höhe mit Inputs */
    border: 1px solid transparent; 
    line-height: 1.5;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary { background: transparent; border: 2px solid white; color: white; margin-left: 10px; }
.btn-secondary:hover { background: white; color: var(--text-dark); border-color: white; }

.btn-full { display: block; width: 100%; text-align: center; }

footer { background: var(--bg-dark); color: #bbb; padding: 60px 0; }
.footer-links a { margin: 0 10px; color: #bbb; }

/* =========================================
   9. MOBILE (RESPONSIVE)
   ========================================= */

/* Standardmäßig ist der Burger Button unsichtbar (Desktop) */
.burger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 900px) {
    /* 1. Layout Umbrüche */
    .hero-grid, .contact-wrapper, .services-grid, .portfolio-grid {
        grid-template-columns: 1fr; 
    }

    .product-row, .product-row.reverse {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }
    .product-text { text-align: center; }
    
    .hero h1 { font-size: 2.5rem; }

    /* 2. BURGER MENÜ LOGIK */
    .burger-menu {
        display: block; /* Icon anzeigen */
        z-index: 1001; /* Über dem Menü liegen */
    }

    .nav-links {
        display: flex; 
        position: fixed; /* Losgelöst vom Fluss */
        top: 0;
        right: -100%; /* Versteckt rechts außerhalb des Bildschirms */
        height: 100vh;
        width: 80%; /* Deckt 80% des Bildschirms ab */
        background: white;
        flex-direction: column; /* Links untereinander */
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out; /* Sanftes Gleiten */
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.98); /* Leicht transparent */
    }

    /* Diese Klasse fügen wir per JavaScript hinzu */
    .nav-links.active {
        right: 0; /* Menü fährt rein */
    }

    .nav-links li { margin: 25px 0; }
    
    .nav-links a { font-size: 1.3rem; font-weight: 600; }
    
    /* Hero Bild verschieben für mehr Laptop-Sichtbarkeit */
    .hero {
        /* Standard war 'center'. Jetzt schieben wir es nach rechts. */
        /* Probier hier Werte zwischen 60% und 80% aus, bis es perfekt sitzt */
        background-position: 70% center; 
    }

    .hero h1 { font-size: 2.5rem; }

    /* Portfolio Bilder mobil kleiner machen */
    .portfolio-img-wrapper {
        height: 200px; /* Original ist 200px. Probier hier 150px oder 160px */
    }

    /* Damit lange Links im Datenschutz nicht das Handy-Design sprengen */
.contact-wrapper {
    word-wrap: break-word;       /* Alte Browser */
    overflow-wrap: break-word;   /* Moderne Browser */
    word-break: break-word;      /* Erzwingt Umbruch bei langen Wörtern */
    hyphens: auto;               /* Automatische Silbentrennung */
}

/* Speziell für Links in der Datenschutzerklärung */
.contact-wrapper a {
    word-break: break-all; /* Links dürfen überall umgebrochen werden */
    display: inline-block; /* Hilft manchmal bei Umbrüchen */
    max-width: 100%;
}

/* Sicherstellen, dass Listenpunkte nicht rausstehen */
.contact-wrapper ul, .contact-wrapper ol {
    padding-left: 20px; /* Genug Platz für die Punkte lassen */
    max-width: 100%;
}
}