/* ========================================
   Elegant Corporate German Website CSS
   Unique Green-Themed Professional Design
   ======================================== */

/* CSS Variables - Custom Color System */
:root {
  /* Core Brand Colors */
  --primary-green: #2D5016;
  --secondary-green: #74B816;
  --button-green: #40916C;
  --footer-dark-green: #1A2E1A;
  
  /* Background Colors */
  --bg-white: #FFFFFF;
  --bg-light-gray: #F8F9FA;
  --bg-section-gray: #F1F3F4;
  
  /* Extended Green Palette for Depth */
  --primary-dark: #1a3610;
  --primary-light: #4a7c26;
  --secondary-bright: #8bc34a;
  --accent-mint: #a8e6cf;
  --accent-forest: #2e7d32;
  
  /* Neutral Colors */
  --text-dark: #212529;
  --text-medium: #495057;
  --text-light: #6c757d;
  --border-light: #dee2e6;
  --border-medium: #ced4da;
  
  /* Success & Interactive Colors */
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  
  /* Typography Scale */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Roboto', system-ui, sans-serif;
  
  /* Spacing Scale (8px base) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius Scale */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 9999px;
  
  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgba(45, 80, 22, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(45, 80, 22, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(45, 80, 22, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(45, 80, 22, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ========================================
   Base Styles & Typography
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Elegant Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-green);
  margin: 0 0 var(--space-lg) 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-xl);
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -var(--space-sm);
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-green), var(--button-green));
  border-radius: var(--radius-sm);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

p {
  margin: 0 0 var(--space-lg) 0;
  color: var(--text-medium);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--primary-light);
}

a:focus {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Underlined links as requested in style */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-green);
  transition: width var(--transition-normal);
}

.link-underline:hover::after {
  width: 100%;
}

/* ========================================
   Layout Components
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section:nth-child(odd) {
  background-color: var(--bg-light-gray);
}

.section:nth-child(even) {
  background-color: var(--bg-white);
}

.section-gray {
  background-color: var(--bg-section-gray);
}

/* ========================================
   Button System - Pill-Shaped Design
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 120px;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(116, 184, 22, 0.3);
}

/* Primary Button - Company Green */
.btn-primary {
  background: linear-gradient(135deg, var(--button-green), var(--secondary-green));
  color: white;
  border-color: var(--button-green);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-forest), var(--button-green));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Secondary Button - Outline Style */
.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: white;
  transform: translateY(-1px);
}

/* Light Button - For dark backgrounds */
.btn-light {
  background-color: white;
  color: var(--primary-green);
  border-color: white;
}

.btn-light:hover {
  background-color: var(--bg-light-gray);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ========================================
   Card Components
   ======================================== */

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-green);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0;
}

.card-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin: var(--space-sm) 0 0 0;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 3px rgba(116, 184, 22, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* ========================================
   Header Styling
   ======================================== */

.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--bg-light-gray);
  color: var(--primary-green);
}

/* ========================================
   Footer Styling
   ======================================== */

.footer {
  background-color: var(--footer-dark-green);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-4xl) 0 var(--space-xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: white;
  font-family: var(--font-serif);
  margin-bottom: var(--space-lg);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
}

.footer-section a:hover {
  color: var(--secondary-green);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(116, 184, 22, 0.05) 0%, transparent 70%);
  transform: rotate(-15deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-primary { color: var(--primary-green) !important; }
.text-secondary { color: var(--secondary-green) !important; }
.text-muted { color: var(--text-light) !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.bg-primary { background-color: var(--primary-green) !important; }
.bg-secondary { background-color: var(--secondary-green) !important; }
.bg-light { background-color: var(--bg-light-gray) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2rem;
    --space-2xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .nav {
    gap: var(--space-lg);
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .hero-content {
    padding: 0 var(--space-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  h1::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ========================================
   Animations & Micro-interactions
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for better accessibility */
:focus-visible {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background-color: var(--accent-mint);
  color: var(--primary-dark);
}

/* ========================================
   Custom Scrollbar
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}