/* public_html/assets/css/style.css */

/* Lokale Einbindung von Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    /* Wenn du .woff2 hast, bevorzuge diese:
    src: url('../fonts/montserrat/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    */
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap; /* Stellt sicher, dass Text sichtbar bleibt, während die Schrift lädt */
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    /* Wenn du .woff2 hast:
    src: url('../fonts/montserrat/Montserrat-Medium.woff2') format('woff2'),
         url('../fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    */
    font-weight: 500; /* Medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    /* Wenn du .woff2 hast:
    src: url('../fonts/montserrat/Montserrat-Bold.woff2') format('woff2'),
         url('../fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    */
    font-weight: 700; /* Bold */
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Reset & Globale Stile                   */
/* -------------------------------------------------------------------------- */
:root {
    --primary-blue: #005A8D;
    --primary-green: #4CAF50;
    --accent-color: #007BFF;
    --accent-gold: #b08d57;
    --light-blue: #E0F2FE;
    --light-green: #E8F5E9;

    --text-color-light-theme: #34495e;
    --text-color-dark-theme: #ecf0f1;
    --text-muted-light-theme: #7f8c8d;
    --text-muted-dark-theme: #bdc3c7;
    --headings-color-light-theme: var(--primary-blue);
    --headings-color-dark-theme: #e0f2fe;
    --accent-light-blue: #e6f3fa;


    --bg-light-theme: #ffffff;
    --bg-dark-theme: #1a1d24;
    --section-bg-light-theme: #f9f9f9;
    --section-bg-dark-theme: #22252e;

    --border-color-light-theme: #e0e6ed;
    --border-color-dark-theme: #3f4452;

    --header-height: 80px;
    --header-bg-light: rgba(255, 255, 255, 0.92);
    --header-bg-dark: rgba(26, 29, 36, 0.92);
    --header-shadow-light: 0 2px 15px rgba(0, 0, 0, 0.07);
    --header-shadow-dark: 0 2px 15px rgba(0, 0, 0, 0.25);

    --card-bg-light: #ffffff;
    --card-bg-dark: #252830;
    --card-shadow: 0 6px 25px rgba(40, 50, 60, 0.07);
    --card-hover-shadow: 0 10px 30px rgba(40, 50, 60, 0.12);

    /* ANPASSUNG der Font-Variablen für lokale Montserrat: */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-logo: 'Audiowide', cursive; /* Audiowide wird bereits lokal geladen */

    --container-width: 1200px;
    --container-padding: 15px;
    --border-radius-main: 8px;
    --transition-main: all 0.3s ease-in-out;
    --transition-fast: all 0.2s ease-out;

    --cta-btn-bg: var(--primary-green);
    --cta-btn-text: #ffffff;
    --cta-btn-hover-bg: #3e8e41;
    --cta-btn-shadow: 0 4px 10px rgba(var(--primary-green-rgb), 0.2);

    --cta-btn-secondary-bg: var(--primary-blue);
    --cta-btn-secondary-hover-bg: #00416A;
    --cta-btn-secondary-shadow: 0 4px 10px rgba(var(--primary-blue-rgb), 0.2);

    --primary-blue-rgb: 0, 90, 141;
    --primary-green-rgb: 76, 175, 80;

    /* Standard Theme ist Light */
    --text-color: var(--text-color-light-theme);
    --text-muted: var(--text-muted-light-theme);
    --headings-color: var(--headings-color-light-theme);
    --background-color: var(--bg-light-theme);
    --section-background-color: var(--section-bg-light-theme);
    --border-color: var(--border-color-light-theme);
    --header-background: var(--header-bg-light);
    --header-shadow: var(--header-shadow-light);
    --card-background: var(--card-bg-light);
}

[data-theme="dark"] {
    --text-color: var(--text-color-dark-theme);
    --text-muted: var(--text-muted-dark-theme);
    --headings-color: var(--headings-color-dark-theme);
    --background-color: var(--bg-dark-theme);
    --section-background-color: var(--section-bg-dark-theme);
    --border-color: var(--border-color-dark-theme);
    --header-background: var(--header-bg-dark);
    --header-shadow: var(--header-shadow-dark);
    --card-background: var(--card-bg-dark);

    --cta-btn-hover-bg: #5cb85c; /* Helleres Grün für Hover im Dark Mode */
    --cta-btn-secondary-hover-bg: #0062CC; /* Helleres Blau für Hover im Dark Mode */
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* Verhindert automatische Schriftgrößenanpassung auf iOS */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    padding-top: var(--header-height); /* Platz für den fixierten Header */
    -webkit-font-smoothing: antialiased; /* Verbessert die Schriftglättung auf WebKit-Browsern */
    -moz-osx-font-smoothing: grayscale; /* Verbessert die Schriftglättung auf Firefox (macOS) */
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--headings-color);
    letter-spacing: -0.25px; /* Leichte Unterschneidung für bessere Lesbarkeit */
}
h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1.5rem; } /* Responsive Schriftgröße */
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-bottom: 1rem; }
h4 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p {
    margin-bottom: 1rem;
    font-size: 1rem; /* Standard-Absatzgröße */
    color: var(--text-muted); /* Gedämpfte Farbe für Standardtext */
}
p.lead { /* Für hervorgehobene Absätze */
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color); /* Standard-Textfarbe, aber größer */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover, a:focus {
    color: var(--primary-blue);
    text-decoration: underline;
    outline: none; /* Entfernt Standard-Outline, ggf. eigene Fokus-Stile hinzufügen */
}
strong, b {
    font-weight: 700;
    color: var(--text-color); /* Stellt sicher, dass fette Schrift die Haupttextfarbe hat */
}
ul, ol {
    list-style-position: inside; /* List-Marker innerhalb des Elements */
    margin-bottom: 1rem;
    padding-left: 0; /* Entfernt Standard-Padding, wenn inside verwendet wird */
}
ul li, ol li {
    margin-bottom: 0.5rem; /* Abstand zwischen Listenelementen */
}
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

/* Hilfsklassen */
.text-center { text-align: center !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.me-2 { margin-right: 0.5rem !important; } /* Für LTR-Layouts */
.ms-2 { margin-left: 0.5rem !important; }  /* Für LTR-Layouts */
.p-0 { padding: 0 !important; }
.bg-light { background-color: var(--section-bg-light-theme) !important; }
[data-theme="dark"] .bg-light { background-color: var(--section-bg-dark-theme) !important; }
.bg-light-service-specific {
    background-color: var(--light-blue);
    border-bottom: 1px solid var(--border-color);
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
[data-theme="dark"] .bg-light-service-specific { background-color: #003a5d; /* Dunkleres Blau für Dark Mode */ }
.text-success { color: var(--primary-green) !important; }
.visually-hidden { /* Für Screenreader-sichtbaren, aber visuell versteckten Text */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--border-radius-main) !important; } /* Konsistenter Radius */
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.container-fluid { /* Für volle Breite mit Padding */
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    margin-left: auto;
    margin-right: auto;
}
section {
    padding: 60px 0;
    overflow: hidden; /* Verhindert, dass animierte Elemente überlaufen */
}
/* Abwechselnde Hintergrundfarben für Sektionen */
section:nth-child(even):not(.hero):not(.footer):not(.contact-form-section):not(.map-section) {
    background-color: var(--section-background-color);
}
[data-theme="dark"] section:nth-child(even):not(.hero):not(.footer):not(.contact-form-section):not(.map-section) {
    background-color: var(--section-bg-dark-theme);
}
[data-theme="light"] section:nth-child(even):not(.hero):not(.footer):not(.contact-form-section):not(.map-section) {
    background-color: var(--section-bg-light-theme);
}
.border-top { border-top: 1px solid var(--border-color) !important; }

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-background);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(10px); /* Für den "frosted glass" Effekt */
    -webkit-backdrop-filter: blur(10px); /* Für Safari */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header.header-scrolled-custom { /* Klasse wird per JS hinzugefügt */
    background-color: rgba(255, 255, 255, 0.97); /* Etwas weniger transparent beim Scrollen */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .header.header-scrolled-custom {
    background-color: rgba(26, 29, 36, 0.97);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

/* --- Logo Styling Anpassungen START --- */
.logo img {
    height: calc(var(--header-height) - 28px); /* Logo-Höhe relativ zur Header-Höhe */
    max-height: 48px; /* Maximale Logo-Höhe */
    width: auto;
    /* Übergang verfeinert für weichere und komplexere Animationen */
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.12)); /* Etwas weicherer Basisschatten */
    position: relative; /* Notwendig für das ::before Pseudo-Element (Shine) */
    overflow: hidden;   /* Stellt sicher, dass der Shine-Effekt innerhalb des Logos bleibt */
    z-index: 1;
    backface-visibility: hidden; /* Kann helfen, Flackern bei 3D-Transformationen zu vermeiden */
}

/* Shine-Effekt Pseudo-Element */
.logo img::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%; /* Startet außerhalb des sichtbaren Bereichs links */
    width: 60%;   /* Breite des Shine-Effekts */
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%, /* Heller, halbtransparenter Shine */
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Schräger Shine-Effekt */
    /* Wichtig: Transition für die 'left' Eigenschaft, um den Shine zu bewegen */
    transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s; /* Leichte Verzögerung für den Start */
    z-index: 1; /* Über dem Bild, aber unter eventuellem Text/Symbol im Logo */
}

.logo img:hover {
    transform: scale(1.12) rotate(-3deg); /* Etwas stärkere Skalierung und leichte Drehung */
    opacity: 1;
    filter: drop-shadow(4px 5px 10px rgba(0, 0, 0, 0.18)) brightness(1.1); /* Verstärkter Schatten und Helligkeit */
}

/* Shine-Effekt beim Hover aktivieren */
.logo img:hover::before {
    left: 160%; /* Bewegt den Shine über das Logo nach rechts hinaus */
}

/* Anpassung des Shine-Effekts für den Dark Mode, falls der weiße Shine zu intensiv ist */
[data-theme="dark"] .logo img::before {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%, /* Weniger intensiver Shine für Dark Mode */
        rgba(255, 255, 255, 0) 100%
    );
}

[data-theme="dark"] .logo img:hover {
    filter: drop-shadow(4px 5px 10px rgba(0, 0, 0, 0.3)) brightness(1.15); /* Schatten im Darkmode ggf. anpassen */
}
/* --- Logo Styling Anpassungen ENDE --- */

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin-left: 30px; /* Abstand zwischen Hauptmenüpunkten */
    position: relative; /* Für das Untermenü-Positioning */
}
.nav-links > ul > li > a {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    letter-spacing: 0.25px;
    transition: color 0.2s ease-out;
}
.nav-links > ul > li > a:hover {
    color: var(--primary-green);
}
.nav-links > ul > li > a::after { /* Unterstrich-Animation für aktive/hover Links */
    content: '';
    position: absolute;
    bottom: -2px; /* Position des Unterstrichs */
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}
.nav-links > ul > li > a:hover::after,
.nav-links li.active > a::after,
.nav-links li.active-parent > a::after {
    width: 100%; /* Volle Breite für aktiven/hover Unterstrich */
}
.nav-links li.active > a,
.nav-links li.active-parent > a {
    color: var(--primary-green);
    font-weight: 600; /* Aktive Links etwas fetter */
}
.nav-links li.has-submenu > a .submenu-indicator { /* Pfeil für Untermenüs */
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 6px;
    font-size: 0.7em;
    display: inline-block;
}
.nav-links li.has-submenu:hover > a .submenu-indicator {
    transform: rotate(180deg); /* Pfeil dreht sich beim Hover */
    color: var(--primary-green);
}
.nav-links .submenu { /* Styling für das Dropdown-Untermenü */
    list-style: none;
    padding: 8px 0;
    margin: 0;
    position: absolute;
    top: calc(100% + 5px); /* Position unter dem Parent-Link */
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-green); /* Akzentlinie oben */
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) translateX(-50%); /* Startposition für Animation */
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out, transform 0.25s ease-out;
}
.nav-links li.has-submenu:hover > .submenu,
.nav-links li.has-submenu > a:focus ~ .submenu, /* Für Tastaturnavigation */
.nav-links li.has-submenu > .submenu:hover { /* Hält das Menü offen, wenn man darüber hovert */
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%); /* Endposition für Animation */
}
.nav-links .submenu li {
    margin-left: 0;
    border-bottom: 1px solid var(--border-color);
}
.nav-links .submenu li:last-child {
    border-bottom: none;
}
.nav-links .submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap; /* Verhindert Umbruch im Untermenü */
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.nav-links .submenu li a::after { display: none; } /* Kein Unterstrich für Submenü-Items */
.nav-links .submenu li a:hover,
.nav-links .submenu li.active a {
    background-color: var(--primary-green);
    color: var(--cta-btn-text);
    text-decoration: none;
    padding-left: 25px; /* Leichter Einzug beim Hover */
}
[data-theme="dark"] .nav-links .submenu {
    border-color: var(--border-color-dark-theme);
    border-top-color: var(--primary-green);
}
[data-theme="dark"] .nav-links .submenu li {
    border-bottom-color: var(--border-color-dark-theme);
}
[data-theme="dark"] .nav-links .submenu li a:hover,
[data-theme="dark"] .nav-links .submenu li.active a {
    background-color: var(--primary-green);
    color: var(--cta-btn-text);
}

/* Burger Menü für mobile Ansicht */
.burger {
    display: none; /* Standardmäßig versteckt, wird per Media Query angezeigt */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px; /* Größere Klickfläche */
}
.overlay-menu { /* Das mobile Menü, das von der Seite reinslidet */
    position: fixed;
    top: 0;
    left: -100%; /* Startet außerhalb des sichtbaren Bereichs */
    width: 80%;
    max-width: 320px; /* Maximale Breite des Overlays */
    height: 100vh;
    background-color: var(--background-color);
    box-shadow: 8px 0 25px rgba(0,0,0,0.18);
    z-index: 1001; /* Über dem Header */
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* Platz für den Schließen-Button */
    padding-bottom: 20px;
    overflow-y: auto; /* Scrollbar, falls Menü zu lang */
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Sanfte Animation */
}
.overlay-menu[hidden] { /* Stellt sicher, dass es auch für Accessibility versteckt ist */
    left: -100%;
}
.overlay-menu.open {
    left: 0; /* Sichtbar machen */
}
body.no-scroll { /* Verhindert Scrollen des Body, wenn Overlay offen ist */
    overflow: hidden;
}
.overlay-menu .menu-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Links */
    width: 90%;
    margin: 0 auto;
}
.overlay-menu > .menu-content > a,
.overlay-menu > .menu-content > .mobile-menu-group > .mobile-menu-parent-label {
    font-size: 1.4rem; /* Größere Schrift für mobile Links */
    color: var(--text-color);
    text-decoration: none;
    margin: 8px 0; /* Etwas mehr Abstand */
    padding: 12px;
    width: 100%;
    text-align: center;
    border-radius: var(--border-radius-main);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.overlay-menu > .menu-content > a:hover,
.overlay-menu > .menu-content > a.active-mobile {
    background-color: var(--primary-green);
    color: var(--cta-btn-text) !important; /* Wichtig, um andere Farbdefinitionen zu überschreiben */
}
.overlay-menu .close-btn { /* Schließen-Button im Overlay */
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.mobile-menu-divider {
    width: 80%;
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 15px auto; /* Zentriert den Divider */
}
.mobile-menu-group { /* Für Elternelemente mit Submenü */
    width: 100%;
    margin-bottom: 5px;
}
.mobile-menu-parent-label { /* Button-artiges Label für aufklappbare Submenüs */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-blue); /* Hebt Parent-Items hervor */
    border-left: 4px solid var(--primary-green);
    background-color: rgba(var(--primary-blue-rgb), 0.05);
    cursor: pointer;
}
.mobile-menu-parent-label:hover {
    background-color: rgba(var(--primary-blue-rgb), 0.1);
}
.mobile-menu-parent-label .submenu-indicator-mobile {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-blue);
}
.mobile-menu-parent-label.open .submenu-indicator-mobile { /* JS fügt 'open' Klasse hinzu */
    transform: rotate(45deg); /* Plus wird zu Kreuz */
}
[data-theme="dark"] .mobile-menu-parent-label {
    color: var(--headings-color-dark-theme);
    border-left-color: var(--primary-green);
    background-color: rgba(var(--primary-blue-rgb), 0.15);
}
[data-theme="dark"] .mobile-menu-parent-label .submenu-indicator-mobile {
    color: var(--headings-color-dark-theme);
}
.mobile-submenu { /* Das eigentliche Submenü im mobilen Overlay */
    padding-left: 20px; /* Einrücken der Sub-Items */
    margin-bottom: 10px;
    margin-top: 5px;
    max-height: 0; /* Startet geschlossen */
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0; /* Startet unsichtbar */
}
.mobile-submenu.open { /* JS fügt 'open' Klasse hinzu */
    max-height: 500px; /* Genug Höhe für die meisten Submenüs */
    opacity: 1;
}
.mobile-submenu-link {
    font-size: 1.15rem !important; /* Etwas kleiner als Haupt-Overlay-Links */
    padding: 10px 15px !important;
    border-bottom: 1px solid var(--border-color);
    display: block;
    width:100%;
    text-align:left; /* Links ausrichten */
    color: var(--text-color);
    text-decoration:none;
    transition: var(--transition-fast);
}
.mobile-submenu-link:last-child {
    border-bottom: none;
}
.mobile-submenu-link.active-mobile,
.mobile-submenu-link:hover {
    background-color: var(--primary-green) !important;
    color: var(--cta-btn-text) !important;
    border-radius: var(--border-radius-main);
    font-weight: 600 !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Volle Bildschirmhöhe */
    min-height: 500px; /* Mindesthöhe für kleinere Bildschirme */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; /* Standardtextfarbe für Hero */
    padding: 0; /* Kein extra Padding für die Sektion selbst */
}
.hero-video { /* Das Hintergrundvideo */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stellt sicher, dass das Video den Bereich füllt */
    z-index: -2; /* Hinter dem Overlay */
}
.hero-overlay { /* Dunkles Overlay über dem Video für bessere Textlesbarkeit */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dunkelgrau mit Transparenz */
    z-index: -1; /* Über dem Video, unter dem Inhalt */
}
.hero-content { /* Inhalt des Hero-Bereichs */
    z-index: 1; /* Über dem Overlay */
    max-width: 800px; /* Maximale Breite des Inhalts */
    padding: 20px; /* Etwas Innenabstand */
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem); /* Größere, responsive Schrift für Hero-Titel */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Textschatten für bessere Lesbarkeit */
}
.hero p {
    font-size: clamp(1.1rem, 3vw, 1.3rem); /* Responsive Schrift für Hero-Text */
    margin-bottom: 2rem;
    color: #f0f0f0; /* Leicht helleres Weiß */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.scroll-indicator { /* Pfeil nach unten, um zum Scrollen anzuregen */
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2.5rem;
    animation: bounce 2s infinite; /* Hüpf-Animation */
    z-index: 2;
    opacity: 0.8;
}
.scroll-indicator i {
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
@keyframes bounce { /* Definition der Hüpf-Animation */
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* Animationen für Elemente beim Scrollen (aus script.js) */
.animate-on-scroll {
    opacity: 0; /* Startet unsichtbar */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible { /* Klasse wird per JS hinzugefügt */
    opacity: 1;
    transform: none !important; /* Wichtig, um die Start-Transforms der spezifischen Animationen aufzuheben */
}
/* Spezifische Startpositionen für Animationen (können in den HTML-Elementen mit data-animation="type" gesetzt werden) */
.animate-on-scroll[data-animation="fade-in"] { transform: translateY(20px); }
.animate-on-scroll[data-animation="zoom-in"] { transform: scale(0.95); }
.animate-on-scroll[data-animation="slide-in-from-left"] { transform: translateX(-40px); }
.animate-on-scroll[data-animation="slide-in-from-right"] { transform: translateX(40px); }
/* Alte Animationsklassen, falls noch irgendwo verwendet, oder als Alternative */
.animate-on-scroll.fade-in:not(.is-visible) { opacity:0; transform: translateY(30px); }
.animate-on-scroll.zoom-in:not(.is-visible) { opacity:0; transform: scale(0.9); }
.animate-on-scroll.slide-in-from-left:not(.is-visible) { opacity:0; transform: translateX(-50px); }
.animate-on-scroll.slide-in-from-right:not(.is-visible) { opacity:0; transform: translateX(50px); }


/* --- Anpassungen für CTA Buttons START --- */
.cta-btn {
    display: inline-block;
    background-color: var(--cta-btn-bg);
    color: var(--cta-btn-text) !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    /* Übergänge erweitert für sanftere Animationen und border-color */
    transition: background-color 0.25s ease-out, transform 0.25s ease-out, box-shadow 0.3s ease-out, border-color 0.25s ease-out;
    box-shadow: var(--cta-btn-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent; /* Vorbereitung für Randeffekt */
    cursor: pointer;
    text-align: center;
    position: relative; /* Für mögliche Pseudo-Elemente oder erweiterte Effekte */
    overflow: hidden; /* Falls du Effekte wie einen "Shine" hinzufügen möchtest */
}

.cta-btn:hover, .cta-btn:focus {
    background-color: var(--cta-btn-hover-bg);
    transform: translateY(-4px) scale(1.03); /* Stärkerer Schwebeeffekt und leichte Skalierung */
    box-shadow: 0 7px 18px rgba(var(--primary-green-rgb), 0.35); /* Intensiverer Schatten */
    text-decoration: none;
    color: var(--cta-btn-text) !important;
    /* Heller Rand für besseren Kontrast auf dunklem Button */
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-btn-secondary {
    background-color: var(--cta-btn-secondary-bg);
    box-shadow: var(--cta-btn-secondary-shadow);
    /* Fehlende Styles vom .cta-btn hier ergänzen, wenn sie auch gelten sollen */
    display: inline-block;
    color: var(--cta-btn-text) !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.25s ease-out, transform 0.25s ease-out, box-shadow 0.3s ease-out, border-color 0.25s ease-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-btn-secondary:hover, .cta-btn-secondary:focus {
    background-color: var(--cta-btn-secondary-hover-bg);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 7px 18px rgba(var(--primary-blue-rgb),0.35);
    color: var(--cta-btn-text) !important;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Anpassungen für Dark Mode Hover-Effekte */
[data-theme="dark"] .cta-btn:hover,
[data-theme="dark"] .cta-btn:focus {
    /* Im Dark Mode ist der --cta-btn-hover-bg heller, daher kann der Rand dunkler oder weniger opak sein */
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 7px 18px rgba(var(--primary-green-rgb), 0.45); /* Schatten im Darkmode ggf. anpassen */
}

[data-theme="dark"] .cta-btn-secondary:hover,
[data-theme="dark"] .cta-btn-secondary:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 7px 18px rgba(var(--primary-blue-rgb),0.45);
}

/* Wichtig für Barrierefreiheit: Deutlicher Fokus-Indikator für Tastaturnutzer */
/* Dieser Stil wird nur aktiv, wenn der Nutzer tatsächlich per Tastatur navigiert (nicht bei Mausklick) */
.cta-btn:focus-visible,
.cta-btn-secondary:focus-visible {
    outline: 3px solid var(--accent-color); /* Eine Akzentfarbe, die gut sichtbar ist */
    outline-offset: 3px; /* Etwas Abstand zum Button */
}
/* --- Anpassungen für CTA Buttons ENDE --- */

.cta-btn-lg { /* Größerer CTA-Button */
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Services Section (Overview & Detail) */
.services-overview h2, .leistungen-page-container h1,
.leistungen-page-container h2:not(.visually-hidden),
.page-title-section h1 {
    text-align: center;
    margin-bottom: 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-item {
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    position: relative;
    min-height: 380px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-main), box-shadow var(--transition-main);
    cursor: pointer;
    display: flex;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.service-item-link-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}
.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 65%;
    transition: background 0.3s ease;
    border-radius: 0 0 var(--border-radius-main) var(--border-radius-main);
    z-index: 2;
}
.service-item:hover .service-overlay {
    background: linear-gradient(to top, rgba(var(--primary-blue-rgb),0.9) 0%, rgba(var(--primary-blue-rgb),0.7) 60%, rgba(var(--primary-blue-rgb),0.1) 100%);
}
.service-icon-container {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 12px;
    width: 65px;
    height: 65px;
    background-color: rgba(var(--primary-green-rgb),0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 3px 8px rgba(var(--primary-green-rgb),0.3);
}
.service-item:hover .service-icon-container {
    background-color: var(--primary-green);
    transform: rotate(-15deg) scale(1.1);
    box-shadow: 0 5px 12px rgba(var(--primary-green-rgb),0.4);
}
.service-item h3 {
    font-size: 1.7rem;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.service-short-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    opacity: 0.9;
    color: #f0f0f0;
}
.service-learn-more {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--cta-btn-text);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast), background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-top: auto;
    align-self: flex-start;
}
.service-learn-more .icon-arrow {
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}
.service-item:hover .service-learn-more {
    background-color: #fff;
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* Service Detail Seiten */
.service-detail-page-container .page-title-section h1 {
    color: var(--primary-blue);
}
[data-theme="dark"] .service-detail-page-container .page-title-section h1 {
    color: var(--light-blue);
}
.service-detail-section {
    padding: 40px 0;
}
.service-detail-section:not(:last-of-type) {
    border-bottom: 1px solid var(--border-color);
}
.service-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr 1.5fr;
    }
    .service-detail-image-container {
        position: sticky;
        top: calc(var(--header-height) + 20px);
    }
}
.service-detail-image-container {
    text-align: center;
}
.service-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
    object-fit: cover;
}
.service-detail-text h2:not(.visually-hidden) {
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.service-detail-text h2 i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--primary-green);
}
.service-details-subheader {
    font-size: 1.5rem;
    color: var(--headings-color);
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.service-details-list {
    padding-left: 0;
    list-style: none;
}
.service-details-list li {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
}
.service-details-list li i {
    color: var(--primary-green);
    font-size: 1.2em;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-item {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-green);
    transition: var(--transition-main);
}
.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.testimonial-quote {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--text-muted);
}
.testimonial-quote p {
    margin-bottom: 0;
    color: var(--text-muted);
}
.testimonial-quote p::before, .testimonial-quote p::after {
    content: '"';
    font-size: 1.5em;
    color: var(--primary-green);
    line-height: 0;
    position: relative;
    top: 0.2em;
}
.testimonial-quote p::before { margin-right: 0.1em; }
.testimonial-quote p::after { margin-left: 0.1em; }

.testimonial-author {
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}
.testimonial-author strong {
    display: block;
    font-weight: 700;
}

/* Vorher & Nachher Slider */
.ba-alt-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
}
.ba-alt-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.ba-after {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.ba-alt-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}
.slider-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 5;
}
.ba-alt-range:active ~ .slider-tooltip,
.ba-alt-range:focus ~ .slider-tooltip {
    opacity: 0;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--card-background);
    margin-bottom: 15px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.faq-question button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--headings-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.faq-question button:hover, .faq-question button:focus {
    background-color: rgba(var(--primary-blue-rgb), 0.05);
    outline: none;
}
.faq-question button i {
    margin-right: 12px;
    color: var(--primary-green);
    font-size: 1.2em;
}
.faq-toggle-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f067";
    transition: transform 0.3s ease;
    font-size: 0.9em;
    color: var(--text-muted);
}
.faq-question button[aria-expanded="true"] .faq-toggle-icon {
    content: "\f068";
    transform: rotate(180deg);
    color: var(--primary-green);
}
.faq-answer {
    padding: 0 20px;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), padding-top 0.4s ease, padding-bottom 0.4s ease, opacity 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer[hidden] { display: none; }
.faq-answer.open-faq-answer {
    padding-top: 5px;
    padding-bottom: 20px;
    opacity: 1;
}
.faq-answer p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Kontaktformular & Details (Layout auf Startseite und Kontaktseite) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}
@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.3fr;
    }
}
.contact-details, .contact-details-standalone {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
}
.contact-details h3, .contact-details-standalone h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.contact-details p, .contact-details-standalone p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.6;
}
.contact-details-standalone h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--headings-color);
}
.contact-link-accent {
    color: var(--primary-green) !important;
    font-weight: 500;
}
.contact-link-accent:hover {
    color: var(--primary-blue) !important;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
}
@media (min-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group-full {
        grid-column: 1 / -1;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-main);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-green-rgb), 0.25);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.datenschutz-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
}
.datenschutz-checkbox input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}
.datenschutz-checkbox label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}
.datenschutz-checkbox label a {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Google Maps Container */
.map-container, .map-container-standalone {
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    line-height: 0;
}
.map-container iframe, .map-container-standalone iframe {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--section-bg-dark-theme);
    color: var(--text-muted-dark-theme);
    padding: 40px 0;
    text-align: center;
}
[data-theme="light"] .footer {
    background-color: #22252e;
    color: #bdc3c7;
}
.footer-content {
    /* .container Klasse wird verwendet */
}
.footer-links a {
    color: var(--text-muted-dark-theme);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-link-separator {
    color: var(--text-muted-dark-theme);
}
.copyright {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted-dark-theme);
}
.social-media-links {
    margin-top: 1rem;
}
.social-media-links a {
    color: var(--text-muted-dark-theme);
    font-size: 1.5rem;
    margin: 0 12px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}
.social-media-links a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-out 0.2s, visibility 0.8s ease-out 0.2s;
    visibility: visible;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
#preloader div {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll-Fortschrittsanzeige */
#progressBarContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    z-index: 1001;
    pointer-events: none;
    transition: top 0.3s ease;
}
#progressBar {
    height: 100%;
    background-color: var(--primary-green);
    width: 0%;
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

/* Dark Mode Toggle Button */
.darkmode-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: var(--transition-main);
    z-index: 990;
}
.darkmode-btn:hover {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
    transform: scale(1.1);
}
.darkmode-btn .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* WhatsApp Button */
#whatsapp-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition-main);
    z-index: 990;
    text-decoration: none;
}
#whatsapp-button:hover {
    background-color: #1DAE50;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
#whatsapp-button i {
    font-size: 1.5rem;
    margin-right: 8px;
}
.whatsapp-text {
    display: inline-block;
}

/* Back to Top Button --- ANPASSUNG HIER --- */
#back-to-top {
    position: fixed;
    bottom: 100px; /* Erhöhter Wert, um Platz für Cookie-Banner zu machen */
    left: 20px;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, bottom 0.3s ease; /* bottom zur Transition hinzugefügt */
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background-color: var(--primary-green);
    transform: scale(1.1);
}
/* --- ENDE ANPASSUNG Back to Top Button --- */

/* Responsive Anpassungen */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .burger { display: block; }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-details {
        margin-bottom: 30px;
    }
    .service-detail-image-container {
        position: static;
    }
}

@media (max-width: 767px) {
    body { padding-top: calc(var(--header-height) - 10px); }
    .header { height: calc(var(--header-height) - 10px); }
    .logo img { height: calc(var(--header-height) - 30px); max-height: 40px; }

    h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .hero p { font-size: clamp(1rem, 4vw, 1.2rem); }

    .cta-btn { padding: 10px 25px; font-size: 1rem; }
    .cta-btn-lg { padding: 12px 30px; font-size: 1.1rem; }

    .services-grid { grid-template-columns: 1fr; }
    .service-item { min-height: 320px; }

    .testimonials-grid { grid-template-columns: 1fr; }

    .contact-form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .contact-details, .contact-details-standalone { padding: 20px; }

    #whatsapp-button {
        bottom: 70px;
    }
    /* Anpassung für Back-to-Top auf kleineren Bildschirmen, falls Cookie-Banner noch stört */
    #back-to-top {
        bottom: 80px; /* Ggf. anpassen, wenn WhatsApp-Button und DarkMode-Button anders positioniert sind oder Cookie-Banner Höhe variiert */
    }
}

@media (max-width: 480px) {
    .whatsapp-text { display: none; }
    #whatsapp-button i { margin-right: 0; }
    #whatsapp-button { padding: 10px 12px; width: 45px; height: 45px; border-radius: 50%; }

    .scroll-indicator { font-size: 2rem; bottom: 20px; }
    section { padding: 40px 0; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

    #back-to-top {
        bottom: 70px; /* Ggf. noch weiter anpassen für sehr kleine Bildschirme */
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .darkmode-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    #whatsapp-button {
        bottom: calc(70px + 40px + 10px); /* Stapelt über Back-to-Top */
    }
}


/* -------------------------------------------------------------------------- */
/* Ergänzungen für Formular-Fehleranzeige & Status-Boxen                      */
/* -------------------------------------------------------------------------- */

.form-group .is-invalid,
.contact-form-grid .is-invalid {
    border-color: #dc3545 !important;
}

.form-group .invalid-feedback,
.contact-form-grid .invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    font-weight: 500;
    color: #dc3545;
}

.form-group .is-invalid ~ .invalid-feedback,
.form-group input.is-invalid + label + .invalid-feedback,
.form-group textarea.is-invalid ~ .invalid-feedback,
.form-group select.is-invalid ~ .invalid-feedback,
.contact-form-grid .is-invalid ~ .invalid-feedback,
.contact-form-grid input.is-invalid + label + .invalid-feedback,
.contact-form-grid textarea.is-invalid ~ .invalid-feedback,
.contact-form-grid select.is-invalid ~ .invalid-feedback {
    display: block;
}

.datenschutz-checkbox input.is-invalid + label ~ .invalid-feedback,
.datenschutz-checkbox input.is-invalid ~ .invalid-feedback {
    display: block;
    margin-top: .25rem;
}

.alert.form-errors-summary {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius-main, 8px);
    text-align: left;
}

.alert.form-errors-summary p strong {
    color: inherit;
}

.alert.form-errors-summary ul {
    margin-bottom: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.alert.form-errors-summary ul li {
    margin-bottom: 0.25rem;
}

.status-box {
    padding: 2rem;
    border-radius: var(--border-radius-main, 8px);
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: var(--card-shadow, 0 6px 25px rgba(40, 50, 60, 0.07));
}

.status-box h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}
.status-box p.lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: inherit;
}

.status-box.status-success {
    background-color: var(--light-green, #E8F5E9);
    border-left: 5px solid var(--primary-green, #4CAF50);
    color: #155724;
}
.status-box.status-success h1 {
    color: var(--primary-green, #4CAF50);
}
.status-box.status-success a:not(.cta-btn) {
    color: var(--primary-green, #4CAF50);
}

.status-box.status-error {
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
    color: #721c24;
}
.status-box.status-error h1 {
    color: #dc3545;
}
.status-box.status-error a:not(.cta-btn) {
    color: #721c24;
}

.status-box.status-warning {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
}
.status-box.status-warning h1 {
    color: #d6a100;
}
.status-box.status-warning a:not(.cta-btn) {
    color: #856404;
}

.status-box.status-info {
    background-color: var(--light-blue, #E0F2FE);
    border-left: 5px solid var(--accent-color, #007BFF);
    color: #004085;
}
.status-box.status-info h1 {
    color: var(--accent-color, #007BFF);
}
.status-box.status-info a:not(.cta-btn) {
    color: #004085;
}

.status-box .cta-btn {
    margin-top: 1rem;
    padding: 10px 25px;
    font-size: 1rem;
}
.status-box .cta-btn-secondary {
    background-color: var(--text-muted, #7f8c8d);
    color: var(--background-color, #fff) !important;
    box-shadow: none;
}
.status-box .cta-btn-secondary:hover {
    background-color: var(--text-color, #34495e);
}

.status-box.status-success .cta-btn-secondary {
    background-color: var(--primary-green, #4CAF50);
    color: #fff !important;
}
.status-box.status-success .cta-btn-secondary:hover {
    background-color: var(--cta-btn-hover-bg, #3e8e41);
}
.status-box.status-error .cta-btn-secondary,
.status-box.status-warning .cta-btn-secondary {
    background-color: #6c757d;
    color: #fff !important;
}
.status-box.status-error .cta-btn-secondary:hover,
.status-box.status-warning .cta-btn-secondary:hover {
    background-color: #5a6268;
}

.status-box.status-error a[href*="kontakt.php"],
.status-box.status-warning a[href*="kontakt.php"] {
    background-color: var(--primary-blue) !important;
    color: #fff !important;
}
.status-box.status-error a[href*="kontakt.php"]:hover,
.status-box.status-warning a[href*="kontakt.php"]:hover {
    background-color: var(--cta-btn-secondary-hover-bg) !important;
}

/* Animationen für Elemente beim Scrollen (aus script.js) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
}
.animate-on-scroll[data-animation="fade-in"] { transform: translateY(20px); }
.animate-on-scroll[data-animation="zoom-in"] { transform: scale(0.95); }
.animate-on-scroll[data-animation="slide-in-from-left"] { transform: translateX(-40px); }
.animate-on-scroll[data-animation="slide-in-from-right"] { transform: translateX(40px); }


