:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #34495e;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset für den fixierten Header */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #d35400;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header & Nav */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

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

/* Hero Section */
#hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

#hero h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.service-card .read-more i{
    font-size: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.service-card:hover .read-more {
    color: var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

#modal-body-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

#modal-body-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#modal-body-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

#modal-body-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#modal-body-content li {
    margin-bottom: 0.5rem;
}

/* About Section */
#about {
    background: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    display: block;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-map-section {
    margin-top: 3rem;
}

.map-consent-card,
.map-shell {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
}

.map-consent-card {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.map-copy {
    flex: 1;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.map-privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.map-privacy-link:hover {
    color: var(--secondary-color);
}

.map-shell {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#leaflet-map {
    width: 100%;
    height: 420px;
}

.is-hidden {
    display: none;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 1rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 1rem;
    }
    .about-content, .contact-container {
        flex-direction: column;
    }
    .map-consent-card {
        flex-direction: column;
        align-items: stretch;
    }
    .map-actions {
        align-items: stretch;
    }
    #hero h2 {
        font-size: 2rem;
    }
    #leaflet-map {
        height: 320px;
    }
}
