/* --- GLOBALE VARIABLEN & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --black: #000000;
    --near-black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --border: #e5e5e5;
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--near-black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    background: var(--black);
    color: var(--white);
    padding: 4px 12px;
    font-weight: 400;
    font-size: 0.9rem;
}
.logo-img {
    max-height: 40px; /* Hier kannst du die Größe deines Logos steuern */
    width: auto;      /* Breite passt sich automatisch an, damit es nicht verzerrt */
    display: block;
    /* Hier passiert die Magie: 1.3 bedeutet 30% rangezoomt */
    transform: scale(2.7); 
    /* Falls es nach rechts/links rückt beim Zoomen, kannst du den Ursprung anpassen: */
    transform-origin: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--near-black);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 0.5;
}

/* --- HERO SECTIONS --- */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--white);
    padding-top: 80px;
}

.hero-content {
    padding: 0 15%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--black);
}

.hero p {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #555;
    max-width: 450px;
}

.hero-image {
    height: 100%;
    background: url('assets/pexels-mathias-reding-7108780.jpg') center/cover;
}

.sub-hero {
    padding: 200px 8% 100px 8%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.sub-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--black);
    max-width: 900px;
    line-height: 1.1;
}

/* --- TYPOGRAFIE & BUTTONS --- */
.tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #999;
    display: block;
    margin-bottom: 15px;
}

.btn-black {
    padding: 18px 45px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transition: var(--transition);
}

.btn-black:hover {
    background: #333;
    transform: translateY(-3px);
}

.btn-outline {
    padding: 18px 45px;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* --- SECTIONS (Startseite) --- */
.section {
    padding: 140px 8%;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--white);
    padding: 80px 40px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--light-gray);
}

.service-card i {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--black);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* --- DEZENTE REFERENZEN (FÜR JUNGE FIRMEN) --- */
.modest-portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 8% 140px 8%;
}

.portfolio-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.portfolio-text p {
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.portfolio-image {
    height: 500px;
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&q=80&w=2070') center/cover;
}
/* --- IMAGE SECTION (BAUSTELLE / PRAXIS) --- */
.image-section {
    display: flex;
    background: var(--black);
    color: white;
    align-items: center;
    flex-wrap: wrap;
}

.image-content {
    flex: 1;
    padding: 100px 8%;
    min-width: 400px;
}

.image-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 30px;
}

.image-visual {
    flex: 1;
    min-width: 400px;
    height: 700px;
    background: url('assets/baustelle2.avif') center/cover;
    /* Hochwertige Baustellen-Architektur */
}
/* --- LEISTUNGEN DETAIL --- */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    min-height: 600px;
}

.service-row:nth-child(even) { direction: rtl; }
.service-row:nth-child(even) .service-text { direction: ltr; }

.service-text {
    padding: 100px 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-image {
    background-size: cover;
    background-position: center;
}

/* --- RECHTLICHES (Datenschutz Boxen & Impressum) --- */
.legal-section {
    padding: 0 8% 120px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.legal-block {
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.legal-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.privacy-grid {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    background-color: var(--light-gray);
}

.privacy-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 50px 40px;
    transition: var(--transition);
}

.privacy-box:hover {
    border-color: var(--black);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.privacy-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

/* --- KONTAKT & FOOTER --- */
.contact-bar {
    padding: 100px 8%;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
}

.info-item strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #999;
}

.info-item p {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

footer {
    padding: 60px 8%;
    background: var(--white);
    color: #aaa;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--black);
}

/* --- COOKIE BANNER --- */
.cookie-overlay {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 20px 8%; z-index: 2000; display: none;
    animation: slideUp 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.cookie-content {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto; gap: 40px;
}

.btn-cookie {
    padding: 12px 30px; background: var(--black); color: var(--white);
    border: none; font-size: 0.75rem; font-weight: 600; cursor: pointer;
    text-transform: uppercase; letter-spacing: 2px;
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* =========================================
   RESPONSIVE DESIGN (Tablet & Mobile)
   ========================================= */

/* --- TABLET (Bildschirme kleiner als 992px) --- */

@media (max-width: 992px) {
    /* Hero Section anpassen: Text oben, Bild unten */
    .hero { 
        grid-template-columns: 1fr; 
        text-align: center;
        padding-top: 120px;
        height: auto; /* Wichtig: Verhindert, dass Text und Bild übereinanderlappen */
        min-height: 100vh;
    }
    .hero-content { 
        padding: 0 5%; 
        margin-bottom: 50px; /* Abstand zum Bild */
    }
    
    /* BILD WIEDER EINBLENDEN FÜR MOBILE */
    .hero-image { 
        display: block; 
        width: 100%;
        height: 400px; /* Feste Höhe für Handys und Tablets */
    }
    
    .hero h1, .sub-hero h1 { font-size: 3rem; }
    
    /* Grids von 3 oder 2 Spalten auf 1 Spalte umbrechen */
    .services-grid, 
    .service-row, 
    .modest-portfolio, 
    .legal-section { 
        grid-template-columns: 1fr; 
    }
    
    /* Service-Texte (Leistungen) anpassen */
    .service-row:nth-child(even) { direction: ltr; }
    .service-text { padding: 60px 8%; text-align: center; }
    .service-list li { justify-content: flex-start; text-align: left; }
    .service-image { height: 400px; }
    
    /* Kontaktbereich untereinander anordnen */
    .contact-grid { flex-direction: column; gap: 40px; }
    
    /* Cookie Banner auf Tablet/Mobile anpassen */
    .cookie-content { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* --- MOBILE (Bildschirme kleiner als 768px) --- */
@media (max-width: 768px) {
    /* Navigation für Handys optimieren */
    nav { padding: 15px 5%; flex-direction: column; gap: 15px; }
    .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; }
    
    /* Abstände verkleinern, damit man auf dem Handy nicht endlos scrollt */
    .section, .privacy-grid, .contact-bar { padding: 80px 5%; }
    .sub-hero { padding: 150px 5% 60px 5%; text-align: center; }
    
    /* Schriftgrößen für Handys reduzieren */
    .hero h1, .sub-hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    
    /* Footer zentrieren und untereinander anzeigen */
    footer { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center; 
        padding: 40px 5%; 
    }
}
