/* --- style.css --- */

/* --- CSS Variables --- */
:root {
    /* Adjusted Colors for Contrast */
    --primary-color: #0062cc; /* Dunkleres Blau für besseren Kontrast */
    --primary-dark: #004a99;  /* Noch dunkler für Hover/Borders */
    --secondary-color: #495057; /* Dunkleres Grau für Untertitel etc. */
    --light-color: #f8f9fa;
    --light-blue: #eef5ff;
    --dark-color: #2c3e50;
    --text-color: #343a40; /* Etwas dunklerer Basistext */
    --white-color: #fff;
    --success-color: #28a745;
    --warning-color: #ffc107; /* Für Sterne */
    --border-color: #dee2e6;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --base-font-size: 16px;
    --line-height: 1.7;
    --container-width: 1200px;
    --section-padding-y: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* --- Base & Typography --- */
body {
    font-family: var(--font-primary);
    font-size: var(--base-font-size);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Word wrap base - BEIBEHALTEN */
    overflow-wrap: break-word;
    word-wrap: break-word; /* Older browsers fallback */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-color);
    /* Word wrap für Überschriften - BEIBEHALTEN */
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Hyphens ENTFERNT */
    /* -webkit-hyphens: auto; */
    /* -moz-hyphens: auto; */
    /* -ms-hyphens: auto; */
    /* hyphens: auto; */
}

h1 { font-size: calc(1.8rem + 1.5vw); } /* Responsive H1 */
h2 { font-size: calc(1.5rem + 1vw); } /* Responsive H2 */
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
     /* Word wrap für Paragraphen - BEIBEHALTEN */
     overflow-wrap: break-word;
     word-wrap: break-word;
     /* Hyphens ENTFERNT */
     /* -webkit-hyphens: auto; */
     /* -moz-hyphens: auto; */
     /* -ms-hyphens: auto; */
     /* hyphens: auto; */
}

a {
    color: var(--primary-color); /* Using the darker blue */
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    /* Word wrap for links - BEIBEHALTEN */
    overflow-wrap: break-word;
    word-wrap: break-word;
}
a:hover { color: var(--primary-dark); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow-medium); }

/* --- Layout & Container --- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.col-lg-4, .col-lg-6, .col-md-6 { padding-left: 15px; padding-right: 15px; width: 100%; margin-bottom: 30px; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .align-items-center { align-items: center; }
    .col-lg-4, .col-lg-6, .col-md-6 { margin-bottom: 0; }
}
.text-center { text-align: center; }
.centered { margin-left: auto; margin-right: auto; }

/* --- Header --- */
.header { background-color: rgba(255, 255, 255, 0.95); padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.08); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { font-size: 1.6rem; font-weight: 700; color: #004a99; /* Darker brand color */ text-decoration: none; display: flex; align-items: center; }
.navbar-brand img { height: 45px; margin-right: 10px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; }
.nav-links { list-style: none; margin: 0; padding: 0; display: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.mobile-menu-toggle { display: block; background: none; border: none; font-size: 2rem; cursor: pointer; color: #333; margin-left: 15px; }
.btn-nav-call { /* Base styles for the nav call button */
     padding: 8px 18px;
     font-size: 0.9rem;
     margin-left: 15px;
     color: var(--white-color); /* Ensure text is white initially */
}
.btn-nav-call i { margin-right: 5px; }

@media (min-width: 992px) {
    .nav-links { display: flex; }
    .mobile-menu-toggle { display: none; }
}
@media (max-width: 991.98px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow-light);
        padding: 15px 0;
        flex-direction: column;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .nav-links a { padding: 10px 20px; display: block; }
    .btn-nav-call { margin: 10px auto; display: inline-block; }
}

/* --- Hero Section --- */
.hero { position: relative; background-color: #eef5ff; padding: 180px 0 100px; text-align: center; margin-top: 75px; overflow: hidden; }
.hero-background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.1; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-family: 'Poppins', Arial, sans-serif; font-size: 3rem; margin-bottom: 20px; font-weight: 700; color: #2c3e50; line-height: 1.3; animation: fadeInDown 1s ease-out; }
.hero p.subtitle { font-family: 'Poppins', Arial, sans-serif; font-size: 1.3rem; margin-bottom: 35px; color: var(--secondary-color); max-width: 700px; margin-left: auto; margin-right: auto; animation: fadeInUp 1s ease-out 0.3s; animation-fill-mode: backwards; }
.hero .btn { animation: pulse 2s infinite ease-in-out 1s; }
.hero-trust-icons { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 30px; animation: fadeInUp 1s ease-out 0.6s; animation-fill-mode: backwards;}
.hero-trust-icons span { font-size: 0.9rem; color: #495057; display: inline-flex; align-items: center; }
.hero-trust-icons i { color: var(--primary-color); margin-right: 8px; font-size: 1.1em; }

/* --- General Section Styling --- */
.section-padding { padding: var(--section-padding-y) 0; }
.bg-light { background-color: var(--light-color); }
.bg-gradient { background: linear-gradient(45deg, var(--primary-color), var(--primary-dark)); }

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-blue);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-tag.text-center { display: table; margin-left: auto; margin-right: auto; margin-bottom: 15px; }

.section-title { margin-bottom: 15px; }
.section-subtitle {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 45px;
    color: var(--secondary-color); /* Using the darker grey */
    font-size: 1.05rem;
}
.section-title.text-center + .section-subtitle { margin-top: -5px; }

/* --- About Section --- */
.features-list { list-style: none; padding-left: 0; margin-top: 25px; }
.features-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}
.features-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3em;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.features-list li div {
    flex-grow: 1;
}
.features-list li strong {
    color: var(--dark-color);
    margin-right: 5px;
}
#about img { border: 5px solid var(--white-color); box-shadow: var(--shadow-medium); }

/* --- Services Section --- */
.service-card {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--light-blue));
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(0, 98, 204, 0.1); /* Adjusted shadow color */
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--dark-color); font-weight: 600; }
.service-card p { font-size: 0.95rem; color: var(--secondary-color); flex-grow: 1; margin-bottom: 20px; }
.service-link {
     font-weight: 600;
     font-size: 0.9rem;
     color: var(--primary-dark); /* Ensure links are dark enough */
}
.service-link:hover { color: #003d7a; } /* Even darker on hover */
.service-link i { margin-left: 5px; }

/* --- Testimonials Section --- */
.testimonial-card {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    position: relative;
    margin-bottom: 20px;
    height: calc(100% - 20px);
    box-shadow: var(--shadow-light);
}
.testimonial-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: -15px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.15;
}
.testimonial-rating { margin-bottom: 15px; color: var(--warning-color); font-size: 1.1rem; }
.testimonial-rating i { margin-right: 2px; }
.testimonial-text { font-style: italic; color: #495057; /* Darker grey */ margin-bottom: 20px; }
.testimonial-author { font-weight: 600; color: var(--dark-color); font-size: 0.95rem; }

/* --- CTA Section --- */
.cta-section { color: var(--white-color); }
.cta-title { color: var(--white-color); font-size: 2rem; margin-bottom: 15px; }
.cta-text { max-width: 700px; margin: 0 auto 30px; opacity: 0.9; font-size: 1.1rem; }
.cta-section .btn { margin: 5px; }
.btn-light { background-color: var(--white-color); color: var(--primary-dark); border: 2px solid var(--white-color); }
.btn-light:hover { background-color: transparent; color: var(--white-color); }
.btn-outline-light { background-color: transparent; color: var(--white-color); border: 2px solid var(--white-color); }
.btn-outline-light:hover { background-color: var(--white-color); color: var(--primary-dark); }

/* --- Contact Section --- */
.contact-details-list { list-style: none; padding: 0; margin: 25px 0; }
.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 1.1rem;
}
.contact-details-list li i {
     margin-top: 3px;
     color: var(--primary-color);
     font-size: 1.6em;
     margin-right: 18px;
     width: 30px;
     text-align: center;
     flex-shrink: 0;
}
.contact-details-list li div {
    flex-grow: 1;
}
.contact-details-list li strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 600;
}
.contact-link-main {
     font-weight: 600;
     font-size: 1.2rem;
     color: var(--primary-dark); /* Ensure contact links are dark enough */
}
.contact-link-main:hover { color: #003d7a; } /* Darker on hover */

.service-areas-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service-area-tag {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.map-placeholder img { border-radius: var(--border-radius); box-shadow: var(--shadow-light); width: 100%; height: auto; max-height: 350px; object-fit: cover;}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 40px; gap: 30px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-logo { max-width: 180px; margin-bottom: 15px; height: auto; }
.footer h4 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #ccc; transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease; }
.footer ul li a:hover { color: var(--white-color); padding-left: 5px; }
.footer p { margin-bottom: 10px; }
.footer p i { margin-right: 8px; color: var(--primary-color); width: 15px; text-align: center;}
.footer p a { color: #ccc; }
.footer p a:hover { color: var(--white-color); }
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* --- Buttons --- */
.btn {
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    letter-spacing: 0.5px;
}
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-primary { background: linear-gradient(45deg, var(--primary-color), var(--primary-dark)); color: white; box-shadow: 0 4px 15px rgba(0, 98, 204, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 98, 204, 0.4); }
.btn-secondary { background-color: var(--secondary-color); color: white; box-shadow: 0 4px 15px rgba(73, 80, 87, 0.2); }
.btn-secondary:hover { background-color: #5a6268; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(73, 80, 87, 0.3); }
.btn i { margin-right: 8px; }

/* --- Accessibility Contrast Fix for Nav Button --- */
.btn-nav-call,
a.btn-nav-call { /* Ensure specificity and cover the anchor tag */
    background-color: #3F454A !important; /* Even darker grey - Contrast Ratio ~5.9:1 with white text */
    color: var(--white-color) !important; /* Ensure text is white */
    border: none; /* Remove potential border inherited from btn-secondary */
}
.btn-nav-call:hover,
a.btn-nav-call:hover {
    background-color: #2c3034 !important; /* Darker shade for hover */
    color: var(--white-color) !important; /* Ensure text remains white on hover */
}
/* Override general button secondary styles if needed for shadow */
.btn-secondary.btn-nav-call {
     box-shadow: 0 4px 15px rgba(63, 69, 74, 0.2);
}
.btn-secondary.btn-nav-call:hover {
    box-shadow: 0 6px 20px rgba(63, 69, 74, 0.3);
    transform: translateY(-2px); /* Keep hover effect */
}


/* --- Animations --- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 98, 204, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0, 98, 204, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 98, 204, 0.3); }
}
.pulse { animation: pulse 2s infinite ease-in-out; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
    z-index: 999;
}
.back-to-top:hover { background-color: var(--primary-dark); transform: scale(1.1); }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .hero { padding: 120px 0 60px; margin-top: 70px; }
    .hero h1 { line-height: 1.4; }
    .hero p.subtitle { font-size: 1.1rem; }
    .section-padding { padding: 60px 0; }
    .col-lg-6.text-center img { margin-top: 30px; }
     .service-card { margin-bottom: 25px; }
     .testimonial-card { margin-bottom: 25px; height: auto; }
     .footer-content { flex-direction: column; text-align: center; }
     .footer-col { min-width: unset; margin-bottom: 30px; }
     .footer h4::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding: 100px 0 50px; }
    .hero p.subtitle { font-size: 1rem; }
    .btn-lg { padding: 14px 30px; font-size: 1rem; }
    .hero-trust-icons { gap: 10px 20px; }
    .hero-trust-icons span { font-size: 0.85rem; }
     .contact-details-list li { font-size: 1rem; }
     .contact-details-list li i { font-size: 1.4em; margin-right: 15px; }
     .contact-link-main { font-size: 1.1rem; }
     .footer-col { margin-bottom: 25px; }
     .features-list li { align-items: flex-start;}
     .features-list i { margin-top: 4px;}
     .contact-details-list li { align-items: flex-start; }
     .contact-details-list li i { margin-top: 5px; }
}

/* --- Lazy Load Placeholder --- */
img[loading="lazy"] {
   background-color: #eee;
}