/* ===================================
   Lursky Dienstleistungen - Styles
   Modern, Premium Design System
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS Variables - Design Tokens
   =================================== */
:root {
  /* Colors - Vibrant Blue & Green Palette */
  --primary-color: #004aad;
  /* Solid Corporate Blue */
  --primary-light: #007bff;
  /* Bright Blue */
  --primary-dark: #003a8c;
  --secondary-color: #28a745;
  /* Success Green */
  --secondary-light: #34ce57;
  /* Bright Green */
  --secondary-dark: #1e7e34;

  /* Neutral Colors - Clean Light Theme */
  --light-bg: #ffffff;
  --light-surface: #f8fafc;
  --light-surface-light: #f1f5f9;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  /* Accent Colors */
  --accent-blue: #007bff;
  --accent-green: #28a745;

  /* Gradients - More dynamic Blue/Green mix */
  --gradient-primary: linear-gradient(135deg, #004aad 0%, #007bff 100%);
  --gradient-secondary: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  --gradient-mixed: linear-gradient(135deg, #004aad 0%, #28a745 100%);
  --gradient-soft: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(0, 74, 173, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);

  /* Spacing (Unchanged) */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography (Unchanged) */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows - Blue/Green tinted */
  --shadow-sm: 0 2px 8px rgba(0, 74, 173, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 74, 173, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 74, 173, 0.15);
  --shadow-xl: 0 16px 48px rgba(0, 74, 173, 0.2);
  --shadow-glow: 0 0 20px rgba(40, 167, 69, 0.2);

  /* Border Radius (Unchanged) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions (Unchanged) */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--light-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}

/* Redesign Utility Classes */
.highlight {
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary {
  color: var(--secondary-dark);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(40, 167, 69, 0.1);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(12, 74, 110, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ===================================
   Layout Components
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  /* More transparent for glass effect */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: var(--transition-normal);
}

.header.scrolled .logo-img {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(12, 74, 110, 0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 4px;
  transition: var(--transition-normal);
}

/* ===================================
   Hero Section - Redesigned
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--light-surface);
  overflow: hidden;
  padding-top: 80px;
}

/* Decorative Circles for visual interest */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.15;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: var(--primary-light);
  top: -200px;
  right: -100px;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: var(--secondary-light);
  bottom: -100px;
  left: -200px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease;
  line-height: 1.1;
}

.hero-title .highlight {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(40, 167, 69, 0.1);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 2rem;
  border: 1px solid rgba(40, 167, 69, 0.2);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease 0.2s backwards;
  opacity: 0.8;
  text-align: left;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-image-box {
  display: flex;
  justify-content: flex-end;
  animation: fadeInRight 1s ease;
}

.hero-logo-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--light-surface-light);
  transform: rotate(2deg);
  transition: var(--transition-slow);
}

.hero-logo-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.hero-logo-large {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-slow);
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(2);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--dark-bg);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-primary);
}

/* ===================================
   Service Cards - Enhanced
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.2);
}

.service-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1rem;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.service-link:hover {
  gap: 1.25rem;
  color: var(--primary-color);
}

/* ===================================
   Detail Page Styles - Redesigned
   =================================== */
.page-header {
  padding-top: 160px;
  padding-bottom: 6rem;
  background: var(--gradient-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent);
  z-index: 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
}

.detail-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-text h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-text h3::after {
  content: '';
  flex-grow: 1;
  height: 2px;
  background: var(--light-surface-alt);
}

.detail-text li {
  padding: 0.75rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.detail-text li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 800;
}

.detail-images {
  display: grid;
  gap: 2rem;
  position: sticky;
  top: 120px;
}

.detail-image-box {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: white;
  padding: 10px;
  border: 1px solid var(--light-surface-light);
}

.detail-image-box img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Maintain old placeholder style as fallback if needed */
.detail-image-placeholder {
  width: 100%;
  height: 350px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--light-surface-alt);
}

/* ===================================
   Contact Section - Redesigned
   =================================== */
.contact-section {
  background: var(--primary-color);
  background: var(--gradient-mixed);
  color: white;
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(12, 74, 110, 0.3);
}

.contact-section h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 3rem;
}

.contact-item-icon {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
}

.contact-item h4 {
  color: rgba(255, 255, 255, 0.7);
}

.contact-item p {
  color: white;
  margin-bottom: 0;
}

/* ===================================
   Footer - Redesigned
   =================================== */
.footer {
  background: #0f172a;
  /* Deep Slate */
  color: white;
  padding: 6rem 0 3rem;
  margin-top: 8rem;
}

.footer-section h3 {
  color: var(--secondary-light);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.footer-section p {
  color: #94a3b8;
}

.footer-section a {
  color: #94a3b8;
}

.footer-section a:hover {
  color: var(--secondary-light);
  transform: translateX(8px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5rem;
  padding-top: 2rem;
  color: #64748b;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 4rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image-box {
    justify-content: center;
    order: -1;
    /* Place logo on top for mobile */
  }

  .hero-logo-card {
    transform: rotate(0deg);
    padding: 1.5rem;
  }

  .hero-logo-large {
    max-width: 200px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .contact-info {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}