:root {
    /* Farbpalette */
    --primary-color: #0056b3; /* Technisches Blau */
    --primary-dark: #004494;
    --accent-color: #ffc107; /* Gold/Gelb als Handwerks-Akzent */
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --text-grey: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-dark: #222222;
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.15);
}

/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline-white:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    height: 90vh; /* Etwas kürzer für den Schnitt-Effekt */
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,86,179,0.4)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    /* Placeholder Image: Engineering/Craftsman abstract */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 70px; /* Offset for fixed nav */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); /* Diagonaler Schnitt unten */
    margin-bottom: -50px; /* Damit der nächste Bereich reinrutscht */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-grey);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.about-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    /* Coole "Blob"-Form statt Rechteck */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
    transition: all 0.5s ease-in-out;
    animation: blob-bounce 10s ease-in-out infinite;
}

@keyframes blob-bounce {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.about-text h4 {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 2rem;
    background-color: rgba(0, 86, 179, 0.1);
    padding: 15px;
    border-radius: 50%;
    line-height: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Cards - Modern & Clean */
.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px; /* Stärker gerundet */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Weicher, großer Schatten */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Effekt */
    text-align: left;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* Project Carousel */
.carousel-wrapper {
    position: relative;
    padding: 20px 0;
}

.project-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px; /* Space for scrollbar if visible/shadows */
    scrollbar-width: none; /* Firefox hide scrollbar */
    -ms-overflow-style: none;  /* IE 10+ */
    scroll-behavior: smooth;
}

.project-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari hide scrollbar */
}

.project-card {
    flex: 0 0 85%; /* Mobile: Card takes almost full width */
    max-width: 500px;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .project-card {
        flex: 0 0 45%; /* Desktop: See 2 cards at once */
    }
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Glassmorphism Info Box */
.project-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.4;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

@media (max-width: 768px) {
    .carousel-btn { display: none; } /* Hide buttons on mobile, swipe is better */
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 2rem;
}

.cta-section p {
    max-width: 600px;
    margin: 10px auto 30px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 50px;
}

.contact-info h2 {
    color: var(--text-light);
}

.contact-info p {
    color: #bbb;
    margin-bottom: 30px;
}

.contact-image-wrapper {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.contact-image-wrapper:hover .contact-image {
    transform: scale(1.05);
}

.info-item {
    margin-bottom: 30px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: #111;
    color: #888;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-logo span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary-color);
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #888;
    margin: 0 15px;
    font-size: 0.9rem;
}

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

.copyright {
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* In a real project, we'd add a mobile hamburger menu here */
    }
    
    .navbar .container {
        justify-content: center;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px;
    }
}