/* ==========================================================================
   Dachtechnik Rosenthal UG - Master Design System & Stylesheet
   Aligned with Official Corporate Logo Colors:
   - Primary Black/Charcoal: #0B0F19 & #0F172A
   - Accent Craftsman Steel Blue: #1B85B2 & #38BDF8
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Official Logo Color Palette */
  --clr-primary-900: #0B0F19;
  /* Deep Rich Black (from Logo DACHTECHNIK & Hammer) */
  --clr-primary-800: #161E2E;
  /* Slate Dark Header/Cards */
  --clr-primary-700: #27354A;
  /* Slate Medium */
  --clr-primary-600: #475569;
  /* Slate Muted */

  --clr-accent-500: #1B85B2;
  /* Craftsman Steel Blue (Official Logo Color for ROSENTHAL & Roof Line) */
  --clr-accent-600: #146C92;
  /* Darker Steel Blue Hover */
  --clr-accent-400: #38BDF8;
  /* Bright Steel Blue Accent for Dark BG */
  --clr-accent-100: #E0F2FE;
  /* Light Steel Blue Tint */
  --clr-accent-50: #F0F9FF;
  /* Very Light Steel Blue Background */

  --clr-surface-0: #FFFFFF;
  /* White */
  --clr-surface-50: #F8FAFC;
  /* Off-White Section BG */
  --clr-surface-100: #F1F5F9;
  /* Card Light BG */
  --clr-surface-200: #E2E8F0;
  /* Subtle Borders */

  --clr-text-main: #0B0F19;
  --clr-text-muted: #475569;
  --clr-text-inverse: #FFFFFF;

  --clr-success: #16A34A;
  --clr-error: #DC2626;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 15, 25, 0.08), 0 2px 4px -1px rgba(11, 15, 25, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 15, 25, 0.1), 0 4px 6px -2px rgba(11, 15, 25, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(11, 15, 25, 0.15), 0 10px 10px -5px rgba(11, 15, 25, 0.06);

  /* Radius & Transitions */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 68px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text-main);
  background-color: var(--clr-surface-0);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 80px;
  /* Space for Quick Action Toolbar */
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clr-accent-500);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--clr-accent-600);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-alt {
  background-color: var(--clr-surface-50);
}

.section-dark {
  background-color: var(--clr-primary-900);
  color: var(--clr-text-inverse);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--clr-primary-900);
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--clr-surface-0);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #94A3B8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--clr-accent-100);
  color: var(--clr-accent-600);
  margin-bottom: 1rem;
}

.badge-dark {
  background-color: rgba(27, 133, 178, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(27, 133, 178, 0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--clr-accent-500);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--clr-accent-600);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--clr-primary-900);
  color: var(--clr-surface-0);
}

.btn-secondary:hover {
  background-color: var(--clr-primary-800);
  color: var(--clr-surface-0);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-primary-900);
  border: 2px solid var(--clr-surface-200);
}

.btn-outline:hover {
  border-color: var(--clr-accent-500);
  color: var(--clr-accent-500);
  background-color: var(--clr-accent-50);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--clr-surface-0);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: var(--clr-surface-0);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--clr-surface-0);
}

.btn-full {
  width: 100%;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background-color: var(--clr-primary-900);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-primary-800);
  height: var(--header-height);
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-header-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  transition: height 0.2s ease;
}

@media (max-width: 768px) {
  .brand-header-logo {
    height: 42px;
    max-width: 180px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--clr-surface-0);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-accent-400);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--clr-accent-400);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-phone-link {
  display: none !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  transition: background-color 0.2s ease;
}

.mobile-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: var(--clr-surface-0);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Nav Drawer Breakpoint at 1180px for clean layout */
@media (max-width: 1180px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    background-color: #0B0F19;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem 8.5rem 1.25rem;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    color: #F8FAFC;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius-md);
  }

  .nav-link:hover,
  .nav-link.active {
    color: #38BDF8;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .nav-link.active::after {
    display: none;
  }

  /* nav-link with icon */
  .nav-link svg {
    vertical-align: middle;
    flex-shrink: 0;
    color: #38BDF8;
  }

  /* CTA link – looks like a button */
  .nav-link-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1B85B2;
    color: #FFFFFF !important;
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem !important;
    border-bottom: none !important;
    font-weight: 700;
    margin-top: 0.5rem;
  }

  .nav-link-cta svg {
    color: #FFFFFF !important;
  }

  .nav-link-cta:hover {
    background: #146C92;
    color: #fff !important;
  }

  /* WhatsApp link */
  .nav-link-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.15);
    color: #4ADE80 !important;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem !important;
    border-bottom: none !important;
    font-weight: 700;
  }

  .nav-link-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
  }

  /* Expandable groups */
  .mob-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mob-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #F8FAFC;
    text-align: left;
    gap: 0.5rem;
  }

  .mob-group-toggle span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mob-group-toggle span svg {
    color: #38BDF8;
  }

  .mob-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #94A3B8;
  }

  .mob-group.is-open .mob-chevron {
    transform: rotate(180deg);
    color: #38BDF8;
  }

  .mob-group-panel {
    display: none;
    flex-direction: column;
    padding: 0.25rem 0 0.75rem 1.5rem;
    gap: 0.25rem;
  }

  .mob-group.is-open .mob-group-panel {
    display: flex;
  }

  .nav-sub-overview {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #38BDF8 !important;
    padding: 0.65rem 0.85rem !important;
    border-bottom: none !important;
  }

  .nav-sub {
    font-size: 0.95rem !important;
    color: #CBD5E1 !important;
    padding: 0.65rem 0.85rem !important;
    border-bottom: none !important;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-sub:hover {
    color: #38BDF8 !important;
    background: rgba(255, 255, 255, 0.03);
  }

  /* Contact strip */
  .mob-contact-strip {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
  }

  .mob-contact-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #F8FAFC;
    text-decoration: none;
  }

  .mob-contact-strip a svg {
    color: #38BDF8;
  }

  .header-actions .btn-header-cta {
    display: none;
  }
}

/* --- Fixed Quick Action Toolbar --- */
.quick-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #E2E8F0;
  display: none;
  /* Hide on desktop */
  align-items: center;
  justify-content: space-around;
  padding: 0.45rem 0.5rem 0.55rem 0.5rem;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

@media (min-width: 769px) {
  .quick-action-bar {
    max-width: 580px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid #E2E8F0;
    padding: 0.4rem 1.25rem;
  }
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: #64748B;
  font-size: 0.725rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-md);
  flex: 1;
  text-align: center;
}

.quick-action-item svg {
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-action-item:hover,
.quick-action-item.active {
  color: #1B85B2;
}

.quick-action-item:hover svg {
  transform: translateY(-2px);
  color: #1B85B2;
}

/* Call Button Highlight in Center */
.quick-action-call .quick-action-icon-badge {
  background: linear-gradient(135deg, #1B85B2 0%, #146C92 100%);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(27, 133, 178, 0.4);
  margin-top: -10px;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 2px solid #FFFFFF;
}

.quick-action-call:hover .quick-action-icon-badge {
  transform: scale(1.1);
  background: linear-gradient(135deg, #38BDF8 0%, #1B85B2 100%);
}

.quick-action-call span {
  color: #0F172A;
  font-weight: 700;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--clr-primary-900);
  color: var(--clr-surface-0);
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  object-fit: cover;
  object-position: center bottom;
  width: 100%;
  height: 100%;
  filter: brightness(0.9) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.82) 45%, rgba(11, 15, 25, 0.3) 80%, rgba(11, 15, 25, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  color: #FFFFFF;
}

.hero-title-sub {
  display: block;
  font-size: 0.85em;
  font-weight: 800;
  color: #38BDF8;
  margin-top: 0.35rem;
}

.hero-slogan-box {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 440px;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 56px;
  padding: 0 1.75rem;
  width: 100%;
  background: linear-gradient(135deg, #1B85B2 0%, #146C92 100%);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(27, 133, 178, 0.4);
  transition: var(--transition-fast);
  border: none;
}

@media (min-width: 640px) {
  .btn-hero-primary {
    width: auto;
  }
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #1B85B2 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.5rem;
  width: 100%;
  background: transparent;
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-fast);
}

@media (min-width: 640px) {
  .btn-hero-secondary {
    width: auto;
  }
}

.btn-hero-secondary:hover {
  border-color: #38BDF8;
  color: #38BDF8;
  background: rgba(255, 255, 255, 0.05);
}

/* --- Guarantee Grid (Unsere Garantie an Sie) --- */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.guarantee-card {
  background: #FFFFFF;
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.guarantee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent-500);
}

.guarantee-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.guarantee-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--clr-accent-100);
  color: var(--clr-accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-primary-900);
  margin: 0;
}

.guarantee-card-text {
  font-size: 0.925rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Small Jobs Section ("Auch kleine Aufträge? Kein Problem.") --- */
.small-jobs-banner {
  background: linear-gradient(135deg, #0F172A 0%, #161E2E 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  color: #FFFFFF;
  text-align: center;
  box-shadow: var(--shadow-xl);
  margin-top: 3rem;
}

.small-jobs-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.small-jobs-title span {
  color: #38BDF8;
}

.small-jobs-text {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 620px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

/* --- Trust / Value Grid --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.trust-card {
  background-color: var(--clr-surface-0);
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(11, 15, 25, 0.03);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(11, 15, 25, 0.08), 0 0 15px rgba(27, 133, 178, 0.12);
  border-color: var(--clr-accent-500);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(27, 133, 178, 0.1);
  color: var(--clr-accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.trust-card:hover .trust-icon {
  transform: scale(1.08);
  background-color: rgba(27, 133, 178, 0.18);
  color: var(--clr-accent-600);
}

.trust-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-primary-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.trust-desc {
  font-size: 0.935rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* --- Service Cards Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--clr-surface-0);
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(11, 15, 25, 0.04);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(11, 15, 25, 0.12), 0 0 18px rgba(27, 133, 178, 0.15);
  border-color: var(--clr-accent-500);
}

.service-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background-color: var(--clr-primary-800);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-primary-900);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.service-card-text {
  font-size: 0.935rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(27, 133, 178, 0.08);
  color: var(--clr-accent-500);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(27, 133, 178, 0.15);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--clr-accent-500);
  margin-top: auto;
  transition: color 0.2s ease;
}

.service-card-link svg {
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-link {
  color: var(--clr-accent-600);
}

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

/* --- Process Section --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-step {
  background-color: var(--clr-surface-0);
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(11, 15, 25, 0.03);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(11, 15, 25, 0.08), 0 0 15px rgba(27, 133, 178, 0.12);
  border-color: var(--clr-accent-500);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1B85B2 0%, #146C92 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(27, 133, 178, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.process-step:hover .process-number {
  transform: scale(1.1);
  background: linear-gradient(135deg, #38BDF8 0%, #1B85B2 100%);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-primary-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 0.925rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

/* --- Regional Areas Grid --- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.region-card {
  background: var(--clr-surface-0);
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(11, 15, 25, 0.04);
}

.region-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-accent-500);
  box-shadow: 0 16px 32px -8px rgba(11, 15, 25, 0.12), 0 0 18px rgba(27, 133, 178, 0.15);
}

.region-city {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--clr-primary-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.region-city svg {
  color: var(--clr-accent-500);
  flex-shrink: 0;
}

.region-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.775rem;
  font-weight: 700;
  background-color: rgba(27, 133, 178, 0.08);
  color: var(--clr-accent-500);
  border: 1px solid rgba(27, 133, 178, 0.18);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.region-text {
  font-size: 0.935rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
}

.region-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent-600);
  background-color: var(--clr-accent-50);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: inline-block;
  align-self: flex-start;
}

.region-text {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--clr-surface-0);
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.is-active {
  border-color: var(--clr-accent-500);
  box-shadow: var(--shadow-sm);
}

.faq-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary-900);
  gap: 1rem;
}

.faq-button:hover {
  color: var(--clr-accent-500);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--clr-accent-500);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background-color: var(--clr-surface-50);
}

.faq-panel-content {
  padding: 1.25rem 1.5rem;
  font-size: 0.975rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--clr-surface-200);
}

/* --- Contact Form Styling --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info-box {
  background-color: var(--clr-primary-900);
  color: var(--clr-surface-0);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info-text {
  color: #94A3B8;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

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

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(27, 133, 178, 0.15);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-surface-0);
}

.contact-placeholder-note {
  font-size: 0.85rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--clr-accent-500);
  margin-top: auto;
}

.form-box {
  background-color: var(--clr-surface-0);
  border: 1px solid var(--clr-surface-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(11, 15, 25, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-primary-900);
}

.form-label span {
  color: var(--clr-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  color: var(--clr-primary-900);
  background-color: var(--clr-surface-0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1B85B2;
  box-shadow: 0 0 0 4px rgba(27, 133, 178, 0.16);
  background-color: #FFFFFF;
}

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

/* File Upload Zone */
.file-upload-box {
  border: 2px dashed var(--clr-surface-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--clr-surface-50);
  transition: var(--transition-fast);
}

.file-upload-box:hover,
.file-upload-box.is-dragover {
  border-color: var(--clr-accent-500);
  background-color: var(--clr-accent-50);
}

.file-upload-icon {
  width: 36px;
  height: 36px;
  color: var(--clr-accent-500);
  margin: 0 auto 0.5rem auto;
}

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

.file-upload-text strong {
  color: var(--clr-accent-500);
}

.file-input-hidden {
  display: none;
}

.file-preview {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-accent-600);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--clr-accent-500);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.checkbox-label a {
  text-decoration: underline;
}

/* Status Notifications */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: none;
}

.form-alert-success {
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.form-alert-error {
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, #0B0F19 0%, #070A10 100%);
  color: #94A3B8;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

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

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

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

.footer-brand-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-col-brand .brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.footer-col-brand .brand-slogan {
  color: #38BDF8;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #38BDF8;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748B;
}

/* --- Page Header Component for Inner Pages --- */
.page-hero {
  background-color: #0B0F19;
  background: radial-gradient(circle at 85% 20%, rgba(27, 133, 178, 0.25) 0%, transparent 55%), linear-gradient(145deg, #0F172A 0%, #0B0F19 100%);
  color: #FFFFFF;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94A3B8;
  margin-bottom: 1.15rem;
}

.breadcrumbs a {
  color: #CBD5E1;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #38BDF8;
}

.breadcrumbs span[aria-current="page"] {
  color: #38BDF8;
  font-weight: 700;
}

.page-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 680px;
}

/* Utility Screenreader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Mobile Smartphone & Tablet Optimization System
   ========================================================================== */

@media (max-width: 1180px) {
  body {
    padding-bottom: 85px;
    /* Prevent quick-action-bar from blocking footer */
  }

  .site-header {
    height: 80px;
    background-color: var(--clr-primary-900);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--clr-primary-800);
  }

  .header-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr-primary-900);
    /* Dark theme mobile nav background */
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem 6rem 1.5rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.85rem 0;
    color: var(--clr-surface-0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Rich Mobile Drawer Styles */
  .mob-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-surface-0);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-decoration: none;
  }

  .mob-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-surface-0);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-decoration: none;
  }

  .mob-item:hover,
  .mob-group-toggle:hover {
    color: var(--clr-accent-400);
  }

  .mob-group-toggle span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mob-item svg,
  .mob-group-toggle span svg {
    color: #94A3B8;
  }

  .mob-chevron {
    transition: transform 0.3s ease;
  }

  .mob-group.is-open .mob-chevron {
    transform: rotate(180deg);
  }

  .mob-group-panel {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mob-group.is-open .mob-group-panel {
    display: flex;
  }

  .mob-group-panel .nav-sub-overview,
  .mob-group-panel .nav-sub {
    font-size: 1rem;
    font-weight: 500;
    color: #CBD5E1;
    padding: 0.6rem 0;
    border-bottom: none;
  }

  .mob-group-panel .nav-sub:hover,
  .mob-group-panel .nav-sub-overview:hover {
    color: var(--clr-accent-400);
  }

  .nav-link-cta {
    background-color: var(--clr-accent-500);
    color: #fff !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: none;
  }

  .nav-link-whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 211, 102, 0.3);
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .mob-contact-strip {
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: center;
  }

  .mob-contact-strip a {
    color: #94A3B8;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .quick-action-bar {
    display: flex;
    /* Show quick-action-bar on mobile */
  }

  .header-actions .btn-header-cta {
    display: none;
  }
}

@media (max-width: 768px) {

  /* Prevent horizontal scrolling & set touch spacing */
  body {
    padding-bottom: 85px;
    /* Prevent quick-action-bar from blocking footer */
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Header on Mobile Smartphones */
  .site-header {
    height: 72px;
  }

  .brand-header-logo {
    height: 44px;
    max-width: 175px;
  }

  .nav-menu {
    top: 72px;
  }

  .nav-phone {
    display: none;
  }

  /* Hero Section Mobile */
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }

  .hero-slogan-box {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  /* Grids to single column */
  .trust-grid,
  .service-grid,
  .process-timeline,
  .region-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card-img {
    height: 170px;
  }

  .service-card-body {
    padding: 1.35rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-box,
  .form-box {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Input 16px minimum prevents iOS Safari zooming on focus */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }

  /* Mobile Bottom Quick Action Navigation Bar */
  .quick-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    height: 64px;
    border-radius: 0;
    border: none;
    border-top: 1px solid #E2E8F0;
    padding: 0.35rem 0.5rem 0.55rem 0.5rem;
    gap: 0;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
  }

  .quick-action-item {
    font-size: 0.65rem;
    padding: 0.2rem 0;
    width: auto;
    flex: 1;
    gap: 0.15rem;
    color: #475569;
  }

  .quick-action-item svg {
    width: 22px;
    height: 22px;
  }

  .quick-action-item:hover,
  .quick-action-item.active {
    color: #1B85B2;
  }

  .quick-action-call .quick-action-icon-badge {
    width: 40px;
    height: 40px;
    margin: -10px 0 0 0;
    box-shadow: 0 4px 14px rgba(27, 133, 178, 0.4);
    border: 2px solid #FFFFFF;
    background: linear-gradient(135deg, #1B85B2 0%, #0284C7 100%);
  }

  .quick-action-call span {
    font-size: 0.65rem;
    color: #0F172A;
    font-weight: 700;
  }

  /* Footer Mobile */
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .page-title {
    font-size: 1.85rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    width: 100%;
  }

  .brand-header-logo {
    height: 38px;
    max-width: 155px;
  }
}

/* --- Cookie Consent Banner (GDPR compliant) --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  /* Deep Slate */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  z-index: 1010;
  /* Above quick action bar */
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cookie-content {
  flex: 1;
}

.cookie-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #38BDF8;
  /* Bright Steel Blue */
}

.cookie-title svg {
  color: #38BDF8;
  flex-shrink: 0;
}

.cookie-text {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.cookie-text a {
  color: #38BDF8;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #7DD3FC;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cookie-btn-primary {
  background-color: var(--clr-accent-500);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.cookie-btn-primary:hover {
  background-color: var(--clr-accent-600);
  transform: translateY(-1px);
}

.cookie-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  background: transparent;
}

.cookie-btn-outline:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Mobile Breakpoint for Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
  }

  .cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .cookie-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   24/7 DACH-NOTDIENST & SCHNELLHILFE POPUP
   ========================================================================== */
.emergency-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 99996;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0.75rem 6rem 0.75rem;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.emergency-popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.emergency-popup-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, #0F172A 0%, #0B0F19 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.2);
  overflow: hidden;
  color: #FFFFFF;
  margin: auto 0;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.emergency-popup-overlay.active .emergency-popup-dialog {
  transform: scale(1) translateY(0);
}

.emergency-popup-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.emergency-popup-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.5);
  transform: rotate(90deg);
}

.emergency-popup-header {
  position: relative;
  padding: 1.75rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emergency-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 800;
  color: #F87171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.emergency-popup-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.emergency-popup-title span {
  color: #F87171;
}

.emergency-popup-subtext {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
}

.emergency-popup-body {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
}

.emergency-call-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  border: 1px solid rgba(254, 202, 202, 0.3);
  border-radius: 0.75rem;
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.emergency-call-direct:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.emergency-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #64748B;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.emergency-divider::before,
.emergency-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.emergency-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

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

.emergency-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.emergency-input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
}

.emergency-input,
.emergency-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.emergency-input::placeholder {
  color: #64748B;
}

.emergency-input:focus,
.emergency-select:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.emergency-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #1B85B2 0%, #146C92 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.975rem;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 133, 178, 0.4);
  transition: var(--transition-fast);
  margin-top: 0.25rem;
}

.emergency-submit-btn:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #1B85B2 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

/* Floating Emergency Button */
.emergency-floating-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, #0F172A 0%, #161E2E 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 9999px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: emergencyBadgePulse 3s infinite;
}

.emergency-floating-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #EF4444;
  box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239, 68, 68, 0.6);
}

.emergency-floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  font-size: 0.95rem;
}

@keyframes emergencyBadgePulse {
  0%, 100% {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 25px rgba(239, 68, 68, 0.6);
  }
}

@media (max-width: 768px) {
  .emergency-floating-trigger {
    bottom: 4.5rem;
    right: 1rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .emergency-popup-overlay {
    padding: 1.25rem 0.5rem 6rem 0.5rem;
  }

  .emergency-popup-dialog {
    border-radius: 1rem;
  }

  .emergency-popup-header {
    padding: 1.25rem 1rem 0.75rem 1rem;
  }

  .emergency-popup-title {
    font-size: 1.2rem;
  }

  .emergency-popup-subtext {
    font-size: 0.825rem;
  }

  .emergency-popup-body {
    padding: 1rem;
  }

  .emergency-call-direct {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  .emergency-divider {
    margin: 0.85rem 0;
    font-size: 0.75rem;
  }

  .emergency-form {
    gap: 0.65rem;
  }

  .emergency-input,
  .emergency-select {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .emergency-submit-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}