/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #0e2a47;
  background-color: #ffffff;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #0e2a47;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Screen Reader 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;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Only apply dark color to specific header elements that need it */
.header .logo-text,
.header nav a {
  color: #0e2a47 !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0e2a47;
}

.logo-text {
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .logo-text {
    display: none;
  }
}

/* Navigation */
.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background-color: rgba(217, 4, 41, 0.1);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger animation when menu is open */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: #d90429;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #d90429;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.75rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #0e2a47;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: #ffffff;
  background-color: #d90429;
  border-left-color: #ffffff;
}

.dropdown-menu a.active {
  color: #ffffff;
  background-color: rgba(217, 4, 41, 0.2);
  border-left-color: #d90429;
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0e2a47;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .nav-toggle[aria-expanded="true"] + .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    border-radius: 0;
    color: #ffffff;
    border-left: 3px solid transparent;
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link.active {
    border-left-color: #d90429;
    background-color: rgba(255, 255, 255, 0.1);
    color: #d90429;
  }
}

/* Tablet Navigation */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 1.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Large Desktop Navigation */
@media (min-width: 1200px) {
  .nav-menu {
    gap: 2.5rem;
  }

  .nav-link {
    padding: 0.5rem 1.25rem;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  color: #0e2a47 !important;
  background-color: transparent !important;
}

/* Specific override for any h2 elements in header context */
.header h2,
.header .section-title,
header h2,
header .section-title {
  color: #0e2a47 !important;
  background-color: transparent !important;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #d90429;
  color: white;
  border-color: #d90429;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #b8032a;
  border-color: #b8032a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(217, 4, 41, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #0e2a47;
  border-color: #0e2a47;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #0e2a47;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(14, 42, 71, 0.3);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #0e2a47 !important;
  background-color: transparent !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: #0e2a47;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* Services Grid */
.services {
  background-color: #f3f4f6;
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  color: #0e2a47;
  margin-bottom: 1rem;
}

.service-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: #d90429;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-link:hover,
.service-link:focus {
  color: #b8032a;
  text-decoration: underline;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: #d90429;
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.step-title {
  color: #0e2a47;
  margin-bottom: 1rem;
}

.step-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Process Steps for Service Pages */
.process-steps-service {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-service {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number-service {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #d90429;
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step-content h3 {
  color: #0e2a47;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step-content p {
  color: #6b7280;
  margin: 0;
}

/* Trust Section */
.trust {
  background-color: #f3f4f6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem;
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.trust-title {
  color: #0e2a47;
  margin-bottom: 1rem;
}

.trust-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Service Page Styles */
.breadcrumb {
  background-color: #f3f4f6;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #6b7280;
}

.breadcrumb-list a {
  color: #0e2a47;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: #d90429;
}

.breadcrumb-list li[aria-current="page"] {
  color: #6b7280;
}

/* Service Hero */
.service-hero {
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  padding: 4rem 0;
  text-align: center;
}

.service-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.service-icon-large {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.service-title {
  color: #0e2a47;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.service-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .service-title {
    font-size: 2rem;
  }

  .service-subtitle {
    font-size: 1.125rem;
  }
}

/* Service Details */
.service-details {
  padding: 4rem 0;
}

.service-details .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .service-details .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.service-content {
  max-width: none;
}

.service-section {
  margin-bottom: 3rem;
}

.service-section h2 {
  color: #0e2a47;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.service-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #374151;
}

/* Document List */
.document-list {
  list-style: none;
  padding: 0;
}

.document-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-left: 2rem;
}

.document-list li:before {
  content: "📄";
  position: absolute;
  left: 0;
  top: 0.75rem;
}

.document-list li:last-child {
  border-bottom: none;
}

/* Pricing Reference */
.pricing-reference {
  background: #f3f4f6;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.pricing-reference h2 {
  margin-bottom: 1rem;
}

.pricing-reference p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.pricing-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .pricing-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Service Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar-card h3 {
  color: #0e2a47;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.sidebar-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  color: #0e2a47;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.sidebar-links a:hover {
  color: #d90429;
}

/* Effort Grid */
.effort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.effort-item {
  background: #f3f4f6;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.effort-item h3 {
  color: #0e2a47;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.effort-item p {
  margin: 0;
  color: #6b7280;
}

.effort-item strong {
  color: #d90429;
  font-size: 1.125rem;
}

/* CTA Section */
.cta {
  background-color: #0e2a47;
  color: white;
  text-align: center;
}

.cta-title {
  color: white;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: #0e2a47;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-text {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-contact a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: #d90429;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffffff !important;
  text-decoration: none;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #d90429 !important;
  opacity: 1 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
}

.footer-copyright {
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Legal Page Styles */
.legal-page {
  padding: 4rem 0;
  background-color: #ffffff;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: #0e2a47;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: #0e2a47;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #d90429;
  padding-bottom: 0.5rem;
}

.legal-section h3 {
  color: #0e2a47;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #374151;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #374151;
}

.legal-section strong {
  color: #0e2a47;
  font-weight: 600;
}

.legal-section a {
  color: #d90429;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-section a:hover,
.legal-section a:focus {
  color: #b8032a;
  text-decoration: underline;
}

.contact-info {
  background: #f3f4f6;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* Legal Navigation Active States */
.footer-links a.active {
  color: #d90429 !important;
  font-weight: 600;
}

/* Additional safety net for footer links */
body footer a,
body footer ul a,
body footer li a,
body .footer a,
body .footer ul a,
body .footer li a {
  color: #ffffff !important;
  opacity: 1 !important;
}

body footer a:hover,
body footer ul a:hover,
body footer li a:hover,
body .footer a:hover,
body .footer ul a:hover,
body .footer li a:hover {
  color: #d90429 !important;
  opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 640px) {
  .services-grid,
  .process-steps,
  .trust-grid,
  .pricing-actions {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .service-hero-content,
  .service-details .container {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid #d90429;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-card,
  .dropdown-menu,
  .lang-menu,
  .sidebar-card {
    border: 2px solid #0e2a47;
  }

  /* Enhanced contrast for high contrast mode - keep dark theme but increase contrast */
  .dropdown-menu li a,
  .dropdown-menu a {
    color: #ffffff !important;
    background-color: #0e2a47 !important;
    border: 1px solid #374151 !important;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a:focus,
  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    color: #ffffff !important;
    background-color: #d90429 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  padding: 4rem 0;
  text-align: center;
}

.page-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  color: #0e2a47;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.125rem;
  }
}

/* Pricing Styles */
.pricing-main {
  padding: 4rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.pricing-card-main {
  border-color: #d90429;
  position: relative;
}

.pricing-card-main::before {
  content: "Hauptpreis";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #d90429;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h2 {
  color: #0e2a47;
  margin-bottom: 1rem;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #d90429;
  line-height: 1;
}

.price-unit {
  color: #6b7280;
  font-size: 1.125rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-left: 2rem;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: #d90429;
  font-weight: 600;
}

.feature-list li:last-child {
  border-bottom: none;
}

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

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f3f4f6;
  border-radius: 8px;
}

.payment-icon {
  font-size: 2rem;
  width: 3rem;
  text-align: center;
}

.payment-info h4 {
  color: #0e2a47;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.payment-info p {
  color: #6b7280;
  margin: 0;
  font-size: 0.875rem;
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item h4 {
  color: #0e2a47;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.info-item p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Example Calculations */
.example-calculations {
  margin-top: 4rem;
}

.example-calculations h2 {
  text-align: center;
  color: #0e2a47;
  margin-bottom: 3rem;
}

/* Additional Costs */
.additional-costs {
  margin: 4rem 0;
  padding: 3rem 0;
  background: #f8fafc;
  border-radius: 16px;
}

.additional-costs h2 {
  text-align: center;
  color: #0e2a47;
  margin-bottom: 3rem;
  font-size: 2.25rem;
}

.costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
}

.cost-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cost-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cost-card-highlight {
  border-color: #d90429;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.cost-card h3 {
  color: #0e2a47;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.cost-description {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cost-details {
  margin-bottom: 1rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.cost-row:last-child {
  border-bottom: none;
}

.cost-row span:first-child {
  color: #4b5563;
}

.cost-row span:last-child {
  font-weight: 600;
  color: #0e2a47;
}

.cost-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #0369a1;
}

.cost-note strong {
  color: #0c4a6e;
}

.express-info {
  text-align: center;
  margin-bottom: 1rem;
}

.express-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #d90429;
  margin-bottom: 0.5rem;
}

.express-info p {
  color: #6b7280;
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .costs-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .additional-costs {
    margin: 2rem 0;
    padding: 2rem 0;
  }

  .cost-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .cost-row span:last-child {
    font-size: 1.125rem;
  }
}

/* Ultra-specific rules to override the problematic contrast issues */
/* Target the exact elements mentioned in the diagnostics */
section a[href*="einwohnerkontrolle"],
section a[href*="migrationsamt"],
section a[href*="ahv-iv-eo-el"],
section a[href*="krankenkasse"],
section a[href*="auszuege"],
section a[href*="strassenverkehrsamt"],
section a[href*="mietrecht"] {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Override any inherited colors from parent elements */
section a[href*="einwohnerkontrolle"]:link,
section a[href*="einwohnerkontrolle"]:visited,
section a[href*="migrationsamt"]:link,
section a[href*="migrationsamt"]:visited,
section a[href*="ahv-iv-eo-el"]:link,
section a[href*="ahv-iv-eo-el"]:visited,
section a[href*="krankenkasse"]:link,
section a[href*="krankenkasse"]:visited,
section a[href*="auszuege"]:link,
section a[href*="auszuege"]:visited,
section a[href*="strassenverkehrsamt"]:link,
section a[href*="strassenverkehrsamt"]:visited,
section a[href*="mietrecht"]:link,
section a[href*="mietrecht"]:visited {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
}

/* Force proper contrast for any links that might be inheriting problematic colors */
a[style*="oklch"],
a[color*="oklch"],
*[style*="oklch"] a {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
}

/* Additional safety net for footer links */
body footer a,
body footer ul a,
body footer li a,
body .footer a,
body .footer ul a,
body .footer li a {
  color: #ffffff !important;
  opacity: 1 !important;
}

body footer a:hover,
body footer ul a:hover,
body footer li a:hover,
body .footer a:hover,
body .footer ul a:hover,
body .footer li a:hover {
  color: #d90429 !important;
  opacity: 1 !important;
}

/* Final comprehensive contrast fix for all navigation links */
/* Target all possible selectors that could be causing the contrast issues */
section a,
section a:link,
section a:visited,
section a:hover,
section a:focus,
section a:active,
div section a,
body section a,
html section a,
* section a {
  color: #ffffff !important;
  background-color: #d90429 !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Override any oklch or rgb color inheritance */
section a[style],
section a[color],
section *[style] a,
section *[color] a {
  color: #ffffff !important;
  background-color: #d90429 !important;
}

/* Specific targeting for the problematic elements mentioned in diagnostics */
section a[href*="einwohnerkontrolle"]:not([style*="color: rgb(255, 255, 255)"]),
section a[href*="migrationsamt"]:not([style*="color: rgb(255, 255, 255)"]),
section a[href*="ahv-iv-eo-el"]:not([style*="color: rgb(255, 255, 255)"]),
section a[href*="krankenkasse"]:not([style*="color: rgb(255, 255, 255)"]),
section a[href*="auszuege"]:not([style*="color: rgb(255, 255, 255)"]),
section a[href*="strassenverkehrsamt"]:not([style*="color: rgb(255, 255, 255)"]),
section a[href*="mietrecht"]:not([style*="color: rgb(255, 255, 255)"]) {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  /* Force override any computed oklch values */
  -webkit-text-fill-color: rgb(255, 255, 255) !important;
  text-fill-color: rgb(255, 255, 255) !important;
}

/* Override any system-level color inheritance */
* section a,
*:not(style) section a,
body:not([style]) section a {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
}

/* Force RGB values to override oklch */
section a[style*="oklch"] {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
}

/* Prevent any color inheritance from parent elements with dark backgrounds */
[style*="rgb(14, 42, 71)"] a,
[style*="background-color: rgb(14, 42, 71)"] a,
*[style*="rgb(14, 42, 71)"] a {
  color: rgb(255, 255, 255) !important;
  background-color: rgb(217, 4, 41) !important;
}
