/* 
 * Main CSS file for ErfolgsBeratung Website
 * A minimalist design system with curved grid elements
 * Gradient color scheme with smooth transitions
 */

:root {
  /* Primary Colors */
  --primary-color: #4481eb;
  --primary-light: #6e8bef;
  --primary-dark: #2d5ac7;
  
  /* Secondary Colors */
  --secondary-color: #6e45e2;
  --secondary-light: #8a6df0;
  --secondary-dark: #5132b9;
  
  /* Neutral Colors */
  --dark: #333333;
  --darker: #222222;
  --light: #f9f9f9;
  --lighter: #ffffff;
  --mid-gray: #666666;
  --light-gray: #dddddd;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --primary-gradient-reverse: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --dark-gradient: linear-gradient(135deg, #2b2b2b, #1a1a1a);
  --light-gradient: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  --overlay-gradient: linear-gradient(to right, rgba(41,17,96,0.8), rgba(2,80,197,0.6));
  
  /* Shadows */
  --card-shadow: 0 5px 15px rgba(0,0,0,0.05);
  --card-shadow-hover: 0 15px 30px rgba(0,0,0,0.1);
  --button-shadow: 0 4px 10px rgba(0,0,0,0.1);
  --button-shadow-hover: 0 10px 20px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Border radius */
  --radius-small: 5px;
  --radius-medium: 10px;
  --radius-large: 15px;
  --radius-full: 30px;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 50px;
  
  /* Font sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-xxl: 2rem;
  --font-hero: 3rem;
}

/* Base Styles */
body {
  font-family: 'Merriweather', serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px;
  background-color: var(--lighter);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: var(--font-xxl);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-small);
}

.section-subtitle {
  font-size: var(--font-lg);
  margin-bottom: 2rem;
  opacity: 0.8;
  text-align: center;
}

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

/* Container adjustments */
.container {
  padding: 0 var(--spacing-md);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Button Styles */
.btn {
  font-family: 'Montserrat', sans-serif;
  padding: 10px 25px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--button-shadow);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--button-shadow-hover);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--lighter);
}

.btn-primary:hover {
  background: var(--primary-gradient-reverse);
  color: var(--lighter);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid var(--lighter);
  color: var(--lighter);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lighter);
}

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

.btn-outline-primary:hover {
  background: rgba(68, 129, 235, 0.1);
  color: var(--primary-dark);
}

.btn-lg {
  padding: 12px 30px;
  font-size: var(--font-lg);
}

/* Form Styles */
.form-control {
  height: auto;
  padding: 12px 15px;
  border-radius: var(--radius-small);
  border: 1px solid var(--light-gray);
  font-family: 'Merriweather', serif;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(68, 129, 235, 0.25);
}

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

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--lighter);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--font-xl);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--dark);
  flex-grow: 1;
}

/* Navbar */
.navbar {
  padding: 15px 0;
  background-color: var(--lighter) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--font-xl);
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 10px 15px;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-fast);
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link:hover::after {
  width: 50%;
}

.navbar-light .navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-light .navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
  z-index: 0;
}

.hero-section h1 {
  font-size: var(--font-hero);
  color: var(--lighter);
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section p {
  color: var(--lighter);
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-xl);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

/* Services Section */
.services-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
}

.service-card {
  position: relative;
  z-index: 1;
}

/* Methodology Section */
.methodology-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--lighter);
  position: relative;
}

.methodology-image {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: var(--spacing-lg);
}

.methodology-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--primary-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
  padding: 0 0 var(--spacing-md) 0;
}

.timeline-content h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

/* Community Section */
.community-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gradient);
  position: relative;
  overflow: hidden;
}

.success-story-card {
  overflow: hidden;
}

.client-info {
  font-style: italic;
  color: var(--mid-gray);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-sm);
}

.results {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
}

.result-item {
  text-align: center;
  padding: var(--spacing-sm);
  flex: 1;
  min-width: 100px;
}

.result-value {
  display: block;
  font-size: var(--font-xl);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.result-label {
  display: block;
  font-size: var(--font-xs);
  color: var(--mid-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Resources Section */
.resources-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--lighter);
  position: relative;
}

.resource-card .card-image {
  height: 200px;
}

.resource-card .card-image img {
  height: 100%;
  object-fit: cover;
}

.resource-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Sustainability Section */
.sustainability-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gradient);
  position: relative;
}

.sustainability-image {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: var(--spacing-lg);
}

.sustainability-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sustainability-principles {
  margin-top: var(--spacing-lg);
}

.principle-item {
  margin-bottom: var(--spacing-lg);
}

.principle-item h4 {
  font-size: var(--font-lg);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: var(--spacing-md);
}

.principle-item h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--primary-gradient);
  border-radius: 50%;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--lighter);
  position: relative;
}

.contact-info {
  margin-bottom: var(--spacing-lg);
}

.contact-form {
  background: var(--light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.contact-item {
  margin-bottom: var(--spacing-md);
}

.contact-item h4 {
  font-size: var(--font-lg);
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
}

.contact-item h4 i {
  margin-right: var(--spacing-sm);
}

.contact-item p {
  margin-left: 24px;
}

/* Footer */
.footer-section {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: var(--dark-gradient);
  color: var(--lighter);
  position: relative;
}

.footer-section h4 {
  color: var(--lighter);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
  color: var(--lighter);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-links a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-small);
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-section .list-unstyled li {
  margin-bottom: var(--spacing-sm);
}

.newsletter-form .input-group {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.newsletter-form .form-control {
  background: transparent;
  border: none;
  color: var(--lighter);
  padding: 15px 20px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  padding: 0 20px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px;
  z-index: 9999;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0 15px 0 0;
  flex: 1;
}

#acceptCookies {
  background: var(--primary-gradient);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-small);
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: var(--radius-large);
  overflow: hidden;
}

.modal-header {
  background: var(--primary-gradient);
  color: var(--lighter);
  border: none;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.modal-header .btn-close {
  color: var(--lighter);
  opacity: 1;
}

/* Read More Links */
.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--font-sm);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.read-more::after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
  background: var(--light-gradient);
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-xl);
  background: var(--lighter);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--lighter);
  padding: var(--spacing-xl);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

/* Parallax Effects */
.parallax-section {
  background-attachment: fixed;
}

.parallax-element {
  transition: transform var(--transition-medium);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Styles */
@media (max-width: 1199px) {
  :root {
    --font-hero: 2.5rem;
    --font-xxl: 1.8rem;
  }
}

@media (max-width: 991px) {
  :root {
    --font-hero: 2.2rem;
    --font-xxl: 1.6rem;
    --font-xl: 1.3rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline-marker {
    left: -28px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-info, .contact-form {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  :root {
    --font-hero: 2rem;
    --font-xxl: 1.5rem;
    --font-xl: 1.2rem;
    --font-lg: 1.1rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-section p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .results {
    flex-direction: column;
  }
  
  .result-item {
    margin-bottom: var(--spacing-sm);
  }
  
  .sustainability-image, .methodology-image {
    margin-bottom: var(--spacing-lg);
  }
  
  .social-links {
    justify-content: center;
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 575px) {
  :root {
    --spacing-xl: 30px;
    --spacing-lg: 20px;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-section h4 {
    margin-top: var(--spacing-lg);
  }
}