/* =============================================== Farben & Fonts =============================================== */
:root {
	/* Farbdefinitionen - Änderungen wirken auf gesamter Website */
	--primary: #002366;
	--primary-hover: #001B4D;
	--dark: #1f2933;
	--gray-light: #f5f5f5;
	--gray-dark: #c4c4c4;
	--text-color: #333;
	--btn-text: white;
	--btn-bg: var(--primary);
	--btn-bg-hover: var(--primary-hover);

	/* Typografie - einheitliche Schriftarten und -größen, wirken ebenfalls auf gesamter Website */
	--font-main: "Segoe UI", Arial, sans-serif;
	--font-base: 16px;
	--font-h1: 3rem;
	--font-h2: 2.2rem;
	--font-h3: 1.2rem;
}

/* =============================================== Reset / Global =============================================== */
* {
	/* vereinheitlicht Browser-Defaults - entfernt Standardabstände und sorgt für berechenbare Boxgrößen */
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	/* Grundlayout der Seite - Schrift, Farbe, Abstand... */
	font-family: var(--font-main);
	font-size: var(--font-base);
	color: var(--text-color);
	line-height: 1.6;
	background: var(--gray-light);
}

h1 {
	/* Hauptüberschrift Hero Startseite */
	font-family: var(--font-main);
	font-size: var(--font-h1);
	line-height: 1.2;
	color: var(--dark);
	margin-bottom: 20px;
}

h2 {
	/* Abschnittsüberschriften */
	font-family: var(--font-main);
	font-size: var(--font-h2);
	line-height: 1.3;
	color: var(--primary);
	margin-bottom: 15px;
}

h3 {
	/* Unterüberschriften */
	font-family: var(--font-main);
	font-size: var(--font-h3);
	line-height: 1.4;
	color: var(--primary);
	margin-bottom: 10px;
}

h4 {
	/* wichtiger Text */
    margin-top: 15px;
    margin-bottom: 8px;
}

p {
	/* Absatztext - "normaler Text" */
	font-family: var(--font-main);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-color);
	margin-bottom: 20px;
}

/* ================================================ Standard Listen ================================================ */
ul {
	/* aufzählungsliste normal */
    list-style-type: disc;   /* normale runde Punkte */
    padding-left: 20px;      /* Einrückung links */
    margin-bottom: 20px;     /* Abstand unter der Liste */
}

/* ===================================================== Layout ======================================================== */
.content {
	/* zentriert Seiteninhalt, begrenzt Breite, padding=innenabstand oben/unten = 0, links/rechts = 40 */
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 40px;
}

.content-narrow {
	/* Container, der optional breiter sein kann */
	max-width: 2000px;
}

/* ====================================================== Section ======================================================== */

.text-block {
	/* für größere Inhaltsbereiche */
	background: white;
	padding: 60px 40px;
}

.text-block.text-center {
    text-align: center;
}

/* ================================================ Header / Navigation ================================================== */
header {
	/* Layout für die Kopfzeile */
	background: white;
	border-bottom: 1px solid #ddd;
	padding: 15px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header img {
	/* Bildgröße Logo */
	height: 3.4rem;
}

.nav > ul {
	/* ungeordnete Liste der Links */
	list-style: none;
	display: flex;
	align-items: center;
}

.nav li {
	/* einzelne Navigationspunkte */ 
	position: relative;
	margin-left: 25px;
}

.nav a {
	/* Links */
	text-decoration: none;
	color: var(--text-color);
	font-weight: 600;
	padding: 10px 0;
	display: inline-block;
}

nav a:hover {
	/* Farbe beim hovern */
	color: var(--primary);
}

.dropdown-menu {
	/* Untermenü */
	display: none;
	flex-direction: column;    
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	min-width: 200px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-radius: 4px;
	padding: 10px 0;
	list-style: none;
	z-index: 999;
}

.dropdown-menu li {
	margin: 0;
}

.dropdown-menu a {
	display: block;
	padding: 10px 20px;
	font-weight: 500;
	color: var(--text-color);
}

.dropdown-menu a:hover {
	background: var(--gray-light);
	color: var(--primary-hover);
}

.dropdown:hover .dropdown-menu {
	/* Untermenü erst sichrbar beim hovern */
	display: block;
}

/* ================================================== Hero Section ===================================================== */
.hero {
	height: 60vh;
	background: 
		linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
		url("../images/schweissen1.png") center/cover no-repeat;
	display: flex;
	align-items: center;      /* vertikal zentriert */
	justify-content: flex-start;
	padding: 40px 60px 60px 60px;          /* nur links/rechts */
	  animation: heroSwitch 8s infinite;
}


@keyframes heroSwitch {
  0%, 49% {
    background:
      linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
      url("../images/schweissen.png") center/cover no-repeat;
  }

  50%, 100% {
    background:
      linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
      url("../images/schweissen1.png") center/cover no-repeat;
  }
}

.hero h1,
.hero p {
	color: white;
}

.hero-content {
	max-width: 650px;
}


/* ============================================== BUTTONS ============================================ */
.btn {
	background: var(--btn-bg);
	color: var(--btn-text);
	padding: 0.8rem 1.5rem;
	text-decoration: none;
	font-weight: bold;
	cursor: pointer;
	text-align: center;
	border: none;
	border-radius: 4px;
}

.btn:hover {
	background: var(--btn-bg-hover);
	color: var(--btn-text);
}
/* =================================================== Features - Erfahrung, Ausbildung, Präzision, Industrie =================================================== */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	padding: 70px 40px;
	background: white;
	text-align: center;
}

.features-dark {
	display: flex;
	justify-content: center;
	align-items: stretch;
	background: var(--gray-light);
	padding: 20px 20px;
	gap: 0; 
	color: var(--dark);
}

.feature-item {
	flex: 1;
	text-align: center;
	padding: 0 20px;
	border-right: 1px solid var(--text-color);
}

.feature-item p {
    font-size: 0.85rem; /* kleiner als normal */
    line-height: 1.4;  /* optional, für bessere Lesbarkeit */
	margin-bottom: 0;
}

.feature-item img {
  width: 2rem;
  height: 2rem;        /* wichtig: gleiche Höhe */
  border-radius: 50%; /* macht es rund */
  object-fit: cover;  /* verhindert Verzerrung */
}

.feature-item:last-child {
	border-right: none;
}

/* ====================================================================== Services - Unsere Expertise für Ihr Projekt ====================== */
.services {
	background: white;
	padding: 40px 40px;
}

.services h2 {
	text-align: center;
}

.service {
	background: white;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.service div {
	padding: 20px;
}

.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--text-color);;
}

.section-divider:not(:empty)::before {
    margin-right: 15px;
}

.section-divider:not(:empty)::after {
    margin-left: 15px;
}

.section-divider span {
    font-weight: 300;
    color: var(--dark);
}
/* =============================================== CTA - Kontakt unten =============================================== */
.cta {
	background: var(--gray-light);
	color: var(--text-color);
	padding: 60px 40px;
	text-align: center;
}

/* ======================================================= Footer - Fußzeile ====================================================== */
footer {
	background: var(--primary);
	color: var(--gray-light);
	padding: 30px;
	text-align: center;
	font-size: 0.9rem;
}

footer a {
	color: var(--gray-light);
	text-decoration: underline;
}

footer a:hover {
	color: var(--gray-dark);
}

/* ============================================= GRID ALLGEMEIN für Startseite ============================================ */
/* ===================================== GRID SYSTEM (global) ===================================== */

.grid {
	display: grid;
	gap: 30px;
}

.grid-auto {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-tight {
	gap: 20px;
}

.grid-loose {
	gap: 40px;
}

.grid-center {
	text-align: center;
}

.grid-left {
	text-align: left;
}

/* ================================================ ITEM ALLGEMEIN =================================================== */
.grid-item {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grid-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: all 0.3s ease;
	display: block;
}

.grid-item .overlay {
	position: absolute;
	top: 0;	left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 35, 102, 0.6); /* halbtransp. Blau ändern */
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	opacity: 0;
	padding: 20px;
	transition: all 0.3s ease;
}

.grid-item:hover img {
	filter: brightness(60%);
	transform: scale(1.05);
}

.grid-item:hover .overlay {
	opacity: 1;
}

.grid-section .grid-item .overlay h3,
.grid-section .grid-item .overlay p {
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.grid-section .grid-item:hover .overlay h3,
.grid-section .grid-item:hover .overlay p {
    color: var(--gray-light);
}

/* =================================================== Grid für Leistungen, Unternehmen, Karriere ==================================================== */
.unternehmen-expertise {
	background: white;
	padding: 60px 40px;
}

.expertise-item {
	display: block;
	background: white;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	text-decoration: none;         /* Link-Stil entfernen */
	color: inherit;                /* Schriftfarbe übernehmen */
	transition: all 0.3s ease;    /* Smooth Animation */
}

.expertise-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;  /* Bild zoom beim Hover */
}

.expertise-item h3 {
	margin: 15px 0 10px 0;
}

.expertise-item p {
	padding: 0 10px 20px 10px;
}

.expertise-item:hover {
	transform: translateY(-5px); 
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);  /* Shadow verstärken */
}

.expertise-item:hover img {
	transform: scale(1.05);                      /* Bild  zoomen */
}

/* ==================================================== ZERTIFIKATE ==================================================================== */
.downloads-list ul {
	/* entfernt Standard-Listenpunkte und Abstände bei der */
    list-style: none;
    padding: 0;
    margin: 0;
}

.downloads-list li {
	/* Abstand zwischen den einzelnen Einträgen ein */
    margin-bottom: 15px;
}

.downloads-list a {
	/* macht die Links zu flexboxen, damit Icon + Text nebeneinander sitzen, fügt Transition für sanften Hover-Effekt hinzu */
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.downloads-list a img {
	/* definiert Icon-Größe und Abstand zum Text. */
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.downloads-list a:hover {
	/* beim Hover wird der Link farblich hervorgehoben */
    color: var(--primary);
}

/* ================================================= STELLENANGEBOTE ===================================================== */
.stellen-item {
    background: var(--gray-light);
    padding: 25px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stellen-item h3 {
	text-align: center;
}

.stellen-item ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

/* ============================================================= KONTAKT ====================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* exakt halbe Spalten */
    gap: 3rem;
    align-items: start;
}

/* Linke + rechte Spalte */
.contact-left, .contact-right {
    width: 100%;
	margin: 0;
	text-align: left;
}

/* Zweispaltige Felder */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Inputs, Textarea, Button */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form textarea {
    min-height: 200px;
    resize: vertical;
}

.contact-form .btn {
	width: 100%;
}

/* Datei-Upload */
.contact-form .form-upload {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.contact-form .form-upload label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-form .form-upload input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Checkbox */ /*
.contact-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
	font-size: 0.9rem;
	justify-content: flex-start;
	text-align: left;
}

.contact-form .form-checkbox input[type="checkbox"] {
    margin-top: 0rem;
    flex-shrink: 0;
	cursor: pointer;
}

.contact-form .form-checkbox label {
    line-height: 1.4;
} */

/* Container für zwei Spalten */
.contact-columns {
    display: flex;
    gap: 2rem;        /* Abstand zwischen den Spalten */
    margin-top: 1rem;
}

/* Einzelne Spalte */
.contact-column {
    flex: 1;          /* jede Spalte gleich breit */
}

/* Überschriften innerhalb der Spalten */
.contact-column h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

/* Paragraphen innerhalb der Spalten */
.contact-column p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.contact-map {
    margin-top: 1.5rem; /* Abstand zu den Kontaktinfos */
    width: 100%;
    height: 500px;       /* Höhe der Karte */
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ======================================== Media Queries - responsive design für verschiedene Bildschirmgrößen ======================================== */
@media(max-width: 768px) {
	/* alles hier drin gültig für Bildschirme kleinergleich 768px */
	.hero h1 {
    	font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .contact-container {
        grid-template-columns: 1fr; /* Spalten untereinander */
    }

    .contact-form .form-row {
        grid-template-columns: 1fr; /* Zweispaltige Felder werden einspaltig */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Links ausblenden */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: white;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }

    .hamburger {
        display: flex; /* Hamburger anzeigen */
    }

    .nav-links.active {
        display: flex; /* Menü einblenden, wenn aktiv */
    }
}


/* Für Ihr Projekt? */
