/* Inter Font einbinden */
@font-face {
  font-family: 'Inter'; /* Der Name, unter dem Sie die Schriftart im CSS ansprechen */
  src: url('../fonts/Inter-Regular.woff2') format('woff2'), /* Pfad zur Datei anpassen! */
       url('../fonts/Inter-Regular.woff') format('woff');   /* Pfad zur Datei anpassen! */
  font-weight: normal; /* oder z.B. 400 */
  font-style: normal;
  font-display: swap; /* Sehr wichtig! Sorgt für besseres Ladeverhalten */
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'), /* Pfad zur Datei anpassen! */
       url('../fonts/Inter-Bold.woff') format('woff');   /* Pfad zur Datei anpassen! */
  font-weight: bold; /* oder z.B. 700 */
  font-style: normal;
  font-display: swap;
}

/*
  style.css - Technikhilfe mit Herz
  Haupt-Stylesheet für die Webseite.
  --------------------------------------------------
  Inhaltsverzeichnis:
  1. CSS-Variablen (Root)
  2. Allgemeine Stile & Reset
  3. Hilfsklassen (z.B. .sr-only)
  4. Header-Stile
  5. Navigations-Stile
  6. Call-to-Action Button Stile
  7. Keyframe-Animationen (wiggle, pulse-glow)
  8. Hero-Bereich Stile
  9. Allgemeine Sektions-Stile
  10. Spezifische Sektions-Stile (Leistungen, Über Uns, Kontakt etc.)
  11. Komponenten-Stile (Leistungskacheln, FAQ, Formulare etc.)
  12. Zufriedenheitsgarantie-Block
  13. Footer-Stile
  14. Responsive Anpassungen
  15. Hamburger-Menü Stile
  --------------------------------------------------
*/

/* 1. CSS-Variablen (Root) */
:root {
  --primary-color: #00509e;
  --secondary-color: #ffcc00;
  --text-dark: #222;
  --text-light: #e0e0e0;
  --background-body: #fff; /* Haupt-Seitenhintergrund */
  --background-light: #f8f9fa; /* Sehr helles Grau */
  --background-very-light: #fdfdfd;
  --background-medium: #e8f0f9; /* Helles Blau */
  --background-dark: #282828;
  --white: #fff;
  --black: #000;
  --grey-border: #ccc;
  --grey-border-light: #eeeeee;
  --grey-text-light: #555;
  --grey-text-medium: #333;
  --box-shadow-light: rgba(0, 0, 0, 0.05);
  --box-shadow-medium: rgba(0, 0, 0, 0.1);
  --box-shadow-dark: rgba(0, 0, 0, 0.2);
  --garantie-background: #f0f8ff; /* AliceBlue */

  --font-family-base: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --base-font-size: 16px;
  --base-line-height: 1.6;
  --header-height-desktop: 90px;
  --header-height-mobile: 70px; /* Angepasst für den neuen mobilen Header */
  --scroll-margin-offset: 20px;
}

/* 2. Allgemeine Stile & Reset */
html {
  /* scroll-behavior: smooth; ENTFERNT */
  height: 100%;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--base-font-size);
  color: var(--text-dark, #222);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  line-height: var(--base-line-height, 1.6);
  background-color: var(--background-body, #fff);
}

body.no-scroll {
  /* Diese Klasse wird nun von JS gesteuert, um das Scrollen bei offenem Menü zu verhindern */
  overflow: hidden;
}

.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height-desktop);
}

#page-index .main-content-wrapper {
    padding-top: 0;
}

/* 3. Hilfsklassen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

/* 4. Header-Stile */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px 40px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.logo a img {
  height: 80px;
  display: block;
  transition: height 0.3s ease;
}

/* 5. Navigations-Stile */
nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 18px;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.9em;
}

nav a:not(.cta-button):hover,
nav a.active {
  background-color: var(--white);
  color: var(--black);
}

/* 6. Call-to-Action Button Stile */
.cta-button {
  background-color: var(--secondary-color);
  color: var(--black) !important;
  font-weight: bold;
  box-shadow: 0 4px 8px var(--box-shadow-dark);
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button i {
  margin-right: 8px;
}

.cta-button:hover {
  background-color: #e6b800;
  animation-name: wiggle;
  animation-duration: 0.6s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.cta-button-blau {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.cta-button-blau:hover {
  background-color: #003c7a;
}

header nav a.cta-button {
  animation-name: pulse-glow;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* 7. Keyframe-Animationen */
@keyframes wiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-2deg); }
  50% { transform: scale(1.1) rotate(2deg); }
  75% { transform: scale(1.05) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 8px var(--box-shadow-dark), 0 0 5px rgba(255, 204, 0, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 204, 0, 0.7);
  }
}

/* 8. Hero-Bereich Stile */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 0;
  overflow: hidden;
}

.hero-section.full-height {
   height: 100vh;
   width: 100%;
   max-width: none;
   margin: 0;
   padding: 0;
   display: flex;
   /* ÄNDERUNG: von 'center' zu 'flex-start', um die Positionierung über Padding zu steuern */
   align-items: flex-start;
   justify-content: flex-start;
}

#page-index .hero-section.full-height {
   height: 75vh;
   position: relative;
   /* NEU: Padding für Desktop-Header hinzugefügt */
   padding-top: calc(var(--header-height-desktop) + 100px);
   box-sizing: border-box;
}


#page-index .hero-section.full-height::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom,
                rgba(255,255,255,0) 0%, rgba(255,255,255,0.01) 5%, rgba(255,255,255,0.02) 10%,
                rgba(255,255,255,0.03) 15%, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.08) 25%,
                rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.18) 35%, rgba(255,255,255,0.25) 40%,
                rgba(255,255,255,0.32) 45%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.48) 55%,
                rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.65) 65%, rgba(255,255,255,0.75) 70%,
                rgba(255,255,255,0.83) 75%, rgba(255,255,255,0.90) 80%, rgba(255,255,255,0.95) 85%,
                rgba(255,255,255,0.98) 90%, var(--white) 95%, var(--white) 100%
              );
    z-index: 2;
}

.hero-section .overlay {
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 3;
  color: var(--white);
  font-size: 48px;
  line-height: 1.25;
  padding-left: 60px;
  padding-bottom: 100px;
}

.hero-text span {
  display: block;
  margin-top: 6px;
}

.zufriedenheitsgarantie-hero {
  font-size: 0.4em;
  line-height: 1.5;
  color: var(--secondary-color);
  margin-top: 15px;
  margin-bottom: 20px;
  font-weight: bold;
  display: block;
}
.zufriedenheitsgarantie-hero i {
  margin-right: 8px;
  color: var(--white);
}

.hero-cta-button {
  font-size: 20px;
  padding: 12px 25px;
  display: inline-block;
}
.hero-cta-button i {
  margin-right: 10px;
}

/* 9. Allgemeine Sektions-Stile */
section {
  padding: 40px 40px;
  max-width: 1100px;
  margin: 0 auto 0 auto;
}

#page-index section:not(.hero-section):not(#kontakt-section-index) {
    margin-bottom: 60px;
}

#page-index section:not(.hero-section) {
    padding-top: 20px;
}

section[id], .leistung[id], div[id] {
  scroll-margin-top: calc(var(--header-height-desktop) + var(--scroll-margin-offset));
}

section h1, main h1 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
  margin-top: 0;
}
section h2, main h2 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  margin-top: 30px;
}
section p, main p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.text-intro { font-size: 1.1em; }
.text-contact-emphasis { font-size: 1.2em; }
.text-closing { font-size: 1.15em; }

/* NEU: Wiederverwendbarer Container für einheitliches Design */
.content-container {
    background-color: var(--background-light);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--box-shadow-light);
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 10. Spezifische Sektions-Stile */

/* Vertikale Zentrierung von ersten Elementen in Sektionen korrigieren */
section > *:first-child,
.content-container > *:first-child {
    margin-top: 0;
}

/* Horizontale Zentrierung für spezifische Überschrift */
#leistungen-uebersicht-heading,
#leistungen-detail-heading,
#faq-heading {
    text-align: center;
}

/* Leistungsübersicht Sektion (Indexseite) */
#leistungen-section-index {
    background-color: var(--white);
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 0;
    max-width: none;
}
#leistungen-section-index .leistungen-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* "Über Uns"-Teaser auf Indexseite */
#ueber-uns-section-index {
    background-color: var(--white);
}

#leistungen-section-index + .section-divider-nach-leistungen {
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Kontakt-Teaser auf Indexseite */
#kontakt-section-index {
  text-align: center;
  background-color: var(--secondary-color);
  padding: 60px 30px;
  color: var(--text-dark);
  border-radius: 20px;
  margin: 40px auto;
}
#kontakt-section-index p {
  font-size: 1.15em;
  line-height: 1.7;
}
#kontakt-section-index strong { color: var(--primary-color); }

/* "Über Uns"-Seite (ueber-uns.html) */
.ueber-uns-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.ueber-uns-intro-text {
  font-size: 1.15em;
  color: var(--grey-text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}
.profil-bereich {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  text-align: left;
  margin-bottom: 40px;
}
.profil-bild-container {
  flex: 1;
  min-width: 220px;
  text-align: center;
}
.profil-bild {
  max-width: 200px;
  width: 100%;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 80, 154, 0.2);
  border: 3px solid var(--white);
  display: block;
  margin-left: auto;
  margin-right: auto;
  transform: scale(1.1);
  transition: transform 0.3s ease-out;
}
.profil-bild:hover { transform: scale(1.25); }
.profil-name { color: var(--text-dark); margin-bottom: 5px; font-size: 1.4em; }
.profil-rolle { color: var(--primary-color); font-weight: bold; font-size: 1.05em; }
.profil-text-container { flex: 2; min-width: 280px; }
.profil-text-container h2 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.5em; }
.profil-text-container p { margin-bottom: 12px; color: var(--grey-text-medium); }
.werte-ueberschrift { color: var(--primary-color); margin-top: 40px; margin-bottom: 25px; font-size: 1.7em; }

.ueber-uns-cta-bereich { margin-top: 40px; }
.ueber-uns-cta-bereich p { font-size: 1.1em; margin-bottom: 20px; }
.ueber-uns-cta-bereich .cta-button { margin-left: 20px}
.ueber-uns-cta-bereich .cta-button.secondary { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color) !important; margin-left: 20px ; }
.ueber-uns-cta-bereich .cta-button.secondary:hover { background-color: var(--primary-color); color: var(--white) !important; animation-name: none; }

/* Statische Seiten (Impressum, Datenschutz) */
body.no-scroll .main-content-wrapper { padding-top: 0; }
.static-page-content-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; padding-top: 130px; padding-bottom: 120px; box-sizing: border-box; width: 100%; }
.content-box {
    background-color: var(--background-light);
    padding: 40px 50px;
    border-radius: 12px;
    max-width: 800px;
    width: calc(100% - 40px);
    box-shadow: 0 6px 15px var(--box-shadow-medium);
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
    margin-bottom: auto;
}
body.loaded .content-box { opacity: 1; transform: translateY(0); }
.content-box h1 { margin-top: 0; color: var(--primary-color); }

/* FAQ Seite */
#faq-section { max-width: 850px; }

/* Kontakt Seite */

#einsatzgebiet-integriert {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px var(--box-shadow-light);
  margin-top: 20px;
  margin-bottom: 40px;
}
#einsatzgebiet-integriert h2 { margin-bottom: 25px; }
#einsatzgebiet-integriert p { color: var(--grey-text-medium); }
#map-container {
  width: 100%;
  max-width: 650px;
  height: 380px;
  margin: 25px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 12px var(--box-shadow-medium);
}
#map-container iframe { width: 100%; height: 100%; border: 0; }

/* NEUE Flexbox-Regeln für .gebiet-liste - ERSETZT die Grid-Regeln */
.gebiet-liste {
  column-count: 2;
  column-gap: 40px;
  max-width: 700px;
  margin: 20px auto;
  padding: 0;
}
.gebiet-liste li {
  break-inside: avoid;
  list-style: none;
  margin-bottom: 8px;
  border-radius: 12px;
  padding: 6px 16px;

}

.gebiet-liste li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Anpassung für .gebiet-liste ::before, um das Layout nicht zu stören */
#preise-section .preis-kategorie ul li::before {
  /* Originalregel: */
  /* content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--primary-color); */

  /* NEUE Regel für .gebiet-liste li::before */
  content: "\f00c"; /* Font Awesome Checkmark icon*/
  font-family: "Font Awesome 5 Free"; /**/
  font-weight: 900; /**/
  color: var(--primary-color); /**/
  margin-right: 8px; /* Fügt Abstand zwischen Icon und Text hinzu*/
  position: static; /* Entfernt absolute Positionierung*/
  top: auto; /* Entfernt Top-Positionierung*/
  left: auto; /* Entfernt Left-Positionierung*/
  flex-shrink: 0; /* Verhindert, dass das Icon schrumpft*/
}

.kontakt-intro { text-align: center; margin-bottom: 30px; }
.kontakt-intro h1 { margin-bottom: 10px;}
.ablauf-schritt {
    background-color: var(--background-light);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ablauf-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.ablauf-schritt .icon-kreis { width: 60px; height: 60px; background-color: var(--primary-color); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-size: 1.8em; flex-shrink: 0; }
.ablauf-schritt h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.15em; }
.ablauf-schritt p { font-size: 0.95em; line-height: 1.5; color: var(--grey-text-medium); flex-grow: 1; }
.kontakt-info-direkt { text-align: center; padding: 25px; background-color: var(--secondary-color); border-radius: 10px; max-width: 700px; margin: 0 auto; color: var(--black); box-shadow: 0 3px 10px var(--box-shadow-light); }
.kontakt-info-direkt h2 { color:var(--black) ; margin-bottom: 15px;}
.kontakt-info-direkt strong { color: var(--black); }

#preise-section .preis-kategorie {
    margin-bottom: 30px;
    text-align: center;
}
#preise-section .preis-kategorie > p:not(.preis-hervorhebung) {
  text-align: left;
}
#preise-section .preis-kategorie h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
#preise-section .preis-kategorie h2 > span {
  margin: 0 auto;
  padding-right: 2.2em; /* Balanciert den Platz des Icons links */
}
#preise-section .preis-kategorie h2 i {
  font-size: 1.2em;
  color: var(--secondary-color);
}
.preis-hervorhebung { font-size: 1.3em; color: var(--primary-color, #00509e); margin: 10px 0; padding: 10px; background-color: var(--background-medium); border-radius: 5px; display: inline-block; }
.preis-hervorhebung-klein {
  font-size: 1.1em;
  color: var(--primary-color, #00509e);
  font-weight: bold;
  margin-top: 5px;
}
.kleinunternehmer-hinweis { font-size: 0.9em; color: var(--grey-text-light); margin-top: 15px; padding: 10px; background-color: var(--background-very-light); border-left: 3px solid var(--secondary-color); text-align: left; }
#preise-section .preis-kategorie ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
}
#preise-section .preis-kategorie ul li { padding-left: 25px; position: relative; margin-bottom: 8px; }
/* Originalregel für alle ul li::before, wird für .gebiet-liste spezifisch überschrieben */
/* #preise-section .preis-kategorie ul li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--primary-color); } */
.festpreis-beispiele-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 15px; }
.festpreis-beispiele-grid .leistung { background-color: var(--white); border: 1px solid var(--background-medium); }
.festpreis-beispiele-grid .leistung h3 { font-size: 1.15em; }

/* 11. Komponenten-Stile */

/* Leistungs-Grid (allgemein) und Leistungs-Teaser auf der Index-Seite */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.leistungen-grid:has(> .leistung:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* Allgemeine .leistung Kachel Stile */
.leistung {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--box-shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

/* *** NEU: Einheitlicher Hover-Effekt für Container *** */
.leistung:hover,
.ablauf-schritt:hover,
.faq-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 80, 158, 0.15);
  border-color: var(--secondary-color);
}

.leistung h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-size: 1.15em;
  margin-bottom: 8px;
  font-weight: 600;
  flex-shrink: 0;
}
.leistung h3 i {
  font-size: 1.3em;
  color: var(--secondary-color);
}
.leistung ul {
  padding-left: 20px;
  list-style-type: disc;
  margin-bottom: 0;
  flex-grow: 1;
}
.leistung li {
  margin-bottom: 10px;
}
.leistung > p:last-child:not(#leistungen-section-index .leistung p) {
    flex-grow: 1;
}

/* Leistungs-Teaser auf der Index-Seite (#leistungen-section-index .leistung) */
#leistungen-section-index .leistung {
  background-color: var(--background-light);
  padding: 20px;
  text-align: left;
  align-items: flex-start;
  min-height: auto;
}
#leistungen-section-index .leistung h3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  font-size: 1.15em;
  color: var(--primary-color);
  margin-bottom: 8px;
  gap: 10px;
}
#leistungen-section-index .leistung h3 i {
  font-size: 1.3em;
  color: var(--secondary-color);
  width: auto;
  height: auto;
  line-height: normal;
  text-align: left;
  border-radius: 0;
  background-color: transparent;
  margin-bottom: 0;
  flex-shrink: 0;
}
#leistungen-section-index .leistung p {
    font-size: 0.95em;
    color: var(--grey-text-medium);
    line-height: 1.5;
    margin-top: 0;
    text-align: left;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* "Werte"-Kacheln auf "Über Uns"-Seite und Index-Teaser */
#ueber-uns-section-index .leistung, .ueber-uns-container .leistung:not(#leistungen-section-index .leistung) {
  background-color: var(--background-light);
  text-align: left;
  padding: 20px;
}

#ueber-uns-section-index .leistung p, .ueber-uns-container .leistung:not(#leistungen-section-index .leistung) p {
  font-size: 0.95em;
  color: var(--grey-text-medium);
  line-height: 1.6;
}

/* FAQ-Akkordeon */
.faq-item {
    background-color: var(--background-light);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-question { padding: 18px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: var(--primary-color); transition: background-color 0.2s ease; }
.faq-question:hover { background-color: var(--background-medium); }
.faq-question .icon { transition: transform 0.3s ease; font-size: 1.1em; color: var(--secondary-color); }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out; line-height: 1.6; background-color: var(--white); border-top: 1px solid #e0e0e0; }
.faq-answer p { margin: 0; font-size: 0.95em; color: var(--grey-text-medium); }
.faq-item.active .faq-answer { max-height: 600px; padding-top: 20px; padding-bottom: 20px; }
.faq-item.active .faq-question .icon { transform: rotate(135deg); }
.faq-item.active .faq-question { background-color: var(--background-medium); }

/* Formularelemente */
#kontakt-formular-bereich {
    /* Die visuellen Stile werden jetzt von .content-container übernommen. */
    max-width: 700px;
    margin: 0 auto;
}
#kontakt-formular-bereich h2 { text-align: center; }
.form-gruppe { margin-bottom: 20px; }
.form-gruppe label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.95em; color: var(--grey-text-medium); }
.form-gruppe input[type="text"], .form-gruppe input[type="email"], .form-gruppe input[type="tel"], .form-gruppe textarea { width: calc(100% - 24px); padding: 12px; border: 1px solid var(--grey-border); border-radius: 6px; font-size: 1em; font-family: inherit; transition: border-color 0.3s ease; }
.form-gruppe input[type="text"]:focus, .form-gruppe input[type="email"]:focus, .form-gruppe input[type="tel"]:focus, .form-gruppe textarea:focus { border-color: var(--primary-color); outline: none; }
.form-gruppe textarea { resize: vertical; min-height: 100px; }
.form-gruppe input[type="checkbox"] { margin-right: 8px; vertical-align: middle; }
.form-gruppe label[for="datenschutz_zustimmung"] { display: inline; font-weight: normal; font-size: 0.9em; }
.form-gruppe .cta-button { padding: 12px 25px; font-size: 1em; border: none; }
.form-gruppe .cta-button i { margin-right: 8px; }

/* Allgemeine Trennlinie */
.section-divider {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: 50px auto;
    width: 80%;
}

#leistungen-section-index + .section-divider-nach-leistungen {
    margin-top: 40px;
    margin-bottom: 60px;
}

section:has(+ hr.section-divider) > :last-child { margin-bottom: 0 !important; }
hr.section-divider + section > :first-child { margin-top: 0 !important; }


/* 12. Zufriedenheitsgarantie-Block */
.zufriedenheitsgarantie {
  background-color: var(--garantie-background, #f0f8ff);
  padding: 20px 25px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 5px solid var(--primary-color, #00509e);
  box-shadow: 0 2px 8px var(--box-shadow-light, rgba(0,0,0,0.05));
}
.zufriedenheitsgarantie h2 {
  font-size: 1.3em;
  color: var(--primary-color, #00509e);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  text-align: left;
}
.zufriedenheitsgarantie h2 i {
  margin-right: 10px;
  color: var(--secondary-color, #ffcc00);
  font-size: 1.2em;
}
.zufriedenheitsgarantie p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--grey-text-medium, #333);
  text-align: left;
}

/* 13. Footer-Stile */
footer {
  background-color: var(--background-dark, #282828);
  color: var(--text-light, #e0e0e0);
  text-align: center;
  padding: 25px 20px;
  font-size: 0.9em;
  z-index: 3;
  width: 100%;
  box-sizing: border-box;
}

footer a { text-decoration: none; color: var(--secondary-color, #ffcc00); margin: 0 12px; transition: color 0.3s ease; }
footer a:hover { color: var(--white); text-decoration: underline; }
footer p { margin: 5px 0; }

/* 14. Responsive Anpassungen */
@media (max-width: 992px) {
    body:not(#page-index) .main-content-wrapper { padding-top: calc(var(--header-height-desktop) - 10px); }
    body.no-scroll .static-page-content-wrapper { padding-top: 110px; }
    .hero-text { font-size: 40px; padding-left: 40px; }
    .zufriedenheitsgarantie-hero { font-size: 0.45em; }
    header { padding: 15px 30px; }
    .logo a img { height: 60px; }
    nav a { margin-left: 12px; padding: 8px 12px; font-size: 0.85em; }
    section[id], .leistung[id], div[id] { scroll-margin-top: calc(var(--header-height-desktop) - 10px + var(--scroll-margin-offset)); }
}

@media (max-width: 768px) {
  body:not(#page-index) .main-content-wrapper { padding-top: var(--header-height-mobile); }
  
  .logo a img { margin-bottom: 0; height: 45px; } /* Angepasst */
  
  .hero-text { 
    font-size: 28px; 
    padding-left: 20px; 
    padding-right: 20px; 
    text-align: center; 
    padding-bottom: 60px;
  }
  
  .zufriedenheitsgarantie-hero { font-size: 0.5em; padding: 6px 10px; }

  /**************************************************************
  * FINALER FIX FÜR HERO-SECTION AUF MOBILGERÄTEN
  **************************************************************/
  .hero-section.full-height {
    justify-content: center; /* Behält die horizontale Zentrierung bei */
    align-items: flex-start; /* Richtet den Inhalt oben aus */
  }

  #page-index .hero-section.full-height {
    height: 60vh;
    box-sizing: border-box;
    /* Fügt einen Abstand in der Höhe des Headers + etwas Luft hinzu */
    padding-top: calc(var(--header-height-mobile) + 60px);
  }

  #page-index .hero-section.full-height::after { height: 150px; }
  
  section { padding: 30px 20px; margin: 0 auto 30px auto; }
  #page-index section:not(.hero-section) { padding-top: 30px; }
  section[id], .leistung[id], div[id] { scroll-margin-top: calc(var(--header-height-mobile) + var(--scroll-margin-offset)); }
  section h1, main h1 { font-size: 2em; }
  section h2, main h2 { font-size: 1.7em; }
  .leistungen-grid { grid-template-columns: 1fr !important; }
  #leistungen-section-index .leistung { min-height: auto; }
  .profil-bereich { flex-direction: column; align-items: center; text-align: center; }
  .profil-text-container { text-align: left; }
  .profil-text-container h2 { text-align: center; }
  .content-box { padding: 30px 20px; }
  body.no-scroll .static-page-content-wrapper { padding-top: calc(var(--header-height-mobile) + 20px) ; padding-bottom: 100px; }

  .ablauf-container { grid-template-columns: 1fr; }
  #kontakt-formular-bereich { padding: 20px; }
  .festpreis-beispiele-grid { grid-template-columns: 1fr; }
  #einsatzgebiet-integriert { padding: 20px; }
  .section-divider { margin: 40px auto; }
  #leistungen-section-index + .section-divider-nach-leistungen { margin-top: 30px; margin-bottom: 40px; }
  .zufriedenheitsgarantie { margin: 20px 0; padding: 15px 20px;}
  .zufriedenheitsgarantie h2 { font-size: 1.2em; }
  .zufriedenheitsgarantie p { font-size: 0.9em; }
}

@media (max-width: 480px) {
    body:not(#page-index) .main-content-wrapper { padding-top: calc(var(--header-height-mobile) - 10px); }
    body.no-scroll .static-page-content-wrapper { padding-top: calc(var(--header-height-mobile) + 10px); padding-bottom: 100px; }
    .hero-text { font-size: 24px; padding-bottom: 40px;}
    .zufriedenheitsgarantie-hero { font-size: 0.55em; }
    .hero-cta-button { font-size: 18px; padding: 10px 20px; }
    nav a { font-size: 0.85em; }
    section[id], .leistung[id], div[id] { scroll-margin-top: calc(var(--header-height-mobile) - 10px + var(--scroll-margin-offset)); }
}

#preise-section h1 { text-align: center; }

#kontakt-section-index .cta-button {
  background-color: var(--primary-color);
  color: var(--white) !important;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
}

/* 15. Hamburger-Menü Stile */
.hamburger-menu {
  display: none; /* Auf Desktops ausgeblendet */
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  position: relative; /* Wichtig für die Positionierung der Striche */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}

.hamburger-menu span:nth-child(2) {
  top: 11px; /* (25px Höhe - 3px Strich) / 2 */
}

.hamburger-menu span:nth-child(3) {
  top: 22px; /* 25px Höhe - 3px Strich */
}

/* "X"-Animation für aktives Menü */
.hamburger-menu.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* Anpassungen für mobile Ansicht */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block; /* Hamburger-Button auf Mobilgeräten anzeigen */
  }

  header {
    flex-direction: row;   /* WICHTIG: Ändert das Layout zurück zu horizontal */
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  
  .logo a img {
    margin-bottom: 0; /* Korrektur von vorherigem Layout */
  }

  nav {
    display: flex;
    position: fixed;
    top: var(--header-height-mobile); /* Direkt unter dem Header starten */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height-mobile));
    background-color: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    
    /* Menü standardmäßig ausblenden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  
  nav.nav-active {
    /* Menü einblenden, wenn es aktiv ist */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav a {
    width: 80%;
    text-align: center;
    padding: 15px 0;
    margin: 10px 0;
    font-size: 1.2em;
    margin-left: 0; /* Zurücksetzen für vertikales Layout */
  }
  
  nav a.cta-button {
    width: auto;
    align-self: center; /* CTA Button auch zentrieren */
  }
}