:root {
  --bg-dark: #000000;
  --text-light: #ffffff !important;
  --accent-color: #007bff;
  --font-heading: "Syncopate", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --spacing-unit: 1rem;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--text-light); /* Standard-Hintergrund ist jetzt hell */
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.main-title {
  
  font-family: var(--font-heading);
  font-size: 3em !important;
  line-height: 3rem !important;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: var(--spacing-unit) * 1.5;
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);

}

/* Header Styling */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 calc(2 * var(--spacing-unit));
  position: fixed; /* Header bleibt am oberen Rand */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(
    8,
    8,
    8,
    0.8
  ) !important; 
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}


.main-header.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo img {
  margin-top: 1rem;
  height: 80px !important;
  width: 100%;
  filter: brightness(0) invert(1); 
  transition: height 0.3s ease; 
}
.main-header.scrolled .logo img {
  height: 45px;
}

.nav-toggle {
  display: none !important;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
  font-size: 1.1em;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.main-nav ul li a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-color);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.main-nav ul li a:hover::before {
  transform: translateY(0);
}

.main-nav ul li a:hover {
  color: transparent;
}

.header-ghost {
  height: var(--header-height);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
  font-family: var(--font-body);
  font-size: 1.1em;
}

.primary-btn {
  background-color: var(--accent-color);
  color: var(--bg-dark);
}

.primary-btn:hover {
  background-color: transparent;
  color: var(--accent-color);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark); /* Hintergrundfarbe ohne Bild/Video */
}

/* Hintergrund-Canvas/Video werden entfernt, da keine Fotos/Videos */
.hero-background-canvas,
.hero-background-video-wrapper,
.hero-background-video {
  display: none; /* Versteckt diese Elemente komplett */
}

.hero-content {
  z-index: 1;
  max-width: 1000px;
  padding: calc(var(--spacing-unit) * 3);
}

h1 {
  font-family: var(--font-heading);
  font-size: 20px !important;
  line-height: 25px !important;
  font-weight: 300;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.hero-slogan {
  font-family: var(--font-heading);
  font-size: 4em !important;
  font-weight: 700 !important;
  line-height: 0.9;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: var(--spacing-unit) * 2;
  width: 100%;
  text-align: center;
}

/* Spans im h1 sind für JS-Animationen, hier standardmäßig sichtbar */


.hero-content p {
  font-size: 1.6em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-unit) * 2;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1; /* Standardmäßig sichtbar */
  border-right: 2px solid var(--text-light); /* Linie sichtbar */
  height: 60px; /* Länge der Linie */
  /* Keine JS-Animationen, daher keine CSS-Animationen hier */
}

.scroll-indicator span {
  transform: rotate(90deg) translateX(50%);
  transform-origin: left top;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  font-weight: 500;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator::after {
  content: "";
  width: 2px;
  height: 40px;
  background-color: var(--text-light);
  margin-top: 10px;
  /* Keine JS-Animationen, daher keine CSS-Animationen hier */
}

/* Allgemeine Sektionen */
section {
  padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

h2 {
  font-size: 35px !important;
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
  text-transform: uppercase;
  line-height: 1.1;
}

.tab-pane h2 {
  font-size: 20px !important;
}

/* Spans im h2 sind für JS-Animationen, hier standardmäßig sichtbar */
h2 span {
  display: inline-block;
}

/* Services Overview Section */
.services-overview {
  text-align: center;
}

.service-intro {
  max-width: 800px;
  margin: 0 auto calc(var(--spacing-unit) * 5) auto;
}
.service-intro p {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.service-grid-wow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  perspective: 1000px;
  opacity: 1; /* Standardmäßig sichtbar */
  transform: none; /* Standardposition */
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; /* Für Hover-Effekt */
}

.card-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Styling für das <img> Element innerhalb von .card-image */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Entfernt zusätzlichen Platz unter dem Bild */
  filter: grayscale(10%) brightness(50%) contrast(100%); /* Filter für den Standard-Look */
  transition: filter 0.6s ease, transform 0.6s ease; /* Transition für Hover-Effekt */
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.service-card:hover .card-image img {
  filter: grayscale(0%) brightness(70%) contrast(100%); /* Beim Hover "farbig" oder aufgehellt */
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  opacity: 0; /* Standardmäßig unsichtbar, wird per Hover sichtbar */
  transition: background-color 0.4s ease, opacity 0.4s ease; /* Hover-Effekt */
  z-index: 2;
}
.service-card:hover .card-image-overlay {
  background-color: rgba(0, 123, 255, 0.05); /* Leichter blauer Schleier */
  opacity: 1;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: calc(var(--spacing-unit) * 2.5);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 3;
  transform: translateY(0%); /* Standardmäßig sichtbar */
  opacity: 1; /* Standardmäßig sichtbar */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease; /* Für Hover-Effekt */
}
.service-card:hover .card-content {
  transform: translateY(0%); /* Bleibt sichtbar */
  opacity: 1; /* Bleibt sichtbar */
}

.card-content h3,
.card-content p {
  opacity: 1; /* Standardmäßig sichtbar */
  transition: none; /* Keine Verzögerung mehr */
}
.service-card:hover .card-content h3,
.service-card:hover .card-content p {
  opacity: 1;
}

.view-details {
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}
.view-details .arrow {
  display: inline-block;
  width: 15px;
  height: 2px;
  background-color: var(--accent-color);
  vertical-align: middle;
  margin-left: 5px;
  position: relative;
  overflow: hidden;
  transform: translateX(0); /* Standardposition */
  opacity: 1; /* Standardmäßig sichtbar */
  transition: transform 0.3s ease-out; /* Für Hover-Effekt */
}
.view-details .arrow::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -2px;
  border: solid var(--accent-color);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(-45deg);
  opacity: 0; /* Standardmäßig unsichtbar */
  transition: right 0.3s ease-out, opacity 0.3s ease-out; /* Für Hover-Effekt */
}
.service-card:hover .view-details .arrow::after {
  right: -5px;
  opacity: 1;
}

/* Detail Modal für Services */
.service-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Bleibt unsichtbar, da nur über JS aktivierbar */
  visibility: hidden; /* Bleibt unsichtbar, da nur über JS aktivierbar */
  transition: opacity 0.4s ease, visibility 0.4s ease; /* Für JS-gesteuerten Übergang */
  overflow-y: auto;
}

.service-detail-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: calc(var(--spacing-unit) * 4);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(0); /* Standardposition */
  opacity: 1; /* Standardmäßig sichtbar */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Für JS-gesteuerten Übergang (falls aktiviert) */
}

.service-detail-modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 2.8em;
  color: var(--accent-color);
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.modal-content p {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin-top: calc(var(--spacing-unit) * 2);
}
.modal-content ul li {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-unit) * 0.8;
  position: relative;
  padding-left: var(--spacing-unit) * 1.5;
}
.modal-content ul li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

.close-modal {
  background-color: var(--accent-color);
  color: var(--bg-dark);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: calc(var(--spacing-unit) * 3);
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.close-modal:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

/* Philosophy Section */
.philosophy-section {
  text-align: center;
  padding-top: calc(var(--spacing-unit) * 10);
  padding-bottom: calc(var(--spacing-unit) * 10);
  position: relative;
}

.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-content p {
  font-size: 1.4em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: calc(var(--spacing-unit) * 4);
  font-weight: 300;
}

.stat-grid {
  display: flex;
  justify-content: space-around;
  gap: calc(var(--spacing-unit) * 3);
  flex-wrap: wrap;
  margin-top: calc(var(--spacing-unit) * 5);
}

.stat-item {
  width: 100%;
  height: 100%;
  background: radial-gradient(rgb(5, 5, 59) 0%, transparent 100%);
  transition: transform 0.5s ease-out, opacity 0.5s ease; /* Transition für Hover */
  z-index: 1;
}
.stat-item:hover {
  background-color: rgba(0, 123, 255, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.stat-number {
  font-size: 50px;
  color: var(--accent-color);
  position: relative;
  z-index: 2;
}
.stat-item p {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ÜBER UNS SEKTION (Optimiert für Lesbarkeit)
   ========================================================================== */

.about-us-section-simple {
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center; /* Zentriert den Button unter dem Textblock */
}

/* Der Container für den Text bekommt eine maximale Breite und wird zentriert */
.about-us-content-simple {
  max-width: 800px; /* Die maximale Breite, die der Textblock einnehmen darf */
  margin: 0 auto; /* Zentriert den Block horizontal */
  text-align: left; /* Der Text innerhalb des Blocks bleibt linksbündig */
  margin-bottom: 2.5rem; /* Abstand zum darunterliegenden Button */
}

.about-us-content-simple h2 {
  text-align: center; /* Die Überschrift soll zentriert sein */
  margin-bottom: 2rem;
  font-size: 3em;
  color: var(--text-light);
}

.about-us-content-simple p {
  font-size: 1.1em;
  line-height: 1.8; /* Etwas mehr Zeilenabstand für bessere Lesbarkeit */
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

/* Stellt sicher, dass der Button korrekt unter dem Textblock platziert ist */
.about-us-section-simple .btn {
  display: inline-block;
  width: auto; /* Stellt sicher, dass der Button nicht die volle Breite einnimmt */
}

.differentiator-item {
  background-color: #1a1a1a; /* Ein weiterer dunkler Ton */
  padding: calc(var(--spacing-unit) * 3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden; /* Für den Pseudo-Element-Effekt */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.differentiator-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(-5px);
}

.differentiator-item h3 {
  font-family: var(--font-heading);
  font-size: 1.8em; /* Etwas kleiner als Haupt-H2 */
  color: var(--accent-color);
  margin-bottom: var(--spacing-unit);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}
.differentiator-item h3::after {
  /* Dezenter Unterstrich */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--text-light);
}
.differentiator-item p {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Pseudo-Element für subtile, non-standard Optik (z.B. eine scharfe Ecke) */
.differentiator-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px; /* Größe der Ecke */
  height: 50px;
  background: linear-gradient(
    to bottom right,
    var(--accent-color) 0%,
    transparent 100%
  );
  opacity: 0.08;
  transition: opacity 0.3s ease;
}
.differentiator-item:hover::before {
  opacity: 0.15;
}

@media (min-width: 768px) {
  .about-us-content-wrapper-v3 {
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 5);
  }
  .about-intro-text-v3 {
    grid-column: 1 / 2;
  }
  .about-differentiators-grid {
    grid-column: 2 / 3;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .about-us-content-wrapper-v3 {
    grid-template-columns: 1.5fr 1fr; 
  }
  .about-differentiators-grid {
    grid-template-columns: 1fr; 
  }
}


h2 span {
  display: inline-block; 

}







/* Subpage Hero Section */
.subpage-hero-section {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  /* Hintergrundmuster beibehalten */
  background-image: url('data:image/svg+xml,%3Csvg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23007BFF" fill-opacity="0.03"%3E%3Cpath d="M50 50c-1.105 0-2-.896-2-2v-4c0-1.105 1.795-2 2-2s2 .895 2 2v4c0 1.104-.895 2-2 2zM0 50c-1.105 0-2-.896-2-2v-4c0-1.105 1.795-2 2-2s2 .895 2 2v4c0 1.104-.895 2-2 2zM50 0c-1.105 0-2-.896-2-2V-6c0-1.105 1.795-2 2-2s2 .895 2 2V-2c0 1.104-.895 2-2 2zM0 0c-1.105 0-2-.896-2-2V-6c0-1.105 1.795-2 2-2s2 .895 2 2V-2c0 1.104-.895 2-2 2z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  background-repeat: repeat;
  background-size: 80px 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
}

.subpage-hero-title {
  font-family: var(--font-heading);
  font-size: 3em !important;
  line-height: 3rem !important;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: var(--spacing-unit) * 1.5;
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.subpage-hero-text {
  font-size: 1.8em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
}

/* Service Detail Sections (für Personenschutz, Veranstaltungsschutz, Brandwache) */
.service-detail-section {
  padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden; /* Wichtig für die Pseudo-Elemente */
}

.service-detail-section.dark-bg {
  background-color: #050505;
}

/* NEU: Abstrakte Formen als Hintergrund-Dekoration */
.service-detail-section::before,
.service-detail-section::after {
  content: "";
  position: absolute;
  border-radius: 50%; /* Für runde/organische Formen */
  opacity: 0.05; /* Sehr dezent */
  filter: blur(15px); /* Weicher Effekt */
  z-index: 0; /* Hinter dem Inhalt */
  transition: transform 0.5s ease, opacity 0.5s ease; /* Für subtile Hover-Effekte */
}

.service-detail-section::before {
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  transform: rotate(0deg);
}

.service-detail-section::after {
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  transform: rotate(180deg);
}

/* Formen für jede zweite Sektion leicht ändern */
.service-detail-section.dark-bg::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  top: auto;
  bottom: -50px;
  left: -50px;
}
.service-detail-section.dark-bg::after {
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  top: -50px;
  bottom: auto;
  right: -50px;
}

/* Hover-Effekte auf den Formen */
.service-detail-section:hover::before {
  transform: scale(1.1) rotate(15deg);
  opacity: 0.1;
}
.service-detail-section:hover::after {
  transform: scale(1.1) rotate(195deg);
  opacity: 0.12;
}

.service-detail-content {
  text-align: left;
  position: relative;
  z-index: 1; /* Sicherstellen, dass der Inhalt über den Formen liegt */
}

.service-detail-content h2 {
  font-family: var(--font-heading);
  font-size: 3.5em;
  color: var(--text-light);
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}
.service-detail-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.service-detail-content p {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-unit) * 1.5;
}

.service-detail-content h3 {
  font-family: var(--font-body);
  font-size: 1.8em;
  color: var(--accent-color);
  margin-top: calc(var(--spacing-unit) * 3);
  margin-bottom: var(--spacing-unit);
}

.detail-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.detail-list li {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-unit) * 0.5;
  position: relative;
  padding-left: var(--spacing-unit) * 2;
}
.detail-list li::before {
  content: "→";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
  font-weight: bold;
}


.service-detail-section .btn {
  margin-top: calc(var(--spacing-unit) * 2);
}


.main-nav ul li a[href^="#"] {
  
}
.main-nav ul li a[href^="index.html"] {

}


@media (max-width: 768px) {
  .subpage-hero-title  {
    font-size: 10px !important;
    white-space: nowrap;
    line-height: 2rem !important;
  }


  .subpage-hero-text {
    font-size: 1.4em;
  }
  .service-detail-content h2 {
    font-size: 2.5em;
  }
  .service-detail-content h3 {
    font-size: 1.5em;
  }
  .subpage-hero-section {
    height: 40vh;
  }
  /* Formen auf Mobilgeräten anpassen */
  .service-detail-section::before,
  .service-detail-section::after,
  .service-detail-section.dark-bg::before,
  .service-detail-section.dark-bg::after {
    width: 120px; /* Kleinere Formen auf Mobil */
    height: 120px;
    filter: blur(10px);
    opacity: 0.04;
  }

  .hero-slogan {
    font-size: 17px !important;
    margin-bottom: 30px !important;
    white-space: nowrap; /* Diese Zeile verhindert den Zeilenumbruch */
  }

  h2 {
    font-size: 25px !important;
    width: 100%;
    margin-bottom: 30px !important;
  }
}

@media (max-width: 480px) {
  .subpage-hero-title {
    font-size: 3em;
  }
  .subpage-hero-text {
    font-size: 1.2em;
  }
  .service-detail-content h2 {
    font-size: 2em;
  }
  .service-detail-content h3 {
    font-size: 1.2em;
  }
  .service-detail-section {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
  }
}
/* Contact CTA Section */
.contact-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 60vh;
  background: var(--bg-dark) !important;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23007BFF" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zm0-30V0H4v4H0v2h4v4h2V6h4V4H6zm0 30v-4H4v4H0v2h4v4h2v-4h4v-2H6zm0 30v-4H4v4H0v2h4v4h2v-4h4v-2H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  background-size: 60px 60px;
  opacity: 0.2;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.contact-cta:hover::before {
  opacity: 0.08;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-content h2 {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

/* ==========================================================================
   FOOTER (Dein neuer Footer, an unser Design angepasst)
   ========================================================================== */
.main-footer {
  background-color: var(--bg-dark) !important;
  padding: 70px 0;
  color: var(--text-light);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col {
  width: calc(25% - 20px);
  padding: 0 15px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-light);
  text-transform: capitalize;
  margin-bottom: 35px;
  position: relative;
  text-transform: uppercase !important;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--accent-color);
  height: 2px;
  width: 50px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  color: #bbbbbb;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--text-light);
  padding-left: 8px;
}

.footer-col .social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 10px 10px 0;
  border-radius: 50%;
  color: var(--text-light);
  transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
  color: var(--accent-color);
  background-color: var(--text-light);
}



/* ==========================================================================
   KONTAKTSEITE & FORMULARSTYLING
   ========================================================================== */

.contact-page-container {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #0c0c0c; /* Etwas heller als der Hintergrund für einen leichten Kontrast */
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form-wrapper h2 {
    text-align: center;
    font-size: 2.5em; /* Passt zu den anderen h2 */
    margin-bottom: calc(var(--spacing-unit) * 3) !important;
    color: var(--text-light);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-unit) * 0.8;
    font-weight: 500;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
}

select option {
    background-color: #1a1a1a;
    color: var(--text-light);
}

/* DSGVO Checkbox Styling */
.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.form-group-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    top: -2px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-group-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-group-checkbox input[type="checkbox"]:checked::after {
    content: '✔';
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-group-checkbox label {
    margin-bottom: 0;
    font-size: 10px !important;
    width: 100%;
    font-size: 0.9em;
    margin-left: 15px !important;
    color: rgba(255, 255, 255, 0.6);
}

.form-group-checkbox label a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Senden Button */
.form-group-submit {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 3);
}

.form-group-submit .btn {
    width: 100%;
}

/* ==========================================================================
   FINALES, ROBUSTES RESPONSIVE STYLESHEET
   ========================================================================== */

/* Diese Regel zwingt die Seite, horizontales Überlaufen zu verhindern. */
html,
body {
  overflow-x: hidden;
}



@media (max-width: 767px) {


  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  /* Verhindert das Scrollen der Seite im Hintergrund, wenn das Menü offen ist */
  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    z-index: 1001; /* Wichtig: Höher als .main-nav */
  }

  .nav-toggle span {
    display: block !important;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Animation des Hamburger-Icons zum "X" */
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Styling der Navigations-Links im mobilen Menü */
  .main-nav ul {
    flex-direction: column;
    gap: 2rem; /* Etwas mehr Abstand */
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .main-nav ul li a {
    font-size: 2em;
    padding: 1rem;
  }

.form-group-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 30px !important;
    height: 30px !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    top: -2px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

   .footer-credit {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 0.8em;
    }

}

/* --- LAYOUTS & GRIDS --- */
section {
  padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2);
}
h2 {
  font-size: 2.8em;
}
.hero-content h1 {
  font-size: 5em;
}
.service-grid-wow {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}
.about-us-content-wrapper-v3 {
  grid-template-columns: 1fr;
}
.subpage-hero-title {
  font-size: 4.5em;
}
.footer-col {
  width: calc(50% - 20px);
  margin-bottom: 30px;
}

.footer-credit {
    text-align: center;
    margin-top: 40px; /* Abstand zum oberen Footer-Inhalt */
    padding-top: 20px; /* Innenabstand oben */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Dezente Linie darüber */
    color: rgba(255, 255, 255, 0.6); /* Leichter Grauton */
    font-size: 0.9em;
}

.footer-credit a {
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--accent-color);
}


@media (max-width: 480px) {
  section {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  }
  .btn {
    padding: 15px 25px;
    font-size: 0.9em;
    width: 100%;
    text-align: center;
  }
  h1,
  .hero-content h1 {
    font-size: 2.5em;
  }
  h2,
  .section-title,
  .service-detail-content h2 {
    font-size: 2em;
  }
  .hero-content p,
  .subpage-hero-text,
  .service-intro p {
    font-size: 1.1em;
  }
  .main-nav ul li a {
    font-size: 1.8em;
  }
  .service-card {
    height: 320px;
  }
  .service-card .card-content h3 {
    font-size: 1.6em;
  }
  .philosophy-content p {
    font-size: 1.2em;
  }
  .stat-number {
    font-size: 3em;
  }
}

/* * BREAKPOINT 2: Standard-Smartphones (bis 768px)
 * Hier fokussieren wir uns auf ein einspaltiges Layout und Lesbarkeit.
 */
@media (max-width: 768px) {
  /* --- ALLGEMEINE ANPASSUNGEN --- */
  body {
    -webkit-tap-highlight-color: transparent; /* Entfernt den blauen Klick-Effekt auf iOS */
  }

  section {
    padding: calc(var(--spacing-unit) * 5) var(--spacing-unit);
  }

  .main-header {
    padding: var(--spacing-unit);
  }

  .logo img {
    height: 60px !important;
  }

  /* --- TYPOGRAFIE --- */
  h1,
  .hero-content h1 {
    font-size: 3.5em;
    line-height: 1;
  }

  h2,
  .section-title,
  .service-detail-content h2 {
    font-size: 2.5em;
  }

  .hero-content p,
  .subpage-hero-text,
  .service-intro p {
    font-size: 1.2em;
  }

  /* --- LAYOUTS & GRIDS --- */
  .stat-grid,
  .about-differentiators-grid {
    grid-template-columns: 1fr; /* Alle Grids werden einspaltig */
    flex-direction: column;
  }

  .service-card {
    height: 350px;
  }

  /* --- MODALS --- */
  .modal-content {
    width: 95%;
    padding: calc(var(--spacing-unit) * 2);
  }

  .modal-content h3 {
    font-size: 2.2em;
  }

  /* Innerhalb von @media (max-width: 768px) in responsive.css */

  .about-us-content-simple h2 {
    font-size: 2.5em;
  }

  .about-us-content-simple p {
    font-size: 15px;
  }


  /* --- UNTERSEITEN --- */
  .subpage-hero-section {
    height: 50vh;
    padding-top: var(--header-height);
  }

  .subpage-hero-title {
    font-size: 3.5em;
  }

  .footer-col {
    width: calc(50% - 20px);
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .footer-col {
    width: 100%;
  }
}

/* * BREAKPOINT 3: Kleine Smartphones (bis 480px)
 * Finale Feinabstimmung für die kleinsten Bildschirme.
 */
@media (max-width: 480px) {
  /* --- ALLGEMEINE ANPASSUNGEN --- */
  section {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  }

  .btn {
    padding: 15px 25px;
    font-size: 0.9em;
    width: 100%; /* Buttons nehmen volle Breite für einfache Klicks ein */
    text-align: center;
  }

  /* --- TYPOGRAFIE --- */
  h1,
  .hero-content h1 {
    font-size: 2.5em;
  }

  h2,
  .section-title,
  .service-detail-content h2 {
    font-size: 2em;
  }

  .hero-content p,
  .subpage-hero-text,
  .service-intro p {
    font-size: 1.1em;
  }

  .main-nav ul li a {
    font-size: 1.8em; /* Schrift im mobilen Menü anpassen */
  }

  /* --- LAYOUTS & GRIDS --- */
  .service-card {
    height: 320px;
  }

  .service-card .card-content h3 {
    font-size: 1.6em;
  }

  .philosophy-content p {
    font-size: 1.2em;
  }

  .stat-number {
    font-size: 3em;
  }
}
