/* ===== RESET & BASE STYLES ===== */

/* ===== CSS CUSTOM PROPERTIES - FLUID SCALING ===== */
:root {
  /* Fluid Container Padding - skaliert flüssig zwischen 20px (320px) und 100px (1600px+) */
  --container-padding-mobile: clamp(1.25rem, 4vw, 1.875rem); /* 20px - 30px */
  --container-padding-tablet: clamp(1.875rem, 5vw, 3.125rem); /* 30px - 50px */
  --container-padding-desktop: clamp(3.125rem, 6vw, 5rem); /* 50px - 80px */
  --container-padding-large: clamp(5rem, 7vw, 6.25rem); /* 80px - 100px */
  
  /* Fluid Typography - skaliert flüssig zwischen verschiedenen Bildschirmgrößen */
  --font-size-h1: clamp(2.25rem, 5vw + 1rem, 3rem); /* 36px - 48px */
  --font-size-h2: clamp(1.875rem, 4vw + 0.5rem, 2.25rem); /* 30px - 36px */
  --font-size-h3: clamp(1.5rem, 3vw + 0.5rem, 1.75rem); /* 24px - 28px */
  --font-size-section-title: clamp(2rem, 4.5vw + 0.5rem, 2.5rem); /* 32px - 40px */
  --font-size-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem); /* 16px - 18px */
  
  /* Fluid Spacing */
  --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
  --spacing-sm: clamp(0.75rem, 1.5vw, 1rem);
  --spacing-md: clamp(1rem, 2vw, 1.5rem);
  --spacing-lg: clamp(1.5rem, 3vw, 2rem);
  --spacing-xl: clamp(2rem, 4vw, 3rem);
  --spacing-2xl: clamp(3rem, 6vw, 4rem);
  
  /* Fluid Grid Gaps */
  --grid-gap-sm: clamp(1rem, 2vw, 1.5rem);
  --grid-gap-md: clamp(1.5rem, 3vw, 2rem);
  --grid-gap-lg: clamp(2rem, 4vw, 3rem);
  
  /* Certification Title Alignment - Anpassbar für horizontale Position */
  --certification-title-margin-left: -0.2rem; /* Negativer Wert verschiebt nach links, positiver nach rechts */
}

/* Scrollbar entfernen */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}



html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== HERO IMAGE ===== */
.hero-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.98rem;
  margin: 0;
  padding: 1.5rem 0 1rem 0;
  color: #666;
  width: 100%;
  background-color: #f8f9fa;
  position: relative;
  display: flex;
  align-items: center;
}

nav.breadcrumb .container {
  max-width: 1600px !important;
  margin: 0 auto !important;
  /* Fluid Padding für Breadcrumb */
  padding-left: clamp(1.25rem, 4vw, 6.25rem) !important;
  padding-right: clamp(1.25rem, 4vw, 6.25rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
}

nav.breadcrumb ol {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
  min-height: 2rem !important;
  width: 100% !important;
  justify-content: flex-start !important;
  position: relative !important;
  left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

/* Force breadcrumb alignment - highest specificity */
body nav.breadcrumb .container {
  /* Fluid Padding für Breadcrumb */
  padding-left: clamp(1.25rem, 4vw, 6.25rem) !important;
  padding-right: clamp(1.25rem, 4vw, 6.25rem) !important;
}

body nav.breadcrumb ol {
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: translateX(0) !important;
}

nav.breadcrumb li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

.breadcrumb li + li:before {
  content: ">";
  color: #b3b3b3;
  margin: 0 0.5rem;
  font-size: 0.95em;
  display: inline-block;
}

.breadcrumb a {
  color: #008ece;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
  color: #005b85;
}

.breadcrumb span {
  color: #222;
  font-weight: 500;
  display: inline-block;
}

@media (max-width: 600px) {
  .breadcrumb {
    font-size: 0.92rem;
    margin: 1rem auto 0.5rem auto;
    width: 98%;
  }
  
  nav.breadcrumb .container {
    padding: 0 15px !important;
  }
  
  nav.breadcrumb ol {
    left: 0 !important;
    margin-left: 0 !important;
  }
}

/* ===== SECTION HEADING ===== */
.section-heading {
  position: relative;
  /* Fluid Typography für Section Headings */
  font-size: var(--font-size-section-title);
  margin-bottom: 1.5rem; /* mb-6 */
  color: #111827; /* text-gray-900 */
  font-weight: 700; /* font-bold */
  letter-spacing: -0.02em;
}



.highlight {
  font-weight: 700;
  color: #008ece;
}

/* ===== LEISTUNGEN SECTION ===== */
.leistungen {
  background: #fff;
  padding: 5rem 0;
}

.leistungen .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

@media (min-width: 768px) {
  .leistungen .container {
    padding: 0 50px;
  }
}

@media (min-width: 1280px) {
  .leistungen .container {
    padding: 0 80px;
  }
}

@media (min-width: 1600px) {
  .leistungen .container {
    padding: 0 100px;
  }
}

.leistungen-intro {
  margin: 0 0 3rem 0;
  line-height: 1.6;
}

.leistungen-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

.leistungen-intro p:last-child {
  margin-bottom: 0;
}

/* Future-Engineering-Block innerhalb der Leistungen-Section (Digitalisierung) */
.leistungen-future-engineering {
  margin-top: 2.5rem;
  max-width: 48rem;
  line-height: 1.6;
}

.leistungen-future-engineering .leistungen-subheading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 0;
}

.leistungen-future-engineering .leistungen-subheading-small {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.leistungen-future-engineering p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

.leistungen-future-engineering .leistungen-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.7;
}

.leistungen-future-engineering .leistungen-list li {
  margin-bottom: 0.75rem;
}

.leistungen-future-engineering .leistungen-list li:last-child {
  margin-bottom: 0;
}

.leistungen-future-engineering .leistungen-eu-img {
  margin-top: 1rem;
  margin-bottom: 0;
}

.leistungen-future-engineering .leistungen-eu-img img {
  max-width: 40rem;
  width: 100%;
  height: auto;
  display: block;
  margin-left: -8px; /* Wert nach Gefühl anpassen (z.B. -4px, -6px, -10px) */
}

/* ===== MOBILFUNK LAYOUT ===== */
.mobilfunk-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .mobilfunk-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.mobilfunk-services h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.mobilfunk-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobilfunk-service-item {
  margin-bottom: 1rem;
}

.mobilfunk-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.mobilfunk-service-link:hover {
  background: #e9ecef;
  border-color: #008ece;
  transform: translateX(5px);
}

.mobilfunk-service-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #008ece;
}

.mobilfunk-contact {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.mobilfunk-contact h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-person {
  text-align: center;
}

.contact-person img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  object-fit: cover;
}

.contact-person h4 {
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-person p {
  color: #666;
  margin-bottom: 0.5rem;
}

.contact-email {
  color: #008ece;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: #006699;
  text-decoration: underline;
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: #ffffff !important;
  /* Fluid Padding - skaliert flüssig zwischen verschiedenen Bildschirmgrößen */
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 5rem);
}

/* Spezielle Service-Sektionen für die Leistungsseiten */
.mobilfunk-page .services,
.breitband-page .services,
.digitalisierung-page .services,
.page-5g-engineering .services {
  background-color: #f8f9fa !important;
}

/* Simple Global Service Cards Layout */
.services-grid > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.services-grid > div h3 {
  margin: 0 !important;
  padding: 0;
  align-self: start;
}

/* Leistungsseiten (Mobilfunk, Breitband, Digitalisierung, 5G Engineering): Icons und Titel zentriert, Titel stets 2 Zeilen */
.mobilfunk-page .services-grid > div > div:first-of-type,
.breitband-page .services-grid > div > div:first-of-type,
.digitalisierung-page .services-grid > div > div:first-of-type,
.page-5g-engineering .services-grid > div > div:first-of-type {
  align-self: center;
}

.mobilfunk-page .services-grid > div h3,
.breitband-page .services-grid > div h3,
.digitalisierung-page .services-grid > div h3,
.page-5g-engineering .services-grid > div h3 {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: stretch;
  padding: 0 0.25rem;
  line-height: 1.35;
}

.services-grid > div p.text-gray-600.mb-6 {
  margin: 0 !important;
  padding: 0;
  align-self: start;
}

.services-grid > div ul.text-gray-600.space-y-2 {
  margin: 0 !important;
  padding: 0;
  align-self: start;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: #E6F3F9;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  color: #008ECE;
  width: 2rem;
  height: 2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  color: #6b7280;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #008ECE;
  font-weight: bold;
}

.section-title {
  position: relative;
  /* Fluid Typography - skaliert flüssig von 2.25rem (Mobile) bis 3rem (Desktop) */
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 3rem);
  margin-bottom: 1.5rem; /* mb-6 */
  color: #111827; /* text-gray-900 */
  font-weight: 700; /* font-bold */
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.services-grid > div {
  min-width: 0;
  width: 100%;
  flex-shrink: 0;
  flex-grow: 1;
  min-height: 400px;
  height: auto;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}



.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 400px;
  height: auto;
  flex-shrink: 0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #008ece;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
  border-radius: 50%;
  color: #008ece;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #008ece;
  font-weight: bold;
}

/* ===== PROCESS SECTION ===== */
.process {
  background: #fff;
  padding: 5rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: #008ece;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem auto;
}

.process-step h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.process-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Angepasst an die Header-Höhe */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  padding-top: 80px; /* Space for fixed header */
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1600px;
  margin: 0 auto;
  /* Fluid Padding - skaliert flüssig zwischen verschiedenen Bildschirmgrößen */
  padding-left: clamp(1.25rem, 4vw, 6.25rem); /* 20px (320px) bis 100px (1600px+) */
  padding-right: clamp(1.25rem, 4vw, 6.25rem);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827; /* text-gray-900 */
}

h1 { 
  /* Fluid Typography - skaliert flüssig von 2.25rem (Mobile) bis 3rem (Desktop) */
  font-size: var(--font-size-h1);
  font-weight: 700; /* font-bold */
  margin-bottom: 1.5rem; /* mb-6 */
}
h2 { 
  /* Fluid Typography - skaliert flüssig von 1.875rem (Mobile) bis 2.25rem (Desktop) */
  font-size: var(--font-size-h2);
  font-weight: 700; /* font-bold */
  margin-bottom: 1.5rem; /* mb-6 */
}
h3 { 
  /* Fluid Typography - skaliert flüssig von 1.5rem (Mobile) bis 1.75rem (Desktop) */
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

a {
  color: #008ece;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #008ece;
}

.highlight {
  color: #008ece;
  font-weight: 600;
}

/* ===== HEADER ===== */
.header, #header {
  background: #fff;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  width: 100%;
  transition: all 0.3s ease;
  transform: translateY(0);
  /* Header darf nie selbst scrollen */
  overflow-x: clip;
  overflow-y: visible;
  box-sizing: border-box;
}

/* ===== STARTSEITE HEADER SPEZIAL-STYLES ===== */
/* Header auf der Startseite: Initial komplett versteckt */
body.homepage .header, 
body.homepage #header {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

/* Header nach dem Scrollen: Vollständig sichtbar */
body.homepage .header.scrolled,
body.homepage #header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Logo Animation - Initial ausgeblendet */
body.homepage .logo {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Logo nach dem Scrollen: Eingeblendet */
body.homepage .header.scrolled .logo,
body.homepage #header.scrolled .logo {
  opacity: 1;
  transform: translateX(0);
}

/* Navigation Links Animation auf der Startseite */
body.homepage .nav-link {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Verbesserte Hover-Effekte für Navigation auf der Startseite */
body.homepage .nav-link:hover {
  color: #008ece;
  transform: translateY(-1px);
}

/* Search Button Animation auf der Startseite */
body.homepage .search-toggle {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.homepage .search-toggle:hover {
  transform: scale(1.05);
  background-color: rgba(0, 142, 206, 0.1);
}

/* Mobile Navigation Button Animation */
body.homepage #mobile-menu-button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.homepage #mobile-menu-button:hover {
  transform: scale(1.05);
  background-color: rgba(0, 142, 206, 0.1);
}

/* ===== RESPONSIVE HEADER ANIMATIONS ===== */
/* Mobile Anpassungen für Header-Animationen */
@media (max-width: 768px) {
  /* Reduzierte Transparenz auf Mobile für bessere Lesbarkeit */
  body.homepage .header, 
  body.homepage #header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }
  
  body.homepage .header.scrolled,
  body.homepage #header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* Logo Animation angepasst für Mobile */
  body.homepage .logo {
    transform: translateX(-15px);
  }
  
  /* Reduzierte Hover-Effekte auf Mobile */
  body.homepage .nav-link:hover {
    transform: none;
  }
  
  body.homepage .search-toggle:hover,
  body.homepage #mobile-menu-button:hover {
    transform: none;
    background-color: rgba(0, 142, 206, 0.05);
  }
}

/* Tablet Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
  body.homepage .header, 
  body.homepage #header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }
  
  body.homepage .header.scrolled,
  body.homepage #header.scrolled {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ===== MOBILE NAVIGATION - EW1 STYLE ===== */
/* Mobile Navigation folgt dem Header - wie in EW1-Dateien */
#mobile-menu {
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* WICHTIG: Position direkt unter dem Header */
  position: fixed;
  top: 64px; /* Direkt unter dem Header - ohne Gap */
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0;
  /* Verhindert Scroll-Probleme */
  transform: none;
  overflow: visible;
}

/* auch ohne Tailwind: "hidden" soll wirklich weg sein */
#mobile-menu.hidden {
  display: none !important;
}

/* Mobile Burger-Menü: einheitliche Link-Farben (Tailwind-Klassen überschreiben) */
#mobile-menu a {
  color: #111827 !important; /* text-gray-900 */
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible {
  color: #008ece !important;
}

/* ===== SEARCH BAR ===== */
#search-bar {
  background: white;
  border-top: none;
  box-shadow: none;
  position: fixed;
  top: 64px; /* Direkt unter dem Header */
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0;
  transform: none;
  overflow: visible;
  transition: all 0.3s ease;
  /* wichtig: wenn sichtbar, darf es bedienbar sein */
  pointer-events: auto;
  visibility: visible;
}

#search-bar.hidden {
  /* auch ohne Tailwind wirklich aus dem Layout nehmen */
  display: none !important;
  transform: translateY(-100%);
  opacity: 0;
  /* wichtig: im "hidden" Zustand darf es NICHT Mausereignisse abfangen */
  pointer-events: none;
  visibility: hidden;
}

.search-bar-container {
  max-width: 1600px;
  margin: 0 auto;
  /* Fluid Padding für Search Bar Container */
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: clamp(1.25rem, 4vw, 6.25rem);
  padding-right: clamp(1.25rem, 4vw, 6.25rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-form {
  width: 100%;
  max-width: none;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: #008ece;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 142, 206, 0.1);
}

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem;
  font-size: 1rem;
  color: #333;
  outline: none;
}

#search-input::placeholder {
  color: #9ca3af;
}

.search-submit {
  background: #008ece;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: #0070a3;
  transform: translateY(-1px);
}

.search-submit svg {
  width: 16px;
  height: 16px;
}





.header .container, #header .container {
  max-width: 1600px;
  margin: 0 auto;
  /* Fluid Padding für Header Container */
  padding-left: clamp(1.25rem, 4vw, 6.25rem);
  padding-right: clamp(1.25rem, 4vw, 6.25rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
}

.logo {
  margin-right: auto;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}


.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #008ece;
}

/* Leistungen Dropdown (Desktop) */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.2rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-item-dropdown.is-open .nav-link-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  min-width: 220px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 10001;
  pointer-events: none;
}

/* Wenn Dropdown offen: klickbar und Header darf nicht abschneiden */
.nav-item-dropdown.is-open .nav-dropdown {
  pointer-events: auto;
}

/* Dropdown sichtbar nur per Klasse is-open (öffnet bei Hover, schließt beim Scrollen via JS) */
.nav-item-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Header darf Dropdown nicht abschneiden – wenn Menü offen, Overflow auf visible */
.header:has(.nav-item-dropdown.is-open),
#header:has(.nav-item-dropdown.is-open) {
  overflow: visible;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.nav-dropdown-link:hover {
  background-color: #f0f9ff;
  color: #008ece;
}

/* Dropdown nur auf Desktop – Mobile-Nav hat eigene Leistungen-Links */
@media (max-width: 767px) {
  .nav-item-dropdown .nav-dropdown {
    display: none;
  }
}

/* Search Toggle */
.search-toggle {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.search-toggle:hover {
  background-color: #f8f9fa;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}



/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

/* Hero-Bild soll den gesamten Bildschirm abdecken */
body.homepage .hero-background {
  background-size: cover !important;
  background-position: center !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

@media (min-width: 1400px) {
  .hero {
    min-height: 700px;
  }
}

.hero-background {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  /* Basis neutral lassen – Abdunkelung passiert über Color-Grading-Overlay */
  filter: none;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Colorgrade: von oben nach unten dunkler */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.28) 35%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.70) 100%
  );
  z-index: 1;
}

/* ===== DEMO FEATURE: Hero-Banner States (zum Entfernen: gesamten Block bis Ende "HERO DEMO END" löschen) ===== */
/* State 1: Standard (Gradient wie oben, keine Text-Box) – Klasse .hero-demo-state-1 */
/* State 2: Bild zu 80 % abgedunkelt */
.hero.hero-demo-state-2 .hero-background::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.50) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.80) 100%
  );
}
/* State 3: Logo + Schreibmaschinen-Text + weißer Subtitle mit anthrazit-transparenter Box hinterlegt */
.hero.hero-demo-state-3 .hero-demo-text-block {
  background: rgba(45, 52, 58, 0.72);
  padding: 1.5rem 2rem 0.75rem;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
  max-width: min(90vw, 800px);
}
.hero.hero-demo-state-3 .hero-demo-text-block .hero-subtitle {
  margin-bottom: 0;
}
/* State 4: Gleiche Box als Vollbreiten-Streifen (bricht aus .container aus) */
.hero.hero-demo-state-4 .hero-demo-text-block {
  background: rgba(45, 52, 58, 0.72);
  padding: 1.5rem 2rem 0.75rem;
  border-radius: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}
.hero.hero-demo-state-4 .hero-demo-text-block .hero-subtitle {
  margin-bottom: 0;
}
/* Demo-Button: dezent positioniert, gut entfernbar */
.hero-demo-toggle {
  position: absolute;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hero-demo-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
/* Zweiter Demo-Button: Banner wechseln – links neben dem State-Button */
.hero-demo-toggle-banner {
  right: auto;
  left: 1.5rem;
}
/* ===== HERO DEMO END ===== */

.hero-content {
  width: 100%;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 2;
  /* Moderne Typografie-Verbesserungen */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Flexbox für bessere Layout-Kontrolle */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-main-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  /* Moderne Typografie ohne Schatten */
  letter-spacing: -0.02em;
  font-feature-settings: 'kern' 1;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  /* Desktop: kein Padding oben (bleibt unverändert) */
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.hero-logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
}

.hero-company {
  color: #fff;
  display: inline;
}

.hero-gmbh {
  color: #008ece;
  display: inline;
  font-weight: 600;
}

/* Neue einheitliche blaue Schriftzug-Klassen */
.hero-company-blue {
  color: #008ece;
  display: inline;
  font-weight: 700;
}

.hero-gmbh-blue {
  color: #008ece;
  display: inline;
  font-weight: 700;
}

.hero-typing-container {
  /* Fluid Typography für Hero Typing */
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.5rem);
  margin-bottom: clamp(1rem, 2vw, 2rem);
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-typing-text {
  color: #008ece;
  font-weight: 500;
}

.hero-cursor {
  color: #008ece;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-title {
  /* Fluid Typography für Hero Title */
  font-size: clamp(2rem, 4vw + 0.5rem, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  /* Fluid Typography für Hero Subtitle */
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.25rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: #fff;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-cta-container {
    flex-direction: row;
    justify-content: center;
  }
}

         .hero-cta {
           display: inline-block;
           padding: 1rem 2rem;
           border-radius: 8px;
           font-weight: 600;
           transition: all 0.3s ease;
           text-decoration: none;
           text-shadow: none;
           width: 220px;
           text-align: center;
         }

.hero-cta.primary {
  background: #008ece;
  color: #fff;
  border: 2px solid #008ece;
}

.hero-cta.primary:hover {
  background: #0077b3;
  border-color: #0077b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 142, 206, 0.3);
}

.hero-cta.secondary {
  background: #008ece;
  color: #fff;
  border: 2px solid #008ece;
}

         .hero-cta.secondary:hover {
           background: #0077b3;
           border-color: #0077b3;
           transform: translateY(-2px);
           box-shadow: 0 4px 20px rgba(0, 142, 206, 0.3);
         }

         /* ===== SCROLL INDIKATOR ===== */
         .scroll-indicator {
           position: absolute;
           bottom: -16rem;
           left: 50%;
           transform: translateX(-50%);
           display: flex;
           flex-direction: column;
           align-items: center;
           gap: 0.75rem;
           color: #008ece;
           z-index: 10;
           pointer-events: none;
         }

         .scroll-mouse {
           width: 30px;
           height: 50px;
           /* Lineart: blau, ohne Füllung */
           border: 2px solid rgba(0, 142, 206, 0.95);
           border-radius: 15px;
           position: relative;
           background: transparent;
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
           animation: mouse-bounce 2s ease-in-out infinite;
         }

         .mouse-body {
           width: 100%;
           height: 100%;
           background: transparent;
           border-radius: 15px;
         }

         .mouse-wheel {
           width: 4px;
           height: 8px;
           background: rgba(0, 142, 206, 0.95);
           border-radius: 2px;
           position: absolute;
           top: 8px;
           left: 50%;
           transform: translateX(-50%);
           animation: wheel-scroll 2s ease-in-out infinite;
           box-shadow: none;
         }

         .scroll-text {
           font-size: 0.875rem;
           font-weight: 500;
           color: rgba(0, 142, 206, 0.95);
           text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
           animation: text-pulse 2s ease-in-out infinite;
         }

         @keyframes mouse-bounce {
           0%, 100% {
             transform: translateY(0);
             opacity: 1;
           }
           50% {
             transform: translateY(10px);
             opacity: 0.8;
           }
         }

         @keyframes wheel-scroll {
           0% {
             opacity: 1;
             transform: translateX(-50%) translateY(0);
           }
           50% {
             opacity: 0.4;
             transform: translateX(-50%) translateY(20px);
           }
           100% {
             opacity: 1;
             transform: translateX(-50%) translateY(0);
           }
         }

         @keyframes text-pulse {
           0%, 100% {
             opacity: 0.7;
           }
           50% {
             opacity: 1;
           }
         }

/* Hero-Responsiveness:
   - Desktop bleibt über Basis-Styles / Desktop-Media-Queries unverändert.
   - Mobile/Tablet-Anpassungen für Logo/Typewriter erfolgen gezielt über `body.homepage ...`
     weiter unten, um Seiten außerhalb der Startseite nicht versehentlich zu beeinflussen. */

@media (min-width: 1400px) {
  .hero {
    min-height: 700px;
  }
  
  .hero-main-title {
    font-size: 5rem;
  }
  
  .hero-logo {
    max-width: 700px;
  }
}

/* ===== HERO SECTION END ===== */

/* ===== STARTSEITE HEADER SPEZIAL-STYLES ENTFERNT ===== */
/* Der Header verhält sich jetzt wie auf allen anderen Seiten */
body.homepage {
  margin: 0;
  padding: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
  /* Fluid Padding - skaliert flüssig zwischen verschiedenen Bildschirmgrößen */
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 5rem);
  background: #ffffff;
  position: relative;
  z-index: 5; /* Section hat eigenen z-index */
}

/* Spezielle Service-Sektionen für die Leistungsseiten */
.mobilfunk-page .services,
.breitband-page .services,
.digitalisierung-page .services,
.page-5g-engineering .services {
  background: #f8f9fa;
}

/* Leistungen-Seite: "Unsere Leistungsbereiche" Section mit hellgrauem Hintergrund */
.leistungen-page .services {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
}

/* Zusätzliche spezifische Regel für den Container in der Services-Section */
.leistungen-page .services .container {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
}

/* Noch spezifischere Regel für die gesamte Services-Section */
body.leistungen-page section.services {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
}


.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  /* Fluid Typography - skaliert flüssig */
  font-size: clamp(2rem, 4.5vw + 0.5rem, 2.5rem);
  color: #333;
  margin-bottom: 1rem;
  position: relative;
}



/* Cards nur als 4er-, 2er- oder 1er-Reihe, keine 3er-Reihe */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  align-items: start;
  position: relative;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 142, 206, 0.1);
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 100%;
  position: relative;
  /* KRITISCH: Sicherstellen, dass alle Service-Items klickbar sind */
  pointer-events: auto !important;
  z-index: 10;
}

/* Zusätzliche Sicherheit: Alle Service-Items explizit klickbar machen */
section.services .service-grid a.service-item,
.service-grid > a.service-item,
a.service-item[href],
body.homepage .service-grid a.service-item,
body.homepage section.services .service-grid a.service-item {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
  display: block !important;
}

/* Sicherstellen, dass keine anderen Elemente die Service-Items überlagern */
body.homepage section.services {
  position: relative;
  z-index: 1;
}

body.homepage .service-grid {
  position: relative;
  z-index: 2;
}

.service-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 142, 206, 0.15);
  border-color: rgba(0, 142, 206, 0.3);
}

.service-image {
  position: relative;
  overflow: hidden;
  height: 350px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Bilder blockieren keine Klicks */
}

.service-icon-img,
.service-teaser-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none; /* Bilder blockieren keine Klicks */
}

.service-icon-img {
  opacity: 1;
  transform: scale(1);
  object-fit: cover;
  padding: 0;
  width: 100%;
  height: 100%;
}

.service-teaser-img {
  opacity: 0;
  transform: scale(1.1);
}

.service-item:hover .service-icon-img {
  opacity: 0;
  transform: scale(0.9);
}

.service-item:hover .service-teaser-img {
  opacity: 1;
  transform: scale(1.05);
}

.service-footer {
  background: #f5f5f5;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  pointer-events: none; /* Footer blockiert keine Klicks */
}

.service-name {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.service-arrow svg {
  color: #666;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
}

.service-item:hover .service-arrow {
  background: #008ece;
  border-color: #008ece;
}

.service-item:hover .service-arrow svg {
  color: #fff;
}



/* ===== CAREER SECTION ===== */
.career {
  background: #f8f9fa;
  /* Fluid Padding - skaliert flüssig zwischen verschiedenen Bildschirmgrößen */
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Career Header */
.career-header {
  text-align: center;
  margin-bottom: 4rem;
}

.career-header .section-title {
  margin-bottom: 1.5rem;
}

/* Weniger Abstand zwischen Überschrift und Intro in Warum-die-DEN-Section */
.career .section-header {
  margin-bottom: 1rem;
}
.career-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #555;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

/* Career Grid */
.career-grid {
  display: grid;
  /* Fluid Grid - passt sich automatisch an: 1 Spalte (Mobile) -> 2 Spalten (Desktop) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

/* Bei größeren Bildschirmen: 2fr 1fr Layout */
@media (min-width: 900px) {
  .career-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Warum die DEN (Startseite): Kacheln wie Leistungen – Bildbereich + Footer, Text bei Hover */
.warum-die-den-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 100%;
}
.warum-die-den-tile {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 142, 206, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.warum-die-den-tile:hover {
  /* Kein transform: verhindert Re-Rasterisierung und sichtbares Scharfstellen des Textes */
  box-shadow: 0 20px 40px rgba(0, 142, 206, 0.15);
  border-color: rgba(0, 142, 206, 0.3);
}
/* Oberer Bereich wie service-image: Icon zentriert, Text-Overlay bei Hover */
.warum-die-den-tile-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warum-die-den-tile-icon {
  width: 72px;
  height: 72px;
  background: #008ece;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.warum-die-den-tile-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}
.warum-die-den-tile:hover .warum-die-den-tile-icon {
  opacity: 0.15;
  transform: scale(0.9);
}
.warum-die-den-tile-text {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  background: rgba(255, 255, 255, 0.97);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  overflow-y: auto;
}
.warum-die-den-tile:hover .warum-die-den-tile-text {
  opacity: 1;
}
/* Footer: Titel zentriert, kein Pfeil */
.warum-die-den-tile-footer {
  background: #f5f5f5;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}
.warum-die-den-tile-title {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.career-cta {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.career-cta-link {
  color: #008ece;
  font-weight: 600;
  text-decoration: none;
}
.career-cta-link:hover {
  text-decoration: underline;
}

/* Karriere-Seite: grauer Inhaltsblock innerhalb leistungen */
.career-inner {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-radius: 12px;
}


/* Career Main Content */
.career-main {
  display: flex;
  flex-direction: column;
}

.career-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border: 1px solid #f0f0f0;
  height: 100%;
}

.career-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.career-icon {
  width: 32px;
  height: 32px;
  color: #008ece;
}

/* Career Features */
.career-features {
  display: grid;
  /* Fluid Grid - passt sich automatisch an: 1 Spalte (Mobile) -> 2 Spalten (Desktop) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.career-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #008ece;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
}

/* Career Benefits */
.career-benefits {
  display: flex;
  flex-direction: column;
}

.benefits-card {
  background: linear-gradient(135deg, #008ece 0%, #005b85 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 142, 206, 0.3);
  padding: 2rem;
  color: #fff;
  height: 100%;
}

.benefits-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
}

.benefits-icon {
  width: 32px;
  height: 32px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.benefit-check {
  width: 20px;
  height: 20px;
  color: #b3d9ff;
  flex-shrink: 0;
}

.benefit-text {
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff !important;
}

/* Section: Ihre Karriere-Möglichkeiten (eigene Section mit Header) */
.career-opportunities-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.career-opportunities-section .section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.career-opportunities-section .section-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy: falls noch .career-opportunities / opportunities-title genutzt */
.career-opportunities {
  text-align: center;
  margin-bottom: 3rem;
}

.opportunities-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.opportunities-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .opportunities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .opportunities-grid {
    grid-template-columns: 1fr;
  }
}

.opportunity-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.opportunity-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: #008ece;
  transform: translateY(-4px);
}

.opportunity-icon {
  width: 64px;
  height: 64px;
  background: #008ece;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.opportunity-card:hover .opportunity-icon {
  transform: scale(1.1);
}

.opportunity-icon-svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.opportunity-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.opportunity-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.opportunity-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #008ece;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.opportunity-card:hover .opportunity-link {
  text-decoration: underline;
}

.opportunity-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.opportunity-card:hover .opportunity-arrow {
  transform: translateX(4px);
}

/* ===== CERTIFICATION SECTION ===== */
.certification {
  /* Fluid Padding - skaliert flüssig zwischen verschiedenen Bildschirmgrößen */
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: #fff;
}

.certification-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.certification-text {
  padding-top: 1rem;
}

.certification-text .section-title {
  margin-left: var(--certification-title-margin-left);
  text-align: left;
}

@media (min-width: 768px) {
  .certification-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.certification-description {
  font-size: 1.125rem;
  color: #555;
}

.certification-image img {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-left: auto;
  display: block;
  border-radius: 8px;
}

/* Mobile Zertifizierungssection - Verbesserte Formatierung */
/* Padding verwendet jetzt clamp() für flüssige Skalierung - Media Query nicht mehr nötig */
@media (max-width: 767px) {
  /* Padding passt sich automatisch an */
  
  .certification-content {
    gap: 2rem; /* Kleinerer Abstand auf Mobile */
    text-align: center; /* Zentriert auf Mobile */
  }
  
  .certification-text {
    padding-top: 0; /* Kein zusätzliches Padding auf Mobile */
  }
  
  .certification-text .section-title {
    margin-left: 0; /* Kein negativer Margin auf Mobile */
    text-align: center; /* Titel zentriert */
  }
  
  .certification-description {
    text-align: center; /* Beschreibung zentriert */
    font-size: 1rem; /* Etwas kleinere Schrift auf Mobile */
    line-height: 1.6; /* Bessere Lesbarkeit */
  }
  
  .certification-image img {
    margin: 0 auto; /* Bild zentriert auf Mobile */
    max-width: 280px; /* Größeres Bild auf Mobile für bessere Proportionen */
    width: auto; /* Automatische Breite für korrekte Proportionen */
    height: auto; /* Automatische Höhe für korrekte Proportionen */
    object-fit: contain; /* Verhindert Verzerrungen */
  }
}

/* ===== KUNDENREFERENZEN & FOOTER SECTION ===== */
.kundenreferenzen-footer {
  background: #EAF2F6;
  padding: 2rem 0 1rem 0;
  overflow-x: hidden;
}

/* Footer-Container: gleiche Breite und Abstände wie restliche Seite */
.kundenreferenzen-footer .container {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 6.25rem);
  padding-right: clamp(1.25rem, 4vw, 6.25rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  align-content: start;
  gap: 2rem clamp(2rem, 4vw, 4rem);
}

.referenzen-section {
  margin-bottom: 1.5rem;
  width: 100%;
  margin: 0;
}

.referenzen-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #999;
  font-size: 1.2rem;
  font-weight: 500;
  width: 100%;
}

.referenzen-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  width: 100%;
}

.referenzen-logos img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(30, 54, 93, 0.06);
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.referenzen-logos img:hover {
  transform: scale(1.05);
}

/* ===== FOOTER: Drei Spalten, exakt inhaltsbreit, E-Mail direkt über „© …“ ===== */
.kontaktdaten-grid {
  display: contents;
}

.kontaktdaten-grid .kontakt-item {
  align-self: start;
}

.index-page .kundenreferenzen-footer .container {
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.referenzen-section {
  grid-column: 1 / -1;
}

/* Copyright unter Referenzen: volle Breite, Text zentriert (E-Mail-Spalte bleibt mittig darüber) */
.kundenreferenzen-footer .footer-info {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: stretch;
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
}

/* Sobald Platz für drei Spalten fehlt: untereinander, Footer-Info wieder zentriert */
@media (max-width: 1000px) {
  .kundenreferenzen-footer {
    overflow-x: hidden;
  }

  .kundenreferenzen-footer .container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.25rem;
    min-width: 0;
    overflow-x: hidden;
  }

  /* Zwei Spalten: Icons einheitlich untereinander links, Texte rechts daneben */
  .kontaktdaten-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    justify-items: start;
    gap: 0.75rem 1rem;
    width: max-content;
    max-width: 100%;
  }

  .kontakt-item {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: baseline;
    width: 100%;
    min-width: 0;
  }

  .kontakt-item .kontakt-icon-wrapper {
    grid-column: 1;
  }

  .kontakt-item .kontakt-text {
    grid-column: 2;
    text-align: left;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .kundenreferenzen-footer .footer-info {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    text-align: center;
    width: 100%;
  }

  .kontakt-item:nth-child(2) .kontakt-text a {
    white-space: normal;
  }

  .kontakt-item.adresse .kontakt-text p:nth-of-type(2) {
    white-space: normal;
  }

  .kontakt-item:last-child .kontakt-text p {
    white-space: normal;
    word-break: break-word;
  }

  .referenzen-section {
    padding-top: 2rem;
    margin-top: 2rem;
  }

  .footer-info {
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .footer-info p,
  .footer-links {
    text-align: center;
    word-break: break-word;
  }

  .footer-links a {
    display: inline-block;
  }
}

/* Kontakt-Block: Icon links, wenig Abstand, Text rechts – stets sichtbar */
.kontakt-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.35rem;
  text-align: left;
  min-width: 0;
}

.kontakt-item:first-child {
  justify-content: flex-start;
}

.kontakt-item:nth-child(2) {
  justify-content: center;
}

.kontakt-item:last-child {
  justify-content: flex-end;
}

.kontakt-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  order: -1;
}

/* E-Mail-Spalte: zentriert über Copyright, visuell weiter nach links – nur bei 3 Spalten */
@media (min-width: 1001px) {
  .kundenreferenzen-footer .kontakt-item:nth-child(2) {
    justify-content: center;
    margin-right: 5.5rem;
  }
}

.kontakt-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #008ece;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.kontakt-icon svg {
  width: 24px;
  height: 24px;
}

.kontakt-text {
  flex: 1;
  min-width: 0;
}

.kontakt-text p {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Adresse im Footer: Straße + Hausnummer immer in einer Zeile halten */
.kontakt-item.adresse .kontakt-text p:nth-of-type(2) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* E-Mail im Footer: einzeilig halten (den (at) den-online.de) */
.kontakt-item:nth-child(2) .kontakt-text a {
  white-space: nowrap;
}

.kontakt-text p:first-child {
  margin-bottom: 0.5rem;
}

.kontakt-text p:not(:first-child) {
  margin-left: 0;
  margin-bottom: 0.2rem;
}

.kontakt-text p:last-child {
  margin-bottom: 0;
}

.kontakt-text strong {
  font-weight: 600;
  color: #008ece;
}

.kontakt-text a {
  color: #008ece;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kontakt-text a:hover {
  color: #005b85;
  text-decoration: underline;
}

/* ===== Manuelle vertikale Textanpassung ===== */
.kontakt-text-adjust-up {
  transform: translateY(-0.2rem); /* Text nach oben verschieben */
}

.kontakt-text-adjust-up-more {
  transform: translateY(-0.4rem); /* Text stärker nach oben verschieben */
}

.kontakt-text-adjust-down {
  transform: translateY(0.2rem); /* Text nach unten verschieben */
}

/* Footer Info */
.footer-info {
  text-align: center;
  margin-bottom: 1rem;
  color: #008ece;
  width: 100%;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.footer-links {
  margin-bottom: 0.5rem;
  width: 100%;
}

.footer-links a {
  color: #008ece;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #005b85;
  text-decoration: underline;
}

/* Zertifikate */
.zertifikate {
  background: #fff;
  padding: 3rem 0;
}

.zertifikat-tuev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.zertifikat-tuev img {
  height: 64px;
  width: auto;
}

.zertifikat-tuev .hinweis {
  font-size: 0.95rem;
  color: #008ece;
}

/* ===== MOBILE RESPONSIVE ===== */
/* Service Grid verwendet jetzt auto-fit für flüssige Anpassung - Media Query nicht mehr nötig */
@media (max-width: 900px) {
  /* Grid passt sich automatisch an - keine festen Spalten mehr */
  .service-grid {
    padding: 0;
  }
  
  .service-item {
    max-width: 100%;
  }
  
  .services {
    padding: 3rem 0 2rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .service-image {
    height: 280px;
  }
  
  .service-name {
    font-size: 1rem;
  }
  
  .service-footer {
    padding: 0.8rem 1.2rem;
  }
  
  .referenzen-logos {
    gap: 1rem;
  }
  
  .certification-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .certification-text .section-title {
    font-size: 2.2rem;
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    text-align: left;
  }
  
  .certification-image img {
    max-height: 250px;
  }
  
  .career-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    align-items: center;
  }
  
  .career-text .section-title {
    font-size: 2.2rem;
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
  }
  
  .career-image img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 98%;
  }
  
  .nav-list {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
  }
  
  .services {
    padding: 3rem 0 2rem 0;
  }
  
  /* Section Title verwendet jetzt clamp() für flüssige Skalierung */
  /* Service Grid passt sich automatisch an - keine festen Spalten mehr */
  .service-grid {
    padding: 0;
  }
  
  .service-item {
    max-width: 100%;
  }
  
  .service-image {
    height: 250px;
  }
  
  .service-name {
    font-size: 0.95rem;
  }
  
  .service-footer {
    padding: 0.7rem 1rem;
  }
  
  .service-arrow {
    width: 28px;
    height: 28px;
  }
  
  .certification {
    padding: 3rem 0;
  }
  
  .certification-content {
    gap: 2rem;
  }
  
  .certification-text .section-title {
    font-size: 2rem;
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    text-align: left;
  }
  
  .certification-text p {
    font-size: 1rem;
  }
  
  .certification-image img {
    max-height: 200px;
  }
  
  .career {
    padding: 3rem 0;
  }
  
  .career-content {
    gap: 2rem;
    align-items: center;
  }
  
  .career-text .section-title {
    font-size: 2rem;
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
  }
  
  .career-text p {
    font-size: 1rem;
  }
  
  .career-image img {
    max-height: 250px;
  }
  
  .hero-image {
    height: 300px;
  }
  
  /* Startseite Hero-spezifische Mobile-Anpassungen */
  body.homepage .hero {
    /* Fluid Height für Mobile - skaliert flüssig von 40vh bis 60vh */
    height: clamp(40vh, 50vh, 60vh) !important;
    min-height: clamp(250px, 40vh, 350px) !important;
    max-height: 60vh !important;
    overflow: hidden;
    /* Sicherstellen, dass Hero am oberen Rand anliegt */
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
  }
  
  body.homepage .hero-background {
    /* Fluid Height für Mobile - passt sich der Hero-Höhe an */
    height: clamp(40vh, 50vh, 60vh) !important;
    min-height: clamp(250px, 40vh, 350px) !important;
    max-height: 60vh !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
    /* Sicherstellen, dass Background am oberen Rand anliegt */
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
  }
  
  body.homepage .hero-content {
    /* Fluid Height für Mobile - passt sich der Hero-Höhe an */
    height: clamp(40vh, 50vh, 60vh) !important;
    min-height: clamp(250px, 40vh, 350px) !important;
    max-height: 60vh !important;
    position: relative;
    overflow: visible !important;
    /* Content darf nicht vom fixen Header überlagert werden */
    margin-top: 0 !important;
    /* Header-Safe-Area + zusätzlicher "Design-Abstand", damit Logo/Text mittiger im Banner sitzen */
    padding-top: calc(var(--mobile-header-height) + clamp(1.25rem, 4vh, 3.25rem)) !important;
    padding-bottom: clamp(1rem, 4vh, 2.5rem) !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Logo-Container auf Homepage Mobile - Abstand oben hinzufügen */
  body.homepage .hero-logo-container {
    /* Header-Abstand kommt über `.hero-content`; hier nur noch "Design-Abstand" */
    padding-top: clamp(0.75rem, 2vh, 1.5rem) !important;
    margin-top: 0 !important;
    margin-bottom: clamp(1rem, 2vh, 1.5rem) !important;
    padding-left: clamp(0.5rem, 2vw, 1rem) !important;
    padding-right: clamp(0.5rem, 2vw, 1rem) !important;
    padding-bottom: 0 !important;
    /* Sicherstellen, dass Logo-Container Platz hat */
    position: relative !important;
    z-index: 3 !important;
  }
  
  /* Logo auf Homepage Mobile flüssig skalieren */
  body.homepage .hero-logo {
    max-width: clamp(60%, 50vw, 85%) !important;
    padding: 0 clamp(0.5rem, 2vw, 1rem) !important;
  }
  
  /* Typewriter-Container auf Homepage Mobile - Positionierung unter dem Logo */
  body.homepage .hero-typing-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    margin-top: clamp(0.5rem, 1vh, 1rem) !important;
    /* Fluid Breite für Mobile */
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    pointer-events: none;
    color: #008ece !important;
    /* Fluid Typography für Mobile */
    font-size: clamp(0.9rem, 3vw + 0.5rem, 1.5rem) !important;
    font-weight: 500 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    /* Sicherstellen, dass Typewriter nicht mit Logo überlappt */
    padding: 0 clamp(0.5rem, 2vw, 1rem) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  
  body.homepage .hero-typing-text {
    display: inline !important;
    text-align: center;
    color: #008ece !important;
    /* Font-Size wird vom Container geerbt */
    font-size: inherit !important;
    font-weight: 500 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  body.homepage .hero-cursor {
    display: inline !important;
    text-align: center;
    color: #008ece !important;
    /* Font-Size wird vom Container geerbt */
    font-size: inherit !important;
    font-weight: 500 !important;
    white-space: normal !important;
    margin-left: 2px !important;
    vertical-align: baseline !important;
  }
  
  /* Cursor und Text als Einheit behandeln - verhindert, dass der Cursor am Rand klebt */
  body.homepage .hero-typing-container .hero-typing-text + .hero-cursor {
    display: inline !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
    margin-left: 2px !important;
  }
  
  /* Cursor direkt nach dem letzten Wort positionieren */
  body.homepage .hero-typing-container .hero-typing-text:last-child + .hero-cursor {
    margin-left: 2px !important;
    display: inline !important;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
}

/* Homepage Hero verwendet bereits flüssige clamp() Werte aus Basis-Styles - keine zusätzlichen Media Queries nötig */

@media (max-width: 480px) {
  .kontaktdaten-grid {
    gap: 1rem;
  }

  .kontakt-item {
    gap: 0.35rem;
  }

  /* Kontakt-Text zentriert und mit Abstand anzeigen */
  .kontakt-text {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0.25rem 0 !important;
  }
  
  .kontakt-text p {
    margin: 0.125rem 0 !important;
    text-align: center !important;
  }
  
  .kontakt-text-adjust-up {
    text-align: center !important;
    margin: 0.125rem 0 !important;
  }
  
  /* Vertikale Abstände zwischen den drei Kategorien verringern */
  .kontaktdaten-grid {
    gap: 1rem !important;
  }
  
  .kundenreferenzen-footer {
    padding: 1rem 0 0.5rem 0;
  }
  
  .referenzen-section h2 {
    font-size: 1rem;
  }
  
  .referenzen-logos {
    gap: 1rem;
  }
  
  .referenzen-logos img {
    width: 80px;
    height: 40px;
  }
  
  .footer-info p {
    font-size: 0.9rem;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  /* Breadcrumb direkt an Hero-Image anliegen lassen - nur weißen Streifen entfernen */
  .breadcrumb {
    margin-top: 0 !important;
  }
  
  /* Abstände auf Unterseiten für Mobile optimieren - ABSTÄNDE VERKLEINERN */
  
  /* Große Abstände (Überschriften und Intro-Texte) um 50% verringern */
  .section-header,
  .section-heading {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }
  
  .section-title {
    margin-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
  
  .intro-text,
  .leistungen-intro {
    margin-bottom: 0.75rem !important;
    margin-top: 0.5rem !important;
  }
  
  .intro-section {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }
  
  .abteilung-intro {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
  }
  
  .career-header .section-title {
    margin-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
  
  .certification-text .section-title {
    margin-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
  
  .career-text .section-title {
    margin-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
  
  /* Alle anderen Abstände (Aufzählungen, Arbeitsprozesse) um 33% verringern */
  .process {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
  }
  
  .process-grid {
    gap: 0.67rem !important;
  }
  
  .process-step {
    margin-bottom: 0.67rem !important;
    margin-top: 0.25rem !important;
  }
  
  .process-step h3 {
    margin-bottom: 0.33rem !important;
    margin-top: 0.25rem !important;
  }
  
  .process-step p {
    margin-bottom: 0.33rem !important;
    margin-top: 0.25rem !important;
  }
  
  .abteilung-steps {
    gap: 0.67rem !important;
  }
  
  .abteilung-step {
    margin-bottom: 0.67rem !important;
    margin-top: 0.25rem !important;
  }
  
  .abteilung-step h3 {
    margin-bottom: 0.33rem !important;
    margin-top: 0.25rem !important;
  }
  
  .abteilung-step p {
    margin-bottom: 0.67rem !important;
    margin-top: 0.25rem !important;
  }
  
  .services {
    padding: 1rem 0 !important;
  }
  
  .certification {
    padding: 1rem 0 !important;
  }
  
  .career {
    padding: 1rem 0 !important;
  }
  
  /* Zusätzliche Abstands-Optimierungen für Mobile */
  main {
    padding-top: 0.5rem !important;
  }
  
  /* Hero-Section soll am oberen Rand anliegen - kein Padding vom main */
  main > .hero:first-child,
  main > section.hero:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Homepage Hero soll direkt am oberen Rand anliegen */
  body.homepage main {
    padding-top: 0 !important;
  }
  
  body.homepage main > .hero:first-child,
  body.homepage main > section.hero:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .container {
    padding-top: 0.25rem !important;
  }
  
  /* Spezifische Abstände für Abteilungsseiten */
  .mobilfunk-page .section-header,
  .breitband-page .section-header,
  .digitalisierung-page .section-header,
  .mobilfunk-page .section-heading,
  .breitband-page .section-heading,
  .digitalisierung-page .section-heading {
    margin-top: 0.25rem !important;
    padding-top: 0.25rem !important;
  }
  
  .mobilfunk-page .intro-section,
  .breitband-page .intro-section,
  .digitalisierung-page .intro-section,
  .mobilfunk-page .leistungen-intro,
  .breitband-page .leistungen-intro,
  .digitalisierung-page .leistungen-intro {
    margin-top: 0.25rem !important;
    padding-top: 0.25rem !important;
  }
  
  /* Spezifische Abstände für die Digitalisierung-Seite */
  .digitalisierung-page .section-heading {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .digitalisierung-page .leistungen-intro {
    margin-top: 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .digitalisierung-page .leistungen-intro p {
    margin-bottom: 0.5rem !important;
  }
  
  .digitalisierung-page .services {
    padding-top: 0.5rem !important;
  }
  
  .digitalisierung-page .section-title {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Section-Abstände reduzieren - Platz oben und unten minimieren */
  .leistungen {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .services {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Allgemeine Section-Abstände für alle Unterseiten */
  section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Spezifisch für Abteilungsseiten */
  .mobilfunk-page section,
  .breitband-page section,
  .digitalisierung-page section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Einheitliche Abstände für alle Seiten - gleiche Abstände wie Abteilungsseiten */
  .leistungen-page .section-heading,
  .leistungen-page .leistungen-intro,
  .leistungen-page .leistungen,
  .leistungen-page .services {
    margin-top: 0.25rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* Globale einheitliche Abstände für alle relevanten Seiten - orientiert an der Breitband-Seite */
  .section-heading,
  .leistungen-intro,
  .leistungen,
  .services {
    margin-top: 0.25rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* Spezifisch für die Leistungen-Seite - gleiche Abstände wie Abteilungsseiten */
  .leistungen-page section.leistungen {
    margin-top: 0.25rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* Spezifisch für alle Abteilungsseiten - einheitliche Abstände */
  .mobilfunk-page .leistungen,
  .breitband-page .leistungen,
  .digitalisierung-page .leistungen {
    margin-top: 0.25rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* Einheitliche Abstände für alle leistungen-Sections */
  section.leistungen {
    margin-top: 0.25rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* Kontakt-Seite: Weißen Strich zwischen Kontakt-Sektion und Footer in Mobile-Version entfernen */
  .kontakt-page .referenzen-section {
    border-top: none !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
  }
  
  /* Noch spezifischere Regel mit höchster Priorität für den weißen Strich */
  .kontakt-page .referenzen-section[style*="border-top"] {
    border-top: none !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
  }
  
  /* Absolute Regel: Kein Border für die Referenzen-Sektion auf der Kontakt-Seite */
  .kontakt-page .referenzen-section {
    border-top: none !important;
    border: none !important;
    border-top-width: 0 !important;
    border-top-style: none !important;
    border-top-color: transparent !important;
  }
  
  /* Kontakt-Seite: Weiße Trennlinie zwischen Öffnungszeiten-Sektion und Footer entfernen */
  .kontakt-page section[style*="background-color: #f8f9fa"] {
    border-bottom: none !important;
    border: none !important;
    border-bottom-width: 0 !important;
    border-bottom-style: none !important;
    border-bottom-color: transparent !important;
  }
  
  /* Zusätzlich: Alle möglichen Borders in der Kontakt-Sektion entfernen */
  .kontakt-page main section {
    border-bottom: none !important;
    border: none !important;
  }
  
  /* SPEZIFISCHE ENTFERNUNG DER WEISSEN LINIE - NUR DAS NOTWENDIGE */
  /* Nur die weiße Linie zwischen Öffnungszeiten und Footer entfernen */
  .kontakt-page section[style*="background-color: #f8f9fa"] {
    border-bottom: none !important;
    border: none !important;
  }
  
  /* Footer-Bereich: Keine oberen Borders */
  .kundenreferenzen-footer {
    border-top: none !important;
    border: none !important;
  }
  
  /* WEISSE LINIE ENTSTEHEN DURCH HINTERGRUND-UNTERSCHIEDE - DAS LÖSEN */
  /* Haupt-Container Hintergrund anpassen, damit keine weiße Linie sichtbar ist */
  .kontakt-page main {
    background: #f8f9fa !important;
  }
  
  /* Spezifisch: Übergang zwischen Öffnungszeiten und Footer glätten */
  .kontakt-page section[style*="background-color: #f8f9fa"] {
    margin-bottom: 0 !important;
    padding-bottom: 4rem !important;
  }
  
  .kontakt-page .kundenreferenzen-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* FOOTER KOMPLETT 1:1 VON DER LEISTUNGEN-SEITE KOPIERT - DESKTOP UND MOBILE */
  /* Desktop Footer - identisch mit der Leistungen-Seite */
  .kontakt-page .kundenreferenzen-footer {
    background: #EAF2F6 !important;
    padding: 2rem 0 1rem 0 !important;
  }
  
  .kontakt-page .referenzen-section {
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .kontakt-page .referenzen-section h2 {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    color: #999 !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    width: 100% !important;
  }
  
  .kontakt-page .referenzen-logos {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
  }
  
  .kontakt-page .referenzen-logos img {
    width: 120px !important;
    height: 60px !important;
    object-fit: contain !important;
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(30, 54, 93, 0.06) !important;
    padding: 0.5rem !important;
    transition: transform 0.3s ease !important;
  }
  
  .kontakt-page .referenzen-logos img:hover {
    transform: scale(1.05) !important;
  }
  
  /* Footer auf Kontakt-Seite = gleicher Grid-Ansatz wie global */
  .kontakt-page .kontaktdaten-grid {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 2rem clamp(2rem, 4vw, 4rem) !important;
  }

  .kontakt-page .kontakt-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 0.35rem !important;
    text-align: left !important;
    min-width: 0 !important;
  }

  .kontakt-page .kontakt-item:first-child {
    justify-content: flex-start !important;
  }

  .kontakt-page .kontakt-item:nth-child(2) {
    justify-content: center !important;
  }

  .kontakt-page .kontakt-item:last-child {
    justify-content: flex-end !important;
  }

  .kontakt-page .kontakt-icon-wrapper {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: baseline !important;
  }
  
  .kontakt-page .kontakt-icon {
    flex-shrink: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #008ece !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
  }
  
  .kontakt-page .kontakt-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .kontakt-page .kontakt-text {
    flex: 1 !important;
  }
  
  .kontakt-page .kontakt-text p {
    margin: 0 0 0.5rem 0 !important;
    color: #333 !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
  }
  
  .kontakt-page .kontakt-text p:first-child {
    margin-bottom: 0.5rem !important;
  }
  
  .kontakt-page .kontakt-text p:not(:first-child) {
    margin-left: 0 !important;
    margin-bottom: 0.2rem !important;
  }
  
  .kontakt-page .kontakt-text p:last-child {
    margin-bottom: 0 !important;
  }
  
  .kontakt-page .kontakt-text strong {
    font-weight: 600 !important;
    color: #008ece !important;
  }
  
  .kontakt-page .kontakt-text a {
    color: #008ece !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
  }
  
  .kontakt-page .kontakt-text a:hover {
    color: #005b85 !important;
  }
  
  .kontakt-page .footer-info {
    text-align: center !important;
    margin-bottom: 1rem !important;
    color: #008ece !important;
    width: 100% !important;
  }
  
  .kontakt-page .footer-info p {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    color: #333 !important;
    font-weight: 500 !important;
  }
  
  .kontakt-page .footer-links {
    margin-bottom: 0.5rem !important;
    width: 100% !important;
  }
  
  .kontakt-page .footer-links a {
    color: #008ece !important;
    text-decoration: none !important;
    margin: 0 0.5rem !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
  }
  
  .kontakt-page .footer-links a:hover {
    color: #005b85 !important;
    text-decoration: underline !important;
  }
  
  /* Mobile Footer: gestapelt wie global ab 1000px */
  @media (max-width: 1000px) {
    .kontakt-page .kontaktdaten-grid {
      grid-template-columns: 1fr !important;
      justify-items: center !important;
      gap: 1.25rem !important;
    }

    .kontakt-page .kontakt-item {
      justify-content: center !important;
      text-align: center !important;
      gap: 0.35rem !important;
      width: 100% !important;
    }

    .kontakt-page .kontakt-icon-wrapper {
      flex-shrink: 0 !important;
    }
  }
  
  @media (max-width: 480px) {
    .kontakt-page .kontaktdaten-grid {
      flex-direction: column !important;
      gap: 0.67rem !important; /* VERTIKALE ABSTÄNDE ZWISCHEN KATEGORIEN UM 33% VERKLEINERT */
      align-items: center !important;
    }
    
    .kontakt-page .kontakt-item {
      justify-content: center !important;
      text-align: center !important;
      flex-direction: row !important;
      gap: 0.35rem !important;
    }

    .kontakt-page .kontakt-icon-wrapper {
      flex-shrink: 0 !important;
      display: flex !important;
      align-items: baseline !important;
    }

    .kontakt-page .kontakt-text {
      text-align: center !important;
      margin: 0 auto !important;
      padding: 0.25rem 0 !important;
    }
    
    .kontakt-page .kontakt-text p {
      margin: 0.125rem 0 !important;
      text-align: center !important;
    }
    
    .kontakt-page .kontakt-text-adjust-up {
      text-align: center !important;
      margin: 0.125rem 0 !important;
    }
    
    .kontakt-page .kundenreferenzen-footer {
      padding: 1rem 0 0.5rem 0 !important;
    }
    
    .kontakt-page .referenzen-section h2 {
      font-size: 1rem !important;
    }
    
    .kontakt-page .referenzen-logos {
      gap: 1rem !important;
    }
    
    .kontakt-page .referenzen-logos img {
      width: 80px !important;
      height: 40px !important;
    }
    
    .kontakt-page .footer-info p {
      font-size: 0.9rem !important;
    }
    
    .kontakt-page .footer-links a {
      font-size: 0.9rem !important;
    }
    
    /* GRAUER TRENNSTRICH FÜR MOBILE-VERSION - IDENTISCH MIT LEISTUNGEN-SEITE */
    .kontakt-page .referenzen-section {
      border-top: 1px solid #e0e0e0 !important; /* Grauer Trennstrich */
      padding-top: 2rem !important; /* 32px Abstand oben (Mobile) */
      margin-top: 2rem !important; /* 32px Margin oben (Mobile) */
    }
    
    /* ZUSÄTZLICHE REGEL FÜR DEN GRAUEN TRENNSTRICH IN MOBILE */
    .kontakt-page .referenzen-section[style*="border-top"] {
      border-top: 1px solid #e0e0e0 !important;
      padding-top: 2rem !important;
      margin-top: 2rem !important;
    }
  }
  
  /* Mobile-Version: Abstand von Öffnungszeiten zum Ende der Sektion erhöhen */
  @media (max-width: 480px) {
    .kontakt-page section[style*="background-color: #f8f9fa"] {
      padding-bottom: 2rem !important;
      margin-bottom: 1rem !important;
    }
    
    .kontakt-page .kontaktdaten-grid {
      gap: 1rem !important;
    }

    .kontakt-page .kontakt-item {
      gap: 0.35rem !important;
    }
    
    /* ZUSÄTZLICHE FOOTER-CSS-ELEMENTE AUS DEN LEISTUNGS-SEKTIONEN KOPIERT */
    .kontakt-page .kundenreferenzen-footer {
      padding: 1rem 0 0.5rem 0 !important; /* Mobile Footer-Padding */
    }
    
    .kontakt-page .referenzen-section h2 {
      font-size: 1rem !important; /* Mobile Überschrift-Größe */
    }
    
    .kontakt-page .referenzen-logos {
      gap: 1rem !important; /* Mobile Logo-Abstände */
    }
    
    .kontakt-page .referenzen-logos img {
      width: 80px !important; /* Mobile Logo-Breite */
      height: 40px !important; /* Mobile Logo-Höhe */
    }
    
    .kontakt-page .footer-info p {
      font-size: 0.9rem !important; /* Mobile Footer-Text-Größe */
    }
    
    .kontakt-page .footer-links a {
      font-size: 0.9rem !important; /* Mobile Footer-Link-Größe */
    }
    
    /* Footer-Info und Footer-Links Formatierung */
    .kontakt-page .footer-info {
      text-align: center !important;
      margin-bottom: 1rem !important;
      color: #008ece !important;
      width: 100% !important;
    }
    
    .kontakt-page .footer-info p {
      font-size: 0.9rem !important;
      margin-bottom: 0.5rem !important;
      color: #333 !important;
      font-weight: 500 !important;
    }
    
    .kontakt-page .footer-links {
      margin-bottom: 0.5rem !important;
      width: 100% !important;
    }
    
    .kontakt-page .footer-links a {
      color: #008ece !important;
      text-decoration: none !important;
      margin: 0 0.5rem !important;
      font-weight: 500 !important;
      transition: color 0.3s ease !important;
    }
    
    .kontakt-page .footer-links a:hover {
      color: #005b85 !important;
      text-decoration: underline !important;
    }
    
    /* GRAUER TRENNSTRICH UND REFERENZEN-SEKTION GENAU WIE AUF DER LEISTUNGEN-SEITE */
    .kontakt-page .referenzen-section {
      border-top: 1px solid #e0e0e0 !important; /* Grauer Trennstrich */
      padding-top: 3rem !important; /* 48px Abstand oben */
      margin-top: 3rem !important; /* 48px Margin oben */
    }
    
    /* Mobile-Version: Angepasste Abstände für den grauen Trennstrich */
    @media (max-width: 480px) {
      .kontakt-page .referenzen-section {
        padding-top: 2rem !important; /* 32px Abstand oben (Mobile) */
        margin-top: 2rem !important; /* 32px Margin oben (Mobile) */
        border-top: 1px solid #e0e0e0 !important; /* Grauer Trennstrich bleibt */
      }
    }
    
    /* ALLE ABSTÄNDE VON DER LEISTUNGEN-SEITE FÜR DIE KONTAKT-SEITE KOPIERT */
    .kontakt-page .section-heading,
    .kontakt-page .leistungen-intro,
    .kontakt-page .leistungen,
    .kontakt-page .services {
      margin-top: 0.25rem !important;
      padding-top: 0.5rem !important;
    }
    
    .kontakt-page section.leistungen {
      margin-top: 0.25rem !important;
      padding-top: 0.5rem !important;
    }
    
    /* Spezifisch für alle leistungen-Sections auf der Kontakt-Seite */
    .kontakt-page section.leistungen {
      margin-top: 0.25rem !important;
      padding-top: 0.5rem !important;
    }
    
    /* Einheitliche Abstände für alle relevanten Sektionen auf der Kontakt-Seite */
    .kontakt-page .section-heading,
    .kontakt-page .leistungen-intro,
    .kontakt-page .leistungen,
    .kontakt-page .services {
      margin-top: 0.25rem !important;
      padding-top: 0.5rem !important;
    }
  }
}

.certification {
  padding: 3rem 0;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #008ece;
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #008ece;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* ===== ABTEILUNGS-SEITEN STYLES (aus styles_EW2.css) ===== */

/* Font Family Setup */
.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* ===== CAREER PAGE STYLES (aus styles_EW1.css) ===== */
.career-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/img/csm_jobs-banner_dd8a5a09ff.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== SLIDER STYLES ===== */
.slider-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  text-decoration: none;
  color: inherit;
}

.slide-link.active {
  opacity: 1;
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.slide-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.slide-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Static Content Layer - Overlay for Hero Text */
.static-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: none;
}

.static-content .container {
  pointer-events: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 20;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-btn.prev {
  left: 2rem;
}

.slider-btn.next {
  right: 2rem;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: white;
}

/* ===== CUSTOM FOCUS STYLES ===== */
.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 142, 206, 0.5);
}

/* ===== CUSTOM BUTTON STYLES ===== */
.btn-primary {
  background: linear-gradient(135deg, #008ECE 0%, #006699 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #006699 0%, #004466 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 142, 206, 0.3);
}

/* ===== CARD HOVER EFFECTS ===== */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION GRADIENT ===== */
.hero-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 50%, #bfdbfe 100%);
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== MOBILE MENU ANIMATIONS ===== */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== CUSTOM FORM STYLING ===== */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #008ECE;
  box-shadow: 0 0 0 3px rgba(0, 142, 206, 0.1);
}

/* ===== TESTIMONIAL CARD STYLING ===== */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

/* ===== TEAM MEMBER IMAGE PLACEHOLDER ===== */
.team-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* ===== FOOTER STYLING ===== */
.footer-gradient {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .slider-btn {
    font-size: 1.5rem;
    padding: 0.75rem;
  }
  
  .slider-btn.prev {
    left: 1rem;
  }
  
  .slider-btn.next {
    right: 1rem;
  }
  
  .career-hero-section {
    background-attachment: scroll; /* Disable parallax on mobile for better performance */
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .career-hero-section {
    background: none !important;
    color: #000 !important;
  }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #374151 !important;
  }
  
  .text-gray-400 {
    color: #6b7280 !important;
  }
  
  .border-gray-300 {
    border-color: #6b7280 !important;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== FOCUS VISIBLE FOR KEYBOARD NAVIGATION ===== */
.focus-visible:focus {
  outline: 2px solid #008ECE;
  outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #008ECE;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== CUSTOM SCROLLBAR STYLES ===== */
.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thumb-gray-300::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.scrollbar-track-gray-100::-webkit-scrollbar-track {
  background-color: #f3f4f6;
  border-radius: 3px;
}

.scrollbar-thumb-gray-300::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

/* ===== TEAM CONTACT TOOLTIPS - PRECISE HOVER CONTROL ===== */
.team-contact-tooltip {
  position: relative;
  display: inline-block;
}

.team-contact-tooltip .tooltip-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  color: #1f2937;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.team-contact-tooltip .tooltip-content::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid white;
}

.team-contact-tooltip .icon-wrapper:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Ensure the icon itself is the only hover target */
.team-contact-tooltip .icon-wrapper {
  display: inline-block;
  cursor: pointer;
}

.team-contact-tooltip .icon-wrapper i {
  display: block;
  width: 20px;
  height: 20px;
}

/* Unternehmensseite: Alle Kontakt-Icons (LinkedIn, Mail, Telefon) gleiche Höhe, eine Reihe */
.team-contact-icons {
  align-items: center;
  min-height: 20px;
}

.team-contact-icons > a,
.team-contact-icons .team-contact-tooltip,
.team-contact-icons .phone-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  flex-shrink: 0;
}

/* Mail-Icon: Wrapper auf gleiche Höhe wie LinkedIn/Telefon zentrieren (nicht höher „schweben“) */
.team-contact-icons .team-contact-tooltip .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 20px;
}

.team-contact-icons > a i,
.team-contact-icons .team-contact-tooltip .icon-wrapper i,
.team-contact-icons .team-contact-tooltip .icon-wrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-contact-icons .team-contact-tooltip .icon-wrapper a {
  height: 20px;
  width: 20px;
  padding: 0;
  line-height: 0;
}

/* Unternehmensseite: Ansprechpartner-Beschreibung stets einzeilig */
.ansprechpartner-description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== TELEFON-KLICK-BOX (Slide-out rechts neben Icon) ===== */
.phone-reveal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 0;
}

.phone-reveal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Gleiche Icon-Größe wie Mail (team-contact-tooltip): 20px */
.phone-reveal-trigger i,
.phone-reveal-trigger svg {
  display: block;
  width: 20px;
  height: 20px;
}

.phone-reveal-trigger:hover {
  color: #008ECE;
}

.phone-reveal-trigger:focus {
  outline: 2px solid #008ECE;
  outline-offset: 2px;
}

.phone-reveal-box {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
  min-height: 1.8rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  background: white;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  z-index: 50;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-width 0.25s ease, padding 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.phone-reveal.is-open .phone-reveal-box {
  max-width: 20rem;
  padding: 0.5rem 0.75rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.phone-reveal-box a {
  color: #008ECE;
  text-decoration: none;
  font-weight: 500;
}

.phone-reveal-box a:hover {
  text-decoration: underline;
}

/* Ansprechpartner: Telefon-Item mit Klick-Box */
.ansprechpartner-contact-item.phone-reveal-wrapper {
  justify-content: flex-start;
  gap: 0;
}

.ansprechpartner-contact-item .phone-reveal-trigger .ansprechpartner-contact-icon {
  flex-shrink: 0;
}

/* ===== ANSPRECHPARTNER SECTION STYLES ===== */

/* Ansprechpartner Section */
.ansprechpartner-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.ansprechpartner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ansprechpartner-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ansprechpartner-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ansprechpartner-title {
    font-size: 2.5rem;
  }
}

.ansprechpartner-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
}

.ansprechpartner-card {
  max-width: 64rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .ansprechpartner-card {
    padding: 2rem;
  }
}

.ansprechpartner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .ansprechpartner-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.ansprechpartner-image {
  flex-shrink: 0;
}

/* Rundes Bild auf Leistungsseiten – gleiche Form wie Platzhalter (Kreis) */
.ansprechpartner-image .ansprechpartner-photo,
.ansprechpartner-image img {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ansprechpartner-image-placeholder {
  width: 12rem;
  height: 12rem;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ansprechpartner-image-placeholder svg {
  width: 6rem;
  height: 6rem;
  color: #9ca3af;
}

.ansprechpartner-info {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .ansprechpartner-info {
    text-align: left;
  }
}

.ansprechpartner-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.ansprechpartner-role {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.ansprechpartner-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ansprechpartner-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .ansprechpartner-contact-item {
    justify-content: flex-start;
  }
}

.ansprechpartner-contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #008ece;
}

.ansprechpartner-contact-text {
  color: #374151;
  font-weight: 500;
}

.ansprechpartner-contact-link {
  color: #008ece;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.ansprechpartner-contact-link:hover {
  color: #006699;
}

.ansprechpartner-email-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #008ece;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(0);
}

.ansprechpartner-email-btn:hover {
  background: #006699;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ansprechpartner-email-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* Responsive adjustments for Ansprechpartner Section */
@media (max-width: 768px) {
  .ansprechpartner-section {
    padding: 3rem 0;
  }
  
  .ansprechpartner-title {
    font-size: 2rem;
  }
  
  .ansprechpartner-subtitle {
    font-size: 1.125rem;
  }
  
  .ansprechpartner-card {
    padding: 1.5rem;
  }
  
  .ansprechpartner-image .ansprechpartner-photo,
  .ansprechpartner-image img {
    width: 10rem;
    height: 10rem;
  }
  
  .ansprechpartner-image-placeholder {
    width: 10rem;
    height: 10rem;
  }
  
  .ansprechpartner-image-placeholder svg {
    width: 5rem;
    height: 5rem;
  }
}

/* Team Contact Tooltips - Precise Hover Control */
.team-contact-tooltip {
    position: relative;
    display: inline-block;
}

.team-contact-tooltip .tooltip-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    color: #1f2937;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.team-contact-tooltip .tooltip-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid white;
}

.team-contact-tooltip .icon-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Ensure the icon itself is the only hover target */
.team-contact-tooltip .icon-wrapper {
    display: inline-block;
    cursor: pointer;
}

.team-contact-tooltip .icon-wrapper i {
    display: block;
    width: 20px;
    height: 20px;
}

/* ===== INHALTSSEITEN STYLES (Datenschutz, Impressum) ===== */
.content-section {
  margin-bottom: 2.5rem;
}

.content-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: #008ece;
  margin-bottom: 1.5rem;
  margin-top: 6rem;
  position: relative;
}

.content-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: -10px;
  width: 40px;
  height: 3px;
  background: #008ece;
}

.content-subheading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1rem;
}

.content-section strong {
  font-weight: 600;
  color: #111827;
}

.content-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #4b5563;
}

.content-section a {
  color: #008ece;
  text-decoration: underline;
  transition: color 0.2s;
}

.content-section a:hover {
  color: #005b85;
}

/* Responsive Anpassungen für Inhaltsseiten */
@media (max-width: 768px) {
  .content-heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .content-subheading {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
  }
  
  .content-section {
    margin-bottom: 2rem;
  }
}

/* Neues 2x2 Grid speziell für die Leistungen-Übersichtsseite */
.leistungen-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Größere Bilder für die Leistungen-Cards */
.leistungen-overview-grid .w-full.h-48 {
  height: 16rem; /* h-64 statt h-48 */
}

@media (max-width: 768px) {
  .leistungen-overview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== FILE UPLOAD DRAG & DROP STYLES ===== */
.file-upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #f9fafb;
  position: relative;
}

.file-upload-zone:hover {
  border-color: #008ece;
  background-color: #f0f9ff;
}

.file-upload-zone.dragover {
  border-color: #008ece;
  background-color: #e0f2fe;
  transform: scale(1.02);
}

.file-upload-content {
  pointer-events: none;
}

.file-upload-icon {
  width: 3rem;
  height: 3rem;
  color: #6b7280;
  margin: 0 auto 1rem;
  transition: color 0.2s ease;
}

.file-upload-zone:hover .file-upload-icon {
  color: #008ece;
}

.file-upload-text {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.file-upload-hint {
  font-size: 0.875rem;
  color: #6b7280;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* File list display */
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-item-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.file-item-size {
  font-size: 0.75rem;
  color: #6b7280;
}

.file-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.file-item-remove:hover {
  background-color: #fef2f2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-upload-zone {
    padding: 1.5rem;
  }
  
  .file-upload-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .file-upload-text {
    font-size: 0.875rem;
  }
  
  .file-upload-hint {
    font-size: 0.75rem;
  }
}

/* ===== SEARCH RESULTS ===== */
.search-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border-left: 4px solid #008ece;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-info p {
  margin: 0.75rem 0;
  color: #374151;
  font-size: 1.1rem;
  line-height: 1.6;
}

.search-info strong {
  color: #008ece;
  font-weight: 600;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.search-result-item {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.search-result-item:hover {
  border-color: #008ece;
  box-shadow: 0 8px 25px rgba(0, 142, 206, 0.15);
  transform: translateY(-3px);
}

.search-result-item h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 600;
}

.search-result-item h3 a {
  color: #008ece;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.search-result-item h3 a:hover {
  color: #0066a3;
  transform: translateX(5px);
}

.search-result-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
  font-size: 1.1rem;
}

.search-result-item strong {
  color: #008ece;
  font-weight: 600;
  background: rgba(0, 142, 206, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 2rem 0;
}

.no-results-content h3 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.no-results-content p {
  color: #6b7280;
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.no-results-suggestions {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e1e5e9;
}

.no-results-suggestions h4 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.no-results-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.no-results-suggestions li {
  color: #6b7280;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e5e9;
  position: relative;
  padding-left: 2rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.no-results-suggestions li:before {
  content: "→";
  color: #008ece;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.no-results-suggestions li:last-child {
  border-bottom: none;
}

.no-results .btn-primary {
  display: inline-block;
  background: #008ece;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 142, 206, 0.3);
}

.no-results .btn-primary:hover {
  background: #0066a3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 142, 206, 0.4);
}

/* Responsive adjustments for search results */
@media (max-width: 768px) {
  .search-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .search-results {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .search-result-item {
    padding: 1.5rem;
  }
  
  .search-result-item h3 {
    font-size: 1.25rem;
  }
  
  .search-result-item p {
    font-size: 1rem;
  }
  
  .no-results {
    padding: 3rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .no-results-content h3 {
    font-size: 1.5rem;
  }
  
  .no-results-content p {
    font-size: 1.1rem;
  }
  
  .no-results-suggestions {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST APPROACH ===== */

/* ===== TABLET BREAKPOINT (768px - 1023px) ===== */
@media (max-width: 1023px) {
  /* Horizontale Überläufe nur für Tablet verhindern */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .header, #header {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  main, section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-image {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }
  

  
  /* Header Anpassungen */
  .header .container, #header .container {
    gap: 1.5rem;
  }
  
  /* Navigation Anpassungen */
  .nav-list {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0;
  }
  
  /* Hero Image Anpassungen */
  .hero-image {
    height: 350px;
  }
  
  /* Container Anpassungen */
  .container {
    padding: 0 25px;
  }
  
  /* Section Anpassungen */
  .section-heading {
    font-size: 2rem;
  }
  

}

/* ===== MOBILE BREAKPOINT (480px - 767px) ===== */
@media (max-width: 767px) {
  :root {
    --mobile-header-height: 56px;
  }

  /* Fixer Mobile-Header: global Platz reservieren */
  html {
    scroll-padding-top: var(--mobile-header-height);
  }

  body {
    padding-top: var(--mobile-header-height);
  }

  /* Startseite: Hero-Subtitle auf Mobile ausblenden */
  body.homepage .hero-subtitle {
    display: none !important;
  }

  /* Horizontale Überläufe nur für Mobile verhindern */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .header, #header {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  main, section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-image {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }
  

  
  /* Header Anpassungen */
  .header, #header {
    height: var(--mobile-header-height);
    padding: 0;
    /* Header darf auf Mobile nicht scrollbar werden */
    overflow-x: clip;
    overflow-y: visible;
  }
  
  .header .container, #header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 20px;
  }
  
  .logo img {
    height: 32px;
  }
  
  /* Mobile Navigation Toggle */
  .mobile-nav-toggle {
    display: flex;
    order: 3;
  }
  
  /* Desktop Navigation */
  .desktop-nav {
    display: none;
  }
  
  /* Header Buttons Container */
  .header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Definitive Icon Alignment - Beide Icons auf gleiche Höhe */
  .header-buttons button {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    width: 32px !important;
    line-height: 1 !important;
  }
  
  .header-buttons button svg {
    display: block !important;
  }
  
  /* Main Navigation - Mobile */
  .main-nav {
    display: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #e5e7eb;
  }
  
  .main-nav.active {
    display: block;
  }
  

  
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #000;
    background: transparent;
    transition: background-color 0.2s ease;
  }
  
  .nav-link:hover {
    background-color: #f8f9fa;
    color: #000;
  }
  
  /* Search Toggle Mobile */
  .search-toggle {
    order: 2;
    margin-left: auto;
  }

  /* Startseite: Header auf Mobile immer sichtbar (nicht erst nach Scroll) */
  body.homepage .header,
  body.homepage #header {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  body.homepage .logo {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Mobile-Menü & Suche direkt unter Mobile-Header */
  #mobile-menu,
  #search-bar {
    top: var(--mobile-header-height);
  }
  
  /* Hero Image Mobile */
  .hero-image {
    height: 250px;
  }
  
  /* Container Mobile */
  .container {
    padding: 0 20px;
  }
  
  /* Section Mobile */
  .section-heading {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  

  
  /* Search Overlay Mobile */
  .search-overlay {
    padding: 1rem;
  }
  

  
  /* Breadcrumb Mobile */
  .breadcrumb {
    padding: 1rem 0 0.75rem 0;
  }
  
  nav.breadcrumb .container {
    padding: 0 20px !important;
  }
  
  nav.breadcrumb ol {
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  
  /* Leistungen Intro Mobile */
  .leistungen-intro p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  
  /* Search Results Mobile */
  .search-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .search-results {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .search-result-item {
    padding: 1.5rem;
  }
  
  .search-result-item h3 {
    font-size: 1.25rem;
  }
  
  .search-result-item p {
    font-size: 1rem;
  }
  
  .no-results {
    padding: 3rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .no-results-content h3 {
    font-size: 1.5rem;
  }
  
  .no-results-content p {
    font-size: 1.1rem;
  }
  
  .no-results-suggestions {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* ===== SMALL MOBILE BREAKPOINT (320px - 479px) ===== */
@media (max-width: 479px) {
  /* Horizontale Überläufe nur für Small Mobile verhindern */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .header, #header {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  main, section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-image {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .search-overlay {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .search-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  /* Header Anpassungen */
  .header .container, #header .container {
    padding: 0 15px;
    gap: 0.75rem;
  }
  
  .logo img {
    height: 32px;
  }
  
  /* Navigation Mobile */
  .nav-link {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  
  /* Hero Image Small Mobile */
  .hero-image {
    height: 200px;
  }
  
  /* Container Small Mobile */
  .container {
    padding: 0 15px;
  }
  
  /* Section Small Mobile */
  .section-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  

  

  
  /* Breadcrumb Small Mobile */
  nav.breadcrumb .container {
    padding: 0 15px !important;
  }
  
  nav.breadcrumb ol {
    font-size: 0.85rem;
    gap: 0.3rem;
  }
  
  /* Leistungen Intro Small Mobile */
  .leistungen-intro p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  /* Search Results Small Mobile */
  .search-info {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .search-results {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .search-result-item {
    padding: 1.25rem;
  }
  
  .search-result-item h3 {
    font-size: 1.1rem;
  }
  
  .search-result-item p {
    font-size: 0.95rem;
  }
  
  .no-results {
    padding: 2.5rem 1.25rem;
    margin: 1.25rem 0;
  }
  
  .no-results-content h3 {
    font-size: 1.25rem;
  }
  
  .no-results-content p {
    font-size: 1rem;
  }
  
  .no-results-suggestions {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-image {
    height: 200px;
  }
  
  .main-nav {
    max-height: calc(100vh - 80px);
  }
  

}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS FOR MOBILE ===== */
@media (max-width: 767px) {
  /* Touch-friendly button sizes */
  .mobile-nav-toggle,
  .search-toggle,
  .search-submit {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved focus states for mobile */
  .nav-link:focus,
  .search-toggle:focus,
  .search-submit:focus {
    outline: 2px solid #008ece;
    outline-offset: 2px;
  }
  
  /* Better touch targets */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
}

/* ===== UNTERNEHMEN SEITE SPEZIFISCHE STYLES ===== */
/* About Section und Team Section Container - gleiche Breite wie Header */
.unternehmen-page section .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

@media (min-width: 768px) {
  .unternehmen-page section .container {
    padding: 0 50px;
  }
}

@media (min-width: 1280px) {
  .unternehmen-page section .container {
    padding: 0 80px;
  }
}

@media (min-width: 1600px) {
  .unternehmen-page section .container {
    padding: 0 100px;
  }
}

/* ===== KONTAKT SEITE SPEZIFISCHE STYLES ===== */
/* Alle Sektionen auf der Kontaktseite - gleiche Breite wie Header */
.kontakt-page section .container {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .kontakt-page section .container {
    padding: 0 50px !important;
  }
}

@media (min-width: 1280px) {
  .kontakt-page section .container {
    padding: 0 80px !important;
  }
}

@media (min-width: 1600px) {
  .kontakt-page section .container {
    padding: 0 100px !important;
  }
}

/* ===== STELLENANGEBOTE SEITE SPEZIFISCHE STYLES ===== */
/* Alle Sektionen auf der Stellenangebote-Seite - exakt gleiche Breite wie Header */
.stellenangebote-page section .container,
.stellenangebote-page .container,
.stellenangebote-page section > div:first-child,
.stellenangebote-page section > div,
.stellenangebote-page main .container,
.stellenangebote-page .grid,
.stellenangebote-page .card-container,
.stellenangebote-page .space-y-8,
.stellenangebote-page .text-center {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Abstand nach dem Intro-Text (wie Duales Studium): margin-bottom wiederherstellen, da oben mit margin:0 auto überschrieben */
.stellenangebote-page section .container > .text-center.mb-8 {
  margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
  .stellenangebote-page section .container,
  .stellenangebote-page .container,
  .stellenangebote-page section > div:first-child,
  .stellenangebote-page section > div,
  .stellenangebote-page main .container,
  .stellenangebote-page .grid,
  .stellenangebote-page .card-container,
  .stellenangebote-page .space-y-8,
  .stellenangebote-page .text-center {
    padding: 0 50px !important;
  }
}

@media (min-width: 1280px) {
  .stellenangebote-page section .container,
  .stellenangebote-page .container,
  .stellenangebote-page section > div:first-child,
  .stellenangebote-page section > div,
  .stellenangebote-page main .container,
  .stellenangebote-page .grid,
  .stellenangebote-page .card-container,
  .stellenangebote-page .space-y-8,
  .stellenangebote-page .text-center {
    padding: 0 80px !important;
  }
}

@media (min-width: 1600px) {
  .stellenangebote-page section .container,
  .stellenangebote-page .container,
  .stellenangebote-page section > div:first-child,
  .stellenangebote-page section > div,
  .stellenangebote-page main .container,
  .stellenangebote-page .grid,
  .stellenangebote-page .card-container,
  .stellenangebote-page .space-y-8,
  .stellenangebote-page .text-center {
    padding: 0 100px !important;
  }
}

/* ===== DUALES STUDIUM SEITE SPEZIFISCHE STYLES ===== */
/* Alle Sektionen auf der duales Studium-Seite - exakt gleiche Breite wie Header */
.dual-studium-page section .container,
.dual-studium-page .container,
.dual-studium-page section > div:first-child,
.dual-studium-page section > div,
.dual-studium-page main .container,
.dual-studium-page .grid,
.dual-studium-page .card-container,
.dual-studium-page .space-y-8,
.dual-studium-page .text-center {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .dual-studium-page section .container,
  .dual-studium-page .container,
  .dual-studium-page section > div:first-child,
  .dual-studium-page section > div,
  .dual-studium-page main .container,
  .dual-studium-page .grid,
  .dual-studium-page .card-container,
  .dual-studium-page .space-y-8,
  .dual-studium-page .text-center {
    padding: 0 50px !important;
  }
}

@media (min-width: 1280px) {
  .dual-studium-page section .container,
  .dual-studium-page .container,
  .dual-studium-page section > div:first-child,
  .dual-studium-page section > div,
  .dual-studium-page main .container,
  .dual-studium-page .grid,
  .dual-studium-page .card-container,
  .dual-studium-page .space-y-8,
  .dual-studium-page .text-center {
    padding: 0 80px !important;
  }
}

@media (min-width: 1600px) {
  .dual-studium-page section .container,
  .dual-studium-page .container,
  .dual-studium-page section > div:first-child,
  .dual-studium-page section > div,
  .dual-studium-page main .container,
  .dual-studium-page .grid,
  .dual-studium-page .card-container,
  .dual-studium-page .space-y-8,
  .dual-studium-page .text-center {
    padding: 0 100px !important;
  }
}

