/* --- GRUNDLAGEN & DESIGN SYSTEM --- */
:root {
    --primary-color: #3d4a53;    /* Dunkles Grau/Anthrazit */
    --secondary-color: #64B161; /* Lebhaftes Grün */
    --text-color: #333;
    --light-gray-bg: #f7f7f7;
    --white: #ffffff;
    --font-family-sans: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    --font-family-headings: 'Titillium Web', 'Arial Black', sans-serif;
    --container-width: 1200px;
}

/* --- GLOBALE STYLES --- */
html { scroll-behavior: smooth;}
body { font-family: var(--font-family-sans); margin: 0; color: var(--text-color); line-height: 1.7; background-color: var(--white); }
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 20px 0; }
h1, h2, h3, h4 { font-family: var(--font-family-headings); color: var(--primary-color); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); text-align: center; margin-bottom: 20px;}
h2 { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.8rem; margin-bottom: 15px; }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; border-radius: 8px; }
section { padding: 0 0; }
.section-bg { background-color: var(--light-gray-bg); }

/* --- HELFERKLASSEN --- */
.text-center { text-align: center; }
.subtitle { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px auto; text-align: center; }
.highlight { color: var(--secondary-color); }

/* --- BUTTON STYLES --- */
.cta-button { 
    background-color: var(--secondary-color); 
    color: var(--white); 
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 50px; /* Pill shape */
    font-weight: bold; 
    font-size: 1.1em; 
    transition: background-color 0.3s, transform 0.2s; 
    display: inline-block; 
    border: 2px solid var(--secondary-color);
}
.cta-button:hover { transform: translateY(-3px); }

/* --- NEU: Deaktiviert Hover-Animationen auf Mobilgeräten --- */
.is-mobile .cta-button:hover {
    transform: none;
}
.cta-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- HEADER & NAVIGATION --- */
.main-header { 
    background: var(--white); 
    border-bottom: 1px solid #e0e0e0; 
    height: 160px; /* <-- NEU: Feste Höhe für den Header */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-content { 
    display: grid; /* Geändert von flex */
    grid-template-columns: 1fr auto 1fr; /* 3 Spalten: [links] [mitte-auto] [rechts] */
    align-items: start; /* Entspricht 'flex-start' */
    padding-top: 90px;
    height: 100%;
}
.logo-link img { height: 255px; width: auto; }
.logo-link {
    margin-top: -140px; /* ZIEHT das Logo manuell um 40px nach oben */
    grid-column: 2 / 3; /* Mobil: Platziert das Logo in der mittleren Spalte */
    justify-self: center; /* Mobil: Zentriert das Logo in seiner Spalte */
}
.main-nav { display: none; } /* Standard: Menü verstecken */

/* NEU: Styling für den Hamburger-Button */
.hamburger-menu {
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Über dem Header-Schatten */
    
    /* Positionierung im Grid (rechte Spalte) */
    grid-column: 3 / 4;
    justify-self: end;
    align-self: start; /* Richtet sich an 'padding-top: 90px' aus */
}
.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

        
/* NEU: Animation für Hamburger -> X */
.hamburger-menu.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
.nav-link { 
    text-decoration: none; 
    color: var(--primary-color); 
    font-weight: bold; 
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
    font-size: 1.2rem; /* Vergrößert die Schrift */
}
.nav-link:hover { color: var(--secondary-color); }
.nav-link.active { color: var(--secondary-color); font-weight: 700; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/elektriker-hamburg-winterhude.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.hero h1 { color: var(--white); text-shadow: 2px 2px 5px rgba(0,0,0,0.6); }
.hero p { font-size: 1.4em; margin-bottom: 40px; max-width: 800px; }

/* Wrapper für Hero Buttons */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Bricht um auf sehr kleinen Screens */
}

/* Sekundärer CTA im Hero (Transparent mit weißem Rand) */
.cta-button-white-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-button-white-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- KOMPETENZEN / SERVICES SECTION --- */
.services-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}
.service-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.service-card:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.is-mobile .service-card:hover {
    transform: none;
    /* Setzt den Schatten auf den Standard (nicht-hover) Wert zurück */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}


.service-card img { 
    margin-top: 20px; /* Abstand zum Titel oben */
    width: 100%; 
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.service-card h3 { margin-top: 0; }

/* NEU: Globale Höhen-Regel für 2 Zeilen (Basis 1.8rem) */
.service-card .card-front h3,
.service-card .card-back h3 {
    /* 1.8rem (font-size) * 1.3 (line-height) * 2 (lines) = 4.68rem */
    height: 4.68rem; 
    display: flex;
    align-items: center; 
}

.card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.service-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Versteckt die Rückseite */
    backface-visibility: hidden;
    border-radius: 8px; /* Passt zur Kachel-Rundung */
    box-sizing: border-box; /* Wichtig für das Padding */
    padding: 30px;
    text-align: left;
}

.card-front {
    background-color: var(--white);
    position: relative; /* Bleibt im Flow, um Höhe zu definieren */
    z-index: 2;
}

.card-back {
    background-color: var(--white);
    transform: rotateY(180deg);
    overflow-y: hidden; /* NEU: Unterdrückt den Scrollbalken */
    position: absolute; /* Aus dem Flow nehmen */
    height: 100%; /* Füllt .card-inner */
}

/* NEU: Richtet den Start des Textinhalts (p) am Bild (img) aus */
.card-back p:first-of-type {
    margin-top: 10px;
}

/* --- SMART HOME (KNX) HIGHLIGHT --- */
.knx-highlight {
    background: var(--white); /* NEU: Hintergrund auf weiß */
    color: var(--primary-color); /* NEU: Textfarbe auf primär (grau) */
    padding: 30px; 
    border-radius: 8px; 
    margin-top: 0; 
    text-align: center;
    border: 4px solid var(--primary-color); /* NEU: Dicker grauer Rahmen */
}
.knx-highlight h2, .knx-highlight h3 { color: var(--primary-color); }
/* NEU: Reduziert den Abstand über und unter der H2 in der KNX-Kachel */
.knx-highlight h2 {
    margin-top: 0; /* Entfernt den Standard-Browserabstand oben */
    margin-bottom: 25px; /* Reduziert den Standardabstand (war 50px) */
}
.knx-highlight p { color: var(--text-color); max-width: 700px; margin-left: auto; margin-right: auto; }
.knx-highlight .cta-button { margin-top: 20px; }
#kompetenzen {
    padding-bottom: 85px; /* Fügt nur unten 80px Abstand hinzu */
}

/* --- ÜBER UNS SECTION --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    text-align: center;
}

.about-text { max-width: 800px; font-size: 1.1rem; }
.about-text p { text-align: justify; }

/* Filter-Stil für Inhaltsbilder */
.service-card img {
    filter: grayscale(20%) opacity(95%);
    transition: filter 0.3s ease;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.icon-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    text-align: center;
    flex-wrap: wrap;
}
.icon-item { max-width: 200px; }
.icon-item img { width: 80px; height: 80px; margin-bottom: 10px; }
#ueber-uns {
    padding-bottom: 85px; /* Fügt nur unten 80px Abstand hinzu */
}

/* --- KARRIERE SECTION --- */
.karriere-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 15px 40px 40px; /* Oberes Padding auf 30px reduziert */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.karriere-content h3 { border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; display: inline-block; }
.karriere-content h4 { font-size: 1.25rem; margin-top: 25px; margin-bottom: 10px; }
.karriere-content ul { list-style-type: '✓'; padding-left: 20px; }
.karriere-content li { margin-bottom: 10px; padding-left: 10px;}

/* --- FOOTER / KONTAKT --- */
#home, #kompetenzen, #ueber-uns, #karriere, #kontakt {
        scroll-margin-top: 160px; /* Kompensiert den 160px sticky header */
        scroll-snap-align: start; /* NEU: Definiert Einrast-Punkt */
}
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0 0 0 0; /* Entfernt das obere Padding */
    text-align: center;
}

/* NEU: Entfernt den Innenabstand über der Footer-Überschrift */
.main-footer .container {
    padding-top: 0;
}
.main-footer h2 {
    margin-top: 0; /* Entfernt eventuellen Browser-Standardabstand */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}
.footer-column h3 { color: var(--white); }
.footer-column a { color: var(--white); text-decoration: none; transition: color 0.3s; }
.footer-column a:hover { color: var(--secondary-color); }
.footer-column p { margin: 5px 0; }
.footer-map {
    display: flex; /* Stellt Karte und Street View nebeneinander */
    height: 400px; /* Setzt die Höhe für den gesamten Container */
}
.map-wrapper {
    height: 100%;
    overflow: hidden; /* Verhindert radikal, dass Inhalte nach unten ausbrechen */
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-map {
    width: 60%;
}
.street-view {
    width: 40%;
}
/* Zwingt den Klaro-Platzhalter UND das iframe auf volle Größe der Hülle */
.map-wrapper > iframe,
.map-wrapper > div {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    box-sizing: border-box !important; /* Berechnet Innenabstände mit ein, ohne die Box zu vergrößern */
}
/* Die Klasse .footer-map-image wird nicht mehr benötigt und kann gelöscht werden. */
.footer-bottom { background-color: rgba(0,0,0,0.2); padding: 20px 0; margin-top: 80px; }

/* IMPRESSUM und DATENSCHUTZ  */
.footer-bottom a,
.footer-link-button {
    color: var(--white);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    cursor: pointer;
    transition: color 0.3s;
}
.footer-bottom a:hover,
.footer-link-button:hover {
    color: var(--secondary-color);
}

/* NEU: Reset für die Button-Version der Footer-Links */
.footer-link-button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit; /* Wichtig für Buttons */
    font-size: inherit;   /* Wichtig für Buttons */
}

/* --- MODAL (ALLGEMEIN) --- */

/* NEU: Verhindert das Scrollen des Hintergrunds, wenn Modal offen ist */
.modal-is-open {
    overflow: hidden;
}

.modal-overlay {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2001;
    max-height: 90vh; /* Stellt sicher, dass Modal nicht aus dem Bildschirm ragt */
    display: flex;
    flex-direction: column;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--primary-color);
}
.modal-content h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 25px; /* Sorgt für konsistenten Abstand */
    flex-shrink: 0; /* NEU: Verhindert, dass der Titel schrumpft */
}
/* Spezifisch für Legal-Modals */
.legal-modal {
    max-width: 800px; /* Breiter für Text */
}
.modal-scroll-content {
    overflow-y: auto; /* Macht den Text scrollbar */
    padding-right: 15px; /* Platz für Scrollbar */
}
.modal-scroll-content h4 {
    margin-top: 30px;
    margin-bottom: 10px;
}
.modal-scroll-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- KONTAKT FORMULAR STYLES --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px; /* Etwas eckiger als die Buttons, klassischer Look */
    font-family: var(--font-family-sans);
    font-size: 1rem;
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Spezifisches Styling für das Dropdown (Pfeil verschieben) */
.form-select {
    appearance: none; /* Entfernt das Standard-Browser-Styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4a53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center; /* Rückt den Pfeil 15px nach links */
    background-size: 16px;
    padding-right: 40px; /* Platz für den Pfeil reservieren */
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.form-checkbox-label {
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    text-align: left;
}
.form-checkbox-label input {
    margin-top: 5px;
    accent-color: var(--secondary-color);
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr; /* 2 Spalten auf Tablets/Desktop */
    }
}

/* --- TOAST NOTIFICATION (Erfolgsmeldung) --- */
.toast-notification {
    visibility: hidden;
    min-width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 50px; /* Pill-Shape passend zu den Buttons */
    padding: 16px 24px;
    position: fixed;
    z-index: 3000; /* Muss über dem Modal (z-index 2000) liegen */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s, bottom 0.4s, visibility 0.4s;
    font-weight: bold;
}

/* Zustand: Sichtbar */
.toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Leichter Schwebe-Effekt nach oben */
}

/* Varianten */
.toast-notification.success {
    background-color: var(--secondary-color); /* Mendez Grün */
}

.toast-notification.error {
    background-color: #e74c3c; /* Rot für Fehler */
}

/* --- DESKTOP STYLES --- */
@media (min-width: 768px) {
    /* .header-contact-mobile Regel entfernt */
    .logo-link {
        grid-column: 1 / 2; /* Desktop: Logo zurück in die erste Spalte */
        justify-self: start; /* Desktop: Logo linksbündig */
    }

    .main-nav { 
        display: flex; 
        list-style: none; 
        margin: 0; 
        padding: 0; 
        gap: 15px; 
        align-items: center; 
        grid-column: 3 / 4; /* Desktop: Platziert die Nav in der rechten Spalte */
        justify-self: end; /* Desktop: Richtet die Nav rechtsbündig aus */
    }
    
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .knx-highlight { grid-column: span 2; } /* NEU: KNX-Kachel über 2 Spalten */
    .about-content { flex-direction: row; text-align: left; align-items: flex-start; }
    .about-image {
        flex-basis: 40%; /* NEU: Bildcontainer erhält 40% Breite */
        flex-shrink: 0; /* NEU: Verhindert, dass der Bildcontainer schrumpft */
    }
    .about-text {
        flex-basis: 60%; /* NEU: Textcontainer erhält 60% Breite */
    }
    .about-text h3 {
        margin-top: 0; /* NEU: Richtet Überschrift an Bildkante aus */
    }
    .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
}

/* NEU: 4-Spalten-Layout für große Desktops */
@media (min-width: 1200px) {
    .services-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
    .knx-highlight { 
        grid-column: span 4; /* Stellt sicher, dass KNX über alle 4 Spalten geht */
    }
    
    /* NEU: Reduziert Schriftgröße (nur hier) und erzwingt 2 Zeilen Höhe */
    .service-card h3 { /* Gilt für Front- und Backside */
        font-size: 1.6rem;
    }
    .service-card .card-front h3,
    .service-card .card-back h3 {
        /* 1.6rem (font-size) * 1.3 (line-height) * 2 (lines) = 4.16rem */
        height: 4.16rem; 
        /* display:flex & align-items:center werden geerbt */
    }

    /* NEU: Reduziertes Padding für mehr Platz im 4-Spalten-Layout */
    .service-card .card-front,
    .service-card .card-back {
        padding: 20px;
    }
}

/* NEU: Für schmale Fenster (<768px) */
@media (max-width: 767.98px) {

    .is-mobile .hero {
        padding-top: 60px;    /* Reduziert von 120px */
        padding-bottom: 80px; /* Reduziert von 120px */
        justify-content: flex-start; /* NEU: Richtet Inhalt oben aus */
    }

    /* NEU: Kleinere H1 im Hero für Mobile */
    .is-mobile .hero h1 {
        font-size: clamp(2.0rem, 5.5vw, 3.0rem); /* Reduziert von 2.5rem/6vw/3.5rem */
        margin-bottom: 50px
    }

    /* --- NEU: Mobile Header Höhe reduzieren --- */
    .is-mobile .main-header {
        height: 95px; /* Reduzierte Höhe (war 160px) */
    }
    /* NEU: Verschiebt Logo und Hamburger nach oben */
    .is-mobile .header-content {
        padding-top: 55px; /* Reduziert (war 90px) */
    }
    /* Passt den Anker-Sprung-Abstand für den neuen Header an */
    .is-mobile #home, .is-mobile #kompetenzen, .is-mobile #ueber-uns, .is-mobile #karriere, .is-mobile #kontakt {
        scroll-margin-top: 95px; /* Muss zur Header-Höhe passen */
    }
    /* --- ENDE: Mobile Header Anpassungen --- */

    /* NEU: Passt die Kartenansicht an */
    .street-view {
        display: none; 
    }
    .main-map {
        width: 100%; 
    }

    /* NEU: Zeigt Hamburger nur auf schmalen Mobilgeräten an */
    .is-mobile .logo-link {
        grid-column: 1 / 2; /* Logo nach links */
        justify-self: start;
    }
    .is-mobile .hamburger-menu {
        display: flex; /* Hamburger-Icon anzeigen */
    }

    /* HIERHER VERSCHOBEN: Styling für das Mobile Menü-Panel */
    .is-mobile .main-nav {
        /* Positioniert das Panel als Dropdown */
        position: fixed;
        top: 95px; /* KORREKTUR: Unter dem sticky Header (110px) */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        /* display: none; (ist schon Standard) */
    }
    
    /* Zustand, wenn Menü offen ist */
    .is-mobile .main-nav.nav-is-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
    }
    .is-mobile .main-nav.nav-is-open .nav-link {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* --- NEU: Modal für Mobile optimieren --- */
    .modal-overlay {
        align-items: flex-start; /* WICHTIG: Oben andocken, damit das X nie abgeschnitten wird */
        padding: 20px 10px; /* Oben etwas Platz, seitlich schmaler */
    }
    .modal-content {
        padding: 40px 20px 20px 20px; /* Ausreichend Platz oben für das X */
        max-height: 85vh; /* Garantiert, dass es in den Bildschirm passt */
        display: flex;
        flex-direction: column;
    }
    .modal-scroll-content {
        flex: 1; /* Passt sich der Höhe an und scrollt intern */
        min-height: 0; /* WICHTIG: Zwingt den Browser, den Scroll-Bereich exakt zu berechnen */
        overflow-y: auto;
        padding-bottom: 20px; /* Gibt dir etwas "Puffer" beim ganz nach unten Scrollen */
    }
    .modal-close {
        top: 10px;
        right: 15px;
        z-index: 10; /* Verhindert, dass Text über das X scrollt */
    }
    .modal-content h2 {
        font-size: 1.5rem; 
        margin-bottom: 15px;
    }
    .form-row, .contact-form {
        gap: 10px; 
    }
    .form-textarea {
        min-height: 90px; 
    }
}

/*KLARO COOKIES
/* Versteckt den Ablehnen- und den normalen OK-Button im initialen Klaro-Banner */
.klaro .cookie-notice .cm-btn-decline,
.klaro .cookie-notice .cn-decline,
.klaro .cookie-notice .cm-btn-accept {
    display: none !important;
}

/* Hintergrund, Rahmen und Textfarbe der Klaro-Dialoge anpassen */
.klaro .cookie-notice,
.klaro .cookie-modal .cm-modal {
    background-color: var(--light-gray-bg) !important;
    border: 3px solid var(--primary-color) !important;
    border-radius: 8px !important;
    color: var(--text-color) !important;
}

/* ALLER Text im Banner in Primärfarbe (Dunkelblau) färben, außer Buttons */
.klaro .cookie-notice *:not(.cm-btn):not(.cm-btn *),
.klaro .cookie-modal .cm-modal *:not(.cm-btn):not(.cm-btn *) {
    color: var(--primary-color) !important;
}

/* Links im Banner (z.B. zur Datenschutzerklärung) passend stylen */
.klaro .cookie-notice a,
.klaro .cookie-modal .cm-modal a {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

/* Initiales Cookie-Banner mittig auf dem Bildschirm platzieren */
.klaro .cookie-notice {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important; /* Hebt die Fixierung am unteren Rand auf */
    width: 90% !important;
    max-width: 420px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5) !important;
    z-index: 2100 !important;
}