/* Self-Hosted Montserrat Webfonts */
/* montserrat-300 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v31-latin-300.woff2') format('woff2');
}
/* montserrat-regular - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v31-latin-regular.woff2') format('woff2');
}
/* montserrat-500 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v31-latin-500.woff2') format('woff2');
}
/* montserrat-600 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v31-latin-600.woff2') format('woff2');
}
/* montserrat-700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v31-latin-700.woff2') format('woff2');
}
/* montserrat-800 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v31-latin-800.woff2') format('woff2');
}

:root {
  /* HSL Premium Warm Light Design Palette */
  --bg-base: #fafaf8;                       /* Soft Warm Light Page Background */
  --bg-surface: rgba(250, 250, 248, 0.85);  /* Translucent Surface matching base */
  --bg-surface-elevated: #f0eee8;           /* Elevated Soft Warm Grey Surface */
  
  --primary: #f2a541;                       /* Primary Amber/Orange */
  --primary-glow: rgba(242, 165, 65, 0.1);
  --secondary: #f6c07a;                     /* Secondary Warm Golden */
  --secondary-glow: rgba(246, 192, 122, 0.1);
  --accent: #e28c25;                        /* Accent Copper */
  
  --text-primary: #3f3f3d;                  /* Font Color (Dark Charcoal) */
  --text-secondary: #5a5a57;                /* Readable Elegant Dark Grey */
  --text-muted: #888884;                    /* Soft Muted Warm Grey */
  
  --border: rgba(63, 63, 61, 0.15);         /* Refined Light border */
  --border-focus: rgba(242, 165, 65, 0.4);  /* Glowing orange focus border */
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --container-width: 1200px;
  --topbar-height: 36px;
  --header-height: 136px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-base);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Background Electrical Grid/Ambience Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(242, 165, 65, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(246, 192, 122, 0.04) 0%, transparent 40%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(63, 63, 61, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 63, 61, 0.03) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

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

h1 {
  font-size: 2.25rem;
}

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

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

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

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

.text-gradient {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.text-gradient-secondary {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.text-gradient-accent {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

/* Glassmorphism Surface */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Premium Top Bar */
.top-bar {
  height: var(--topbar-height);
  background-color: var(--text-primary);
  color: rgba(250, 250, 248, 0.75);
  font-size: 0.825rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
  width: 100%;
}

.top-bar .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.top-bar-contact {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin-left: auto;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(250, 250, 248, 0.75);
  transition: var(--transition-fast);
}

.top-bar-contact a:hover {
  color: var(--primary);
}

.top-bar-contact svg {
  color: var(--primary);
  opacity: 0.95;
  transition: var(--transition-fast);
}

.top-bar-contact a:hover svg {
  transform: scale(1.1);
}

/* WhatsApp branded overrides */
.top-bar-contact a.whatsapp-link {
  color: rgba(250, 250, 248, 0.75);
}

.top-bar-contact a.whatsapp-link svg {
  color: #25d366;
}

.top-bar-contact a.whatsapp-link:hover {
  color: #25d366;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.2);
}

/* Main Header (Inner navigation container) */
.main-header {
  height: calc(var(--header-height) - var(--topbar-height)); /* 100px */
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  width: 100%;
}

.header.scrolled .main-header {
  height: 76px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 76px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.header.scrolled .logo-image {
  height: 56px;
}

.logo:hover .logo-image {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

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

.nav-item a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-item a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-item a:not(.btn):hover::after,
.nav-item.active a:not(.btn)::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-base);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

.btn-whatsapp {
  background: transparent;
  color: #128C7E;
  border: 1px solid rgba(37, 211, 102, 0.5);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  transform: translateY(-2px);
}


/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge,
.hero-content .section-tag {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  font-size: 0.85rem;
  text-align: center;
}

h1.hero-title,
blockquote.hero-title {
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Animated Text Toggle in Hero Titles */
.animated-text-toggle {
  display: inline-block;
  position: relative;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.animated-text-toggle.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.animated-text-toggle.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-title span {
  display: inline-block;
}

.hero .hero-title span {
  display: block;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

/* Premium Hero Image with elegant left-edge evaporation */
.hero-image-wrapper {
  width: 100%;
  max-width: 520px;
}

/* Service Card Components */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-tag {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.section-title {
  font-size: 2.75rem;
  letter-spacing: -1px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}



.card-icon,
.card-icon-primary,
.card-icon-secondary,
.card-icon-accent {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--primary);
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: none;
  flex-shrink: 0;
}

.card-icon svg,
.card-icon-primary svg,
.card-icon-secondary svg,
.card-icon-accent svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
}

.card:hover .card-icon,
.card:hover .card-icon-primary,
.card:hover .card-icon-secondary,
.card:hover .card-icon-accent,
.card-icon:hover,
.card-icon-primary:hover,
.card-icon-secondary:hover,
.card-icon-accent:hover,
.split-section:hover .card-icon,
.service-showcase-item:hover .card-icon,
.profile-card:hover .card-icon {
  background: #ffffff !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: scale(1.05);
  box-shadow: none !important;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 600;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: auto;
  width: fit-content;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* Service Card with Showcase Image styling */
.card.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.service-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card.service-card:hover .service-card-image {
  transform: scale(1.05);
}

.service-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.service-card:hover .service-card-title {
  color: var(--primary);
}

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

/* Features Grid Details */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  scroll-margin-top: calc(112px + 2rem);
}

.split-image-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-surface);
}

.split-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-image-panel:hover img {
  transform: scale(1.05);
}

.split-image-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, hsla(30, 10%, 4%, 0.8));
  z-index: 1;
}

.split-image-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem;
}

.stat-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: hsla(222, 47%, 12%, 0.4);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Form Styles for Contact */
.contact-wrapper {
  display: block;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}



.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.info-details a:hover {
  color: var(--primary);
}

.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

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

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

/* Footer styles */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem 0;
  background: var(--bg-surface-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-description {
  font-size: 0.95rem;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.footer-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-link a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-regions-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  list-style: none;
}

.footer-regions-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.legal-link a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-link a:hover {
  color: var(--text-primary);
}

/* Call to Action Banner */
.cta-banner {
  padding: 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta-title {
  font-size: 2.5rem;
  max-width: 700px;
}

/* Mobile responsive styling */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-badge, .hero-description {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    justify-content: center;
  }
  .hero-image-wrapper {
    max-width: 440px;
    margin: 0 auto;
  }
  .split-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .info-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 5rem;
  }
  .section {
    padding: 5rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .top-bar-contact {
    margin: 0 auto;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-base);
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border);
  }
  .header.scrolled .nav-links {
    top: 112px;
    height: calc(100vh - 112px);
  }
  .nav-links.open {
    left: 0;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 3rem 1.5rem;
  }
  .cta-title {
    font-size: 1.75rem;
  }
  .stat-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .top-bar-contact {
    gap: 0.85rem;
  }
  .top-bar-contact a span {
    display: none;
  }
  .top-bar {
    font-size: 0.75rem;
  }

  /* Fix heading overflow on very small devices with automatic hyphenation */
  h1, h2, h3, h4, h5, h6,
  .hero-title, .page-header-title, .section-title, .cta-title, .split-image-title-overlay {
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .page-header-title { font-size: 2rem !important; }
  h2, .section-title, .company-highlight-card h2 { font-size: 1.75rem; }
  h3, .cta-title { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  .split-image-title-overlay { font-size: 1rem !important; }
}

/* ==========================================================================
   Premium Self-Hosted Lightbox & Gallery Styles
   ========================================================================== */
.lightbox-trigger:hover .gallery-img {
  transform: scale(1.06);
}

.lightbox-trigger:hover .gallery-overlay {
  opacity: 1;
}

.lightbox-trigger:hover .overlay-button {
  transform: scale(1) rotate(90deg);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

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

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-image {
  transform: scale(1);
  opacity: 1;
}

/* Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 10010;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  margin-top: 1.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 1rem;
  }
  .lightbox-next {
    right: 1rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  .lightbox-overlay {
    padding: 1rem;
  }
  .lightbox-prev, .lightbox-next, .lightbox-close {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Cleaned Inline Styling Classes
   ========================================================================== */

/* Spacing and Layout Utilities */
.section-border-top {
  border-top: 1px solid var(--border) !important;
}

.section-border-bottom {
  border-bottom: 1px solid var(--border) !important;
}

.container-narrow {
  max-width: 900px !important;
  margin: 0 auto !important;
}

.badge-pill {
  background: hsla(29, 85%, 50%, 0.08);
  border: 1px solid hsla(29, 85%, 50%, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--primary);
  width: fit-content;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mb-6 { margin-bottom: 3rem !important; }
.mb-7 { margin-bottom: 4rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

.gap-4 {
  gap: 4rem !important;
}

.text-color-primary {
  color: var(--text-primary) !important;
}

/* Page Header Components */
.page-header-section {
  padding-top: calc(var(--header-height) + 4rem) !important;
}

.page-header-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.page-header-title {
  font-size: 3.5rem !important;
}

@media (max-width: 480px) {
  .page-header-title {
    font-size: 2rem !important;
  }
}

.page-header-desc {
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* Base Layout Specifics */
#headerCtaBtn {
  padding: 0.5rem 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
}

#footerLinkWhatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #128C7E;
  font-weight: 600;
}

#footerLinkInstagram {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #E1306C;
  font-weight: 600;
}

/* Split Image and Banner Components */
.split-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 10, 10, 0.7) 100%);
  z-index: 3;
}

.split-image-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  padding: 2rem !important;
}

.split-image-title-overlay {
  font-size: 1.25rem !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6) !important;
  margin: 0 !important;
}

.split-image-subtitle-overlay {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-top: 0.35rem !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
}

.split-section-reverse {
  direction: rtl;
}

.split-section-reverse > * {
  direction: ltr;
}

.split-section-desc {
  margin-bottom: 1.5rem;
}

.cta-banner p {
  max-width: 600px;
  text-align: center;
  color: var(--text-secondary);
}

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

/* Feature List (Leistungen) */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-showcase-item {
  scroll-margin-top: calc(112px + 2rem);
}

#servicesShowcase .card-icon,
.split-section .card-icon,
.service-showcase-item .card-icon {
  display: flex;
  margin-bottom: 1.5rem;
}

#servicesShowcase .section-tag,
.split-section .section-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-tag-sm {
  font-size: 0.8rem !important;
}

.section-tag-secondary {
  color: var(--secondary) !important;
}

.section-tag-accent {
  color: var(--accent) !important;
}

.section-tag-xs {
  font-size: 0.75rem !important;
}

/* Impressum (Imprint) & Datenschutz (Privacy) Pages */
.imprint-card,
.privacy-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.imprint-heading,
.privacy-heading {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  padding-bottom: 0.5rem;
  display: inline-block;
  width: max-content;
}

.imprint-heading-primary,
.privacy-heading-primary {
  border-bottom: 1.5px solid var(--primary);
}

.imprint-heading-secondary,
.privacy-heading-secondary {
  border-bottom: 1.5px solid var(--secondary);
}

.imprint-content-text,
.privacy-content-text {
  line-height: 1.8;
  font-size: 1.05rem;
}

.imprint-text-highlight,
.privacy-text-highlight {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.imprint-table,
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
  line-height: 1.8;
}

.imprint-table td,
.privacy-table td {
  padding: 0.75rem 0;
}

.imprint-table td.table-label,
.privacy-table td.table-label {
  font-weight: 700;
  width: 30%;
  color: var(--text-secondary);
}

.imprint-table tr:not(:first-child) td,
.privacy-table tr:not(:first-child) td {
  border-top: 1px solid var(--border);
}

.imprint-disclaimers-card,
.privacy-disclaimers-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.imprint-disclaimers-card h3,
.privacy-disclaimers-card h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.imprint-disclaimer-section,
.privacy-disclaimer-section {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* Kontakt (Contact) Page */
.contact-header-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 1.5rem;
}

.contact-image-panel {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
}

.contact-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-image-panel:hover img {
  transform: scale(1.03);
}

#contactPhoneLink {
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

#contactWhatsappLink {
  font-weight: 700;
  color: #128C7E;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

#contactEmailLink {
  font-weight: 700;
  color: var(--secondary);
}

.icon-color-secondary {
  color: var(--secondary) !important;
}

.icon-color-accent {
  color: var(--accent) !important;
}

.info-details p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Referenzen (References) Page */
.grid-cards-three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2.5rem !important;
}

.reference-card {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reference-card .service-card-image-wrapper {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.reference-card picture {
  width: 100%;
  height: 100%;
  display: block;
}

.reference-card .service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reference-card-badge {
  position: absolute;
  bottom: 15px;
  left: 20px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  z-index: 5;
}

.reference-card .service-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
  color: var(--text-primary);
}

.reference-card .service-card-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.reference-card .service-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.reference-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reference-card .card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.reference-card .card-link svg {
  transition: transform 0.3s ease;
}

/* Reference Detail Page */
#portfolioHero .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#portfolioContent .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.portfolio-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.portfolio-meta-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
}

.portfolio-title-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#portfolioHero .hero-title {
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.1;
}

#portfolioHero .portfolio-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0.5rem 0 0 0;
}

#referenceLinks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

#referenceLinks .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#portfolioContent .gallery-header {
  margin-bottom: 2rem;
}

#portfolioContent .gallery-header h2 {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0.5rem 0 0 0;
}

#portfolioContent .gallery-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.lightbox-gallery {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1.5rem !important;
}

.lightbox-trigger {
  padding: 0 !important;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.lightbox-trigger picture {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.overlay-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  transform: scale(0.8);
}

.reference-long-description {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reference-long-description p {
  margin: 0;
  white-space: pre-line;
}

/* Unternehmen (Company) Page */
#companyHero .hero-visual {
  justify-content: center;
}

.company-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.grid-cards-team {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
  gap: 3rem !important;
}

.profile-card {
  padding: 3rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
  background: var(--bg-surface);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-card .card-icon {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.profile-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-card-primary .profile-role {
  color: var(--primary);
}

.profile-card-secondary .profile-role {
  color: var(--secondary);
}

.profile-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.company-highlight-card {
  padding: 4rem;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.company-highlight-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: 850px;
}

.company-highlight-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--font-display);
  margin: 0;
}

@media (max-width: 480px) {
  .company-highlight-card h2 {
    font-size: 1.75rem;
  }
}

.company-highlight-card p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
}

#companySummary .container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.quote-mark {
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  font-size: 8rem;
  font-family: Georgia, serif;
  height: 3rem;
  margin-top: -2rem;
}

#companySummary blockquote {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.5;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
}

.quote-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

#companySummary cite {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  letter-spacing: 0.5px;
  margin-top: -0.75rem;
}

#companyValues .card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#companyValues .card-title {
  font-size: 1.35rem;
  margin: 0;
}

#companyValues p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.partner-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  background: var(--bg-surface);
  transition: var(--transition-smooth);
}

.partner-card:hover {
  transform: translateY(-6px) !important;
}

.partner-logo-wrapper {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.partner-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.partner-info .card-title {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.partner-info p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
}

#imprintContent,
#privacyContent {
  padding-bottom: 6rem !important;
}

#imprintContent .container,
#privacyContent .container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.imprint-table a.imprint-link-primary {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* Geographic Service Availability Component */
.geo-service-block {
  padding: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.geo-service-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.geo-service-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.geo-service-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
  line-height: 1.6;
}

.geo-service-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.geo-city-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .geo-service-block {
    padding: 1.75rem 1.25rem;
  }
  .geo-service-cities {
    flex-direction: column;
    align-items: stretch;
  }
  .geo-city-link {
    justify-content: center;
  }
}

.imprint-table a.imprint-link-secondary {
  color: var(--secondary);
}

.imprint-table a.imprint-link-whatsapp {
  color: #128C7E;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

#servicesShowcase .container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* FAQ Accordion & Page Styles */
.faq-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 16px;
  transition: var(--transition-smooth);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.faq-item[open] {
  border-color: var(--border-focus);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: var(--transition-fast);
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
  display: none;
  content: "";
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-glow);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  padding: 0 1.75rem 1.75rem 1.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.025rem;
  border-top: 1px solid rgba(63, 63, 61, 0.08);
  margin-top: 0.25rem;
  padding-top: 1.25rem;
}

.faq-cta-box {
  max-width: 860px;
  margin: 3.5rem auto 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1.25rem 1.25rem;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* AGB & Widerrufsbelehrung Download Cards */
.agb-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.agb-doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: 18px;
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
}

.agb-doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.agb-doc-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.agb-doc-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 165, 65, 0.25);
  transition: var(--transition-smooth);
}

.agb-doc-card:hover .agb-doc-icon {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.agb-doc-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agb-doc-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.agb-doc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: var(--transition-fast);
}

.agb-doc-card:hover .agb-doc-title {
  color: var(--primary);
}

.agb-doc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(242, 165, 65, 0.15);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(242, 165, 65, 0.3);
}

.agb-doc-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.agb-doc-action {
  flex-shrink: 0;
}

.agb-download-btn {
  pointer-events: none;
}

@media (max-width: 768px) {
  .agb-doc-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  
  .agb-doc-left {
    align-items: flex-start;
    gap: 1rem;
  }

  .agb-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .agb-doc-title {
    font-size: 1.05rem;
  }

  .agb-doc-action {
    width: 100%;
  }

  .agb-download-btn {
    width: 100%;
  }
}

/* ==========================================================================
   404 Error Page Styles
   ========================================================================== */
.error-hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-hero-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.error-visual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), 0 0 30px var(--primary-glow);
  position: relative;
}

.error-code-digit {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.error-code-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(242, 165, 65, 0.45);
  animation: sparkPulse 2.5s infinite ease-in-out;
}

.error-code-spark svg {
  width: 32px;
  height: 32px;
}

@keyframes sparkPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(242, 165, 65, 0.35);
  }
  50% {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 32px rgba(242, 165, 65, 0.7);
  }
}

.error-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.error-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
}

.error-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.error-actions .btn svg {
  width: 18px;
  height: 18px;
}

.error-nav-section {
  padding: 4rem 0 6rem 0;
}

.error-nav-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.error-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.error-nav-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.error-nav-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

.error-nav-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.error-nav-card .card-icon svg {
  width: 22px;
  height: 22px;
}

.error-nav-card:hover .card-icon {
  background: #ffffff !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: scale(1.05);
}

.error-nav-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.error-nav-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.error-nav-card:hover .error-nav-card-title svg {
  transform: translateX(4px);
}

.error-nav-card-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.error-help-box {
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.error-help-box h3 {
  font-size: 1.65rem;
  font-weight: 700;
}

.error-help-box p {
  max-width: 540px;
  font-size: 1rem;
}

.error-help-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .error-code-digit {
    font-size: 3.5rem;
  }
  .error-code-spark {
    width: 46px;
    height: 46px;
  }
  .error-code-spark svg {
    width: 26px;
    height: 26px;
  }
  .error-title {
    font-size: 2rem;
  }
  .error-visual-badge {
    padding: 0.65rem 1.5rem;
  }
  .error-help-box {
    padding: 2rem 1.5rem;
  }
}



