:root {
  /* Farben */
  --bg: #fff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;

  --accent: #0b3b7a;
  --accent-2: #0f58b6;

  --surface: #fff;
  --surface-2: #fafafa;

  /* UI */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;

  --shadow-header: 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, .08);

  --container-max: 1200px;
  --container-gap: 92%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  padding-top: 80px;
  padding-bottom: 40px;
}

.container {
  width: min(var(--container-max), var(--container-gap));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 1);

  border-bottom: 0;
  padding: 0;
}

.site-header .container {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Logo links + Menü wirklich mittig */
.logo {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
}

.logo img {
  height: 55px;
  display: block;
  width: auto;
  transform: scale(1.15);
  transform-origin: left center;
}

/* ===== Navigation ===== */
.nav {
  margin: 0 auto;
  /* zentriert das Menü */
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: var(--accent-2);
  background: rgba(15, 88, 182, .08);
}

/* ===== Dropdown (Style wie Beispiel) ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-caret {
  margin-left: 6px;
  color: #c40000;
  font-size: 12px;
  display: inline-block;
  transition: transform .15s ease;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 260px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  border-radius: 14px;

  padding: 10px 0;
  display: none;
  z-index: 100;
}

.nav-menu a {
  display: block;
  padding: 12px 20px;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 15px;
}

.nav-menu a:hover {
  background: #f3f6fa;
  color: #1b4d7a;
}

/* Hover-only öffnen */
.nav-dropdown:hover .nav-menu {
  display: block;
}

.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

/* ===== Hero ===== */
.hero {
  padding: 320px 0 200px;
  text-align: center;
  background: linear-gradient(to bottom, #f5f7fa, var(--bg));
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  color: rgba(17, 24, 39, .75);
}

.hero--bg {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 10, 20, .72), rgba(3, 10, 20, .62)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero--bg h1 {
  color: #fff;
}

.hero--bg p {
  color: rgba(255, 255, 255, .85);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .9);
  color: rgba(255, 255, 255, .95);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .95);
  color: var(--accent);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

/* ===== Cards ===== */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 88, 182, .5);
  box-shadow: var(--shadow-hover);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  padding: 30px 0;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width:900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }
}

/* Button-Reset für den Dropdown-Trigger */
.nav-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  /* nav-link macht das Padding */
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Optional: nur beim Tastatur-Fokus sichtbar */
.nav-trigger:focus {
  outline: none;
}

.nav-trigger:focus-visible {
  outline: 2px solid rgba(15, 88, 182, .35);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.nav-link,
.nav-trigger {
  font-weight: 500;
}

.nav-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;

  border-right: 2px solid #e00000;
  border-bottom: 2px solid #e00000;

  transform: rotate(45deg);
  transform-origin: center;
  position: relative;
  top: -1px;
  /* hebt den Pfeil leicht an */

  transition: transform .2s ease;
}

/* beim Hover komplett nach oben drehen */
.nav-dropdown:hover .nav-caret {
  transform: rotate(-135deg);
}

/* Dropdown: Hover muss auf Wrapper ODER Menü gelten */
.nav-dropdown {
  position: relative;
}

/* Menü etwas näher ran, damit keine Hover-Lücke entsteht */
.nav-menu {
  top: calc(100% + 4px);
  /* vorher 10px -> macht oft Probleme */
  display: none;
  z-index: 1000;
}

/* Öffnen: sobald Trigger ODER Menü gehovert wird */
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: block;
}

/* Unsichtbare Hover-Brücke (verhindert Lücke) */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-link,
.nav-trigger {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation Links + Dropdown Trigger gleich behandeln */
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;

  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;

  padding: 8px 12px;
  border-radius: var(--radius-sm);

  transition: background-color .2s ease, color .2s ease;
}

/* Hover Effekt */
.nav-link:hover,
.nav-trigger:hover {
  color: var(--accent-2);
  background: rgba(15, 88, 182, .08);
}

/* rechter Bereich */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Kontakt Button */
.contact-btn {
  padding: 8px 12px;
  border: 2px solid #2f2f2f;
  border-radius: 20px;

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;

  text-decoration: none;
  color: #2f2f2f;

  transition: .2s;
}

.contact-btn:hover {
  background: #2f2f2f;
  color: white;
}

/* Social Icons */
.socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: .2s;
}

.socials img:hover {
  opacity: 1;
}

.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;

  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;

  transform: rotate(45deg);
}

.hero-company {
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}

/* Über uns Bereich */
#ueber-uns h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  /* dein Blau */
  margin-bottom: 24px;
}

#ueber-uns p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 16px;
}

/* Über uns Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width:900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

#ueber-uns {
  background: #f3f4f6;
  /* hellgrau */
  padding: 100px 0;
  /* oben und unten Abstand */
}

.about-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 22px;

  background: var(--accent);
  color: white;
  text-decoration: none;

  font-weight: 700;
  border-radius: 30px;

  transition: .2s;
}

.about-btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.kontakt-section {
  background: #f3f4f6;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.kontakt-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontakt-form input:not([type="checkbox"]),
.kontakt-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.kontakt-form button {
  margin-top: 10px;
  align-self: flex-start;
  box-shadow: none;
  border: none;
}

.checkbox-group {
  margin: 10px 0 5px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  /* vertikal zentrieren */
  justify-content: flex-start;
  width: 100%;
  gap: 24px;
  /* mehr Abstand zwischen Text und Checkbox */
  font-size: 15px;
  color: var(--text);
}

.checkbox-text {
  flex: 1;
  line-height: 1.5;
  /* etwas harmonischer mit Checkbox */
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(3px);
  /* minimal nach unten für perfekte optische Mitte */
}

.required {
  color: #e00000;
  font-weight: 700;
}

#submitBtn[disabled] {
  background: #bfc5cc;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.privacy-header h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.privacy-card {
  margin-bottom: 20px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.privacy-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.privacy-card p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.privacy-card p:last-child,
.privacy-contact p:last-child {
  margin-bottom: 0;
}

.privacy-contact {
  padding: 18px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.privacy-contact p {
  margin: 0 0 8px;
}

.privacy-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.privacy-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 8px;
  height: 3px;
  border-radius: 50%;
  background: #374151;
}

.privacy-policy a {
  font-weight: 500;
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .privacy-policy {
    padding: 56px 16px;
  }

  .privacy-card {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .privacy-card h2 {
    font-size: 21px;
  }

  .privacy-card p,
  .privacy-list li {
    font-size: 15px;
  }
}

.imprint-page {
  padding: 140px 20px 80px;
  background: #f8fafc;
  color: #1f2937;
}

.imprint-container {
  max-width: 900px;
  margin: 0 auto;
}

.imprint-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.imprint-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f58b6;
}

.imprint-header h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.imprint-intro {
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: #4b5563;
}

.imprint-content {
  display: grid;
  gap: 20px;
}

.imprint-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.imprint-block h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.imprint-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.imprint-block a {
  color: #0f58b6;
  text-decoration: none;
}

.imprint-block a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .imprint-page {
    padding: 120px 16px 64px;
  }

  .imprint-block {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .imprint-block h2 {
    font-size: 18px;
  }

  .imprint-block p {
    font-size: 15px;
  }
}

/* ===== Leistungen Split Section ===== */
.services-split {
  padding: 100px 20px;
  background: #f8fafc;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-image {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.service-overlay h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-content {
  padding: 28px;
}

.service-content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0b3b7a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

/* ===== Scroll Reveal Ausgangszustand ===== */
.reveal-left {
  transform: translateX(-100px);
}

.reveal-right {
  transform: translateX(100px);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-container {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 320px;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(60px);
  }

  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* ===== Partner Section ===== */

.partners {
  padding: 100px 20px;
  background: #ffffff;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-header {
  text-align: center;
  margin-bottom: 50px;
}

.partners-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
  color: #111827;
}

/* Logos */

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.partner-logo:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

.partners-line {
  width: 1020px;
  height: 1px;
  background: #e5e7eb;
  margin: 20px auto 40px auto;
}

.kontakt-page {
  padding-top: 120px;
}

.kontakt-form-section{
  padding: 120px 20px 100px;
}
.kontakt-form-intro{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.kontakt-form-intro h2{
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--accent);
}

.kontakt-form-intro p{
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.kontakt-box {
  background: #f3f4f6;
  padding: 40px;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.kontakt-box h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.kontakt-form .form-group {
  margin-bottom: 22px;
}

.kontakt-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
}

.kontakt-form textarea {
  min-height: 160px;
}

/* ===== Fensterbau Leistungen ===== */

.fensterbau-leistungen {
  padding: 100px 20px;
  background: #f8fafc;
}

.fensterbau-header {
  text-align: center;
  margin-bottom: 60px;
}

.fensterbau-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.fensterbau-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.fensterbau-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
}

.fensterbau-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.fensterbau-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.fensterbau-icon {
  font-size: 28px;
  color: #0b3b7a;
}

.fensterbau-icon-wrap {
  width: 64px;
  height: 64px;
}

.fensterbau-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.fensterbau-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

/* Responsive */

@media (max-width:900px) {

  .fensterbau-grid {
    grid-template-columns: 1fr;
  }

}

.fensterbau-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.fensterbau-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111827;
}

.fensterbau-card h3::after {
  content: "";
  display: block;
  width: 300px;
  height: 2px;
  background: #0b3b7a;
  margin-top: 8px;
  opacity: 0.2;
}

.fensterbau-card:hover .fensterbau-icon-wrap {
  background: #e9eef6;
}

.fensterbau-card {
  padding: 26px 26px;
}

.fensterbau-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: #0b3b7a;
}

/* ===== Fensterbau Hero ===== */

.fensterbau-hero {
  position: relative;
  height: 30vh;
  min-height: 520px;

  background-image: url("images/fensterbau-hero.jpg");
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fensterbau-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.fensterbau-hero-content {
  position: relative;
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff;
}

.fensterbau-hero-content h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.fensterbau-hero-content p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  opacity: 0.95;
}

/* ===== Elektrotechnik Leistungen ===== */

.elektrotechnik-leistungen {
  padding: 100px 20px;
  background: #f8fafc;
}

.elektrotechnik-header {
  text-align: center;
  margin-bottom: 60px;
}

.elektrotechnik-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.elektrotechnik-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.elektrotechnik-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 26px 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
}

.elektrotechnik-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.elektrotechnik-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.elektrotechnik-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.elektrotechnik-icon {
  font-size: 28px;
  color: #0b3b7a;
}

.elektrotechnik-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111827;
}

.elektrotechnik-card h3::after {
  content: "";
  display: block;
  width: 300px;
  height: 2px;
  background: #0b3b7a;
  margin-top: 8px;
  opacity: 0.2;
}

.elektrotechnik-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.elektrotechnik-card:hover .elektrotechnik-icon-wrap {
  background: #e9eef6;
}

/* ===== Elektrotechnik Hero ===== */

.elektrotechnik-hero {
  position: relative;
  height: 30vh;
  min-height: 520px;
  background-image: url("images/elektrotechnic.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.elektrotechnik-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.elektrotechnik-hero-content {
  position: relative;
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff;
}

.elektrotechnik-hero-content h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.elektrotechnik-hero-content p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  opacity: 0.95;
}

/* ===== Responsive ===== */

@media (max-width:900px) {
  .elektrotechnik-grid {
    grid-template-columns: 1fr;
  }
}

.elektrotechnik-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: #0b3b7a;
}

/* Hinweis unter Titel */

.elektro-hinweis {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* Meisterhinweis in Karten */

.meister-note {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

.contact-info-section {
  padding: 90px 20px 60px;
  background: #f8fafc;
}

.contact-info-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact-info-intro .section-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #0b3b7a);
}

.contact-info-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  color: var(--accent, #0b3b7a);
}

.contact-info-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted, #6b7280);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  background: var(--accent, #0b3b7a);
  color: #ffffff;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.contact-info-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--accent, #0b3b7a);
}

.contact-info-card p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted, #6b7280);
}

.contact-info-card a {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-2, #0f58b6);
  text-decoration: none;
  word-break: break-word;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-section {
    padding: 70px 20px 40px;
  }
}

/* =========================
   KARRIERE
========================= */

.karriere-hero{
  padding: 140px 20px 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.karriere-hero-inner{
  max-width: 900px;
}

.section-kicker{
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.karriere-hero h1{
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  color: var(--text);
}

.karriere-intro{
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.karriere-jobs{
  padding: 90px 20px;
  background: #ffffff;
}

.karriere-section-head{
  max-width: 800px;
  margin-bottom: 40px;
}

.karriere-section-head h2{
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
}

.karriere-section-head p{
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.job-list{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-card{
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  border-color: rgba(11, 59, 122, 0.18);
}

.job-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.job-tag{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 59, 122, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.job-card h3{
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text);
}

.job-desc{
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.job-card-side{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.job-facts{
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-facts li{
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.job-facts li:last-child{
  margin-bottom: 0;
}

.job-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.job-btn:hover{
  background: var(--accent-2);
  transform: translateY(-2px);
}

.karriere-benefits{
  padding: 0 20px 100px;
  background: #ffffff;
}

.benefits-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-box{
  padding: 28px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.benefit-box h3{
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--text);
}

.benefit-box p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Active Nav-Link */
.nav-link.active{
  color: var(--accent);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px){
  .job-card{
    grid-template-columns: 1fr;
  }

  .job-card-side{
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }

  .benefits-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .karriere-hero{
    padding: 120px 20px 70px;
  }

  .job-card{
    padding: 22px;
  }

  .job-card h3{
    font-size: 24px;
  }

  .karriere-intro,
  .karriere-section-head p,
  .job-desc{
    font-size: 15px;
    line-height: 1.7;
  }
}

.karriere-hero{
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 140px 20px 80px;
  overflow: hidden;
}

.karriere-hero-bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.karriere-hero-bg img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karriere-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.58);
  z-index: 2;
}

.karriere-hero-inner{
  position: relative;
  z-index: 3;
  max-width: 850px;
}

.karriere-hero .section-kicker{
  color: rgba(255,255,255,0.85);
}

.karriere-hero h1{
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.karriere-hero .karriere-intro{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1.8;
}

/* =========================
   MOBILE ONLY
   Greift nur auf Tablet/Handy
   Desktop bleibt unberührt
========================= */
@media (max-width: 768px) {

  .container {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    padding: 10px 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
  }

  .nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 8px;
  }

  .nav-link,
  .nav-trigger,
  .kontakt-btn {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.1;
  }

  .hero p,
  .hero-company,
  .hero-subtitle {
    font-size: 14px;
  }

  section {
    padding: 56px 0;
  }

  .leistungen-grid,
  .partner-grid,
  .fensterbau-grid,
  .elektro-grid,
  .jobs-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .fensterbau-card,
  .elektro-card,
  .job-card,
  .service-card {
    padding: 20px;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .site-header .container,
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo img {
    height: 34px;
    width: auto;
    max-width: 140px;
  }

  .nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 4px;
  }

  .nav-link,
  .nav-trigger {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .kontakt-btn {
    padding: 10px 14px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .header-socials,
  .social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-socials a,
  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }

  .header-socials svg,
  .social-icons svg,
  .header-socials i,
  .social-icons i {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  main,
  section,
  .hero,
  .about,
  .services,
  .site-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ===== Mobile fix: kein seitliches Wischen / kein Rausziehen ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  body {
    margin: 0;
    overflow-x: hidden;
  }

  .site-header,
  main,
  section,
  footer,
  .container,
  .header-inner,
  .hero,
  .hero-text {
    width: 100%;
    max-width: 100%;
  }

  .container {
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}