/* Kar & Partner GmbH – Modernes, responsives Design mit professionellen Fonts */

/* ACCESSIBILITY & CONTRAST OPTIMIZATIONS */
/* Fokus-Indikatoren nur für Formularfelder */
input:focus, select:focus, textarea:focus {
  outline: 3px solid #ffb800 !important;
  outline-offset: 2px;
}

/* Alle anderen Elemente ohne gelbe Outlines */
a:focus, button:focus, .nav-links a:focus, .burger:focus, .logo-container:focus, .submit-btn:focus {
  outline: none;
}

/* Skip-Link für Screenreader */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #1a4e8a;
  color: white;
  padding: 8px;
  z-index: 100000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary: #000066;
    --secondary: #000000;
    --accent: #ffcc00;
    --white: #ffffff;
    --gray: #f0f0f0;
  }
}

/* Reduzierte Bewegung für Nutzer mit Bewegungsempfindlichkeit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lokale Font-Definitionen laden */
@import url('fonts.css');

/* KOMMENTIERTE GOOGLE FONTS - JETZT LOKAL VERFÜGBAR:
OPTION 2: Modern & Clean
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

OPTION 3: Elegant & Professional  
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

OPTION 4: Tech & Modern
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');
*/

:root {
  --primary: #1a4e8a;
  --secondary: #3a3a3a;
  --accent: #e5eaf5;
  --white: #fff;
  --gray: #f5f7fa;
  
  /* OPTIMIERTE FONT-HIERARCHIE: Inter + Poppins + Source Sans Pro (LOKAL) mit robusten Fallbacks */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* ALTERNATIVE FONT-HIERARCHIEN (zum Umschalten - ERFORDERN LOKALE DOWNLOAD):
  
  OPTION 2: Modern & Clean
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  OPTION 3: Elegant & Professional
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  OPTION 4: Tech & Modern
  --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'JetBrains Mono', monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  */
}
html {
  box-sizing: border-box;
  font-size: 16px;
  /* Verhindert, dass Browser die Scroll-Position zwischen Seiten speichern */
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
/* Body padding für fixed header */
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--gray);
  color: var(--secondary);
  line-height: 1.6;
  font-weight: 400;
  /* Stellt sicher, dass die Seite immer am Anfang startet */
  overflow-x: hidden;
  padding-top: 80px; /* Reduzierter Platz für fixed header */
}

/* Moderne Typographie-Hierarchie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);

  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);

}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

/* Navigation verwendet sekundäre Font */
.nav-links a {
  font-family: var(--font-secondary);
}

/* Buttons verwenden primäre Font */
.cta-btn, .submit-btn, .service-btn {
  font-family: var(--font-secondary);
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Fließtext optimiert */
p, li, span {
  font-family: var(--font-body);
  line-height: 1.7;
}

/* Spezielle Elemente */
.hero h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stat-number {
  font-family: var(--font-primary);
  font-weight: 700;
}

.stat-label {
  font-family: var(--font-secondary);
  font-weight: 500;
}

header {
  background: linear-gradient(135deg, var(--primary) 0%, #152a4a 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1), 0 4px 20px rgba(21, 42, 74, 0.6);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Scrolled state - kompakter und mit verstärktem Schatten */
header.scrolled {
  background: rgba(26, 78, 138, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 8px 40px rgba(21, 42, 74, 0.8);
  padding: 0.25rem 0;
}

header.scrolled .navbar {
  padding: 0.5rem 2rem;
}

header.scrolled .logo-img {
  height: 60px;
  width: 60px;
}

header.scrolled .company-name {
  font-size: 1.1em;
}

header.scrolled .company-claim {
  font-size: 0.7em;
}


.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 2rem;
  position: relative;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.company-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(26,78,138,0.1));
  border-radius: 8px;
}
.company-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  white-space: nowrap;
  line-height: 1.1;
}
.company-claim {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  white-space: nowrap;
  line-height: 1;
}
.logo-container:hover .logo-img {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 4px 12px rgba(26,78,138,0.25));
}
.logo-container:hover .company-name,
.logo-container:hover .company-claim {
  color: rgba(255, 255, 255, 0.8);
}
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  border: none;
}
/* Navigation transitions für scrolled state */
.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 1.2rem 2rem;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Kompakte Navigation im scrolled state */
header.scrolled .nav-links a {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, white 0%, white 35%, transparent 35%, transparent 45%, white 45%, white 55%, transparent 55%, transparent 65%, white 65%, white 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 60%;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  transform: translateY(-2px);
}

.nav-links a.active {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.nav-links a.active::before {
  width: 60%;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 2px solid var(--primary);
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: none;
}

.burger:hover {
  background: var(--primary);
  transform: scale(1.05);
  border-color: var(--primary);
}

.burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger:hover span {
  background: rgba(255, 255, 255, 0.8);
}

.burger.active {
  background: var(--primary);
  border-color: var(--primary);
}

.burger.active span {
  background: var(--white);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  overflow: hidden;
  padding: 3rem 0;
  text-align: right;
}

/* Spezielle Klasse für Startseite Hero */
.hero-home {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  overflow: hidden;
  padding: 4rem 0;
  text-align: right;
}

.hero::before,
.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}

/* Video-spezifische Styles für hero-bg */
video.hero-bg {
  min-width: 100%;
  min-height: 100%;
  /* Mobile Video Fixes */
  -webkit-playsinline: true;
  /* Sicherstellen dass Video immer lädt */
  pointer-events: none;
}

/* Wellen-Overlay am unteren Ende des Hero-Bereichs */
.hero-home::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: white;
  z-index: 4;
  clip-path: polygon(100% 100%, 0% 100% , 0.00% 76.05%, 2.00% 74.73%, 4.00% 73.54%, 6.00% 72.49%, 8.00% 71.59%, 10.00% 70.86%, 12.00% 70.30%, 14.00% 69.92%, 16.00% 69.74%, 18.00% 69.74%, 20.00% 69.93%, 22.00% 70.31%, 24.00% 70.87%, 26.00% 71.61%, 28.00% 72.51%, 30.00% 73.57%, 32.00% 74.76%, 34.00% 76.08%, 36.00% 77.51%, 38.00% 79.03%, 40.00% 80.63%, 42.00% 82.27%, 44.00% 83.94%, 46.00% 85.62%, 48.00% 87.28%, 50.00% 88.92%, 52.00% 90.49%, 54.00% 91.99%, 56.00% 93.40%, 58.00% 94.69%, 60.00% 95.85%, 62.00% 96.87%, 64.00% 97.73%, 66.00% 98.43%, 68.00% 98.94%, 70.00% 99.28%, 72.00% 99.42%, 74.00% 99.38%, 76.00% 99.14%, 78.00% 98.72%, 80.00% 98.12%, 82.00% 97.35%, 84.00% 96.41%, 86.00% 95.32%, 88.00% 94.10%, 90.00% 92.75%, 92.00% 91.30%, 94.00% 89.76%, 96.00% 88.16%, 98.00% 86.51%, 100.00% 84.83%);
}

@media (max-width: 768px) {
  .hero-home::after {
    height: 40px;
    clip-path: polygon(100% 100%, 0% 100%, 0% 76%, 5% 74%, 10% 71%, 15% 70%, 20% 70%, 25% 71%, 30% 74%, 35% 76%, 40% 81%, 45% 84%, 50% 89%, 55% 94%, 60% 96%, 65% 98%, 70% 99%, 75% 99%, 80% 98%, 85% 96%, 90% 93%, 95% 90%, 100% 85%);
  }
}
.hero-content {
  position: relative;
  z-index: 3;
  background: transparent;
  padding: 0 2rem;
  border-radius: 0;
  box-shadow: none;
  color: var(--white);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Spezielle Hero-Content Klasse für Startseite */
.hero-content-home {
  position: relative;
  z-index: 3;
  background: transparent;
  padding: 0 2rem;
  border-radius: 0;
  box-shadow: none;
  color: var(--white);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.5rem;
}

.hero-content-home h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: right;
}

.hero-content-home p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  text-align: right;
}

.hero .hero-content {
  align-items: flex-end;
}

.hero-home .hero-content-home {
  align-items: flex-end;
  text-align: right;
}

.hero h1, .hero-home h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 {
  text-align: right;
}

.hero-home h1 {
  text-align: right;
  font-size: 3.2rem; /* Vergrößert von 2.8rem auf 3.2rem */
  line-height: 1.2;
  font-weight: 700;
}

/* Typing-Effekt für Hero-Wörter */
.typing-word {
  color: #ffb800;
  font-weight: 700;
  border-right: 3px solid #ffb800;
  animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
  0%, 50% { border-color: #ffb800; }
  51%, 100% { border-color: transparent; }
}

.hero p, .hero-home p {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero p {
  text-align: right;
}

.hero-home p {
  text-align: right;
  font-size: 1rem;
}

/* CTA Button für Startseite rechtsbündig */
.hero-content-home .cta-btn {
  margin: 1.5rem 0 0 auto;
  text-align: center;
  align-self: flex-end;
}
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background 0.2s;
  width: auto;
  max-width: fit-content;
}
.cta-btn:hover {
  background: var(--secondary);
}
.why-us {
  background: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}
.why-us h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.why-us ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Animierte Statistik-Sektion */
.stats-section {
  background: linear-gradient(135deg, var(--primary), #2a5f9a);
  padding: 4rem 2rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(360deg); }
}

.stats-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

.why-us .icon {
  width: 80px;
  height: 80px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: all 0.3s ease;
  object-fit: contain;
}

.why-us li {
  font-weight: 500;
  width: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.3s ease;
  color: var(--secondary);
}

.why-us li:hover {
  transform: translateY(-3px);
}

.why-us li:hover .icon {
  transform: scale(1.1);
}

.why-us .text {
  color: var(--secondary);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.services-preview {
  padding: 3rem 2rem;
  background: var(--gray);
  text-align: center;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(26,78,138,0.07);
  padding: 2rem 1.5rem;
  max-width: 472px;
  text-align: left;
}
.service-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.cta-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
.testimonials {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials h2 {
  color: var(--primary);
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-grid blockquote {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 8px 32px rgba(26,78,138,0.12);
  font-style: italic;
  color: var(--secondary);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-grid blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26,78,138,0.18);
}

.testimonial-grid blockquote:before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-grid blockquote p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text);
}

.testimonial-grid footer {
  display: none;
}

.testimonial-grid .author {
  margin-top: 1.5rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
}
.projects-preview {
  background: var(--gray);
  padding: 3rem 2rem;
  text-align: center;
}

.projects-preview p {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.projects-preview .projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.projects-preview .project-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(26,78,138,0.07);
  padding: 2rem 1.5rem;
  max-width: 400px;
  text-align: left;
}
.projects-preview .project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.projects-preview .project-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.projects-preview .project-card p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid rgba(26, 78, 138, 0.1);
}

.faq-section h2 {
  text-align: center;
  color: var(--primary);
  font-family: var(--font-secondary);
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.faq-item h3 {
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.faq-item p {
  color: var(--secondary);
  line-height: 1.6;
  font-family: var(--font-body);
}

footer {
  background: linear-gradient(135deg, var(--primary) 0%, #152a4a 100%);
  color: var(--white);
  padding: 3rem 0 1.5rem 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

.footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-navigation h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 400px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.footer-contact-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-contact-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-contact {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-contact p {
  margin: 0.3rem 0;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  grid-column: 1 / -1;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 300;
}
@media (max-width: 900px) {
  .navbar {
    padding: 0.25rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand,
  .footer-contact-section {
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .logo-img {
    height: 70px;
    width: 70px;
  }
  
  .company-name {
    font-size: 1.3rem;
  }
  
  .company-claim {
    font-size: 0.75em;
  }
  
  .nav-links {
    gap: 0;
    padding: 0;
  }
  
  .nav-links a {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }
  
  .services-grid, .testimonial-grid, .projects-preview .projects-grid {

    gap: 1.5rem;
  }
  
  .why-us ul {
    gap: 1.5rem;
  }
  
  .why-us li {
    width: 180px;
    height: auto;
  }
  
  .why-us .icon {
    width: 70px;
    height: 70px;
  }
  
  .stats-section {
    padding: 3rem 1.5rem;
  }
  
  .stats-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
    min-height: 140px;
  }
  
  .stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .why-us .icon {
    width: 50px;
    height: 50px;
    padding: 12px;
  }
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: var(--gray);
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: ">";
  margin-left: 0.5rem;
  color: var(--secondary);
  opacity: 0.6;
}

.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.breadcrumb-list li:last-child {
  color: var(--secondary);
  font-weight: 500;
}

/* Neue Seitenlayouts */
.page-hero {
  background: var(--accent);
  padding: 2rem 2rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.page-hero p {
  color: var(--secondary);
  font-size: 1rem;
  margin: 0;
  text-align: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.company-intro, .services-detail, .projects-gallery, .contact-main {
  padding: 3rem 0;
}
.intro-grid, .service-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
.intro-text {
  flex: 1;
}
.intro-grid img, .service-content img {
  flex: 0 0 40%;
  max-width: 400px;
  border-radius: 10px;
}
.service-content.reverse {
  flex-direction: row-reverse;
}
.values, .service-benefits {
  background: var(--white);
  padding: 3rem 0;
}
.values-grid, .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.value-card, .benefit-card {
  background: var(--accent);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.value-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  color: var(--primary);
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  border-color: var(--secondary);
  color: var(--secondary);
}
.team {
  padding: 3rem 0;
}
.team-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 2rem;
}
.team-member {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 2px 12px rgba(26,78,138,0.07);
}
.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.team-member h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.team-member .team-role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.history {
  background: var(--white);
  padding: 3rem 0;
}
.timeline {
  margin-top: 2rem;
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.timeline-year {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}
.timeline-content {
  flex: 1;
  background: var(--accent);
  padding: 2rem;
  border-radius: 10px;
}
.cta-section {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.service-section {
  margin-bottom: 4rem;
}
.service-text ul {
  margin: 1rem 0;
}
.service-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s;
}
.service-btn:hover {
  background: var(--secondary);
}
.project-filters {
  background: var(--white);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--accent);
}

.project-filters h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.filter-btn {
  background: var(--accent);
  border: 2px solid transparent;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Animation für Filter-Effekte */
.projects-gallery .project-card {
  opacity: 1;
  transition: all 0.4s ease;
}

.projects-gallery .project-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
/* Projektseite spezifische Styles */
.projects-gallery .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.projects-gallery .project-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26,78,138,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.projects-gallery .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(26,78,138,0.15);
}

.projects-gallery .project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.projects-gallery .project-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.projects-gallery .project-info h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.projects-gallery .project-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

.projects-gallery .project-info p {
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.projects-gallery .project-info ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.projects-gallery .project-info ul li {
  color: var(--secondary);
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.projects-gallery .project-info ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}
.project-stats {
  background: var(--white);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.stat-card {
  text-align: center;
  background: var(--accent);
  padding: 2rem;
  border-radius: 10px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-weight: 600;
  color: var(--secondary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
}
.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--primary);
  /* Subtile Hervorhebung ohne aufdringliche gelbe Box */
  box-shadow: 0 0 0 2px rgba(26, 78, 138, 0.2);
}
.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}
.checkbox-group input {
  margin: 0;
  flex-shrink: 0;
}
.checkbox-group-multi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: var(--accent);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.checkbox-item:hover {
  background: rgba(26,78,138,0.1);
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-item label {
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  color: var(--secondary);
}
.submit-btn {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: var(--secondary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-item a {
  color: var(--primary);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}
.emergency-contact {
  background: var(--accent);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}
.map-section {
  background: var(--white);
  padding: 3rem 0;
}
.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,78,138,0.07);
}

.map-container img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  height: 400px;
}
.map-note {
  text-align: center;
  margin-top: 1rem;
  color: var(--secondary);
}

/* Contact Benefits Section */
.contact-benefits {
  background: var(--light-gray);
  padding: 4rem 0 5rem 0;
}

.contact-benefits h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
}

.legal-page {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  color: var(--primary);
  margin-bottom: 2rem;
}
.legal-page h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-page h3 {
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-page ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 1.5rem;
    padding-top: 30px ;
    max-width: 100%;
  }
  
  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .services-grid, .testimonial-grid {

    gap: 1.5rem;
  }
  
  /* Projects-Grid behält flex-wrap für automatische Anordnung */
  .projects-preview .projects-grid {
    gap: 1.5rem;
  }
  
  /* Project-Cards passen sich an verfügbaren Platz an */
  .projects-preview .project-card {
    min-width: 472px;
    flex: 1 1 300px;
  }
  
  .projects-preview p {
    font-size: 0.9rem;
  }
  
  .intro-grid, .service-content {
    flex-direction: column;
    gap: 2rem;
  }
  .service-content.reverse {
    flex-direction: column;
  }
  .intro-grid img, .service-content img {
    flex: none;
    max-width: 100%;
  }
  .team-grid {
    flex-direction: column;
    align-items: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .checkbox-group-multi {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  .filter-buttons {
    justify-content: center;
    gap: 0.8rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .projects-gallery .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .projects-gallery .project-card {
    min-height: auto;
  }
  
  .projects-gallery .project-card img {
    height: 200px;
  }
  
  .projects-gallery .project-info {
    padding: 1.5rem;
  }
  
  .projects-gallery .project-info h3 {
    font-size: 1.2rem;
  }
  
  .stats-section {
    padding: 2.5rem 1rem;
  }
  
  .stats-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0.2rem 1rem;
    flex-wrap: nowrap;
  }
  
  .logo-img {
    height: 60px;
    width: 60px;
  }
  
  .company-name {
    font-size: 1.1rem;
  }
  
  .company-claim {
    font-size: 0.7em;
  }
  
  .faq-section {
    padding: 2rem 0;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .faq-item {
    padding: 1rem;
  }
  
  .faq-item h3 {
    font-size: 1rem;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 200px;
  }
  
  .footer-logo {
    height: 50px;
    width: 50px;
  }
  
  .hero, .hero-home {
    min-height: 400px;
  }
  
  .hero-home {
    min-height: 500px;
  }
  
  .page-hero {
    padding: 1.5rem 1rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .page-hero p {
    font-size: 0.9rem;
    text-align: center;
  }

  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }
  
  .hero-content-home {
    padding: 0 1rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }
  
  .hero, .hero-home {
    text-align: center;
    justify-content: center;
  }
  
  .hero h1, .hero-home h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero-home h1 {
    font-size: 2.2rem;
  }
  
  .hero-content-home h1 {
    font-size: 2.4rem;
    text-align: center;
  }
  
  .hero p, .hero-home p {
    text-align: center;
    font-size: 0.9rem;
  }
  
  .hero-home p {
    font-size: 1rem;
  }
  
  .hero-content-home p {
    font-size: 1rem;
    text-align: center;
  }
  
  .hero-content-home .cta-btn {
    margin: 1.5rem auto 0 auto;
    align-self: center;
  }
  
  .projects-preview p {
    font-size: 0.9rem;
  }
  
  .service-card, .testimonial-grid blockquote {
    max-width: 100%;
  }
  
  /* Project-Cards volle Breite für sehr kleine Bildschirme */
  .projects-preview .project-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: auto;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-grid blockquote {
    padding: 2rem 1.5rem 1.5rem;
    margin: 0;
  }
  
  .testimonial-grid blockquote:before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
  
  .testimonials h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .testimonial-grid .author {
    font-size: 0.85rem;
    margin-top: 1rem;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: calc(100% + 5px);
    left: 1rem;
    right: 1rem;
    box-shadow: 0 12px 40px rgba(26,78,138,0.12);
    z-index: 99;
    padding: 1.5rem 0;
    border-radius: 12px;
    border: 2px solid var(--accent);
    backdrop-filter: none;
    gap: 0;
  }
  
  .nav-links li {
    margin: 0;
    border-bottom: 1px solid var(--accent);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--secondary);
    margin: 0;
    text-align: left;
    border: none;
    border-bottom: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
  }
  
  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }
  
  .nav-links a:hover::before {
    width: 3px;
  }
  
  .nav-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: none;
    padding-left: 2.5rem;
  }
  
  .nav-links a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
  }
  
  .nav-links a.active::before {
    width: 5px;
    background: var(--white);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .burger {
    display: flex;
    z-index: 100;
  }
  .page-hero {
    text-align: center;
    padding: 1.25rem 1rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .page-hero p {
    font-size: 0.85rem;
    text-align: center;
  }
  .container {
    padding: 0 1rem;
  }
  .values-grid, .benefits-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .why-us ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
  }
  
  .why-us li {
    width: 160px;
    height: auto;
  }
  
  .why-us .icon {
    width: 65px;
    height: 65px;
  }
  
  .why-us .text {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dezenter Page Transition - Sehr subtil */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out;
  backdrop-filter: blur(1px);
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Minimal Loading Indicator */
.transition-loader {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 78, 138, 0.2);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: subtleSpin 1s linear infinite;
}

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

/* Dezente UX Hinweise */
.preload-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(26, 78, 138, 0.9);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.preload-status.show {
  opacity: 0.8;
}

/* Sehr dezente Link-Optimierung */
.nav-links a {
  position: relative;
  transition: all 0.2s ease;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a.preloaded:after {
  width: 100%;
}

/* Ultra-smooth Content Transitions */
main {
  transition: opacity 0.1s ease-out;
}

main.transitioning {
  opacity: 0.7;
}

/* Performance Optimierungen */
.service-card, .project-card, .value-card, .benefit-card, .stat-card {
  will-change: transform, opacity;
}

/* Dezenter Progress Indicator */
.preload-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--primary);
  z-index: 9998;
  transition: width 0.2s ease;
  opacity: 0.6;
}

/* Reduzierte Animationen für noch dezenteren Look */
@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay,
  .transition-loader,
  main,
  .nav-links a {
    transition: none !important;
    animation: none !important;
  }
}

/* Landscape Orientation für Smartphones */
@media screen and (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .navbar {
    padding: 0.5rem 1rem;
    min-height: 60px;
  }
  
  .logo-img {
    height: 40px;
    width: 40px;
  }
  
  .company-name {
    font-size: 1rem;
  }
  
  .company-claim {
    font-size: 0.7rem;
  }
  
  .hero, .hero-home {
    min-height: 100vh;
    padding: 2rem 1rem;
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center !important;
    text-align: center;
  }
  
  .hero-content-home {
    padding: 0 1rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center !important;
    text-align: center;
  }
  
  .hero .hero-content, .hero-home .hero-content-home {
    align-items: center !important;
    text-align: center;
  }
  
  .hero h1, .hero-home h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    text-align: center !important;
  }
  
  .hero p, .hero-home p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center !important;
  }
  
  .hero-content-home h1 {
    text-align: center !important;
  }
  
  .hero-content-home p {
    text-align: center !important;
  }
  
  .cta-btn {
    margin: 0 auto;
    display: block;
    text-align: center;
    width: fit-content;
  }
  
  .hero-content-home .cta-btn {
    margin: 1.5rem auto 0 auto;
    display: block;
    text-align: center;
    width: fit-content;
  }
  
  .projects-preview p {
    font-size: 0.85rem;
  }
  
  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 1rem 0;
  }
  
  .nav-links li {
    margin: 0.5rem 0;
  }
  
  .nav-links a {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .burger {
    width: 28px;
    height: 28px;
  }
  
  .burger span {
    height: 3px;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
  }
  
  .why-us li {
    width: 160px;
    height: auto;
  }
  
  .why-us .icon {
    width: 65px;
    height: 65px;
  }
  
  .why-us .text {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem;
    align-items: start;
  }
  
  .service-card {
    padding: 0.8rem;
    height: auto;
  }
  
  .service-card img {
    height: 120px;
    object-fit: cover;
  }
  
  .service-card h3 {
    font-size: 0.95rem;
    margin: 0.6rem 0 0.4rem;
    line-height: 1.2;
  }
  
  .service-card p {
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
  }
  
  .testimonial-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  
  .testimonial-grid blockquote {
    padding: 1rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .testimonial-grid footer {
    font-size: 0.8rem;
    margin-top: 0.8rem;
  }
  
  .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  
  .project-card {
    padding: 0.8rem;
  }
  
  .project-card img {
    height: 120px;
    object-fit: cover;
  }
  
  .project-card p {
    font-size: 0.85rem;
    margin-top: 0.6rem;
    line-height: 1.3;
  }
}

/* Mobile Video Optimierungen */
@media screen and (max-width: 768px) {
  video.hero-bg {
    /* Auf mobilen Geräten Video-Performance optimieren */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    /* iOS-spezifische Fixes */
    -webkit-background-size: cover;
    background-size: cover;
    /* Sicherstellen dass Video inline abgespielt wird */
    display: block;
  }
  
  /* Fallback-Bild für den Fall dass Video nicht lädt */
  .hero-home {
    background-image: url('../images/hero-fallback.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* Video hat Priorität wenn es lädt */
  .hero-home video.hero-bg {
    background: none;
  }
}

/* Zusätzliche Fixes für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
  video.hero-bg {
    /* Noch aggressivere Mobile-Optimierung */
    object-fit: cover;
    height: 100vh;
    width: 100vw;
  }
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
  /* Mobile Body Padding - weniger Abstand unter Header */
  body {
    padding-top: 60px; /* Reduziert für mobile Ansicht */
  }
  
  /* Touch-friendly button sizes */
  .cta-btn,
  .submit-btn,
  button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
  }
  
  /* Improved form elements for mobile */
  input,
  textarea,
  select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better spacing for touch navigation */
  .nav-links a {
    padding: 16px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Mobile-optimized contact cards */
  .contact-item {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  /* Touch-friendly checkboxes */
  .checkbox-item {
    padding: 12px 0;
    min-height: 44px;
  }
  
  .checkbox-item input[type="checkbox"] + label {
    padding-left: 40px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* iOS Safari specific optimizations */
@supports (-webkit-appearance: none) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
  }
}

/* Prevent horizontal scroll on mobile */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Mobile Navigation - Unified Style for all mobile sizes */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(26,78,138,0.12);
    border-radius: 12px;
    border: 2px solid var(--accent);
    padding: 1.5rem 0;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    margin: 0;
    backdrop-filter: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 0;
    border-bottom: 1px solid var(--accent);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #2a5f9a);
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }
  
  .nav-links a:hover {
    background: var(--accent);
    color: var(--primary);
    padding-left: 2.5rem;
  }
  
  .nav-links a:hover::before {
    width: 3px;
  }
  
  .nav-links a.active {
    background: var(--primary);
    color: var(--white);
  }
  
  .nav-links a.active::before {
    width: 3px;
    background: var(--white);
  }
  
  .burger {
    display: flex;
    z-index: 100;
  }
}

/* Additional mobile optimizations for smaller screens */
@media (max-width: 768px) {
  /* Touch-friendly button sizes */
  .cta-btn,
  .submit-btn,
  button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
  }
  
  /* Improved form elements for mobile */
  input,
  textarea,
  select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Mobile-optimized contact cards */
  .contact-item {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  /* Touch-friendly checkboxes */
  .checkbox-item {
    padding: 12px 0;
    min-height: 44px;
  }
  
  .checkbox-item input[type="checkbox"] + label {
    padding-left: 40px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}
