/* builder-template/css/style.css */
/* Premium Layout Styles für den Website Baukasten */

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  text-align: center;
  font-size: 2.75rem;
  margin-bottom: 4rem;
  position: relative;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(to right, var(--text-primary), var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-2px);
}

/* --- Navigation / Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.96) 30%, rgba(var(--bg-dark-rgb), 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-content h1 {
  font-size: 4rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 75%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--primary-glow) 0%, var(--secondary-glow) 50%, transparent 80%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- About Section --- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-info h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.about-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
  aspect-ratio: 4/3;
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-image-container:hover img {
  transform: scale(1.05);
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.team-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(20%);
  transition: var(--transition);
}

.team-card:hover .team-img {
  filter: grayscale(0%);
}

.team-info {
  padding: 2rem 1.5rem;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.team-role {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-rating {
  color: #fbbf24;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

/* --- Contact & Location Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
}

.contact-form-container h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-detail-icon {
  color: var(--primary);
  font-size: 1.15rem;
  margin-top: 0.15rem;
}

.contact-detail-content h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-detail-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Footer --- */
footer {
  background: #05070d;
  padding: 4rem 0;
  border-top: 1px solid var(--border-card);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 968px) {
  section {
    padding: 5rem 0;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .about-wrapper, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .nav-links {
    display: none; /* Im echten Projekt Mobile-Menu hinzufügen */
  }
}

/* --- CTA Banner Component --- */
.cta-banner-content {
  text-align: center;
  padding: 4.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-glow), rgba(0, 0, 0, 0.3));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  max-width: 1000px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.cta-banner-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-content .btn-primary {
  padding: 0.85rem 2.25rem;
  font-weight: 600;
}

/* --- THEME OVERRIDES --- */

/* Theme: Crafts (Handwerk, Premium Light Mode, Solid Brand Colors, No Gradients) */
body.theme-crafts {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Helles, freundliches Light Mode Schema */
  --bg-dark: #f8fafc;
  --bg-dark-rgb: 248, 250, 252;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --border-hover: var(--primary);
  
  /* Dunkles Schiefer-Textschema für perfekten Kontrast */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  /* Heller, feiner Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-blur: blur(20px);
  
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Deaktiviere alle Farbverläufe in Überschriften und Section-Titeln */
body.theme-crafts .section-title span,
body.theme-crafts .hero-content h1,
body.theme-crafts .legal-content h1 {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--primary) !important;
}

body.theme-crafts h1, body.theme-crafts h2, body.theme-crafts h3 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
  color: var(--text-primary);
}

/* Helles Hero-Bild-Overlay statt dunklem Verlauf */
body.theme-crafts .hero-section::before {
  background: rgba(255, 255, 255, 0.78) !important;
}

/* Deaktiviere glühende Card-Hover radialen Gradients */
body.theme-crafts .service-card::before {
  display: none !important;
}

/* Solide Hover-Hervorhebung für Karten */
body.theme-crafts .service-card:hover,
body.theme-crafts .testimonial-card:hover,
body.theme-crafts .faq-item:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

/* Trennlinien als solide Haarlinien statt Gradients */
body.theme-crafts section::after {
  background: var(--border-card) !important;
}

/* Premium Solid CTA-Banner */
body.theme-crafts .cta-banner-content {
  background: var(--primary) !important;
  border: none !important;
  color: #ffffff !important;
}

body.theme-crafts .cta-banner-content h2,
body.theme-crafts .cta-banner-content p {
  color: #ffffff !important;
}

body.theme-crafts .cta-banner-content .btn-primary {
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

body.theme-crafts .cta-banner-content .btn-primary:hover {
  background: #f1f5f9 !important;
  color: var(--primary-hover) !important;
  transform: translateY(-2px);
}

/* Footer-Kontrast im Light Mode (Dunkler Slate-Abschluss) */
body.theme-crafts footer {
  background: #0f172a !important;
  border-top: 1px solid var(--border-card) !important;
}

body.theme-crafts footer .footer-copy,
body.theme-crafts footer .footer-links a {
  color: #94a3b8 !important;
}

body.theme-crafts footer .footer-links a:hover {
  color: var(--primary) !important;
}

body.theme-crafts footer .logo-text {
  color: #ffffff !important;
}

/* Legal Content Kontrast */
body.theme-crafts .legal-content h2 {
  color: var(--primary) !important;
}

body.theme-crafts .legal-content h3 {
  color: var(--text-primary) !important;
}

/* Theme: Modern (Clean, Tech, Glassmorphism) */
body.theme-modern {
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --bg-dark: #090c15;
  --bg-surface: #0e1220;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.theme-modern .service-card, 
body.theme-modern .testimonial-card, 
body.theme-modern .contact-form-container,
body.theme-modern .contact-info-block {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Theme: Elegant (Premium, Serifen, Feine Linien) */
body.theme-elegant {
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 9999px;
  
  --bg-dark: #0b0c10;
  --bg-surface: #13151b;
  --bg-card: rgba(255, 255, 255, 0.01);
  --border-card: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.1);
  --font-heading: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.theme-elegant h1, body.theme-elegant h2, body.theme-elegant h3 {
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.theme-elegant .service-card {
  border-width: 0 0 1px 0;
  border-radius: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --- Utilities for Dynamic Subpages --- */
.d-none {
  display: none !important;
}

.legal-section {
  padding: 10rem 0 6rem 0;
  min-height: 80vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 4rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 75%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Active Link Highlight in Navigation */
.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

/* --- View Transitions API Rules --- */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* --- Premium Navigation Dropdowns (Submenus) & Responsive Mobile menu --- */

.nav-links li {
  position: relative;
}

.nav-links li.has-submenu > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links li.has-submenu > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-top: -2px;
}

.nav-links li.has-submenu:hover > a::after {
  transform: rotate(-135deg);
  margin-top: 1px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0;
  min-width: 230px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  pointer-events: none;
}

.nav-links li.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.submenu li {
  width: 100%;
}

.submenu a {
  padding: 0.6rem 1.25rem;
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: none !important; /* Kein Unterstrich bei Submenu */
  padding-bottom: 0.6rem !important;
  transition: var(--transition);
}

.submenu a:hover {
  background: var(--primary-glow);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Mobile Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  z-index: 1002;
  transition: var(--transition);
}

.mobile-toggle:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none; /* Verberge normale Links auf Tablet/Mobile */
  }
  .mobile-toggle {
    display: block; /* Hamburger anzeigen */
  }
}

/* Off-Canvas Mobile Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px; /* Start verborgen außerhalb */
  width: 320px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  padding: 6rem 2rem 2rem 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-menu-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-drawer a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  display: block;
  padding: 0.5rem 0;
  border-bottom: none !important;
  transition: var(--transition);
}

.mobile-menu-drawer a:hover,
.mobile-menu-drawer a.active {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* Mobile Accordions für Submenus */
.mobile-submenu-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-submenu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  user-select: none;
}

.mobile-submenu-header i {
  transition: transform 0.25s;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.mobile-submenu-header.open {
  color: var(--primary);
}

.mobile-submenu-header.open i {
  transform: rotate(-180deg);
  color: var(--primary);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-card);
  margin-left: 0.25rem;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.open {
  max-height: 800px; /* Expands dynamically */
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.mobile-submenu a {
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

/* Dunkler Overlay Hintergrund */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
