/* --- CSS Variablen & Globales Reset --- */
:root {
    --primary-color: #e72512;
    --primary-dark: #b3050f;
    --ci-dark: #373535;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --section-spacing: 5rem 5%;
}

/* Fonts Integration */
@font-face { font-family: 'Inter'; src: local('Inter'), url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: local('Inter Bold'), url('../fonts/inter-v20-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--white); background-color: var(--ci-dark); }

h1, h2, h3, h4 { color: var(--white); font-weight: 700; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary-color); margin: 15px auto 0; }

img { max-width: 100%; height: auto; display: block; }
section { padding: var(--section-spacing); background-color: var(--ci-dark); }

/* --- BUTTONS (Explizit definiert, um globale Links zu überschreiben) --- */
.btn, a.btn, a.btn:link, a.btn:visited {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: 0.3s;
}

.btn:hover, a.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white) !important;
}

.btn-outline, a.btn-outline, a.btn-outline:link, a.btn-outline:visited {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: 0.3s;
}

.btn-outline:hover, a.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.sticky-cta {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 5%; 
    background: var(--ci-dark); 
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.logo img { height: 50px; width: auto; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }

.nav-links a, .nav-links a:link, .nav-links a:visited { 
    color: var(--white) !important; 
    font-weight: 500; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    text-decoration: none !important;
}

.nav-links a:hover { color: var(--primary-color) !important; }

.menu-toggle { display: none; cursor: pointer; font-size: 2rem; color: var(--white); }

/* --- HERO SECTION --- */
.hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 80vh; 
    min-height: 500px;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start;
    color: var(--white); 
    padding: 0 5%;
}
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; max-width: 800px; color: var(--white); }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; }

/* --- CONTENT SECTIONS --- */
.bg-gray { background-color: var(--ci-dark); }

.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.usp-item { padding: 2rem; background: var(--white); border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-bottom: 3px solid transparent; transition: 0.3s; color: var(--text-color); }
.usp-item h4 { color: var(--ci-dark); }
.usp-item:hover { transform: translateY(-5px); border-bottom: 3px solid var(--primary-color); }
.usp-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }

.category-block { margin-bottom: 5rem; }
.category-header { margin-bottom: 2rem; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.category-header h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 1rem; }
.category-header p { font-size: 1.1rem; color: #ccc; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.gallery-item { background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; transition: transform 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.img-caption { background-color: var(--primary-color); color: var(--white); padding: 10px 5px; text-align: center; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); color: var(--text-color); }
.testimonial-card h4, .testimonial-card .testimonial-author { color: var(--ci-dark); }
.stars { color: #FFD700; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 1.5rem; }
.testimonial-author { font-weight: 700; display: flex; align-items: center; }
.google-icon { width: 24px; margin-right: 10px; }

.team-locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.location-block { background: var(--white); padding: 2.5rem; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-top: 4px solid var(--primary-color); color: var(--text-color); }
.location-block h4 { color: var(--ci-dark); }
.team-member { display: flex; align-items: center; margin-bottom: 2rem; }
.profile-pic { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); margin-right: 20px; }
.team-info h4 { font-size: 1.3rem; margin-bottom: 5px; }
.team-info span { color: var(--primary-color); font-weight: 600; }
.location-details p { margin-bottom: 10px; display: flex; align-items: center; color: var(--text-light); }
.location-details i { color: var(--primary-color); margin-right: 10px; font-size: 1.2rem; }
.map-container iframe { width: 100%; height: 250px; border: 0; border-radius: 4px; margin-top: 20px; background: #ddd; }

/* --- KONTAKT & FORMULAR --- */
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-intro p { color: #ccc; }
.contact-methods a, .contact-methods a:link, .contact-methods a:visited { 
    display: flex; align-items: center; margin-bottom: 20px; color: var(--white) !important; font-weight: 600; font-size: 1.1rem; text-decoration: none !important; 
}
.contact-methods i { font-size: 1.8rem; color: var(--primary-color); margin-right: 15px; }

.social-icons { display: flex; }
.social-link, a.social-link:link, a.social-link:visited { 
    display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; background: var(--light-gray); color: var(--ci-dark) !important; border-radius: 50%; font-size: 1.5rem; transition: 0.3s; margin-right: 10px; text-decoration: none !important;
}
.social-link:hover { background: var(--primary-color); color: var(--white) !important; }

.contact-form { background: var(--white); padding: 2.5rem; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); color: var(--text-color); }
.contact-form h4 { color: var(--ci-dark); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary-color); }

/* --- FOOTER --- */
footer { background: var(--ci-dark); color: #aaa; padding: 4rem 5% 2rem; border-top: 1px solid #444; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 3rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a, .footer-links a:link, .footer-links a:visited { 
    color: #aaa !important; transition: 0.3s; display: flex; align-items: center; text-decoration: none !important;
}
.footer-links a:hover { color: var(--primary-color) !important; padding-left: 5px; }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #555; font-size: 0.9rem; }
.footer-bottom a, .footer-bottom a:link, .footer-bottom a:visited { color: #aaa !important; margin: 0 10px; text-decoration: none !important; }
.footer-bottom a:hover { color: var(--primary-color) !important; }

/* --- LEGAL CONTENT (Impressum/Datenschutz) --- */
.legal-content { padding: 80px 5%; }
.container-narrow { max-width: 800px; margin: 0 auto; line-height: 1.8; }
.container-narrow h1 { margin-bottom: 30px; text-align: left; }
.container-narrow h1::after { margin: 15px 0 0 0; }
.container-narrow h3 { margin-top: 40px; margin-bottom: 15px; color: var(--primary-color); }
.container-narrow hr { border: 0; border-top: 1px solid #444; margin: 50px 0; }

/* --- GLOBALE LINKS FÜR FLIESSTEXT (Nur wo explizit gewünscht) --- */
/* Diese Regel gilt für Links in Textblöcken, die KEINE Buttons oder Nav-Elemente sind */
.container-narrow a, .usp-item p a, .testimonial-card p a {
    color: var(--primary-color);
    text-decoration: underline;
}
.container-narrow a:hover, .usp-item p a:hover, .testimonial-card p a:hover {
    color: var(--white);
    text-decoration: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .team-locations-grid, .contact-container { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .logo img { height: 40px; } 
    .menu-toggle { display: block; } 
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--ci-dark); flex-direction: column; padding: 20px 0;
        display: none; border-top: 1px solid #444;
    }
    .nav-links.active { display: flex; } 
    .nav-links li { margin: 15px 0; width: 100%; text-align: center; }
    .hero { align-items: center; text-align: center; height: auto; padding: 6rem 5%; }
    .hero h1 { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: 1fr; } 
    .sticky-cta { bottom: 20px; right: 20px; padding: 10px 20px; font-size: 0.9rem; }
}