/* =========================================
   0. LOKALE FONTS (DSGVO-konform, kein Request an Google)
   Dateien liegen unter /fonts/ (siehe fonts/-Ordner im Lieferpaket).
   ========================================= */
/* Eine Variable-Font-Datei statt 6 einzelner Gewichte:
   1 statt 6 Requests, 47 KB statt 144 KB, alle Gewichte 100-900 abgedeckt. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-variable.woff2') format('woff2-variations');
}

/* =========================================
   1. BASE & TYPOGRAPHY
   ========================================= */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  scroll-behavior: smooth;
  margin: 0; 
  font-family: 'Inter', system-ui, sans-serif; 
  background: #ffffff; 
  color: #0f172a; 
  -webkit-font-smoothing: antialiased;
}

/* Sicherheitsnetz gegen horizontales Ueberlaufen auf Mobilgeraeten:
   kein Element darf breiter als der Viewport werden. */
img, table, video, iframe { max-width: 100%; }

* { box-sizing: border-box; }
input::placeholder, textarea::placeholder { color: #94a3b8; }

/* Hover-Effekte global */
nav a:hover { color: #ffffff !important; }
.btn-primary:hover, .fk-btn-primary:hover { background: #6b21a8 !important; border-color: #6b21a8 !important; }
.btn-secondary:hover { background: #f1f5f9 !important; }
.btn-outline:hover, .fk-btn-outline:hover { background: rgba(255,255,255,0.1) !important; border-color: #94a3b8 !important; }
.service-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,0.10); transform: translateY(-2px); }
.contact-link:hover { color: #7e22ce !important; }

/* =========================================
   2. HEADER & SUPPORT DROPDOWN (ANIMIERT)
   ========================================= */
/* Header Einflug-Animation */
@keyframes slideDownHeader {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

#site-header {
  animation: slideDownHeader 0.7s ease-out forwards;
  /* Anfangszustand: Transparent ohne Schatten */
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  /* Fließender Übergang für alle relevanten Eigenschaften */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  height: 84px;
  transition: height 0.3s ease;
}

.header-logo-img {
  max-height: 60px; /* passt in die 84px hohe .header-inner-Zeile (vorher 95px = Überstand) */
  transition: max-height 0.3s ease;
}

/* Scrolled State: Wenn der User nach unten scrollt */
#site-header.scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px); /* Milchglas-Effekt */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#site-header.scrolled .header-inner {
  height: 60px !important;
}

#site-header.scrolled .header-logo-img {
  max-height: 42px !important; /* passt in die 60px hohe .header-inner-Zeile im gescrollten Zustand */
}

.support-dropdown { position: relative; display: inline-block; }

/* Unsichtbare Brücke, damit man beim Hovern nicht in die Lücke rutscht */
.support-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px; /* Überbrückt den Abstand zum Menü */
}

.support-btn {
  display: flex; align-items: center; gap: 8px; background: #7e22ce; color: #ffffff;
  font-size: 14px; font-weight: 700; padding: 11px 20px; border: none; cursor: pointer;
  transition: background 0.2s ease; font-family: inherit; border-radius: 0;
}

.support-btn:hover { background: #6b21a8; }

.support-menu {
  position: absolute; top: 100%; right: 0; background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: flex; flex-direction: column;
  min-width: 240px; z-index: 100; border-radius: 4px; overflow: hidden; 
  margin-top: 8px; border: 1px solid #e2e8f0;
  
  /* Animation Status: Versteckt */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Hover Status: Dropdown einblenden (Animiert) */
.support-dropdown:hover .support-menu { 
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.support-menu a {
  padding: 14px 18px; color: #0f172a !important; text-decoration: none; font-size: 14px;
  font-weight: 600; display: flex; align-items: center; gap: 12px; 
  transition: background 0.15s, color 0.15s; border-bottom: 1px solid #f1f5f9;
}
.support-menu a:last-child { border-bottom: none; }
.support-menu a:hover { background: #f8fafc; color: #7e22ce !important; }
.support-menu i { font-size: 16px; color: #94a3b8; transition: color 0.15s; width: 20px; text-align: center; }
.support-menu a:hover i { color: #7e22ce; }

/* =========================================
   3. MOBILE MENÜ (HAMBURGER)
   ========================================= */
.mobile-menu-btn {
  display: none; background: transparent; border: none;
  color: #ffffff; font-size: 28px; cursor: pointer;
}

.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #0f172a; z-index: 1000; display: flex;
  flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  transform: translateX(100%); transition: transform 0.3s ease-in-out;
}

.mobile-nav-overlay.active { transform: translateX(0); }

.mobile-nav-overlay a {
  color: #ffffff; text-decoration: none; font-size: 24px; font-weight: 700; transition: color 0.2s;
}
.mobile-nav-overlay a:hover { color: #a855f7; }

.close-mobile-btn {
  position: absolute; top: 24px; right: 32px; background: transparent;
  border: none; color: #ffffff; font-size: 36px; cursor: pointer;
}

/* =========================================
   4. HERO SECTIONS (Über uns, B2B, B2C)
   ========================================= */
.page-hero, .pk-hero, .fk-hero, .about-hero {
  position: relative; background: #0f172a; padding: 180px 32px 100px;
  border-bottom: 4px solid #7e22ce; overflow: hidden;
}

/* =========================================
   5. CONTAINERS & TYPOGRAPHY UTILITIES
   ========================================= */
.section-padding, .fk-section { padding: 100px 32px; }
.container-max, .pk-container, .fk-container { max-width: 1000px; margin: 0 auto; }
.container-large { max-width: 1200px; margin: 0 auto; }

.text-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #7e22ce; display: block; margin-bottom: 12px;
}
.text-label.light { color: #a855f7; }

.page-intro, .pk-intro, .fk-intro {
  font-size: 22px; line-height: 1.6; color: #0f172a;
  font-weight: 500; margin: 80px 0 64px;
}

/* =========================================
   6. LISTS & GRIDS (Services, Team, Werte)
   ========================================= */
.service-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px;
  padding: 48px 0; border-top: 2px solid #0f172a;
}
.service-row:last-of-type { border-bottom: 2px solid #0f172a; margin-bottom: 80px; }
.service-title { margin: 0; font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.service-desc { margin: 0 0 24px 0; font-size: 16px; line-height: 1.7; color: #475569; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  font-weight: 700; color: #7e22ce; text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.05em; transition: color 0.15s;
}
.service-link:hover { color: #0f172a; }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card {
  background: #ffffff; border: 1px solid #e2e8f0; display: flex;
  flex-direction: column; text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); transform: translateY(-4px); }

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  border-top: 1px solid #e2e8f0; padding-top: 64px; margin-top: 64px;
}
.value-item { display: flex; flex-direction: column; gap: 16px; }
.icon-wrapper {
  width: 54px; height: 54px; background: #f8fafc; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; color: #7e22ce; font-size: 22px;
}

/* =========================================
   7. CTA AREAS & BUTTONS
   ========================================= */
.cta-wrapper, .fk-cta-wrapper { padding: 0 32px 100px; background: #ffffff; }
.cta-box, .fk-cta-box {
  background: #0f172a; border-top: 4px solid #7e22ce; padding: 64px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1200px; margin: 0 auto;
}
.btn-container, .fk-btn-container { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; width: 100%; }
.fk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-size: 15px; font-weight: 700; padding: 14px 28px;
  border-radius: 0; transition: background 0.15s, border-color 0.15s;
}
.fk-btn-primary { background: #7e22ce; color: #ffffff; border: 1px solid #7e22ce; }
.fk-btn-outline { background: transparent; color: #ffffff; border: 1px solid #cbd5e1; }

/* =========================================
   8. FOOTER STYLING
   ========================================= */
/* margin-top erzeugte eine weisse Luecke zwischen Inhalt und Footer.
   Als Innenabstand bleibt die dunkle Flaeche durchgehend. */
.site-footer { background: #0f172a; color: #cbd5e1; border-top: 4px solid #581c87; padding: 76px 0 0; margin-top: 0; }
.site-footer .container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
/* Grid-Kinder duerfen schmaler als ihr Inhalt werden (verhindert horizontales Ueberlaufen durch lange E-Mail-Adressen o.ae.) */
.footer-grid > * { min-width: 0; }
.footer-links a, .footer-links span, .footer-brand-col .footer-desc { overflow-wrap: break-word; word-break: break-word; }
.footer-brand-col .footer-desc { font-size: 13px; line-height: 1.6; margin-top: 14px; max-width: 300px; color: #94a3b8; }
#footer-logo { max-height: 40px; width: auto; display: block; } 
.footer-col .footer-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin: 0 0 14px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li, .footer-links span { font-size: 13px; line-height: 1.5; }
.footer-links a, .legal-links a { color: #cbd5e1; text-decoration: none; transition: color 0.15s; display: inline-flex; align-items: center; }
.footer-links a:hover, .legal-links a:hover, .social-links a:hover, .hover-target:hover { color: #ffffff !important; }
.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a { font-size: 18px; color: #cbd5e1; transition: color 0.15s; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: #64748b; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }

/* =========================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 1440px) {
  .partner-row { position: static !important; padding: 48px 32px 0 !important; justify-content: flex-start !important; flex-wrap: wrap !important; max-width: 1240px; margin: 0 auto; }
}

@media (max-width: 992px) {
  .split-layout { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-padding { padding: 64px 24px; }
  
  /* Mobile Menu Toggles */
  .desktop-nav { display: none !important; }
  .support-dropdown { display: none !important; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .page-hero, .pk-hero, .fk-hero, .about-hero { padding: 120px 20px 60px; }
  .section-padding, .fk-section { padding: 64px 20px; }
  .page-intro, .pk-intro, .fk-intro { font-size: 18px; margin: 40px 0 40px; }
  
  .service-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service-row:last-of-type { margin-bottom: 64px; }
  .service-title { font-size: 22px; }
  
  .cta-wrapper, .fk-cta-wrapper { padding: 0 20px 60px; }
  .cta-box, .fk-cta-box { padding: 48px 24px; }
  
  .btn-container, .fk-btn-container { flex-direction: column; }
  .btn-container a, .fk-btn-container a, .fk-btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* =========================================
   HERO ANIMATIONEN (Maximale Sichtbarkeit)
   ========================================= */

/* Deutlich stärkerer Zoom (25%), mehr Bewegung und stärkere Drehung */
@keyframes slowZoom {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.25) translate(-4%, -3%) rotate(2deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

.hero-img-animated {
  will-change: transform;
  /* Zeit von 20s auf 15s verkürzt, damit die Bewegung sofort auffällt */
  animation: slowZoom 15s ease-in-out infinite;
}

/* Das Overlay liegt ruhig. Frueher pulsierte es zwischen 0.9 und 0.3 -
   im Zusammenspiel mit dem Logo-Video wurde die Schrift dadurch
   im Sekundentakt schlechter lesbar. Deckkraft steckt jetzt komplett
   im Farbwert des Verlaufs, nicht mehr in einer Animation. */
.hero-overlay-animated {
  opacity: 1;
}

/* =========================================
   10. INDEX-SEITE GRIDS (aus alter style.css)
   ========================================= */
.hero-content {
  position: relative; z-index: 10; max-width: 1240px; margin: 0 auto; padding: 180px 32px 0;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fakten-grid {
  display: grid; grid-template-columns: 340px 1fr; align-items: stretch;
  border: 1px solid #e2e8f0; background: #ffffff; box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid #e2e8f0; background: #ffffff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 1440px) {
  .partner-row { position: static !important; padding: 48px 32px 0 !important; justify-content: flex-start !important; flex-wrap: wrap !important; max-width: 1240px; margin: 0 auto; }
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .fakten-grid { grid-template-columns: 1fr; }
  .fakten-grid > img {
    height: 300px !important; min-height: 0 !important;
    border-right: none !important; border-bottom: 1px solid #e2e8f0 !important;
  }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid > img { height: 250px !important; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-content { padding: 120px 20px 0; }
  .services-grid { grid-template-columns: 1fr; }
}

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

/* =========================================
   11. ACCESSIBILITY / PERFORMANCE
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-img-animated, .hero-overlay-animated { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================
   FAQ-BEREICH (verwendet auf allen Leistungsseiten)
   ========================================= */
.faq-section { padding: 0 32px 100px; background: #ffffff; }
.faq-container { max-width: 1000px; margin: 0 auto; }
.faq-heading { margin: 0 0 32px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.faq-item { border-top: 2px solid #0f172a; }
.faq-item:last-of-type { border-bottom: 2px solid #0f172a; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 22px 0;
  font-size: 17px; font-weight: 700; color: #0f172a;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: #7e22ce; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: #475569; max-width: 800px; }

/* =========================================
   LEISTUNGSSEITEN (Breadcrumb, Ablauf-Steps, Umfang-Liste)
   ========================================= */
.ls-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; flex-wrap: wrap; }
.ls-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.ls-breadcrumb a:hover { color: #ffffff; }
.ls-section { padding: 88px 32px; background: #ffffff; }
.ls-container { max-width: 900px; margin: 0 auto; }
.ls-intro { font-size: 19px; line-height: 1.7; color: #334155; margin: 0 0 56px; }
.ls-scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 64px; }
.ls-scope-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #f8fafc; border: 1px solid #e2e8f0; }
.ls-scope-item i { color: #7e22ce; font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.ls-scope-item h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #0f172a; }
.ls-scope-item p { margin: 0; font-size: 14px; line-height: 1.55; color: #475569; }
.ls-steps { counter-reset: step; margin-bottom: 64px; }
.ls-step { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid #e2e8f0; }
.ls-step:last-child { border-bottom: 1px solid #e2e8f0; }
.ls-step-num { counter-increment: step; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #0f172a; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.ls-step-num::before { content: counter(step); }
.ls-step h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #0f172a; }
.ls-step p { margin: 0; font-size: 14px; line-height: 1.6; color: #475569; }

@media (max-width: 768px) {
  .ls-section { padding: 56px 20px; }
  .ls-intro { font-size: 17px; margin-bottom: 40px; }
  .ls-scope-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-section { padding: 0 16px 60px; }
  .faq-item summary { font-size: 15px; padding: 18px 0; }
}