/* ===== CSS RESET & VARIABLES ===== */
:root {
    /* Color Palette - Professional & Clean */
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --secondary-color: #00A86B;
    --secondary-dark: #008957;
    --accent-color: #FF6B35;
    --light-color: #F8F9FA;
    --dark-color: #2C3E50;
    --text-color: #333333;
    --text-light: #6C757D;
    --border-color: #E9ECEF;
    --white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --header-height: 80px; /* Neue Variable für Header-Höhe */
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Für Anchor Links */
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: var(--header-height); /* Wichtig: Padding für fixed Header */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.btn-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
}

header.scrolled {
    height: calc(var(--header-height) - 10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-weight: 500;
    position: relative;
}

.nav-item a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-item:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
    background: none;
    border: none;
    padding: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 40px; /* Reduziert, da body bereits Padding hat */
    padding-bottom: 100px;
    min-height: calc(100vh - var(--header-height)); /* Viewport minus Header */
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 20px;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== SPECIALTIES SECTION ===== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.specialty-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition-fast);
}

.specialty-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* ===== PROCESS SECTION ===== */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--light-color);
}

.cta-box {
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ===== PAGE SPECIFIC ===== */
.page-header {
    padding-top: calc(var(--header-height) + 60px); /* Header-Höhe + Padding */
    padding-bottom: 60px;
    background-color: var(--light-color);
    margin-top: calc(-1 * var(--header-height)); /* Kompensation für body padding */
}

.page-content {
    padding: 60px 0;
}

.content-block {
    margin-bottom: 60px;
}

.service-detail {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-contact h3,
footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-contact h3:after,
footer h3:after {
    background-color: var(--secondary-color);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== MOBILE NAVIGATION CORRECTIONS ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .service-detail {
        padding: 30px 20px;
    }
    
    /* Verbesserte Hero-Section für Mobile */
    .hero {
        padding-top: 20px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-top: 10px;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-steps:before {
        display: none;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 70px; /* Kleinere Header-Höhe auf Mobile */
    }
    
    .section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .contact-form,
    .cta-box {
        padding: 30px 20px;
    }
    
    .page-header {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 40px;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Bessere Abstände für Mobile */
    .hero-content {
        padding-top: 10px;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}