/* === Basis-Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Chivo', sans-serif;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #F9F9F9;
    color: #333;
    line-height: 1.6;
}

/* === Header === */
header {
    background-color: #333;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo img {
    filter: invert();
}

nav {
    flex: 2;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #6DB49C;
}

/* Standardmäßig ausblenden */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Nur auf kleinen Bildschirmen einblenden */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        z-index: 1001; /* Damit sie über allem liegt */
    }
}

/* Allgemeine Formatierung für alle H-Überschriften */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;  /* Kein Abstand oberhalb der Überschrift */
    margin-bottom: 0.5em;  /* Etwas Abstand unterhalb der Überschrift */
    font-weight: bold;  /* Fett gedruckte Überschriften */
    line-height: 1.2;  /* Angemessener Zeilenabstand für bessere Lesbarkeit */
    letter-spacing: -0.5px;  /* Leichter Schriftschnitt für bessere Optik */
}

/* Spezifische Größen und Abstände für die einzelnen Überschriften */
h1 {
    font-size: 2em;  /* 2 mal die Standard-Schriftgröße */
    margin-bottom: 0.75em;  /* Etwas mehr Abstand unterhalb */
}

h2 {
    font-size: 1.75em;  /* 1.75 mal die Standard-Schriftgröße */
    margin-bottom: 0.7em;  /* Standardmäßiger Abstand unterhalb */
}

h3 {
    font-size: 1.5em;  /* 1.5 mal die Standard-Schriftgröße */
    margin-bottom: 0.65em;  /* Etwas weniger Abstand */
}

h4 {
    font-size: 1.25em;  /* 1.25 mal die Standard-Schriftgröße */
    margin-bottom: 0.6em;  /* Standardmäßiger Abstand unterhalb */
}

h5 {
    font-size: 1.1em;  /* 1.1 mal die Standard-Schriftgröße */
    margin-bottom: 0.55em;  /* Etwas weniger Abstand */
}

h6 {
    font-size: 1em;  /* Entspricht der Standard-Schriftgröße */
    margin-bottom: 0.5em;  /* Standardmäßiger Abstand unterhalb */
}

/* Hinzufügen von "Whitespace" für ein sauberes Layout */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;  /* Verhindert, dass die Überschrift zu lang wird */
    overflow-wrap: break-word;  /* Sorgt für sauberes Umbruchverhalten */
}


/* Allgemeine Formatierung für alle p-Elemente */
p {
    margin-top: 0;  /* Kein Abstand oberhalb des Absatzes */
    margin-bottom: 1em;  /* Standardmäßiger Abstand unterhalb des Absatzes */
    padding: 0;  /* Kein Padding innerhalb des Absatzes */
    font-size: 1em;  /* Normale Schriftgröße */
    line-height: 1.6;  /* Angemessener Zeilenabstand für bessere Lesbarkeit */
    letter-spacing: 0.5px;  /* Leichter Schriftschnitt für bessere Optik */
    /*text-align: left;*/  /* Text linksbündig ausrichten */
    word-wrap: break-word;  /* Verhindert, dass der Text überläuft */
    overflow-wrap: break-word;  /* Sorgt für sauberes Umbruchverhalten */
    white-space: normal;  /* Standardmäßiger Umbruch und Leerzeichen-Handhabung */
}


/* Optional: Für Absätze in einem Blockquote (Zitat) */
blockquote p {
    font-style: italic;  /* Kursiver Text für Zitate */
    margin-left: 1em;  /* Einzug auf der linken Seite */
    margin-right: 1em;  /* Einzug auf der rechten Seite */
    margin-top: 0.5em;  /* Etwas weniger Abstand oben */
    margin-bottom: 0.5em;  /* Etwas weniger Abstand unten */
    border-left: 4px solid #ddd;  /* Visuelle Trennung für Zitate */
    padding-left: 1em;  /* Abstand vom Rand des Zitats */
}





/* === Hero Section === */
#hero {
    background: linear-gradient(135deg, #4087A9, #6DB49C);
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
}

#hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

#hero .hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #6DB49C;
    padding: 15px 30px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #38739B;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(109, 180, 156, 0.4);
}

/* === Sections === */
section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

/* === Services Section === */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background-color: white;
    padding: 20px;
    width: 300px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* === About Section === */
#about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 1.8;
}

/* === Contact Section === */
#contact {
    background: linear-gradient(135deg, rgba(166, 215, 147, 0.6), rgba(85, 158, 163, 0.6));
    color: white;
    border-radius: 10px;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* === Footer === */
footer {
    background-color: #333;
    padding: 40px 20px;
    color: #bbb;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links a {
    color: #559EA3;
    font-weight: bold;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #6DB49C;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-content ul {
    padding-left: 40px;
}

.close-modal {
    background: none;
    border: none;
    color: #666;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Animations === */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px);}
    100% { opacity: 1; transform: translateY(0);}
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        margin-top: 10px;
    }
    nav.open {
        display: flex;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .contact-methods {
        flex-direction: column;
    }
    #hero .hero-content h1 {
        font-size: 2.5rem;
    }
}
