/* Allgemeine Stile */

body {

    font-family: 'Poppins', sans-serif;

    line-height: 1.6;


}
:root {
    --navbar-height: 100px; /* Höhe der Navigation */
}

section[id] {
    scroll-margin-top: var(--navbar-height); /* Offset für Ankerpunkte */
}
/* info */
.info {
    font-size: 14px;
    border-bottom: 1px solid #ddd;
	background-color:  #022c70 !important;
    color: #fff;
    margin:-1px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
	margin-left: 60px;
}
.info i {
    font-size: 16px;
}
/* Navigation */

.navbar {
    margin-top: 40px; /* Höhe der Info-Leiste */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
	font-size: 1.2rem;
	line-height: 1;
    letter-spacing: 0px;
    font-weight: 100;

}
.navbar img {
	height: 80px;
}

li {
   margin-left: 40px;	
}
.navbar.scrolled {

    background-color: #fff;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}

.nav-link.active {

    color: #022c70 !important;

}

.nav-link:hover {

    color: #0056b3 !important;
	font-weight: 400;

}

/* Hero Section */

#hero {
    
    font-family: 'Poppins', sans-serif;

    font-weight: 400;

    font-size: 16px;

    position: relative;

    width: 100%;

    height: 100vh;

    background-image: url('img/lasercut.jpg');

    background-size: cover;

    background-position: center;

}

.overlay {
    
    position: absolute;

    top: 0%;

    left: 0;

    width: 100%;

    height: 100%;
	font-size: 14px;
    background-color: rgba(2, 44, 112, 0.7);
    clip-path: polygon(20% 0, 50% 0, 70% 100%, 40% 100%);
}
.headline {
	margin-top: 10%;
    width: 80%;
}
.banner {
	display: flex;
	margin-top: 80px;
	height:400px;
	width: 80%;
    background: rgba(0,0,0,0.5);
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
	justify-content: center; /* Horizontale Zentrierung */
	margin-left:18%;
}
    .banner img {
	margin-top: 7%;
	width: 600px !important;
    height: 300px !important;
    object-fit: cover; /* Bild wird beschnitten, um den Bereich zu füllen */
    cursor: pointer; /* Zeigt an, dass das Bild klickbar ist */
    }

h1 {
  font-family: "Teko";
  font-size: 3.5rem;
    line-height: 1;
    letter-spacing: 0px;
    font-weight: 500;
    text-transform: uppercase;
    font-style: normal;
}
h2 {
  font-family: "Teko";
  color: #007bff;
  font-size: 1 rem;
}	
h3 {
  font-family: "Teko";
  font-size: 2.5rem;
    line-height: 1;
    letter-spacing: 0px;
    font-weight: 500;
    font-style: normal;
}

/*Symbole */
.fas {
    color: #4a90e2 !important; /* Heller Blauton */
}

/* Rechteck um h2 */

.rectangle {
  
  width: 200px;

  height: 35px;

  background-color: light-white;

  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
	margin: 20px; /* optional, Abstand zum H2 */
  display: inline-block; /* Damit das Rechteck auch zentriert wird */
  margin: 50px;

}
/* Über uns*/
.about-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center;    /* Vertikale Zentrierung */
    flex-wrap: wrap;        /* Inhalte umbrechen lassen, falls nötig */
}

.about-text {
    flex: 2;
    font-family: Arial, sans-serif;
    height: 400px;

}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;

}
.about-head{
    display: flex;
    justify-content: center;  /* Horizontal zentrieren */
    align-items: center;      /* Vertikal zentrieren */
	width: 100%;              /* Volle Breite des Viewports */
}
.about-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    justify-content: center; /* Horizontale Zentrierung der Inhalte in der Karte */
    align-items: center;     /* Vertikale Zentrierung der Inhalte in der Karte */
    text-align: center;      /* Zentriert den Text */
    flex-wrap: wrap;         /* Falls der Inhalt zu breit wird, wird er umgebrochen */
}


/* Projektzähler */


#projectCount {
    font-size: 100px;
    font-weight: bold;
    color: #007bff;
	justify-content: center; /* Horizontale Zentrierung der Inhalte in der Karte */
    align-items: center;     /* Vertikale Zentrierung der Inhalte in der Karte */
	height: 240px;
}
/* Produktrondell */

.top-products {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
	height: 350px;

}

.product-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
	

}

.product {
    flex: 0 0 33.3%; /* Drei sichtbare Produkte */
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    margin: 0 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	height: 300px;
	width: 250px;
}
.product img{
	height: 220px !important;
    max-width: 80%;	
}

.product-card:hover {
    transform: scale(1.05);
}

#productModal img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.product-details {
    flex-basis: 50%;
}
.product-image {
    flex-basis: 50%;
}
.modal-body img {
    max-width: 100%;
    height: auto;
}
.modal-body p {
    font-size: 1rem;
    line-height: 1.5;
}
		.product-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    justify-content: center;
}

.product-card {
    width: calc(25% - 16px); /* 4 Spalten */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}


.image-container img {
    width: 90%;
    height: 300px;

}

.price-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #333;
}

.product-info p {
    font-size: 14px;
    color: #666;
}

.carousel-control {
	margin-top: 0px !important;
	margin: -30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
}
.carousel-control-prev-icon{
	margin-top: 4px;
	margin-right: 4px;
}
.carousel-control.prev {
    left: 10px;
}
.carousel-control-next-icon{
	margin-top: 4px;
	margin-left: 4px;
}
.carousel-control.next {
    right: 10px;
}


.carousel-control:hover {
    background-color: rgba(0, 0, 0, 1.2);
}

/* Service Cards */

.service-card {

    border: 1px solid #ddd;

    border-radius: 8px;

    transition: transform 0.3s ease;
	
	height: 390px;
    
	
}

.service-card:hover {

    transform: translateY(-10px);

}




/* Kontaktformular */
#contact {
  display: flex;               /* Flexbox aktivieren */
  justify-content: center;     /* Horizontal zentrieren */
  align-items: center;         /* Vertikal zentrieren */
  width: 100%;
  flex-direction: column;
}

#contact form .form-control {

    margin-bottom: 15px;
	

}
.contact-container {
  display: flex;
  flex-direction: column;      /* Inhalte im Container werden untereinander angezeigt */
  align-items: center;         /* Zentriert die Inhalte horizontal */
  justify-content: center;     /* Zentriert die Inhalte vertikal */
  background-color: #fff;      /* Weißer Hintergrund für das Formular */
  border-radius: 8px;          /* Ecken abrunden */
  padding: 80px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Schatteneffekt */
  max-width: 900px;            /* Maximale Breite des Containers */
  width: 100%;                 /* Flexibilität bei der Breite */
}

/* AOS-Animation */

[data-aos] {

    opacity: 0;

    transform: translate3d(0, 20px, 0);

    transition: opacity 0.4s ease, transform 0.4s ease;

}

[data-aos].aos-animate {

    opacity: 1;

    transform: translate3d(0, 0, 0);

}
/* Modal Impressum */
/* Das Modal wird standardmäßig unsichtbar sein */
.modal-backdrop {
    z-index: 1049 !important;
}

.modal {
    z-index: 1050 !important;
}
.modal {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed; /* Fest positioniert */
    z-index: 1000; /* Modal über anderen Inhalten */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Abgedunkelter Hintergrund */
}

/* Modal-Inhalt */
.modal-content {
    background-color: white;
	color: black;
    margin: 1% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 1000px;
}
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den Inhalt horizontal */
    justify-content: flex-start; /* Positioniert den Inhalt oben */
    padding: 20px; /* Optional: Etwas Abstand nach oben */
}
.d-flex {
    display: flex;
    flex-direction: row; /* Nebeneinander anordnen */
    gap: 20px; /* Optional: Abstand zwischen den Elementen */
}

/* Das Bild oben zentrieren */
#modalImage {
    width: 100%;
    max-width: 600px; /* Maximale Breite des Bildes */
    height: auto; /* Proportionale Höhe des Bildes */
}
/* Bild auf 90% der Modal-Breite setzen */
.product-img {
    height: 500px;
    margin: 0 auto; /* Zentrierung des Containers innerhalb des Modals */
    display: flex;
    justify-content: center; /* Zentriere den Inhalt horizontal */
}

.product-img img {
    width: 100% !important; /* Bild füllt den Container vollständig */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    display: block; /* Verhindert unnötige Leerbereiche */
}
.modal-dialog {
    max-width: 90%; /* Maximale Breite des Modals auf 90% des Viewports setzen */
}

.modal-dialog.wide-modal {
    max-width: 80%;
}

/* Das "Schließen"-Symbol */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Produktimage mit HG */
/* Container für das Bild und den Hintergrund */
.image-container {
	margin-top: 10px;
    position: relative;
    position: relative;
    overflow: hidden;
}

/* Grauer Hintergrund mit Schatten */
.image-background {
    background-color: #d3d3d3; /* Grauer Hintergrund */
    position: relative;
    padding-top: 56.25%; /* 16:9 Verhältnis (das Bild wird angepasst, um dieses Verhältnis zu halten) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Schatten um den Hintergrund */
    overflow: hidden;
}

/* Bild, das im Verhältnis zum Container bleibt */
.image-background img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Bildverhältnis beibehalten */
}

/* Optional: Stil für die Preisüberlagerung */
.price-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
}
/* Stellt sicher, dass der Gnom nur auf der Desktop-Version sichtbar ist */
#gnom {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000; /* Über andere Inhalte legen */
    display: none; /* Standardmäßig ausblenden */
}

#gnom img {
    width: 250px; /* Größe des Bildes anpassen */
    height: auto;
}
 #gnom {
        display: block;
    }

.producte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Automatische Anpassung */
    grid-gap: 20px; /* Abstand zwischen den Produkten */
    justify-items: center; /* Zentriert die Elemente */
    padding: 20px; /* Abstand um das Grid */
}

.producte-grid .product {
    text-align: center;
    background-color: #f9f9f9; /* Optionaler Hintergrund für Produkte */
    padding: 15px; /* Innenabstand */
    border: 1px solid #ddd; /* Rahmen für die Produkte */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Schatten für visuelle Tiefe */

}

.producte-grid .product img {
    width: 95%; /* Bild füllt den Produktbereich */
    height: auto; /* Proportionen beibehalten */
    object-fit: cover; /* Verhindert verzerrte Bilder */
    border-radius: 4px; /* Abgerundete Ecken für das Bild */
    margin-bottom: 10px; /* Abstand zwischen Bild und Text */
}

.producte-grid .product p {
    margin: 0;
    font-size: 16px; /* Textgröße */
    color: #333; /* Textfarbe */
    font-weight: bold; /* Optional: Fettschrift */
}

.top5product {
    flex: 0 0 33.3%; /* Drei sichtbare Produkte */
    text-align: center;
    padding: 10px;
    background-color: #ffffff; /* Etwas helleres Weiß für ein sauberes Design */
    margin: 0 10px; /* Mehr Abstand zwischen Produkten */
    border-radius: 10px; /* Weichere Ecken */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 97%;
    width: 220px;
    position: relative; /* Für z-index beim Hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top5product img {
    height: 200px;
    max-width: 80%;	
    border-radius: 8px; /* Abgerundete Ecken für Bilder */
    transition: transform 0.3s ease; /* Sanfter Hover-Effekt für Bilder */
}

.top5product:hover {
    transform: scale(1.1); /* Vergrößern beim Hover */
    z-index: 10; /* Nach vorne bringen */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Tiefere Schatten beim Hover */
}

.top5product:hover img {
    transform: scale(1.05); /* Bild leicht vergrößern */
}

.top5product:hover p {
    color: #007bff; /* Textfarbe ändern beim Hover */
}

.top5product-card:hover {
    transform: scale(1.05);
}

/* Grundlegendes Layout für die Produktliste */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-y: auto; /* Scrollen ermöglichen, wenn mehr Karten vorhanden sind */
    max-height: 600px; /* Hier die maximale Höhe für den scrollbaren Bereich anpassen */
}

/* Layout für die Produktkarten */
.product-card {
    width: calc(50% - 10px); /* Auf mobilen Geräten zwei Karten nebeneinander */
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Hover-Effekt für die Produktkarten */
.product-card:hover {
    transform: scale(1.05);
}

/* Bildanpassung */
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Produktname und Beschreibung */
.product-card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.product-card p {
    font-size: 1rem;
    color: #555;
}

.product-card span {
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
}

/* Responsives Design für größere Bildschirme */
@media (min-width: 768px) {
    .product-card {
        width: calc(33.33% - 10px); /* Auf größeren Bildschirmen drei Karten nebeneinander */
    }
}

/* Weitere Anpassungen für größere Bildschirme, wenn gewünscht */
@media (min-width: 1024px) {
    .product-card {
        width: calc(25% - 10px); /* Auf sehr großen Bildschirmen vier Karten nebeneinander */
    }
}
