/* =================================================================
   1. GLOBALE STILE & KONFIGURATION
   (Schriftarten, Variablen, Body, globale Container)
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Maitree:wght@400;700&family=Lato:wght@300;400;700&family=Poppins:wght@400;600&family=Futura:wght@400&display=swap');

/* CSS Variablen für einheitliche Farben */
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --secondary-color: #6c757d;
    --default-bg: #f8f9fa;
    --default-border: #dee2e6;
    --default-hover-bg: #e2e6ea;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover-color: rgba(0, 0, 0, 0.12);
    --dark-color: #000;
    --light-color: #fff;
    --text-color: #333;
    --background-color: #f4f4f4;
}

/* Globale Regel für konsistente Box-Modell-Berechnung */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    margin: 0;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Abstand zwischen den Button-Gruppen */
    width: 100%;
    max-width: 800px;
}

h2 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    width: 100%;
}


/* =================================================================
   2. GLOBALE KOMPONENTEN
   (Header, Footer, Buttons, Nachrichten - gelten für die ganze Seite)
   ================================================================= */

/* --- 2.1 Header & Navigation --- */
#SITE_HEADER {
    background-color: var(--dark-color);
    padding: 10px 5%;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}
.header-hidden { transform: translateY(-100%); top: 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo-image, .logo-img { height: 60px; }
.nav-container { display: flex; align-items: center; gap: 20px; } /* Hält nav und Buttons zusammen */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav li { margin-left: 35px; position: relative; }
.main-nav a { text-decoration: none; color: #ccc; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color: var(--light-color); }
a.contact-button, a.mitarbeiter-button, a.logout-button { color: var(--light-color); padding: 12px 25px; text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 600; border-radius: 5px; transition: background-color 0.3s; }
a.contact-button { background-color: var(--primary-color); }
a.contact-button:hover, a.contact-button.active { background-color: var(--primary-hover-color); }
a.mitarbeiter-button { background-color: var(--secondary-color); }
a.logout-button { background-color: var(--danger-color); }
.menu-toggle { display: none; cursor: pointer; background: none; border: none; padding: 10px; z-index: 1002; }
.menu-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px 0; background-color: var(--light-color); transition: all 0.3s ease-in-out; }

/* --- 2.2 Globales Button & Nachrichten-System --- */
.btn, a.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap; border: 2px solid transparent; background-color: transparent; transition: all 0.2s ease-in-out; box-shadow: 0 1px 3px var(--shadow-color); }
.btn:hover, a.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px var(--shadow-hover-color); }
.btn:active, a.btn:active { transform: translateY(0); box-shadow: 0 1px 3px var(--shadow-color); }
.btn-default, a.btn-default { color: var(--dark-color); background-color: var(--default-bg); border-color: var(--default-border); }
.btn-default:hover, a.btn-default:hover { background-color: var(--default-hover-bg); border-color: #ced4da; color: var(--dark-color); }
.btn-primary, a.btn-primary { border-color: var(--primary-color); color: var(--primary-color); }
.btn-primary:hover, a.btn-primary:hover { background-color: var(--primary-color); color: var(--light-color); }
.btn-success, a.btn-success { border-color: var(--success-color); color: var(--success-color); }
.btn-success:hover, a.btn-success:hover { background-color: var(--success-color); color: var(--light-color); }
.btn-danger, a.btn-danger { border-color: var(--danger-color); color: var(--danger-color); }
.btn-danger:hover, a.btn-danger:hover { background-color: var(--danger-color); color: var(--light-color); }
.btn-secondary, a.btn-secondary { border-color: var(--secondary-color); color: var(--secondary-color); }
.btn-secondary:hover, a.btn-secondary:hover { background-color: var(--secondary-color); color: var(--light-color); }
.success-message { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 15px; margin-bottom: 20px; border-radius: 5px; text-align: center; }
.error-message { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 15px; margin-bottom: 20px; border-radius: 5px; }

/* --- 2.3 Footer --- */
#SITE_FOOTER { background-color: var(--dark-color); color: #fff; padding: 40px 5%; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.footer-links, .footer-copyright, .footer-logo { flex: 1 1 30%; min-width: 250px; margin: 10px; }
.footer-links { text-align: left; }
.footer-copyright { text-align: center; }
.footer-logo { text-align: right; }
.footer-links p, .footer-copyright p { margin: 0 0 10px; }
.footer-links a { color: #fff; text-decoration: underline; }
.footer-logo img { height: 80px; }

/* --- 2.4 Widgets --- */
.elfsight-app-1e351b62-9772-4e77-b9fb-6d4ba195a95e { position: fixed; bottom: 20px; right: 20px; z-index: 1001; }


/* =================================================================
   3. DESIGN FÜR DIE STARTSEITE (index.html) & ÜBER UNS (about.html)
   ================================================================= */

/* --- Hero & Intro Sektion --- */
.hero-section { position: relative; color: white; text-align: center; height: 60vh; display: flex; align-items: center; justify-content: center; background-color: #2c3e50; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.hero-bg-image { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.hero-text-content { position: relative; z-index: 1; }
.hero-text-content h1 { font-family: 'Maitree', serif; font-size: 4rem; font-weight: 700; margin: 0; }
.hero-text-content p { font-size: 1.5rem; margin-top: 10px; }
.cta-button { background-color: #fff; color: #000; padding: 15px 30px; text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 600; border-radius: 5px; display: inline-block; margin-top: 20px; transition: background-color 0.3s, color 0.3s; }
.cta-button:hover { background-color: #f0f0f0; }
.intro-section { padding: 60px 5%; text-align: center; background-color: #fff; }
.intro-section h2 { font-family: 'Maitree', serif; font-size: 2.5rem; max-width: 800px; margin: 0 auto; }

/* --- Services-Vorschau Sektion (Startseite) --- */
.services-section { display: flex; justify-content: center; gap: 30px; padding: 60px 5%; background-color: #000; color: #fff; flex-wrap: wrap;}
.service-card { background-color: #1a1a1a; padding: 30px; border-radius: 10px; text-align: left; max-width: 350px; }
.service-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; }
.service-card h3 { font-family: 'Maitree', serif; font-size: 1.8rem; margin-top: 20px; }

/* --- About & Solutions Sektion (Startseite & Über uns) --- */
.about-section { display: flex; align-items: center; padding: 80px 5%; background-color: #fff; gap: 50px; flex-wrap: wrap;}
.about-image, .about-text { flex: 1; min-width: 300px;}
.about-image img { width: 100%; border-radius: 10px; }
.about-text h2 { font-family: 'Maitree', serif; font-size: 3rem; }
.image-section img { width: 100%; height: auto; display: block; } /* Stil für about.html */
.solutions-section { display: flex; align-items: center; justify-content: center; padding: 80px 5%; background-color: #fff; gap: 50px; max-width: 1200px; margin: 40px auto; flex-wrap: wrap; }
.solutions-image { flex: 1; min-width: 320px; }
.solutions-image img { width: 100%; height: auto; object-fit: contain; }
.solutions-content { flex: 1.2; padding-left: 20px; min-width: 320px; }
.solutions-content h2 { font-family: 'Maitree', serif; font-size: 2.8rem; margin-bottom: 10px; }
.solutions-content .subtitle { font-family: 'Poppins', sans-serif; font-size: 1.1rem; color: #555; margin-bottom: 30px; }
.solutions-content ul { list-style: none; padding: 0; }
.solutions-content li { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; font-family: 'Lato', sans-serif; }
.checkmark { display: inline-block; width: 24px; height: 24px; margin-right: 15px; background-color: var(--dark-color); border-radius: 50%; position: relative; flex-shrink: 0; }
.checkmark::after { content: ''; position: absolute; left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* --- Kontakt-Sektion (Startseite, unten) --- */
.contact-section { display: flex; padding: 80px 5%; background-color: #f4f4f4; gap: 40px; flex-wrap: wrap;}
.contact-form-container { background-color: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.1); text-align: center; }
.contact-logo { width: 100px; margin-bottom: 20px; }
.contact-form-container h2 { font-family: 'Maitree', serif; font-size: 2.5rem; margin-bottom: 30px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap;}
.form-row input { flex: 1; min-width: 150px;}
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: none; border-bottom: 2px solid #ccc; font-family: 'Lato', sans-serif; font-size: 1rem; transition: border-color 0.3s; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--primary-color); }
.contact-form textarea { height: 120px; resize: vertical; margin-bottom: 20px; }
.submit-button { background-color: #000; color: #fff; padding: 15px 40px; border: none; border-radius: 30px; font-family: 'Poppins', sans-serif; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.submit-button:hover { background-color: #333; }


/* =================================================================
   4. DESIGN FÜR SERVICE-SEITEN (services.html & Detailseiten)
   ================================================================= */

/* --- 4.1 Stile für die Services-Übersichtsseite --- */
.services-hero { position: relative; text-align: center; color: white; }
.services-hero-image { position: relative; height: 400px; background-image: url('Images/Wachmann mit Hund.png'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.services-hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.4); }
.services-hero-text { position: relative; z-index: 1; background-color: rgba(255, 255, 255, 0.9); padding: 20px 40px; max-width: 600px; }
.services-hero-text h1 { font-family: 'Maitree', serif; font-size: 56px; color: #000; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
.service-item { background-color: #fff; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.service-item:hover { transform: translateY(-10px); }
.service-item img { width: 100%; height: 200px; object-fit: cover; }
.service-item h3 { font-family: 'Maitree', serif; font-size: 22px; margin: 20px 20px 10px; }
.service-item p { font-size: 16px; padding: 0 20px; flex-grow: 1; }
.service-button { display: inline-block; background-color: #000; color: #fff; padding: 10px 20px; text-decoration: none; margin: 20px; border-radius: 5px; transition: background-color 0.3s ease; }
.service-button:hover { background-color: #333; }

/* --- 4.2 Stile für Service-Detailseiten --- */
.service-details-section { padding: 80px 40px; background-color: #fff; }
.service-details-content { display: flex; max-width: 1100px; margin: 0 auto; align-items: center; gap: 50px; flex-wrap: wrap; }
.service-image-container { flex: 1; min-width: 300px; }
.service-image-container img { width: 100%; height: auto; display: block; border-radius: 10px; }
.service-text-container { flex: 1.5; min-width: 300px; }
.service-text-container h3 { font-family: 'Maitree', serif; font-size: 32px; margin-top: 0; margin-bottom: 20px; }
.service-text-container p { font-size: 18px; line-height: 1.8; }
.cta-section { background-color: #f0f4f7; text-align: center; padding: 60px 20px; }
.cta-section h2 { font-family: 'Maitree', serif; font-size: 48px; margin-top: 0; margin-bottom: 30px; }


/* =================================================================
   5. DESIGN FÜR DIE KONTAKTSEITE (contact.html) - AKTUALISIERT
   ================================================================= */
.contact-page-section {
    padding: 80px 20px;
    background-color: var(--background-color);
    font-family: 'Poppins', sans-serif;
}
.contact-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
}
.contact-content-wrapper h2 {
    font-family: 'Maitree', serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}
.contact-content-wrapper p {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-container {
    display: flex;
    justify-content: center; /* Geändert für Zentrierung */
    gap: 40px;
    text-align: left;
    flex-wrap: wrap; /* Hinzugefügt für besseres Responsive-Verhalten */
}
.contact-info {
    flex: 1;
    min-width: 300px; /* Mindestbreite für Umbruch */
    padding-right: 40px;
    border-right: 1px solid var(--default-border);
}
.contact-info h3 {
    font-family: 'Maitree', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p strong {
    font-weight: 600;
    color: var(--text-color);
}
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.contact-form-container {
    flex: 1.5; /* Gibt dem Formular etwas mehr Platz */
    min-width: 300px; /* Mindestbreite für Umbruch */
}
.contact-form-container h3 {
    font-family: 'Maitree', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}
.form-group {
    margin-bottom: 25px;
}
.form-row-split {
    display: flex;
    gap: 20px;
}

.form-row-split > div {
    flex: 1;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--default-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--default-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
textarea {
    resize: vertical;
}
.contact-page-section .submit-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    width: auto;
}
.contact-page-section .submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* =================================================================
   6. DESIGN FÜR RECHTLICHE SEITEN (Impressum, Datenschutz)
   ================================================================= */
.privacy-section, .impressum-section { padding: 70px 20px; background-color: #fff; }
.privacy-content, .impressum-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2, .impressum-content h2 { font-family: 'Maitree', serif; font-size: 38px; margin-bottom: 30px; text-align:center; }
.divider { width: 40px; height: 3px; background-color: #000; margin: 0 auto 30px; }
.privacy-content p, .impressum-content p { font-size: 16px; line-height: 1.7; margin-bottom: 20px; text-align: left; }
.privacy-content p strong, .impressum-content p strong { font-weight: bold; }


/* =================================================================
   7. RESPONSIVE DESIGN (MEDIA QUERIES)
   ================================================================= */

/* --- Tablet-Ansicht und größer (bis 992px) --- */
@media (max-width: 992px) {
    .contact-container { flex-direction: column; align-items: center; gap: 20px; }
    .contact-info { padding-right: 0; border-right: none; border-bottom: 1px solid var(--default-border); padding-bottom: 30px; margin-bottom: 0; box-sizing: border-box; /* width und max-width entfernt */ }
    .contact-form-container { box-sizing: border-box; /* width, max-width und padding-Overrides entfernt */ }
}

/* --- Mobile Ansicht (bis 768px) --- */
@media (max-width: 768px) {
    /* --- Globale Anpassungen --- */
    /*body { padding: 0 15px; }*/
    h1, .hero-text-content h1 { font-size: 2.5rem; }
    h2, .about-text h2, .solutions-content h2, .services-hero-text h1 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    /* --- Mobile Header-Anpassungen (Burger-Menü) --- */
    .header-content { flex-wrap: nowrap; }
    .menu-toggle { display: block; }
    .nav-container { gap: 0; } /* Entfernt den Gap zwischen (jetzt unsichtbarer) Nav und Burger */

    /* Desktop-Buttons im Header ausblenden */
    .header-content > a.contact-button,
    .header-content > a.mitarbeiter-button,
    .header-content > a.logout-button {
        display: none;
    }

    /* Hauptnavigation wird zum mobilen Overlay-Menü */
    .main-nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background-color: var(--dark-color); width: 100%; box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-top: 1px solid #333; transition: transform 0.4s ease-in-out; transform: translateY(0); z-index: -1; box-sizing: border-box; }
    .nav-container.is-active .main-nav { display: flex; z-index: 1001; }
    .main-nav-hidden { transform: translateY(-100%); }
    .main-nav ul { flex-direction: column; width: 100%; align-items: center; }
    .main-nav li { margin: 0; width: 100%; text-align: center; }

    /* Allgemeine Links im mobilen Menü */
    .main-nav a { padding: 20px; display: block; border-bottom: 1px solid #333; width: 100%; }

    /* Spezifische Listenelemente für Buttons im mobilen Menü */
    .main-nav ul li.mobile-contact-button,
    .main-nav ul li.mobile-mitarbeiter-button,
    .main-nav ul li.mobile-logout-button {
        display: block;
        width: 100%;
        padding: 10px 15px 5px 15px; /* Oben/Unten/Seiten */
    }

    /* Spezifische Button-Links im mobilen Menü */
    .main-nav ul li a.contact-button,
    .main-nav ul li a.mitarbeiter-button,
    .main-nav ul li a.logout-button {
        width: 100%;
        padding: 15px; /* Einheitliche Polsterung für alle Buttons */
        border-radius: 5px;
        border-bottom: none; /* Wichtig: Überschreibt den Border von normalen Links */
    }

    /* Hover-Effekte für Konsistenz */
    .main-nav ul li a.mitarbeiter-button:hover { background-color: #5a6268; }
    .main-nav ul li a.logout-button:hover { background-color: #c82333; }

    /* Burger-Icon Animation (Kreuz) */
    .nav-container.is-active .menu-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-container.is-active .menu-toggle .bar:nth-child(2) { opacity: 0; }
    .nav-container.is-active .menu-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- Weitere Seiten-Anpassungen --- */
    .contact-content-wrapper { padding: 30px; }
    .contact-content-wrapper h2 { font-size: 30px; }
    .contact-content-wrapper p { font-size: 16px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links, .footer-copyright, .footer-logo { text-align: center; margin-bottom: 20px; }
    .service-grid { grid-template-columns: 1fr; }
}