/* ==========================================================================
   nexdarfdas - Modern Multimedia Agency Stylesheet
   ========================================================================== */

/* 1. BRAND DESIGN SYSTEM (VARIABLES) */
:root {
  /* Colors */
  --bg-primary: #0f1115;       /* Deep Slate Gray (Primary Background) */
  --bg-secondary: #161a22;     /* Medium Slate Gray */
  --bg-card: rgba(26, 31, 41, 0.65); /* Frosted Card Background */
  --border-glass: rgba(255, 255, 255, 0.05); /* Soft border for glass effects */
  --border-glow: rgba(16, 185, 129, 0.15);  /* Glowing green border */
  
  --primary: #10b981;          /* Premium Sage/Mint Green */
  --primary-hover: #059669;    /* Darker Green for hover states */
  --primary-glow: rgba(16, 185, 129, 0.35); /* Glowing drop shadow green */
  --sage-dark: #2e7d5c;        /* Sophisticated Olive/Sage */
  
  --text-white: #ffffff;
  --text-primary: #cbd5e1;     /* Platinum Gray for clean readability */
  --text-muted: #94a3b8;       /* Muted Gray for subtitles & labels */
  --text-dark: #0f172a;        /* High-contrast dark text if needed */
  
  /* Fonts */
  --font-headings: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Shadows & Blurs */
  --glass-blur: blur(16px);
  --glow-shadow: 0 0 20px var(--primary-glow);
}

/* 2. RESET & BASE ELEMENTS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-anchor: none; /* Verhindert automatische Scroll-Korrekturen der Browser bei Layout-Änderungen */
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none; /* Zusätzliche Sicherheit für Scroll-Anchoring */
  overflow-x: hidden; /* Behebt seitliches Scrollen durch absolute Elemente */
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Spacer */
body {
  padding-top: 80px; /* Offset for sticky header */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Decorative Background Glows */
.bg-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
}
.bg-glow-1 {
  background: var(--primary);
  top: 10%;
  right: -100px;
}
.bg-glow-2 {
  background: var(--sage-dark);
  bottom: 20%;
  left: -200px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

/* 3. BUTTONS & UI COMPONENTS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 8px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-primary);
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Spinner for Button Loading */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sleek Badges */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Frosted Glass Card - Optimized Pure Dark Style */
.glass-card {
  position: relative;
  /* Premium, high-contrast dark gradient simulating glass without heavy GPU filters */
  background: linear-gradient(135deg, rgba(22, 26, 34, 0.95) 0%, rgba(16, 20, 26, 0.98) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  background-clip: padding-box;
  z-index: 1;
  isolation: isolate; /* Enforces strict independent GPU rendering context */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  /* Ultra-smooth hardware-accelerated transitions */
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
/* Ensure clean, static structure for service card children */
.service-card > * {
  transform: none;
  transition: none;
}
/* Premium layout-stable hover transition on the card itself */
.glass-card:hover {
  transform: translate3d(0, -6px, 0); /* Ultra-smooth hardware-accelerated hover lift */
  border-color: rgba(16, 185, 129, 0.4); /* Elegant glowing sage/mint border */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.15); /* Vibrant green glow aura */
}
/* Disable old child translation rule completely */
.service-card:hover > * {
  transform: none;
}

/* SVG icons styling */
.icon-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: var(--primary);
}

/* 4. MAIN HEADER & NAVBAR */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 100;
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
  height: 70px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Text Logo styling */
.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: var(--glow-shadow);
}

/* Desktop Navigation List */
.desktop-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-link {
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--text-white);
}
.nav-link:hover::after {
  width: 100%;
}

/* Hamburger mobile Menu Toggle button */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
  position: relative;
}
.hamburger-line {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.hamburger-line:nth-child(1) {
  top: 13px;
}
.hamburger-line:nth-child(2) {
  top: 21px;
}
.hamburger-line:nth-child(3) {
  top: 29px;
}

.mobile-nav-toggle:hover .hamburger-line,
.mobile-nav-toggle:focus .hamburger-line {
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Hamburger transition to 'X' when open */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation full overlay menu */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(15, 17, 21, 0.98);
  backdrop-filter: var(--glass-blur);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  gap: 24px;
  text-align: center;
}
.mobile-nav-link {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-white);
  transition: var(--transition-fast);
}
.mobile-nav-link:hover {
  color: var(--primary);
}

/* 5. HERO SECTION */
.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.text-glow {
  color: var(--primary);
  background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Hero Visual card animations on the right */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-showcase {
  position: relative;
  width: 100%;
  height: 100%;
}

.visual-card {
  position: absolute;
  width: 280px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.visual-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.visual-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.visual-card-1 {
  top: 15%;
  left: 5%;
  transform: rotate(-4deg);
  animation: float-1 6s ease-in-out infinite;
}

.visual-card-2 {
  bottom: 15%;
  right: 5%;
  transform: rotate(3deg);
  animation: float-2 6s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(0, -15px, 0) rotate(-2deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg); }
  50% { transform: translate3d(0, 15px, 0) rotate(5deg); }
}

/* 6. SERVICES SECTION */
.services-section {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
  overflow-anchor: none; /* Deaktiviert Scroll-Anchoring auf Sektions-Ebene */
}

.section-header {
  max-width: 700px;
  margin: 0 auto 50px auto;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Filter controls bar styling */
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background-color: rgba(16, 185, 129, 0.05);
  border-color: var(--border-glow);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-primary);
  box-shadow: var(--glow-shadow);
}

/* Services Grid and dynamic card animations */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  min-height: 400px;
  /* Nur die Höhe sanft transitionieren statt 'all', um Render-Flickern bei Hover zu vermeiden */
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-anchor: none; /* Verhindert das Festhalten von Kärtchen als Scroll-Anker */
}

.services-grid.filtering {
  overflow: hidden;
  pointer-events: none;
  overflow-anchor: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card.fade-out {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(-15px) scale(0.97) !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-primary);
  margin-bottom: 20px;
  border: 1px solid var(--border-glass);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-card-image img {
  transform: scale3d(1.04, 1.04, 1);
}

/* Service Card Icon Container */
.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elevate and glow the icon badge when the card is hovered */
.service-card:hover .service-card-icon {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.service-type-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-headings);
  letter-spacing: 0.5px;
}

.service-type-tag.tag-inhouse {
  background-color: rgba(16, 185, 129, 0.9);
  color: var(--bg-primary);
}

.service-type-tag.tag-consulting {
  background-color: rgba(59, 130, 246, 0.9); /* Blue for consulting */
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 24px;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.more-link {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.more-link svg {
  transition: var(--transition-fast);
}
.service-card:hover .more-link svg {
  transform: translateX(4px);
}

/* Animating card entry */
.service-card {
  animation: card-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-appear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.noscript-warning {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1.5px dashed rgb(239, 68, 68);
  border-radius: 12px;
  color: #f87171;
}

/* 7. TARGET GROUPS SECTION */
.target-groups-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.target-card {
  display: flex;
  flex-direction: column;
}

.target-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.target-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-icon svg {
  width: 22px;
  height: 22px;
}

.target-card h3 {
  font-size: 1.3rem;
}

.target-desc {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: auto;
}

.target-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

/* 8. PHILOSOPHY SECTION */
.philosophy-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-glass);
}

.philosophy-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.philosophy-content .lead-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 24px;
}

.philosophy-content .body-text {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.philosophy-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Concept map graphic styling on the right */
.philosophy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.concept-map {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 350px;
}

.ecosystem-box {
  position: absolute;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-glass);
  width: 250px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ecosystem-box h4, .ecosystem-box h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ecosystem-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.node-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-glow);
}

.node-badge.partner {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
}

.core-node {
  top: 35%;
  left: 0;
  z-index: 2;
  border-color: var(--primary);
  box-shadow: var(--glow-shadow);
}

.partner-node {
  width: 200px;
  z-index: 1;
}

.partner-node-1 {
  top: 10%;
  right: 0;
}

.partner-node-2 {
  bottom: 10%;
  right: 0;
}

/* Connecting lines in visual map */
.ecosystem-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
  z-index: 0;
  transform-origin: left center;
}

.line-1 {
  top: 50%;
  left: 200px;
  width: 150px;
  transform: rotate(-25deg);
}

.line-2 {
  top: 50%;
  left: 200px;
  width: 150px;
  transform: rotate(25deg);
}

/* 9. CONTACT SECTION */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-item > div:last-child {
  min-width: 0; /* Verhindert, dass Flexbox-Elemente durch lange Inhalte (z.B. E-Mail) überlaufen */
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  word-break: break-word; /* Bricht lange E-Mail-Adressen auf kleinen Displays sauber um */
  overflow-wrap: break-word;
}

/* Social Media Channels styling */
.social-channels {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
}

.social-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-link-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.social-svg {
  width: 18px;
  height: 18px;
}

.social-link-btn:hover {
  background-color: var(--primary);
  color: var(--bg-primary);
  box-shadow: var(--glow-shadow);
  transform: translateY(-3px);
}

/* Form Styles & Glassmorphism validation */
.contact-form-container {
  padding: 40px;
}

.agency-form .form-row {
  margin-bottom: 24px;
}

.agency-form label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.agency-form .required {
  color: var(--primary);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background-color: rgba(15, 17, 21, 0.6);
  border: 1.5px solid var(--border-glass);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Custom Dropdown select */
.select-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.select-control optgroup {
  background-color: var(--bg-secondary);
  color: var(--primary);
  font-weight: 600;
}

.select-control option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
}

/* Custom Consent Checkbox */
.checkbox-group {
  display: flex;
  align-items: start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-glass);
  background-color: rgba(15, 17, 21, 0.6);
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 3px;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
  cursor: pointer;
  margin-bottom: 0;
}

/* Form Status Styles */
.form-status {
  padding: 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: none;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* 10. MAIN FOOTER */
.main-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 380px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-link-group h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-group a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-link-group a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom .credits {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.15);
}

/* 11. MODAL OVERLAYS (DIENSTLEISTUNGEN & RECHTLICHES) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 11, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-container.modal-lg {
  max-width: 850px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  line-height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  background-color: var(--primary);
  color: var(--bg-primary);
}

.modal-body {
  padding: 40px;
}

/* Specific styling for Dynamic Service Details inside Modal */
.modal-service-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.modal-service-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.modal-service-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.modal-service-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.type-eigenleistung .modal-service-type-dot { background-color: var(--primary); }
.type-beratung .modal-service-type-dot { background-color: #3b82f6; }

.modal-service-image {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  margin-bottom: 28px;
}

.modal-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-service-desc {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-sub-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.modal-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.modal-spec-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: start;
  gap: 10px;
}

.modal-spec-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

.modal-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 35px;
}

.modal-group-list li {
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-primary);
}

/* Legal modals (Impressum & Datenschutzerklärung) custom styling */
.legal-modal-body h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
}

.legal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.legal-section {
  margin-bottom: 35px;
}

.legal-section h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-white);
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  margin-left: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li {
  font-size: 0.95rem;
  position: relative;
  padding-left: 14px;
}

.legal-section ul li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.legal-table th, .legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.95rem;
}

.legal-table th {
  width: 35%;
  color: var(--text-muted);
  font-weight: 500;
  vertical-align: top;
}

.legal-table td {
  color: var(--text-white);
}

.text-link {
  color: var(--primary);
  border-bottom: 1px dashed var(--primary);
}
.text-link:hover {
  color: var(--text-white);
  border-color: var(--text-white);
}

/* 12. RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-container {
    gap: 40px;
  }
  .philosophy-container {
    gap: 40px;
  }
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    display: none; /* Hide visual on tablet/mobile to keep focus on key text */
  }
  .philosophy-container {
    grid-template-columns: 1fr;
  }
  .philosophy-visual {
    margin-top: 40px;
    height: auto;
  }
  .concept-map {
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .main-header {
    height: 70px;
  }
  .logo {
    font-size: 1.4rem;
  }
  .desktop-nav {
    display: none; /* Hide desktop nav menu */
  }
  .d-none-mobile {
    display: none !important; /* Hide other elements */
  }
  .mobile-nav-toggle {
    display: flex !important; /* Show Hamburger with high priority */
  }
  .hero-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .filter-controls {
    gap: 8px;
  }
  .filter-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .target-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-container {
    padding: 24px;
  }
  .modal-body {
    padding: 24px;
  }
  .modal-service-title {
    font-size: 1.8rem;
  }
  .modal-service-image {
    height: 200px;
  }
  .legal-table th, .legal-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }
  .legal-table th {
    border-bottom: none;
    padding-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  .ecosystem-box {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
  .ecosystem-line {
    display: none; /* Hide animated lines on smallest screens */
  }
  .concept-map {
    height: auto;
  }
}
