/* ==========================================================================
   1. Variables & Base Styles ... (unverändert)
   ========================================================================== */
   :root {
    --primary-color: #005596;
    --secondary-color: #f8f9fa;
    --accent-color: #00a3e0;
    --text-color: #333;
    --light-text: #6c757d;
    --white: #fff;
    --border-color: #dee2e6;
    --dark-bg: #1a2a3a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Montserrat', Arial, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--white); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--accent-color); transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
ul { list-style: none; }
h1, h2, h3 { color: var(--primary-color); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; } h2 { font-size: 2.2rem; } h3 { font-size: 1.6rem; }
p { margin-bottom: 1.25rem; line-height: 1.8; }

/* ==========================================================================
   2. Layout & Container ... (unverändert)
   ========================================================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { padding: 60px 0; margin-top: 90px; }
section { margin-bottom: 80px; }
section:last-child { margin-bottom: 80; }
section h1, section h2 { text-align: center; margin-bottom: 40px; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); padding-bottom: 15px; width: auto; }
section h1:after, section h2:after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: var(--accent-color); }

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 90px; position: relative; }
.logo { display: flex; align-items: center; height: 100%; text-decoration: none; margin-left: 10px; color: var(--primary-color); font-size: 24px; font-weight: 700; }
.logo img { height: 85%; width: auto; object-fit: contain; margin-right: 10px; max-width: 350px; }
.logo span { color: var(--accent-color); }

/* Desktop Navigation */
nav { display: flex; align-items: center; height: 100%; }
nav ul { display: flex; align-items: center; list-style: none; height: 100%; }
nav li { margin-left: 25px; position: relative; height: 100%; display: flex; align-items: center; }
nav a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.3s; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 5px; display: flex; align-items: center; height: 100%; transition: color 0.3s ease; }
nav a:hover, nav a:focus, nav li:hover > a { color: var(--accent-color); }
nav a:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; }

/* Desktop Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 230px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 0 0 4px 4px;
    border-top: 3px solid var(--accent-color);
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* *** MODIFIED: Transition for hover *** */
    transition: opacity 0.2s ease, visibility 0s linear 0.2s, transform 0.2s ease;
}

/* Show dropdown when .active class is added by JS (primarily for mobile click) */
.dropdown.active > .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s; /* Ensure immediate visibility when active */
}

/* *** ADDED: Desktop Hover Effect *** */
@media (min-width: 993px) {
    .dropdown:hover > .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.2s ease, visibility 0s linear 0s, transform 0.2s ease; /* Adjust transition for hover in */
    }
    /* Prevent arrow rotation on desktop hover */
    .dropdown:hover > a.dropdown-toggle::after {
        transform: none; /* Keep arrow pointing down */
    }
    
    .dropdown.active > a.dropdown-toggle::after {
         transform: none; /* Prevent rotation if .active is added */
    }
}

.dropdown-content a { color: var(--text-color); padding: 12px 20px; text-decoration: none; display: block; transition: background-color 0.3s ease, color 0.3s ease; text-transform: none; font-size: 14px; border-bottom: none; height: auto; }
.dropdown-content a:hover, .dropdown-content a:focus { background-color: var(--secondary-color); color: var(--accent-color); text-decoration: none; border-bottom-color: transparent; outline: none; }

/* Dropdown arrow styling */
.dropdown > a.dropdown-toggle::after { content: '▼'; font-size: 10px; margin-left: 8px; display: inline-block; vertical-align: middle; transition: transform 0.3s ease; }
.dropdown.active > a.dropdown-toggle::after { transform: rotate(180deg); } /* Primarily for mobile active state */

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--primary-color); cursor: pointer; padding: 0; margin-right: 10px; height: 44px; width: 44px; display: flex; align-items: center; justify-content: center; z-index: 1002; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-touch-callout: none; outline: none; }
.mobile-menu-toggle:active { transform: scale(1.1); }

/* Overlay für Mobile Menu */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.overlay.active { display: block; opacity: 1; }

/* Language Selector General */
.language-selector { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.language-link { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-color); transition: all 0.3s ease; padding: 5px 10px; border-radius: 4px; opacity: 0.6; cursor: pointer; line-height: 1; border: none; height: auto; }
.language-link:hover { border-bottom-color: transparent; }
.language-link.active { opacity: 1; color: var(--primary-color); font-weight: 700; }
.language-link:hover:not(.active) { opacity: 1; color: var(--accent-color); }
.language-divider { display: inline-block; width: 1px; height: 14px; background-color: var(--border-color); vertical-align: middle; margin: 0; padding: 0; font-size: 0; color: transparent; }
.language-selector.desktop-only { margin-left: 30px; display: flex; }
.language-selector.mobile-only { display: none; }

/* ==========================================================================
   4. Hero Section ... (unverändert)
   ========================================================================== */
.hero { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/bilder/pexels-tima-miroshnichenko-6197121.jpg'); background-size: cover; background-position: center; min-height: 75vh; display: flex; align-items: center; color: var(--white); padding: 60px 0; margin-top: 90px; }
.hero-content { max-width: 800px; padding: 0 20px; text-align: center; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; line-height: 1.2; color: var(--white); }
.hero h1:after { display: none; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; line-height: 1.6; }

/* ==========================================================================
  5. Buttons (Basisstile bleiben erhalten, ggf. leicht angepasst)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--accent-color);
  background-image: linear-gradient(to bottom, var(--accent-color), #0090c8);
  color: var(--white);
  padding: 14px 32px; /* Standard-Padding */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid #007eaa;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.btn:hover,
.btn:focus {
  background-color: var(--primary-color);
  background-image: linear-gradient(to bottom, #00b4f0, var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  color: var(--white);
  outline: none;
  border-bottom-color: #005596;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ==========================================================================
   6. Service Section / Cards ... (unverändert)
   ========================================================================== */
.services, .services-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer; /* Diese Zeile hinzufügen */
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-image { height: 220px; background-size: cover; background-position: center; position: relative; }
.service-image::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 30%; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); }
.service-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.service-content h3 { margin-bottom: 15px; color: var(--primary-color); font-size: 1.4rem; }
.service-content p { margin-bottom: 20px; color: var(--light-text); flex-grow: 1; }
.service-content .btn { margin-top: auto; align-self: center; width: auto; padding: 10px 20px; font-size: 13px; }
.intro-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   7. About Section ... (ANGEPASST für gleiche Höhe von Text und Bild)
   ========================================================================== */
   .about-content {
    display: grid;                     /* Beibehalten */
    grid-template-columns: 1fr 1fr;    /* Beibehalten */
    gap: 50px;                         /* Beibehalten */
    align-items: stretch;              /* GEÄNDERT von 'center' zu 'stretch'. Das sorgt dafür, dass beide Grid-Items (Text-Div und Bild-Div) die gleiche Höhe bekommen. */
}

/* Unverändert */
.about-content > div > ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style: disc;
}
/* Unverändert */
.about-content > div > ul li {
    margin-bottom: 10px;
}

/* Unverändert - Der Container des Bildes. Er wird nun durch align-items: stretch auf die volle Höhe gezogen. */
.about-image {
    border-radius: 8px;             /* Beibehalten */
    overflow: hidden;               /* Beibehalten (Wichtig für border-radius und object-fit) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Beibehalten */
    line-height: 0;                 /* Beibehalten (Verhindert extra Platz) */
    /* HINZUGEFÜGT: Stellt sicher, dass der Container sich korrekt verhält, falls benötigt */
    display: flex; /* Kann helfen, das Bild darin einfacher zu steuern */
}

/* Angepasst - Das Bild selbst muss nun die Höhe des Containers füllen */
.about-image img {
    display: block;                 /* HINZUGEFÜGT/SICHERGESTELLT - Verhindert Leerraum unter dem Bild */
    width: 100%;                    /* HINZUGEFÜGT/SICHERGESTELLT - Füllt die Breite des Containers */
    height: 100%;                   /* HINZUGEFÜGT/SICHERGESTELLT - Füllt die Höhe des Containers (die jetzt durch 'stretch' bestimmt wird) */
    object-fit: cover;              /* HINZUGEFÜGT - Skaliert das Bild, um den Container zu füllen, ohne Verzerrung (schneidet ggf. ab) */
    transition: transform 0.5s ease; /* Beibehalten - für den Hover-Effekt */
}

/* Unverändert - Der Hover-Effekt */
.about-image:hover img {
    transform: scale(1.05);         /* Beibehalten */
}

/* ==========================================================================
  8. Contact Form *** (MODIFIZIERT/ERWEITERT) ***
   ========================================================================== */

.contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

/* ... (Styles für form-group, label, input, etc. bleiben unverändert) ... */
.form-group { margin-bottom: 25px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary-color); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; background-color: var(--white); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0,163,224,0.1); }
textarea { min-height: 250px!important; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd' /%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
input[type="checkbox"] { width: auto; margin-right: 8px; vertical-align: middle; }
.form-group label a { text-decoration: underline; }
.form-group label a:hover { color: var(--primary-color); }
::placeholder { color: #aaa; opacity: 1; font-size: 0.95em; }


/* Spezifische Stile für den Submit-Button im Kontaktformular */
.contact-form button[type="submit"] {
  display: block; /* Hinzugefügt, um margin: auto zu aktivieren */
  /* Vererbt align-items, justify-content, etc. von .btn wird hier weniger relevant */
  background-color: var(--dark-bg); /* Footer-Hintergrundfarbe */
  background-image: none; /* Keinen Gradienten */
  color: var(--white); /* Weißer Text für Kontrast */
  border: none; /* Kein extra Rand oben/seitlich */
  border-bottom: 2px solid #111e29; /* Dunklerer Rand unten für Tiefe */
  padding: 14px 32px; /* Standard-Padding wiederherstellen */
  margin: 20px auto 0; /* Zentriert den Button horizontal */
  width: auto;
  min-width: 200px;
  /* Überschreibt ggf. spezifischere .btn Stile, falls nötig */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Evtl. Schatten anpassen */
}

/* Hover/Focus für den spezifischen Submit-Button */
.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus {
  background-color: #2c4a68; /* Helleres Grau/Blau für Hover */
  background-image: none;
  border-bottom-color: #1a2a3a; /* Passend zur neuen Hover-Farbe */
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  outline: none;
}

/* Active-State für den spezifischen Submit-Button */
.contact-form button[type="submit"]:active {
  background-color: #111e29; /* Noch dunkler beim Klicken */
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* Angepasster Stil für den deaktivierten Button (unverändert, passt noch) */
button:disabled,
button[disabled] {
  background-color: #cccccc !important;
  background-image: none !important;
  color: #888888 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  border-bottom: 2px solid #aaaaaa !important;
}


/* Spinner-Anpassung im Ladezustand (kein Icon mehr da) */
button .fa-spinner {
  margin-right: 10px; /* Beibehaltung des Abstands zum Text */
  font-size: 1em;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.popup-message { position: fixed; top: 20px; right: 20px; z-index: 10000; opacity: 0; transform: translateX(100%); transition: opacity 0.3s ease, transform 0.3s ease; max-width: 400px; width: calc(100% - 40px); }
.popup-message.show { opacity: 1; transform: translateX(0); }
.popup-content { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); background: var(--white); border-left: 5px solid; }
.popup-success .popup-content { border-color: #28a745; }
.popup-error .popup-content { border-color: #dc3545; }
.popup-message i { font-size: 24px; flex-shrink: 0; }
.popup-success i { color: #28a745; }
.popup-error i { color: #dc3545; }
.popup-message p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-color); }

/* ==========================================================================
   9. Stats Section ... (unverändert)
   ========================================================================== */
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; margin: 60px 0; gap: 20px; }
.stat-item { text-align: center; padding: 20px; flex: 1; min-width: 180px; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--accent-color); margin-bottom: 10px; line-height: 1; }
.stat-label { font-size: 1rem; color: var(--light-text); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   10. Testimonials Section ... (unverändert)
   ========================================================================== */
.testimonials { background-color: var(--secondary-color); padding: 80px 0; }
.testimonial-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; padding: 20px 0; margin: 0; }
.testimonial-card { background-color: var(--white); border-radius: 8px; padding: 40px 30px 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.testimonial-card::before { content: '“'; position: absolute; top: 15px; left: 20px; font-size: 70px; color: rgba(0,163,224,0.1); font-family: Georgia, serif; line-height: 1; z-index: 0; }
.testimonial-text { font-style: italic; margin-bottom: 25px; position: relative; z-index: 1; font-size: 1rem; flex-grow: 1; }
.testimonial-author { font-weight: 600; color: var(--primary-color); margin-bottom: 5px; margin-top: auto; }
.testimonial-company { color: var(--light-text); font-size: 0.9rem; }

/* ==========================================================================
   11. Footer ... (unverändert)
   ========================================================================== */
footer { background-color: var(--dark-bg); color: var(--white); padding: 60px 0 30px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-column h3 { color: var(--white); margin-bottom: 25px; font-size: 18px; position: relative; padding-bottom: 10px; display: inline-block; }
.footer-column h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--accent-color); }
.footer-column h3 a { color: var(--white); text-decoration: none; }
.footer-column h3 a:hover { color: var(--accent-color); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a, .contact-link { color: #b0b0b0; text-decoration: none; transition: color 0.3s ease; font-size: 14px; }
.footer-column ul li a:hover, .contact-link:hover { color: var(--accent-color); text-decoration: underline; }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); border-radius: 50%; color: var(--white); font-size: 18px; transition: all 0.3s ease; text-decoration: none; }
.social-icons a:hover { background-color: var(--accent-color); transform: translateY(-3px); color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: #b0b0b0; }

/* ==========================================================================
   12. Utilities ... (unverändert)
   ========================================================================== */
#google_translate_element { display: none; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }

/* ==========================================================================
   13. Media Queries (Responsive Design)
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 992px) */
@media (max-width: 992px) {
    html { font-size: 15px; }
    .header-container { height: 80px; }
    main { margin-top: 80px; }
    .hero { margin-top: 80px; min-height: auto; padding: 40px 0; }
    .logo img { max-width: 280px; height: 75%; }
    nav ul li.language-item-desktop { display: none !important; }
    .mobile-menu-toggle { display: flex; }
    .language-selector.desktop-only { display: none; }

    /* Mobile Language Selector */
    .language-selector.mobile-only { display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 0; border-top: none; background-color: var(--white); flex-shrink: 0; margin-top: auto; gap: 0; }
    .language-selector.mobile-only .language-link { flex: 1; text-align: center; padding: 5px; font-size: 14px; }
    .language-selector.mobile-only .language-divider { display: inline-block; width: 2px; height: 18px; background-color: var(--light-text); vertical-align: middle; flex-shrink: 0; flex-grow: 0; margin: 0 10px; }

    /* Mobile Navigation Container */
    nav { position: fixed; top: 80px; right: 0; width: 80%; max-width: 300px; height: calc(100vh - 80px); background-color: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1001; transition: transform 0.3s ease; transform: translateX(100%); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
    nav.active { transform: translateX(0); display: flex; }
    nav ul { display: block; list-style: none; margin: 0; padding: 15px 20px; flex-grow: 1; overflow-y: auto; height: auto; }
    nav li { margin: 0; width: 100%; height: auto; display: block; }
    nav a { display: block; padding: 14px 0; font-size: 16px; color: var(--text-color); text-decoration: none; border-bottom: none; height: auto; width: 100%; transition: color 0.3s ease, background-color 0.3s ease; }
    nav a:hover, nav a:focus { color: var(--accent-color); background-color: var(--secondary-color); border-bottom: none; }
    nav a:focus { outline: none; background-color: var(--secondary-color); }

    /* Mobile Dropdown (Click behavior for non-Leistungen) */
    .dropdown { position: relative; }
    .dropdown > a.dropdown-toggle { border-bottom: none; }
    .dropdown > a.dropdown-toggle::after { content: '▼'; float: right; transition: transform 0.3s ease; font-size: 12px; line-height: 1.3; margin-right: 5px; }
    .dropdown.active > a.dropdown-toggle::after { transform: rotate(180deg); }
    .dropdown-content { position: static; display: none; box-shadow: none; border-top: none; border-left: 3px solid var(--accent-color); padding: 5px 0 5px 15px; margin: 0 0 5px 0; background-color: var(--secondary-color); min-width: 100%; border-radius: 0; opacity: 1; visibility: visible; transform: none; transition: none; }
    .dropdown.active > .dropdown-content { display: block; }
    .dropdown-content a { padding: 10px 0; font-size: 15px; border-bottom: none; text-decoration: none; }
    .dropdown-content a:hover, .dropdown-content a:focus { background-color: rgba(0, 163, 224, 0.1); color: var(--accent-color); text-decoration: none; }

    /* *** ADDED: Mobile Default Open for Leistungen *** */
    nav.active li.dropdown.leistungen-dropdown > .dropdown-content {
        display: block; /* Show by default */
    }
    nav.active li.dropdown.leistungen-dropdown > a.dropdown-toggle::after {
        transform: rotate(180deg); /* Keep arrow rotated */
    }

    /* Other adjustments for tablet */
    .about-content { grid-template-columns: 1fr; gap: 30px; }
    .about-content .about-image { order: -1; }
    .services, .services-overview { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .testimonial-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Smaller Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
    html { font-size: 14.5px; }
    .header-container { height: 70px; }
    main { margin-top: 70px; }
    .hero { margin-top: 70px; }
    nav { top: 70px; height: calc(100vh - 70px); }
    .logo img { max-width: 240px; height: 70%; }
    .container { padding: 0 15px; }
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; } h3 { font-size: 1.4rem; }
    section h1, section h2 { margin-bottom: 30px; padding-bottom: 10px; }
    section h1:after, section h2:after { height: 2px; }
    .hero { padding: 30px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 12px 25px; font-size: 13px; }
    .services, .services-overview, .testimonial-container { grid-template-columns: 1fr; gap: 20px; }
    .service-image { height: 200px; }
    .stats-container { margin: 40px 0; }
    .stat-number { font-size: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-column h3 { display: inline-block; }
    .footer-column h3::after { left: 0; width: 100%; }
    .social-icons { justify-content: center; }
    input[type="text"], input[type="email"], input[type="tel"], textarea, select { font-size: 16px; min-height: 44px; padding: 10px 12px; }
    .contact-form { padding: 30px 20px; }
    .btn { padding: 12px 25px; font-size: 13px; }
    .contact-form button[type="submit"] {
        min-width: 180px;
        padding: 12px 25px; /* Padding wie andere Buttons auf dieser Größe */
        width: 100%;
        margin-top: 15px;
    }
    /* Innerhalb Ihrer Media Query für Mobilgeräte */
#contactForm .form-group label input[type="checkbox"][name="datenschutz"] {
  transform: scale(0.8) !important; /* Skalierung leicht erhöht + !important */
  width: 20px !important; /* Alternative: Feste Breite */
  height: 20px !important; /* Alternative: Feste Höhe */
  margin-right: 15px !important;  /* Abstand erhöht + !important */
  vertical-align: middle !important; /* Wichtig für Ausrichtung */
  /* Wählen Sie ENTWEDER transform ODER width/height. Testen Sie beides. */
  /* Kommentieren Sie transform aus, um width/height zu testen und umgekehrt. */
}

#contactForm .form-group label span {
  vertical-align: middle !important; /* Stellt sicher, dass der Text auch vertikal mittig ist */
  /* font-size: 1em !important; */ /* Optional: Schriftgröße anpassen, falls nötig */
}
  
}

/* Small Phones (<= 576px) */
@media (max-width: 576px) {
    html { font-size: 14px; }
    .header-container { height: 65px; }
    main { margin-top: 65px; }
    .hero { margin-top: 65px; }
    nav { top: 65px; height: calc(100vh - 65px); }
    .logo img { max-width: 200px; height: 65%; }
    .logo { font-size: 20px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .btn { padding: 10px 20px; font-size: 12px; }
    h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; }
    .stats-container { flex-direction: column; }
    .stat-item { padding: 15px; margin-bottom: 15px; }
    .testimonial-card { padding: 30px 20px 20px; }
    .testimonial-card::before { font-size: 60px; top: 10px; left: 15px; }
    .btn { padding: 10px 20px; font-size: 12px; }
     .contact-form button[type="submit"] {
        min-width: 160px;
        padding: 10px 20px; /* Padding wie andere Buttons auf dieser Größe */
    }
    
}

/* Extra Small Devices (<= 375px) */
@media (max-width: 375px) {
    .header-container { height: 60px; }
    main { margin-top: 60px; }
    .hero { margin-top: 60px; }
    nav { top: 60px; height: calc(100vh - 60px); }
    .logo img { max-width: 170px; height: 60%; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    .popup-message { width: calc(100% - 20px); right: 10px; top: 10px; }
    .popup-content { padding: 12px 15px; gap: 10px; }
    .popup-message i { font-size: 20px; }
    .popup-message p { font-size: 13px; }
    /* Innerhalb Ihrer Media Query, z.B. @media (max-width: 768px) { ... } */
}

/* Sicherstellen, dass der Mobile-Toggle auf Desktop ausgeblendet ist */
@media (min-width: 993px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- Anpassung Datenschutz-Checkbox Größe --- */

/* Standard-Stil (Desktop & größere Tablets) */
#contactForm .form-group label input[type="checkbox"][name="datenschutz"] {
  /* Optional: Setze hier die Standardgröße für Desktop, falls gewünscht */
  transform: scale(1.3); /* Normale Größe */
  vertical-align: middle;
  margin-right: 10px; /* Standard-Abstand */
  transition: transform 0.2s ease; /* Optional: für sanfteren Übergang */
}


/* --- Ende Anpassung Datenschutz-Checkbox --- */

/* --- Anpassungen für verschobenen mobilen Sprachumschalter --- */
/* (Ihr vorheriger Code für den Sprachumschalter bleibt hier bestehen) */
/* ... */
/* --- Anpassungen für verschobenen mobilen Sprachumschalter --- */

/* Verstecke das neue LI auf Desktop */
@media (min-width: 993px) {
  nav ul li.mobile-only-li {
      display: none !important; /* Wichtig, um es sicher zu verstecken */
  }
}

/* Stelle sicher, dass das LI auf Mobilgeräten korrekt angezeigt wird */
@media (max-width: 992px) {
  nav ul li.mobile-only-li {
      display: block; /* Sicherstellen, dass es sichtbar ist */
      width: 100%;
      /* Entferne Inline-Style aus HTML und füge stattdessen das hier ein, wenn du magst: */
      /* padding: 5px 0; */
      /* border-bottom: 1px solid var(--border-color); */ /* Optional: Trennlinie */
  }

  /* Optional: Überschreibe Stile des inneren Divs, falls nötig (ersetzt Inline-Style) */
  /* nav ul li.mobile-only-li .language-selector.mobile-only {
      padding: 10px 0;
      background-color: transparent;
      border-top: none;
      margin-top: 0;
  } */
}
/* --- Ende Anpassungen --- */

/* ==========================================================================
   14. Privacy Table Styles (NEU)
   ========================================================================== */
  /* NEU: Wrapper für das horizontale Scrollen */
  .table-wrapper {
   overflow-x: auto; /* Horizontales Scrollen nur für diesen Wrapper */
   width: 100%;       /* Volle Breite des Elternelements nutzen */
   margin: 25px 0;    /* Behält den Abstand bei */
   -webkit-overflow-scrolling: touch; /* Besseres Scrollen auf iOS */
  }

   .privacy-table {
    width: 100%;                /* Volle Breite nutzen */
    border-collapse: collapse;   /* Rahmen zusammenführen */
    margin: 25px 0;             /* Abstand oben/unten */
    font-size: 0.95em;          /* Etwas kleinere Schrift */
    border: 1px solid var(--border-color); /* Dezenter Außenrahmen */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Leichter Schatten */
  }
  
  .privacy-table thead tr {
    background-color: var(--secondary-color); /* Heller Hintergrund für Kopfzeile */
    color: var(--primary-color); /* Textfarbe wie Überschriften */
    text-align: left;
    border-bottom: 2px solid var(--accent-color); /* Akzentlinie unten */
  }
  
  .privacy-table th,
  .privacy-table td {
    padding: 12px 15px;      /* Innenabstand für Zellen */
    vertical-align: top;     /* Oben ausrichten bei mehrzeiligem Inhalt */
    border: none;            /* Standard-HTML-Rahmen entfernen */
    border-bottom: 1px solid var(--border-color); /* Linie zwischen Zeilen */
    white-space: nowrap;     /* Verhindert ungewollten Zeilenumbruch in Zellen */
  }
  @media (min-width: 600px) { /* Ab ca. dieser Breite nowrap entfernen oder anpassen */
      .privacy-table td {
          white-space: normal;
      }
  }
  
  .privacy-table tbody tr {
    transition: background-color 0.2s ease; /* Sanfter Hover-Effekt */
  }
  
  .privacy-table tbody tr:nth-of-type(even) {
    background-color: var(--white); /* Standard Hintergrund (oder weglassen für einheitlich) */
  }
  .privacy-table tbody tr:nth-of-type(odd) {
    background-color: var(--secondary-color); /* Leichter Wechsel für Lesbarkeit */
  }
  
  
  .privacy-table tbody tr:last-of-type td {
    border-bottom: none;    /* Keine Linie unter der letzten Zeile */
  }
  
  .privacy-table th {
      font-weight: 600;      /* Fettdruck für Kopfzeilen */
  }
  
  /* Responsivität: Sicherstellen, dass die Tabelle auf kleinen Geräten nicht überläuft */
  @media (max-width: 600px) {
    .privacy-table {
      font-size: 0.9em; /* Ggf. Schrift noch kleiner */
    }
    .privacy-table th,
    .privacy-table td {
      padding: 10px 8px; /* Weniger Padding */
    }
  }