/* ============================================================
   Elektro Jüdith GmbH - Design System
   Version: 2.0 (2026-03-10)
   Basierend auf Projekte-Gallery Design Language
   ============================================================ */

/* === CSS Variables === */
:root {
  --ej-primary: #1a4fa0;
  --ej-primary-dark: #153d80;
  --ej-primary-darker: #0d3570;
  --ej-primary-light: #3a6fc0;
  --ej-primary-bg: #f0f4ff;
  --ej-primary-bg-subtle: #f8fafc;
  --ej-text: #333;
  --ej-text-secondary: #555;
  --ej-text-light: #888;
  --ej-heading: #2c3e50;
  --ej-bg: #f5f7fa;
  --ej-white: #ffffff;
  --ej-border: #ddd;
  --ej-border-light: #eee;
  --ej-accent: #fbbf24;
  --ej-accent-dark: #f59e0b;
  --ej-success: #059669;
  --ej-danger: #c0392b;
  --ej-danger-light: #e74c3c;
  --ej-gradient-primary: linear-gradient(135deg, #1a4fa0 0%, #0d2d5e 100%);
  --ej-gradient-pv: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #059669 100%);
  --ej-gradient-smart: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #1a4fa0 100%);
  --ej-gradient-wallbox: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --ej-gradient-elektro: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  --ej-gradient-led: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #eab308 100%);
  --ej-gradient-netzwerk: linear-gradient(135deg, #1a4fa0 0%, #3b82f6 50%, #06b6d4 100%);
  --ej-gradient-notdienst: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --ej-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --ej-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --ej-shadow-lg: 0 12px 35px rgba(0,0,0,0.12);
  --ej-shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --ej-shadow-card-hover: 0 12px 35px rgba(0,0,0,0.15);
  --ej-radius-sm: 8px;
  --ej-radius-md: 12px;
  --ej-radius-lg: 16px;
  --ej-radius-pill: 30px;
  --ej-transition: 0.3s ease;
  --ej-max-width: 1200px;
  --ej-max-width-narrow: 900px;
  --ej-max-width-text: 800px;
}

/* === Base Typography === */
body, p, li, td, th, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: var(--ej-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: var(--ej-heading);
}
body {
  background-color: var(--ej-bg);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--ej-primary); text-decoration: none; transition: color var(--ej-transition); }
a:hover { color: var(--ej-primary-dark); }

/* === Header === */
.site-header {
  background-color: var(--ej-white) !important;
  border-bottom: 3px solid var(--ej-primary);
  box-shadow: var(--ej-shadow-sm);
}
.site-title a { color: var(--ej-primary) !important; font-weight: 700; }
.site-branding, .main-title, .site-description, .site-header .site-branding { display: none !important; }
.site-header .site-title, .site-header .site-description { display: none !important; }
.site-header .header-image { margin: 0; }
.inside-header { padding: 12px 20px !important; }
.inside-header.grid-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.inside-header .site-logo { text-align: center !important; padding: 10px 0 !important; }
.site-logo img { max-height: 50px; width: auto; }
.inside-header #site-navigation {
  width: 100% !important;
  margin-top: 12px !important;
  border-top: 1px solid #e0e0e0 !important;
}
#site-navigation .inside-navigation { padding: 0 !important; }

/* === Navigation === */
.main-navigation, .main-navigation ul ul { background-color: var(--ej-primary) !important; }
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items { color: #fff !important; font-weight: 600; text-transform: none; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { background-color: var(--ej-primary-dark) !important; color: #fff !important; }
.main-navigation .main-nav ul ul { background-color: var(--ej-primary-dark) !important; }
.main-navigation .main-nav ul ul li a { color: #fff !important; }
.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a { background-color: var(--ej-primary-darker) !important; }

/* Hide GP page title */
.page .entry-header, .page .page-header { display: none !important; }

/* === ENTWURF Banner === */
.ej-entwurf-banner {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: var(--ej-radius-md);
  padding: 15px 20px;
  text-align: center;
  font-size: 0.95em;
  color: #856404;
  max-width: var(--ej-max-width-narrow);
  margin: 20px auto;
}
.ej-entwurf-banner strong { color: #664d03; }

/* === Badge System === */
.ej-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.ej-badge-primary { background: var(--ej-primary); color: #fff; }
.ej-badge-accent { background: var(--ej-accent); color: #333; font-weight: 700; }
.ej-badge-entwurf {
  background: #ff9800;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255,152,0,0.4);
}
.ej-badge-success { background: var(--ej-success); color: #fff; }

/* === Hero Section === */
.ej-hero {
  background: var(--ej-gradient-primary);
  color: white;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ej-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.ej-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--ej-primary-bg-subtle);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.ej-hero h1 {
  font-size: 2.6em;
  color: white !important;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ej-hero .subtitle, .ej-hero p {
  font-size: 1.2em;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.ej-hero .ej-badge {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.ej-hero[style*="background-image"] { position: relative; }
.ej-hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 0;
}

/* Hero CTA Buttons */
.ej-hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.ej-hero-btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: var(--ej-radius-pill);
  font-weight: 700;
  font-size: 1.05em;
  text-decoration: none;
  transition: all var(--ej-transition);
  cursor: pointer;
}
.ej-hero-btn-primary {
  background: var(--ej-accent) !important;
  color: #333 !important;
}
.ej-hero-btn-primary:hover {
  background: var(--ej-accent-dark) !important;
  color: #fff !important;
  transform: scale(1.03);
}
.ej-hero-btn-outline {
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
}
.ej-hero-btn-outline:hover {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  transform: scale(1.03);
}

/* === Emergency Banner === */
.ej-notdienst {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 1px;
}
.ej-notdienst a { color: white !important; text-decoration: underline; }

/* === Section Styling === */
.ej-section {
  padding: 60px 20px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-section-alt {
  background: var(--ej-white);
  padding: 60px 20px;
}
.ej-section-alt .ej-section-inner {
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-section-blue {
  background: var(--ej-primary-bg);
  padding: 60px 20px;
}
.ej-section-blue .ej-section-inner {
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-section-title {
  text-align: center;
  margin-bottom: 40px;
}
.ej-section-title h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
  color: var(--ej-heading) !important;
}
.ej-section-title p {
  color: var(--ej-text-light);
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto;
}
.ej-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ej-primary);
  margin: 15px auto 0;
}

/* === Card Grid System === */
.ej-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.ej-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.ej-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .ej-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ej-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ej-grid-3, .ej-grid-2, .ej-grid-4 { grid-template-columns: 1fr; }
}

/* === Service Cards (projekte.html style) === */
.ej-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
@media (max-width: 1024px) { .ej-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ej-services { grid-template-columns: 1fr; } }

.ej-service-card {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  overflow: hidden;
  box-shadow: var(--ej-shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.ej-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ej-shadow-card-hover);
}

/* Card Image Area (gradient backgrounds like projekte.html) */
.ej-card-image {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ej-card-image .ej-card-icon { font-size: 3.5em; opacity: 0.95; }
.ej-card-image.pv { background: var(--ej-gradient-pv); }
.ej-card-image.smart { background: var(--ej-gradient-smart); }
.ej-card-image.wallbox { background: var(--ej-gradient-wallbox); }
.ej-card-image.elektro { background: var(--ej-gradient-elektro); }
.ej-card-image.led { background: var(--ej-gradient-led); }
.ej-card-image.netzwerk { background: var(--ej-gradient-netzwerk); }
.ej-card-image.notdienst { background: var(--ej-gradient-notdienst); }

/* Card Category Badge */
.ej-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ej-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Card Body */
.ej-card-body { padding: 20px; }
.ej-card-body h3 { color: var(--ej-primary) !important; font-size: 1.15em; margin-bottom: 8px; }
.ej-card-body h3 a { color: var(--ej-primary); }
.ej-card-body h3 a:hover { color: var(--ej-primary-dark); }
.ej-card-body p { color: var(--ej-text-secondary); font-size: 0.95em; line-height: 1.55; }

/* Card Footer Tags */
.ej-card-footer {
  padding: 0 20px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ej-tag {
  background: #e8f0fe;
  color: var(--ej-primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78em;
  font-weight: 500;
}

/* Legacy icon-circle cards (still used on some pages) */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ej-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 2px solid rgba(26,79,160,0.2);
}
.icon-circle svg { stroke: var(--ej-primary) !important; }

/* === Stats Section === */
.ej-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px 20px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-stat {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  padding: 25px 15px;
  text-align: center;
  box-shadow: var(--ej-shadow-sm);
  border-top: 4px solid var(--ej-primary);
  transition: transform var(--ej-transition);
}
.ej-stat:hover { transform: translateY(-3px); }
.ej-stat .number {
  font-size: 2.4em;
  font-weight: 700;
  color: var(--ej-primary);
  display: block;
  line-height: 1;
}
.ej-stat .label {
  font-size: 0.9em;
  color: var(--ej-text-light);
  margin-top: 5px;
}
@media (max-width: 700px) {
  .ej-stats { grid-template-columns: repeat(2, 1fr); }
  .ej-stat .number { font-size: 1.8em; }
}

/* === Trust / Why-Us Section === */
.ej-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-trust-item {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--ej-shadow-sm);
  border-left: 4px solid var(--ej-primary);
  transition: transform var(--ej-transition), box-shadow var(--ej-transition);
}
.ej-trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ej-shadow-md);
}
.ej-trust-icon { font-size: 2.5em; margin-bottom: 12px; display: block; }
.ej-trust-item h4 { color: var(--ej-primary) !important; margin-bottom: 8px; font-size: 1.1em; }
.ej-trust-item p { color: var(--ej-text-light); font-size: 0.9em; }
@media (max-width: 900px) { .ej-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ej-trust-grid { grid-template-columns: 1fr; } }

/* === Testimonial Cards === */
.ej-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-testimonial {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  padding: 30px;
  box-shadow: var(--ej-shadow-sm);
  position: relative;
}
.ej-testimonial::before {
  content: '\201C';
  font-size: 4em;
  color: var(--ej-primary-bg);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}
.ej-testimonial p { font-style: italic; color: var(--ej-text-secondary); margin-bottom: 15px; position: relative; z-index: 1; }
.ej-testimonial-author { display: flex; align-items: center; gap: 12px; }
.ej-testimonial-avatar {
  width: 45px; height: 45px;
  background: var(--ej-primary-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; color: var(--ej-primary);
}
.ej-testimonial-name { font-weight: 700; color: var(--ej-heading); font-size: 0.95em; }
.ej-testimonial-role { font-size: 0.85em; color: var(--ej-text-light); }
@media (max-width: 900px) { .ej-testimonials { grid-template-columns: 1fr; } }

/* === FAQ Accordion (CSS only) === */
.ej-faq {
  max-width: var(--ej-max-width-text);
  margin: 0 auto;
}
.ej-faq details {
  background: var(--ej-white);
  border-radius: var(--ej-radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--ej-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--ej-transition);
}
.ej-faq details:hover { box-shadow: var(--ej-shadow-md); }
.ej-faq details[open] { box-shadow: var(--ej-shadow-md); }
.ej-faq summary {
  font-weight: 600;
  font-size: 1.05em;
  cursor: pointer;
  color: var(--ej-text);
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  transition: background var(--ej-transition);
}
.ej-faq summary:hover { background: var(--ej-primary-bg); }
.ej-faq summary::-webkit-details-marker { display: none; }
.ej-faq summary::before {
  content: '+';
  color: var(--ej-primary);
  font-weight: 700;
  font-size: 1.3em;
  margin-right: 12px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.ej-faq details[open] summary::before { content: '\2212'; }
.ej-faq details[open] summary { border-bottom: 1px solid var(--ej-border-light); background: var(--ej-primary-bg); }
.ej-faq details p, .ej-faq details div {
  padding: 15px 20px 15px 56px;
  color: var(--ej-text-secondary);
  line-height: 1.7;
}

/* === CTA Section === */
.ej-cta {
  background: var(--ej-gradient-primary);
  color: white;
  border-radius: var(--ej-radius-lg);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: var(--ej-max-width);
  margin: 40px auto;
}
.ej-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.ej-cta h2 { color: white !important; font-size: 1.8em; margin-bottom: 10px; position: relative; z-index: 1; }
.ej-cta p { color: rgba(255,255,255,0.9); font-size: 1.1em; margin-bottom: 25px; position: relative; z-index: 1; }
.ej-cta .btn, .ej-cta-btn {
  display: inline-block;
  background: var(--ej-accent) !important;
  color: #333 !important;
  padding: 14px 35px;
  border-radius: var(--ej-radius-pill);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all var(--ej-transition);
  position: relative;
  z-index: 1;
  margin: 5px;
}
.ej-cta .btn:hover, .ej-cta-btn:hover {
  background: var(--ej-accent-dark) !important;
  color: #fff !important;
  transform: scale(1.03);
}
.ej-cta .btn-outline, .ej-cta-btn-outline {
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
}
.ej-cta .btn-outline:hover, .ej-cta-btn-outline:hover {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
}

/* CTA full-width variant */
.ej-cta-full {
  background: var(--ej-gradient-primary);
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}
.ej-cta-full::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.ej-cta-full h2 { color: white !important; position: relative; z-index: 1; }
.ej-cta-full p { color: rgba(255,255,255,0.9); font-size: 1.1em; position: relative; z-index: 1; }

/* === Contact Section === */
.ej-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-contact-item {
  padding: 25px;
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  box-shadow: var(--ej-shadow-sm);
  text-align: center;
  transition: transform var(--ej-transition);
}
.ej-contact-item:hover { transform: translateY(-3px); }
.ej-contact-icon { font-size: 2em; margin-bottom: 10px; display: block; }
.ej-contact-item .label { color: var(--ej-text-light); font-size: 0.9em; }
.ej-contact-item .value { color: var(--ej-primary); font-weight: bold; font-size: 1.1em; margin-top: 5px; }
.ej-contact-item a { color: var(--ej-primary); text-decoration: none; }
.ej-contact-item a:hover { color: var(--ej-primary-dark); }

/* === Projekte Gallery === */
.ej-projekte-hinweis {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95em;
  margin: 0;
}
.ej-projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-projekt-card {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  overflow: hidden;
  box-shadow: var(--ej-shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.ej-projekt-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ej-shadow-card-hover);
}
.ej-projekt-image { position: relative; overflow: hidden; height: 220px; }
.ej-projekt-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ej-projekt-card:hover .ej-projekt-image img { transform: scale(1.05); }
.ej-projekt-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  background: var(--ej-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ej-projekt-badge.ki-entwurf {
  position: absolute;
  top: 10px; right: 10px;
  background: #ff9800;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255,152,0,0.4);
}
.ej-projekt-content { padding: 20px; }
.ej-projekt-content h3 { font-size: 1.15em; margin: 0 0 10px; color: var(--ej-heading) !important; line-height: 1.3; }
.ej-projekt-content p { font-size: 0.92em; color: var(--ej-text-secondary); line-height: 1.6; margin: 0 0 12px; }
.ej-projekt-details {
  display: flex;
  gap: 20px;
  font-size: 0.85em;
  color: var(--ej-text-light);
  border-top: 1px solid var(--ej-border-light);
  padding-top: 12px;
  margin-top: 5px;
}
@media (max-width: 1024px) { .ej-projekte-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ej-projekte-grid { grid-template-columns: 1fr; } }

/* === Vorher/Nachher Section === */
.ej-vorher-nachher {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: var(--ej-shadow-card);
}
.ej-vn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ej-vn-item {
  position: relative;
  overflow: hidden;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}
.ej-vn-item.before { background: linear-gradient(135deg, #94a3b8, #64748b); }
.ej-vn-item.after { background: linear-gradient(135deg, var(--ej-primary), #3b82f6); }
.ej-vn-item .label-text { font-size: 0.8em; opacity: 0.8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.ej-vn-item .vn-icon { font-size: 3em; }
.ej-vn-label {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}
.ej-vn-label.vorher { background: #e74c3c; color: #fff; }
.ej-vn-label.nachher { background: #27ae60; color: #fff; }
.ej-vn-description { padding: 25px; }
.ej-vn-description h3 { font-size: 1.2em; margin: 0 0 8px; color: var(--ej-heading) !important; }
.ej-vn-description p { font-size: 0.95em; color: var(--ej-text-secondary); line-height: 1.6; margin: 0; }
@media (max-width: 640px) {
  .ej-vn-pair { grid-template-columns: 1fr; }
  .ej-vn-item { height: 180px; }
}

/* === Team Cards === */
.ej-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
}
.ej-team-card {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--ej-shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ej-team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ej-shadow-card-hover);
}
.ej-team-card .avatar {
  width: 100px; height: 100px;
  background: var(--ej-primary-bg);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5em;
  color: var(--ej-primary);
  border: 3px solid rgba(26,79,160,0.2);
}
.ej-team-card h3 { color: var(--ej-heading) !important; margin-bottom: 5px; }
.ej-team-card .role { color: var(--ej-primary); font-weight: 600; font-size: 0.95em; }
.ej-team-card p { color: var(--ej-text-light); font-size: 0.9em; margin-top: 10px; }

/* === Content Pages === */
.ej-content-page {
  max-width: var(--ej-max-width-narrow);
  margin: 0 auto;
  padding: 40px 20px;
}
.ej-content-page h1 { font-size: 2.4em; margin-bottom: 20px; }
.ej-content-page h2 { font-size: 1.8em; color: var(--ej-heading) !important; margin-top: 40px; }
.ej-content-page h3 { font-size: 1.4em; margin-top: 30px; }

/* === Feature List / Benefits === */
.ej-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: var(--ej-max-width-text);
  margin: 20px auto;
}
.ej-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--ej-white);
  border-radius: var(--ej-radius-sm);
  box-shadow: var(--ej-shadow-sm);
}
.ej-benefit-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--ej-primary-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2em;
  color: var(--ej-primary);
}
.ej-benefit h4 { color: var(--ej-heading) !important; margin: 0 0 4px; font-size: 1em; }
.ej-benefit p { color: var(--ej-text-light); font-size: 0.9em; margin: 0; }
@media (max-width: 700px) { .ej-benefits { grid-template-columns: 1fr; } }

/* === Process Steps === */
.ej-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
  counter-reset: step;
}
.ej-process-step {
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--ej-shadow-sm);
  position: relative;
  counter-increment: step;
}
.ej-process-step::before {
  content: counter(step);
  display: block;
  width: 50px; height: 50px;
  line-height: 50px;
  background: var(--ej-gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 auto 15px;
}
.ej-process-step h4 { color: var(--ej-primary) !important; margin-bottom: 8px; }
.ej-process-step p { color: var(--ej-text-light); font-size: 0.9em; }
@media (max-width: 900px) { .ej-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ej-process { grid-template-columns: 1fr; } }

/* === Opening Hours Table === */
.ej-hours {
  max-width: 500px;
  margin: 20px auto;
  background: var(--ej-white);
  border-radius: var(--ej-radius-md);
  overflow: hidden;
  box-shadow: var(--ej-shadow-sm);
}
.ej-hours table { width: 100%; border-collapse: collapse; }
.ej-hours td { padding: 12px 20px; border-bottom: 1px solid var(--ej-border-light); }
.ej-hours tr:last-child td { border-bottom: none; }
.ej-hours td:first-child { font-weight: 600; color: var(--ej-heading); }
.ej-hours td:last-child { text-align: right; color: var(--ej-text-secondary); }
.ej-hours .ej-hours-header {
  background: var(--ej-primary);
  color: white;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 1.1em;
}

/* === Legal Pages === */
.ej-legal {
  max-width: var(--ej-max-width-text);
  margin: 0 auto;
  padding: 40px 20px;
}
.ej-legal h1 { font-size: 2em; border-bottom: 2px solid var(--ej-primary); padding-bottom: 10px; }
.ej-legal h2 { font-size: 1.4em; margin-top: 30px; color: var(--ej-heading) !important; }
.ej-legal .ej-placeholder-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 20px;
  border-radius: var(--ej-radius-sm);
  text-align: center;
  color: #856404;
  margin: 20px 0;
}

/* === Buttons General === */
.wp-block-button__link,
.button, button[type="submit"] {
  background-color: var(--ej-primary) !important;
  color: var(--ej-white) !important;
  border: none;
  border-radius: var(--ej-radius-sm);
  font-weight: 600;
  padding: 12px 30px;
  transition: all var(--ej-transition);
}
.wp-block-button__link:hover, .button:hover {
  background-color: var(--ej-primary-dark) !important;
}
button, html input[type="button"], input[type="reset"], input[type="submit"],
a.button, a.wp-block-button__link:not(.has-background), .wp-block-file__button {
  background-color: var(--ej-primary) !important;
  color: #fff !important;
  border-radius: var(--ej-radius-sm) !important;
}
button:hover, html input[type="button"]:hover, input[type="submit"]:hover,
a.button:hover, a.wp-block-button__link:not(.has-background):hover {
  background-color: var(--ej-primary-dark) !important;
  color: #fff !important;
}

/* === Footer === */
.site-footer {
  background: #2c3e50 !important;
  color: #ccc !important;
  padding: 40px 20px;
}
.site-footer h3 { color: #fff !important; }
.site-footer a { color: #7ab3ff !important; text-decoration: underline; }
.site-footer a:hover { color: #fff !important; }
.site-footer p, .site-footer li, .site-footer td, .site-footer th,
.site-footer span, .site-footer .textwidget, .site-footer .widget { color: #ccc !important; }
.footer-bar, .site-info { background: #1a2a3a !important; }
.site-info .copyright-bar, .site-info .generatepress-credit,
.site-info a[href*="generatepress"] { display: none !important; }

/* === Search Fix === */
.navigation-search input[type="search"],
.navigation-search input[type="search"]:active,
.navigation-search input[type="search"]:focus {
  background-color: #fff !important;
  color: #333 !important;
  border-color: var(--ej-primary) !important;
}
.main-navigation .search-item a,
.main-navigation .search-item a:hover { color: #fff !important; }
.gp-search-modal, .navigation-search { background-color: var(--ej-primary-dark) !important; }

/* === Cookie Consent === */
#ej-cookie-banner button { background: var(--ej-primary) !important; }

/* === Service Detail Pages === */
.ej-service-detail { max-width: var(--ej-max-width-narrow); margin: 0 auto; padding: 0 20px 40px; }
.ej-service-detail h2 { color: var(--ej-primary) !important; margin-top: 40px; margin-bottom: 15px; }
.ej-service-detail h3 { margin-top: 25px; }
.ej-service-detail ul { list-style: none; padding: 0; }
.ej-service-detail ul li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--ej-text-secondary);
}
.ej-service-detail ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--ej-success);
  font-weight: 700;
  font-size: 1.1em;
}

/* === Feature Cards (for detail pages) === */
.ej-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.ej-feature-card {
  background: var(--ej-primary-bg);
  border-radius: var(--ej-radius-sm);
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(26,79,160,0.1);
}
.ej-feature-card-icon { font-size: 2em; margin-bottom: 10px; display: block; }
.ej-feature-card h4 { color: var(--ej-primary) !important; margin-bottom: 8px; }
.ej-feature-card p { color: var(--ej-text-light); font-size: 0.9em; margin: 0; }
@media (max-width: 700px) { .ej-feature-cards { grid-template-columns: 1fr; } }

/* === Contact Form Styling === */
.ej-contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--ej-white);
  padding: 30px;
  border-radius: var(--ej-radius-md);
  box-shadow: var(--ej-shadow-sm);
}
.ej-contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--ej-heading);
}
.ej-contact-form input[type="text"],
.ej-contact-form input[type="email"],
.ej-contact-form input[type="tel"],
.ej-contact-form textarea,
.ej-contact-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ej-border);
  border-radius: var(--ej-radius-sm);
  margin-bottom: 15px;
  font-size: 1em;
  transition: border-color var(--ej-transition);
}
.ej-contact-form input:focus,
.ej-contact-form textarea:focus,
.ej-contact-form select:focus {
  border-color: var(--ej-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,79,160,0.1);
}
.ej-contact-form textarea { min-height: 120px; resize: vertical; }
.ej-contact-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
  cursor: pointer;
}

/* === Map Placeholder === */
.ej-map-placeholder {
  background: #e2e8f0;
  border-radius: var(--ej-radius-md);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ej-text-light);
  font-size: 1.2em;
}

/* === Emergency Section === */
.ej-emergency {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  border-radius: var(--ej-radius-lg);
  padding: 40px;
  text-align: center;
  margin: 30px 0;
}
.ej-emergency h3 { color: white !important; font-size: 1.5em; margin-bottom: 10px; }
.ej-emergency p { color: rgba(255,255,255,0.9); }
.ej-emergency a {
  color: white !important;
  font-size: 2em;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-top: 15px;
}
.ej-emergency a:hover { text-decoration: underline; }

/* === Partners/Certifications === */
.ej-partners {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 0;
}
.ej-partner {
  background: var(--ej-white);
  border-radius: var(--ej-radius-sm);
  padding: 20px 30px;
  box-shadow: var(--ej-shadow-sm);
  text-align: center;
  min-width: 150px;
}
.ej-partner-icon { font-size: 2em; margin-bottom: 8px; display: block; }
.ej-partner span { font-weight: 600; color: var(--ej-heading); font-size: 0.9em; }

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .ej-hero { padding: 50px 20px; }
  .ej-hero h1 { font-size: 1.8em; }
  .ej-hero .subtitle, .ej-hero p { font-size: 1em; }
  .ej-section { padding: 40px 15px; }
  .ej-section-title h2 { font-size: 1.6em; }
  .ej-cta { padding: 30px 20px; margin: 20px 15px; }
  .ej-cta h2 { font-size: 1.4em; }
  .ej-hero-buttons { flex-direction: column; align-items: center; }
  .ej-hero-btn { width: 80%; text-align: center; }
  .ej-contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ej-hero h1 { font-size: 1.5em; }
  .ej-contact-grid { grid-template-columns: 1fr; }
  .ej-hero-btn { width: 100%; }
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
  .ej-service-card, .ej-projekt-card, .ej-team-card, .ej-trust-item, .ej-stat, .ej-benefit, .ej-contact-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* ============================================================
   Elektro Jüdith GmbH - Design System Erweiterung
   Version: 2.1 (2026-03-10)
   SEO/Accessibility/Performance Optimierungen
   ============================================================ */

/* === Smooth Scrolling === */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === Skip-to-Content Link (Accessibility) === */
.ej-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ej-primary);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 0 0 var(--ej-radius-sm) var(--ej-radius-sm);
  z-index: 100000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.ej-skip-link:focus {
  top: 0;
  outline: 3px solid var(--ej-accent);
  outline-offset: 2px;
}

/* === Focus Styles (Accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ej-primary-light);
  outline-offset: 2px;
}

/* === Verbesserter FAQ Accordion === */
.ej-faq details {
  border-left: 3px solid transparent;
  transition: box-shadow var(--ej-transition), border-color var(--ej-transition);
}
.ej-faq details[open] {
  border-left-color: var(--ej-primary);
}
.ej-faq summary {
  position: relative;
  padding-right: 45px;
}
.ej-faq summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ej-primary);
  border-bottom: 2px solid var(--ej-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.ej-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.ej-faq details > div,
.ej-faq details > p {
  animation: ej-faq-open 0.3s ease-out;
}
@keyframes ej-faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Verbesserte Hover-Effekte === */
.ej-service-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.ej-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26,79,160,0.15);
}
.ej-projekt-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.ej-projekt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26,79,160,0.15);
}
.ej-team-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.ej-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26,79,160,0.15);
}
.ej-trust-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.ej-trust-item:hover {
  border-left-color: var(--ej-accent);
}
.ej-stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}
.ej-stat:hover {
  border-top-color: var(--ej-accent);
  box-shadow: var(--ej-shadow-md);
}
.ej-contact-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ej-contact-item:hover {
  box-shadow: var(--ej-shadow-md);
}

/* === Hero-Buttons verbesserter Hover === */
.ej-hero-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ej-hero-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.ej-cta-btn, .ej-cta .btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ej-cta-btn:hover, .ej-cta .btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === Navigation Hover-Effekte === */
.main-navigation .main-nav ul li a {
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}
.main-navigation .main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ej-accent);
  transition: width 0.3s ease, left 0.3s ease;
}
.main-navigation .main-nav > ul > li:hover > a::after,
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a::after {
  width: 100%;
  left: 0;
}

/* === Einheitliche Karten-Höhe (gleiche Sections) === */
.ej-services,
.ej-trust-grid,
.ej-testimonials,
.ej-projekte-grid {
  align-items: stretch;
}
.ej-service-card,
.ej-trust-item,
.ej-testimonial,
.ej-projekt-card {
  display: flex;
  flex-direction: column;
}
.ej-card-body,
.ej-projekt-content {
  flex: 1;
}

/* === Breadcrumb visuell (Accessibility) === */
.ej-breadcrumb {
  padding: 12px 20px;
  max-width: var(--ej-max-width);
  margin: 0 auto;
  font-size: 0.85em;
  color: var(--ej-text-light);
}
.ej-breadcrumb a {
  color: var(--ej-primary);
  text-decoration: none;
}
.ej-breadcrumb a:hover {
  text-decoration: underline;
}
.ej-breadcrumb span {
  margin: 0 6px;
  color: var(--ej-text-light);
}

/* === Verbesserte Mobile Responsive === */
@media (max-width: 768px) {
  /* Navigation Mobile */
  .main-navigation .main-nav > ul > li > a::after {
    display: none;
  }

  /* Bessere Touch-Targets */
  .ej-faq summary {
    padding: 16px 45px 16px 16px;
    min-height: 48px;
  }

  .ej-contact-item {
    padding: 20px 15px;
  }

  .ej-hero-btn {
    padding: 16px 30px;
    font-size: 1em;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 30px 15px;
  }

  /* Process Steps Mobile */
  .ej-process-step {
    padding: 20px 15px;
  }

  /* Team Cards Mobile */
  .ej-team-card {
    padding: 20px;
  }
  .ej-team-card .avatar {
    width: 80px;
    height: 80px;
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .ej-section-title h2 {
    font-size: 1.4em;
  }
  .ej-section {
    padding: 30px 12px;
  }
  .ej-section-alt,
  .ej-section-blue {
    padding: 30px 12px;
  }
  .ej-cta {
    padding: 25px 15px;
    margin: 15px 10px;
    border-radius: var(--ej-radius-md);
  }
  .ej-emergency {
    padding: 25px 15px;
    border-radius: var(--ej-radius-md);
  }
  .ej-stat .number {
    font-size: 1.6em;
  }
  .ej-hours {
    margin: 15px 0;
  }
}

/* === Print Styles === */
@media print {
  .site-header,
  .site-footer,
  .ej-cta,
  .ej-cta-full,
  .ej-notdienst,
  #ej-cookie-banner,
  .ej-hero-buttons,
  .ej-skip-link {
    display: none !important;
  }
  .ej-hero {
    background: none !important;
    color: #000 !important;
    padding: 20px 0;
  }
  .ej-hero h1 {
    color: #000 !important;
    text-shadow: none;
  }
  body {
    background: #fff !important;
  }
}

/* === Reduzierte Bewegung respektieren === */
@media (prefers-reduced-motion: reduce) {
  .ej-service-card,
  .ej-projekt-card,
  .ej-team-card,
  .ej-trust-item,
  .ej-stat,
  .ej-benefit,
  .ej-contact-item,
  .ej-hero-btn,
  .ej-cta-btn,
  .ej-cta .btn {
    transition: none !important;
  }
  .ej-service-card:hover,
  .ej-projekt-card:hover,
  .ej-team-card:hover {
    transform: none !important;
  }
  .ej-faq details > div,
  .ej-faq details > p {
    animation: none !important;
  }
  .ej-projekt-card:hover .ej-projekt-image img {
    transform: none !important;
  }
}

/* === Verbessertes Kontrastverhältnis (Accessibility) === */
.ej-card-body p,
.ej-testimonial p {
  color: #4a5568;
}
.ej-trust-item p,
.ej-process-step p,
.ej-benefit p,
.ej-team-card p {
  color: #5a6577;
}
.ej-stat .label {
  color: #5a6577;
}
.ej-section-title p {
  color: #5a6577;
}
