/* ===================================
   Professional Business Design System
   Wirtschaftsdetektei S.E.S.
   Corporate Consulting Style
   =================================== */

/* CSS Variables for Professional Design System */
:root {
  /* Professional Blue Color Palette */
  --primary-color: #1e3a8a;        /* Deep professional blue */
  --primary-dark: #1e40af;         /* Darker blue */
  --primary-light: #3b82f6;        /* Lighter blue */
  --secondary-color: #0f172a;      /* Dark slate for text */
  --accent-color: #2563eb;         /* Bright blue accent */

  --text-color: #1e293b;           /* Professional dark text */
  --text-light: #475569;           /* Medium gray text */
  --text-lighter: #64748b;         /* Light gray text */
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;

  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Professional Typography */
  --font-primary: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Montserrat', 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius - Professional, subtle */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary) !important;
  color: var(--text-color) !important;
  line-height: 1.7 !important;
  background-color: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

/* ===================================
   Professional Navigation
   =================================== */

.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border-bottom: 1px solid var(--border-color);
}

.modern-nav.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.nav-logo {
  font-size: 0;
  width: 250px;
  height: 60px;
  background-image: url('../images/wirtschaftsdetekteilogoneu_klein.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background-color: rgba(30, 58, 138, 0.05);
}

.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  margin: 6px 0;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px var(--spacing-lg) var(--spacing-lg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition-base);
    gap: var(--spacing-sm);
    align-items: stretch;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    padding: var(--spacing-md);
    width: 100%;
    border-radius: var(--radius-md);
    text-align: left;
  }
}

/* ===================================
   Professional Hero Section
   =================================== */

.modern-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/intro%20wirtschaftsdetektei.jpg') no-repeat center center;
  background-size: contain;
  background-position: center center;
  background-color: #f8fafc;
  padding: var(--spacing-xxl) var(--spacing-md);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to right,
      #f8fafc 0%,
      rgba(248, 250, 252, 0.95) 3%,
      rgba(248, 250, 252, 0.85) 8%,
      rgba(248, 250, 252, 0.6) 15%,
      rgba(248, 250, 252, 0.3) 22%,
      transparent 30%,
      transparent 70%,
      rgba(248, 250, 252, 0.3) 78%,
      rgba(248, 250, 252, 0.6) 85%,
      rgba(248, 250, 252, 0.85) 92%,
      rgba(248, 250, 252, 0.95) 97%,
      #f8fafc 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: var(--container-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero buttons need solid backgrounds on dark/image background */
.hero-cta .btn-outline {
  background: white;
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

.hero-cta .btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
}

/* ===================================
   Professional Buttons
   =================================== */

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none !important;
}

.btn-primary {
  background: var(--primary-color);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white !important;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary-color);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  transform: translateY(-2px);
  color: white !important;
  text-decoration: none;
}

/* ===================================
   Professional Cards & Sections
   =================================== */

.section {
  padding: var(--spacing-xxl) var(--spacing-md);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
}

.card:has(.card-link) {
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.75rem;
  color: white;
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.card-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  font-size: 0.9375rem;
}

.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.card-link:hover {
  gap: var(--spacing-sm);
  color: var(--accent-color);
}

/* ===================================
   Professional Footer
   =================================== */

.modern-footer {
  background: var(--bg-dark);
  color: white;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

.footer-container {
  max-width: var(--container-xl);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline;
}

/* ===================================
   Professional Content Typography
   =================================== */

.content-section {
  max-width: var(--container-md);
  margin: var(--spacing-xxl) auto;
  padding: 0 var(--spacing-md);
}

.content-section h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.content-section p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: var(--text-color);
}

.content-section a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.content-section a:hover {
  color: var(--accent-color);
}

/* ===================================
   Professional Contact Section
   =================================== */

.contact-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: var(--spacing-xxl) var(--spacing-md);
  text-align: center;
  margin: var(--spacing-xxl) 0;
  box-shadow: var(--shadow-xl);
}

.contact-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
}

.contact-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.contact-phone {
  font-size: 2.75rem;
  font-weight: 700;
  margin: var(--spacing-lg) 0;
  letter-spacing: 0.02em;
  font-family: var(--font-heading);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: white;
  color: var(--primary-color);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.contact-email:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--accent-color);
  text-decoration: none;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.bg-light {
  background-color: var(--bg-light);
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  :root {
    --spacing-xxl: 3rem;
  }

  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-phone {
    font-size: 2rem;
  }

  .nav-logo {
    width: 180px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

/* ===================================
   Accessibility
   =================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===================================
   Back to Top Button
   =================================== */

#backToTop {
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

#backToTop[style*="display: flex"] {
  display: flex !important;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .modern-nav,
  .nav-toggle,
  .modern-footer,
  .contact-section {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .section {
    page-break-inside: avoid;
  }
}
