/* ==========================
   Root Variablen
   ========================== */
:root {
  --logo-height: 50px;
  --gelb: #333;
  --grau: #dddddd;
  --schrift: 'Roboto';
  --hellgrau: rgba(247, 247, 247, 0.5);
  --snftgr: #333;
  --newgr: #b0b0b0;
}

/* ==========================
   Allgemeine Einstellungen
   ========================== */

    body{
        background-color: white;
    }


   body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

    #bacc {
        background-color: white;
    }
    
/* ==========================
    Cookie Banner
   ========================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(167, 165, 166, 0.7);
  color: white;
  padding: 1em;
  text-align: center;
  z-index: 1000;
  display: none; /* Erst sichtbar machen, wenn nötig */
  font-family: var(--schrift);
}

.cookie-banner a {
  color: var(--snftgr);
  text-decoration: underline;
}

.cookie-banner button {
  margin: 0 10px;
  padding: 10px 20px;
  background: var(--snftgr);
  border: none;
  color: #fefefe;
  cursor: pointer;
  border-radius: 2px;
}

.cookie-banner p {
padding: 0 1vw 0 1vw;
}




/* ==========================
   Topnav (Desktop-Version)
   ========================== */
#topnav {
  background-color: #fff;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px;
}

#topnav a {
  position: relative;
  text-decoration: none;
  padding: 4px 8px;
  color: var(--snftgr);
  font-size: 17px;
  transition: color 0.3s;
}

#topnav a:hover {
  background-color: var(--newgr);
  color: white;
}

#topnav a.active {
  background: var(--newgr);
  color: white;
}

#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: var(--gelb);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

#nav-underline {
  position: absolute;
  bottom: 10px;
  height: 3px;
  background-color: var(--newgr);
  background-size: cover;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 10;
}

/* ==========================
   Logo
   ========================== */

.logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: fit-content;
  
}


#logo-alt {
  display: block;
  width: 400px; /* oder dein aktueller Wert */
  height: auto;
  position: relative;
  top: 12px;
  left: 15px;
  z-index: 2000;
}

#logo {
    position: fixed;
    left: 15px;
    z-index: 5001;
    width: 150px;
    top: 2px;
    transition: opacity 0.3s ease-in-out;
}





/* ==========================
   Hintergrundvideo
   ========================== */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none; /* Verhindert Klicks auf das Video */
    transition: 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333333;
    opacity: 0.25;
    z-index: 2;
    pointer-events: none; /* Damit das Overlay keine Klicks blockiert */
}

/* ==========================
   Hauptsektionen
   ========================== */
#home, #kompetenzen, #referenzen, #karriere, #kontakt {
    width: 100%;
    height: auto;
}

#home {
    font-family: var(--schrift);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh; /* Füllt den Bildschirm */
}



/* ==========================
   Textcontainer in #home
   ========================== */
#home .text-container {
    display: flex;
    margin-bottom: 20px;
    margin-top: 200px;
    text-align: center;
    width: 100%;
    padding: 0 5vw; /* Abstand links und rechts */
    box-sizing: border-box; /* Padding berücksichtigen */
    min-height: 12em; /* Stellt sicher, dass Platz für zwei Zeilen vorhanden ist */
    z-index: 3;
}

#home .text-container h1.section-title {
    color: #fefefe;
    font-size: 2.3em;
    margin: 2px;
}

#home .text-container h2.section-title-sm {
    padding: 60px;
    padding-top: 60px;
}

  .rechts {
    padding-top: 50px;
  }


/* ==========================
CTA
============================= */

.cta-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Abstand zwischen Text und Logos */
  border-radius: 10px;
  flex-wrap: wrap; /* für bessere Darstellung auf kleinen Bildschirmen */
  padding-right: 80px;
  padding-left: 20px;
}

.cta-text {
  flex: 1; /* nimmt den verfügbaren Platz links ein */
  color: white;
  min-width: 250px;
}

.cta-logos {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.cta-logos img {
  width: 50px;
  height: 50px;
  object-fit: contain; /* bewahrt Seitenverhältnis */
}

/* Neue Sidebar-Definition: rechteckiger Block, vertikale Anordnung */
.cta-sidebar {
    position: fixed;
    right: 0;
    transform: translateX(0%) translateY(-50%);
    background-color: #222;
    padding: 20px;
    border-radius: 8px 0px 0px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 300px;
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}


/* Logos nebeneinander, gleichmäßig verteilt, Abstand */
.cta-sidebar .cta-logos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#cta-toggle {
  position: absolute;
  top: 10px;
  left: -30px;
  background: #444;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  user-select: none;
  border-radius: 5px;
  transition: transform 0.3s ease;
  z-index: 10000;
}

/* Sidebar außerhalb des Viewports bei collapse */
.cta-sidebar.collapsed {
  transform: translateX(calc(+100%)) translateY(-50%);
}

/* Vertikale Anordnung von Text und Logos */
.cta-sidebar .cta-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Textformatierung für Sidebar */
.cta-sidebar .cta-text {
    color: white;
    font-size: 14px;
}


/* ==========================
   Box-Container
   ========================== */
#home .box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5vw 50px; /* Abstand links, rechts und unten */
    z-index: 3;
}

#home .box-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.click-box {
    font-family: var(--schrift);
    color: #fefefe;
    padding: 0 40px;
    border: 2px solid #dddddd;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 3;
    flex: 1 1 30%; /* Breite */
    box-sizing: border-box; /* Padding berücksichtigen */
    align-content: center;
}

.click-box a {
    text-decoration: none; /* Entfernt Unterstreichung */
    color: inherit; /* Beibehält Textfarbe */
}



/* ==========================
   Effekte
   ========================== */
.hidden {
    opacity: 0; /* Unsichtbar */
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out; /* Sanftes Ausblenden */
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in; /* Sanftes Einblenden */
}

/* ==========================
   H1-H6 Überschriften und <p>
   ========================== */

   #betonbohren, #betonsaegen, #schneidearbeiten, #ueberuns, #referenzen, #kompetenzen, #karriere, #kontakt {
    scroll-margin-top: calc(var(--logo-height) + 14px); /* Höhe der Sticky-Navigation + Padding */
}

/* ==========================
   ÜBER UNS
   ========================== */

#ueberuns {
    padding-top: 10px;
}

.kompetenzen-box-wide {
  width: 100%;
  padding: 2rem;
  /* background-color: rgba(247, 247, 247, 0.5); */
  color: var(--snftgr);
  font-family: "Titillium Web", sans-serif;
  border-radius: 10px;
  -webkit-box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37); 
  box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37);
  text-align: center;
  /* border: 2px solid white; */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease-in-out;
}


.kompetenzen-box-wide h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.kompetenzen-box-wide p {
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.6;
}

.ueberuns-divider {
  width: 60%;
  height: 1px;
  background-color: #ccc;
  margin: 2rem auto;
}


.partnernetzwerk h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--snftgr);
  font-family: "Titillium Web", sans-serif;
}

.partnerlogos {
  display: flex;
  gap: 8rem;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  animation: rotate-logos 15s linear infinite;
}

.partnerlogos:hover {
  animation-play-state: paused;
}

.partnerlogos a {
  display: inline-block;
}

.partnerlogos img {
  height: 75px;
  width: auto;
  transition: transform 0.3s ease;
}




/* ==========================
    KOMPETENZEN
   ========================== */

/* Kompetenzen-Container */
.kompetenzen-container {
    display: flex; /* Nebeneinander anordnen */
    justify-content: center; /* Gleichmäßige Verteilung */
    gap: 20px; /* Gleicher Abstand wie Clickboxen */
    padding: 0 5vw; /* Gleicher Rand wie Clickboxen */
    width: 100%; /* Volle Breite */
    box-sizing: border-box; /* Padding berücksichtigen */
    flex-wrap: nowrap;
}


/* Boxen-Styling */
.kompetenzen-box {
    flex: 1 1 clamp(300px, 30vw, 500px);
    box-sizing: border-box;
    padding: 20px;
    /* background-color: rgba(247, 247, 247, 0.5); */
    color: var(--snftgr);
    font-family: "Titillium Web", sans-serif;
    flex-direction: column;
    border-radius: 10px;
    -webkit-box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37); 
    box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37);
    text-align: left;
    /* border: 2px solid #dddddd; */   /* ✅ Kommentar richtig schließen */
    display: flex; /* Damit Inhalt zentriert bleibt */
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 0.3s ease-in-out;
}


.kompetenzen-box.text-center h3 {
    text-align: center; /* Überschrift zentrieren */
    color: var(--snftgr);
}

.kompetenzen-box.text-center p {
    text-align: left; /* Text bleibt linksbündig */
    font-size: large;
}

.kompetenzen-box ul {
    list-style: none; /* Entfernt die Standard-Punkte */
    padding-left: 0; /* Entfernt den Standard-Abstand links */
}

.kompetenzen-box ul li {
    position: relative; /* Ermöglicht das Platzieren der Checkmark */
    padding-left: 25px; /* Platz für das Icon schaffen */
    margin-bottom: 10px; /* Abstand zwischen den Listenelementen */
}

.kompetenzen-box ul li::before {
    content: '✔'; /* Das Checkmark-Symbol */
    color: var(--gelb); /* Gelbe Farbe für das Checkmark */
    position: absolute;
    left: 0; /* Positioniert das Checkmark links */
    top: 0;
}
/* ==========================
   Überschrift Betonbohren
   ========================== */
.kompetenzen-title {
    text-align: center;
    font-family: "Titillium Web", sans-serif;
    font-size: 2em;
    color:  var(--snftgr);
    margin-bottom: 20px;
    scroll-margin-top: calc(var(--logo-height) + var(--logo-top) + 20px); /* Verhindert, dass die Überschrift unter der Navbar landet */
}

/* ==========================
   KOMPETENZEN-CAROUSEL
   ========================== */
   .kompetenzen-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Erzwingt ein 1:1 Seitenverhältnis */
    border-radius: 8px;
    position: relative;
}

.kompetenzen-carousel .carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.kompetenzen-carousel .carousel img {
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zuschneiden des Bildes */
}

.kompetenzen-carousel .carousel img.visible {
    opacity: 1;
    z-index: 1;
}

.kompetenzen-carousel .carousel img:not(.visible) {
    z-index: 0;
}



/* ==========================
    REFERENZEN
   ========================== */
/* Container für Referenzen */
.referenzen-container {
    display: flex; /* Flexbox für zentrierte Inhalte */
    justify-content: center; /* Zentriert horizontal */
    align-items: center; /* Zentriert vertikal */
    padding: 20px 5vw; /* Abstand um den Container */
    width: 100%; /* Volle Breite */
    box-sizing: border-box; /* Padding berücksichtigen */
}

/* Box-Styling für Referenzen */
.referenzen-box {
    flex: 1 1 100%; /* Box nimmt die volle Breite ein */

    padding: 20px; /* Innenabstand */
    /* background-color: rgba(247, 247, 247, 0.5); /* Halbtransparenter Hintergrund */
    color:  var(--snftgr);
    font-family: "Titillium Web", sans-serif;
    border-radius: 10px;
    -webkit-box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37); 
    box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37);
    text-align: center; /* Zentrierter Text */
    /* border: 2px solid #dddddd; /* Rahmen */
    display: flex; /* Flexbox für Inhalte */
    flex-direction: column; /* Inhalte vertikal anordnen */
    justify-content: center; /* Vertikal zentrieren */
    align-items: center; /* Horizontal zentrieren */
    aspect-ratio: 3 / 1; /* Längliches Seitenverhältnis */
}

.bilder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    background-color: #ddd;
    border-radius: 12px;
    min-width: 85%;
}

.bild-container {
    position: relative;
    overflow: hidden; /* Verhindert, dass Elemente herausragen */
    border-radius: 8px;
    border: 2px solid #dddddd;
    transition: transform 0.3s ease-in-out; /* Sanfte Vergrößerung des Containers */
    width: 100%;
    aspect-ratio: 1 / 1;
}

.bild-container:hover {
    transform: scale(1.05); /* Vergrößert den gesamten Container leicht */
    transform: none; /* Entfernt unnötige Skalierung */
    cursor: pointer;
}

.bild-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* Sanfte Vergrößerung des Bildes */
    transform: translateZ(0); /* Erzwingt sauberes Rendering */
    backface-visibility: hidden; /* Verhindert Unschärfe */
}

.bild-container:hover img {
    transform: scale(1.1); /* Vergrößert das Bild leicht */
}

.bild-beschreibung {
    position: absolute;
    bottom: -50px; /* Start außerhalb des Containers */
    width: 100%;
    background-color: rgba(51, 51, 51, 0.6);
    color: #fff;
    text-align: center;
    font-family: "Titillium Web", sans-serif;
    font-size: 1em;
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    transition: bottom 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* Zusätzliche detaillierte Beschreibung */
.bild-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    font-family: "Titillium Web", sans-serif;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

/* Titel (h4) ist immer sichtbar */
.bild-overlay h4 {
    margin: 0;
    font-size: 1em;
    font-weight: bold;
}

/* Beschreibung (p) ist erstmal versteckt */
.bild-overlay p {
    margin: 5px 0 0;
    font-size: 0.9em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Beim Hover Beschreibung einblenden */
.bild-container:hover .bild-overlay p {
    opacity: 1;
    max-height: 300px; /* oder passend anpassen */
}


/* Für mobile Ansicht: Slider */
.bilder-slider {
    position: relative;
    width: 100%;
    max-width: 600px; /* Optional: Maximalbreite des Sliders */
    margin: 0 auto; /* Zentriert den Slider horizontal */
    overflow: hidden; /* Verhindert, dass Elemente herausragen */
}

.bilder-slider .bild-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Quadratisches Verhältnis */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background-color: rgba(247, 247, 247, 0.5); /* Optional für einen einheitlichen Hintergrund */
}

.bilder-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zuschneiden und anpassen */
    border-radius: 8px;
}


.bilder-slider .bild-beschreibung {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.4); /* 40% Deckkraft */
    color: #fff;
    text-align: center;
    font-family: "Titillium Web", sans-serif;
    font-size: 1em;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
}

.bilder-slider .pfeil {
    position: absolute;
    top: 50%; /* Vertikal zentriert im Container */
    transform: translateY(-50%);
    background-color: rgba(51, 51, 51, 0.7);
    color: #fff;
    border: none;
    width: 40px; /* Größe der Pfeile */
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Sicherstellen, dass Pfeile über dem Bild liegen */
    transition: background-color 0.3s ease, transform 0.2s ease;
}


.bilder-slider .pfeil.links {
    left: 10px; /* Abstand vom linken Rand des Containers */
}

.bilder-slider .pfeil.rechts1 {
    right: 10px; /* Abstand vom rechten Rand des Containers */
}






#ref_nav {
    background-color: rgba(247, 247, 247, 0.3);
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    text-align: center;
    padding: 16px;
    width: 100%;
}

#ref_nav a {
    padding: 16px;
    text-decoration: none;
    text-align: center;
    color: black;
    font-size: 17px;
    background-color: rgba(247, 247, 247, 0.9);
    transition: color 0.3s, background 0.3s;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

#ref_nav a.active {
    background-color: #ddd;
    color: black;
    border-bottom: none;
    cursor: default;
}

#ref_nav a:not(.active):hover {
    background-color: #dddddd;
    color: black;
    cursor: pointer;
}

#leer-nachricht {
  grid-column: 1 / -1; /* Über alle Spalten */
  justify-self: center;
  text-align: center;
  font-style: italic;
  color: #ce3a3a;
  font-size: 1.1em;
  padding: 20px;
}



/* ==========================
    KARRIERE
========================== */


#karriere {
    background-color: #fff;
    color: var(--snftgr);
}

.karriere-title {
    text-align: center;
    color: var(--snftgr);
    margin-bottom: 30px;
    font-size: 2em;
    font-family: "Titillium Web", sans-serif;
}

.karriere-container {
    max-height: auto;
    display: flex;
    max-width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 0 5vw;
    box-sizing: border-box;
}

.karriere-box {
    /* border: 2px solid #dddddd;*/
    border-radius: 10px;
    -webkit-box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37); 
    box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37);
    overflow: hidden;
    /* background-color: rgba(247, 247, 247, 0.5); */
}

.karriere-box.active .karriere-content {
    display: flex; /* Inhalte anzeigen */
}


.karriere-toggle {
    background: none;
    border: none;
    padding: 20px;
    width: 100%;
    text-align: left;
    color: var(--gelb);
    font-family: "Titillium Web", sans-serif;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.karriere-toggle:hover {
    background-color: #dddddd;
}

.karriere-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    font-family: "Titillium Web", sans-serif;
    color: var(--snftgr);
    gap: 20px;
}

.column {
    flex: auto; /* Jede Spalte nimmt 50% ein */
    padding: 10px;
}

.karriere-list {
    list-style: none;
    padding: 0;
}

.karriere-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.karriere-list li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--gelb);
    font-weight: bold;
}

.toggle-icon {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.karriere-box.active .karriere-content {
    display: block;
}

.karriere-box.active .toggle-icon {
    transform: rotate(360deg); /* Übergang von + zu − */
}

/* ==========================
   KONTAKT
========================== */


#kontakt {
    background-color: #ffffff;
    color: var(--snftgr);
    padding: 40px 5vw; /* Abstand für Innenbereiche */
    box-sizing: border-box;
    overflow: hidden; /* Verhindert Überlaufen */
    font-family: "Titillium Web", sans-serif;
}

.kontakt-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto; /* Zentriert den Container */
    max-width: 100%; /* Verhindert Überschreiten der Breite */
    box-sizing: border-box;
    
}

.kontakt-info, .kontakt-map, .kontakt-form {
    flex: 1 1 calc(33.333% - 20px); /* Flexibler Platz für drei Spalten */
    padding: 20px;
    /* background-color: rgba(247, 247, 247, 0.5); */
    border-radius: 10px;
    -webkit-box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37); 
    box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.37);
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); */
    box-sizing: border-box;
    /* border: 2px solid #dddddd; */
}

.kontakt-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.kontakt-info ul li a {
    color: var(--gelb);
    text-decoration: none;
}

.kontakt-info ul li a:hover {
    text-decoration: underline;
}

.kontakt-info address {
    font-style: normal;
    line-height: 1.8;
}

.kontakt-map iframe {
    border: 0;
    width: 100%;
    border-radius: 8px;
}

.kontakt-map p a {
    text-decoration: none;
    color:red;
}

.kontakt-form h3 {
    margin-bottom: 20px;
    color: var(--gelb);
}

.kontakt-form .form-group {
    margin-bottom: 20px;
}

.kontakt-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--snftgr);
}

.kontakt-form input, .kontakt-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background-color: #ffffff;
    color: var(--snftgr);
    font-size: 1em;
    box-sizing: border-box;
}

.kontakt-form button {
    background-color: var(--newgr);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.3s, background 0.3s;
    
}

#load-map{
    background-color: var(--newgr);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.3s, background 0.3s;

}

#google-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1em;
}


.kontakt-form button:hover {
    background-color: var(--snftgr);
    color: #ffffff;
}

.kontakt-feedback-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(3px);
}

.kontakt-feedback-box {
    position: relative; /* wichtig für X */
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    text-align: center;
    font-family: 'Titillium Web', sans-serif;
}

.kontakt-feedback-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #222;
}

.kontakt-feedback-box p {
    color: #555;
}

.close-btn {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #222;
}


.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#lightbox-caption {
  color: white;
  margin-top: 1rem;
  text-align: center;
  font-family: "Titillium Web", sans-serif;
}



.close-btn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
}

.nav-btn.prev {
  left: 10px;
}

.nav-btn.next {
  right: 10px;
}


#logo_background{
background-color: #ffffff;
}





/* roboto-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/roboto-v48-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100;
  src: url('../fonts/roboto-v48-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/roboto-v48-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 200;
  src: url('../fonts/roboto-v48-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto-v48-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/roboto-v48-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/roboto-v48-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v48-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/roboto-v48-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/roboto-v48-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/roboto-v48-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v48-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/roboto-v48-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/roboto-v48-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/roboto-v48-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/roboto-v48-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/roboto-v48-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ==========================
   Responsive Anpassungen (Mobile)
   ========================== */

@media (max-width: 767px) {
    #home .text-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
    margin-top: 50px;
    margin-bottom: 80px;
    }

    #home .text-container .links,
    #home .text-container .rechts {
    width: 100%;
    }

   

    #logo-alt {
    top: unset;
    left: unset;
    }

    .partnerlogos img {
    height: 50px;
    }

    /* Allgemeine Einstellungen */
    #home {
        padding-bottom: 0;
        justify-content: space-between;
    }

    .click-box {
        flex: 1 1 100%;
        position: relative;
        top: -80px;
    }

    #home .box-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    }

    #home .text-container h1.section-title {
        font-size: 1.5em; /* Reduziert Schriftgröße */
    }

    #home .text-container h2.section-title-sm {
        font-size: 1.2em;
        padding: 0px;
    }

    /* Mobile Topnav Container */
    #mobile-nav-container {
        background-color: #fff; /* Gleiche Farbe wie der Desktop-Topnav */
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        padding: calc(var(--logo-height) / 2 + var(--logo-top)) 16px; /* Dynamische Höhe */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #mobile-nav-container #burger-menu {
        margin-left: auto; /* Stellt sicher, dass das Burger-Menü rechts bleibt */
    }

    /* Mobile Navigation */
    #mobile-nav {
        position: fixed;
        top: calc(var(--logo-height) + var(--logo-top)); /* Direkt unter dem Balken */
        right: -100%; /* Außerhalb des Bildschirms verstecken */
        height: calc(100% - (var(--logo-height) + var(--logo-top))); /* Voller Bildschirm abzüglich des Balkens */
        background-color: #fff; /* Gleiche Hintergrundfarbe wie der Balken */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px; /* Optionale Polsterung für die Links */
        transition: right 0.3s ease-in-out;
        z-index: 1500;
    }

    #mobile-nav a {
        color: var(--gelb);
        text-decoration: none;
        padding: 10px 20px;
        font-family: "Titillium Web", sans-serif;
        font-size: 1.5em;
        width: 100%;
        text-align: left;
    }

    #mobile-nav a:hover {
        background-color: #444;
    }

    #mobile-nav.active {
        right: 0; /* Menü sichtbar */
    }

    .bild-container:hover {
        transform: none;
    }

    .bild-container:hover img {
        transform: none;
    }
    .bild-overlay p {
        opacity: 1;
        max-height: none;
    }

     .bilder-slider {
        display: flex; /* Slider nur auf mobilen Geräten anzeigen */
    }

    .bilder-grid {
        display: none; /* Grid auf Handys ausblenden */
    }

    #ref_nav {
        display: none;
    }
}



@media (max-width: 1300px) {
        #home .box-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    }

    .kompetenzen-container {
        display: flex; /* oder grid, je nach Basis */
        flex-wrap: wrap;
        gap: 2rem;
    }

    .kompetenzen-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
        .kompetenzen-container {
            flex-wrap: wrap;
        }
    

}

@media (min-width: 768px) {
    .bilder-grid {
        display: grid; /* Grid ab Tablet/Desk */
    }

    .bilder-slider {
        display: none; /* Slider ab Tablet/Desk ausblenden */
    }

}

@media (min-width: 768px) {
    .bilder-slider .pfeil:hover {
        background-color: #444;
        transform: translateY(-50%) scale(1.1); /* Vergrößert die Pfeile leicht beim Hover */
    }
}

@media (max-width: 768px) {
    .kontakt-container {
        flex-direction: column;
    }

    .kontakt-info, .kontakt-map, .kontakt-form {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media (max-width: 1305px) {
    #betonbohren, #betonsaegen, #schneidearbeiten, #schneidearbeitenii, #kompetenzen, #karriere {
    scroll-margin-top: calc(var(--logo-height) +   16px);
  }
}

/* Unter 1050px: Topnav aus, Burger + Mobile-Panel an */
@media (max-width: 1050px) {
  #topnav { display: none !important; }
  #mobile-nav-container { display: flex !important;z-index: 3000; } /* Leiste mit Logo + Burger */
  #mobile-nav { display: flex !important; }           /* Offcanvas-Panel (startet rechts, via .active reinfahren) */
  #logo {
    width: 180px; /* optional verkleinert fürs Handy */
  }

  /* ==========================
   Mobile Version
   ========================== */
#burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: fixed;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 2000;
}

#burger-menu span {
    background-color: var(--grau);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

#burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#burger-menu.active span:nth-child(2) {
    opacity: 0;
}

#burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Außerhalb des Bildschirms */
    height: 100%;
    width: 45%;
    background-color: white;
    color: var(--grau);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1500;
}

#mobile-nav a {
    color:  var(--gelb);
    text-decoration: none;
    padding: 10px 20px;
    font-family: var(--schrift);
    font-size: 1.5em;
    width: 100%;
    text-align: left;
}

#mobile-nav a:hover {
    background-color: #444;
    color: var(--grau);
}

#mobile-nav.active {
    right: 0; /* Kommt ins Bild */
}
}