@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Logo Colors */
  --primary: #2B5893;
  --primary-light: #3CA5D6;
  --primary-dark: #1E4170;
  --secondary: #8CC63F;
  --secondary-dark: #70A030;
  
  /* UI Colors */
  --text-main: #333333;
  --text-light: #666666;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 240px;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(43, 88, 147, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header {
  margin-bottom: 4rem;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(140, 198, 63, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(140, 198, 63, 0.6);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  height: 160px;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 220px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 140px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--primary);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: var(--primary-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: var(--white);
  animation: fadeUp 1s ease-out;
}

.hero-subtitle {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Features/About Section */
.about {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: var(--transition);
}

.about-image:hover {
  transform: translateY(-10px);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top right, rgba(43, 88, 147, 0.4), transparent);
  z-index: 1;
}

.about-text h2 {
  text-align: left;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(140, 198, 63, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Services Section */
.services {
  background-color: var(--bg-light);
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-content {
  padding: 2rem;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 1rem;
}

.service-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* Contact/CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Footer */
.footer {
  background-color: #112233;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem 0;
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 200px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
  /* Add a subtle white background rounded glow if the logo is dark text on dark footer */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 8px;
}

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

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

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

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

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Antrag Form Styles */
.antrag-section {
  background-color: var(--white);
}

.antrag-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.antrag-form fieldset {
  border: 1px solid rgba(43, 88, 147, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--white);
}

.antrag-form legend {
  font-weight: 600;
  color: var(--primary);
  padding: 0 10px;
  background: var(--white);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.consent-box {
  background-color: rgba(43, 88, 147, 0.05) !important;
  border-color: var(--primary-light) !important;
}

/* --- FUNNEL REDESIGN STYLES --- */
.bg-primary-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}
.bg-primary-dark h2, .bg-primary-dark h3, .bg-primary-dark h4 {
  color: var(--white);
}

/* Problem & Lösung */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.problem-box, .solution-box {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}
.problem-box:hover, .solution-box:hover {
  transform: translateY(-5px);
}
.problem-box {
  border-top: 5px solid #e74c3c;
}
.solution-box {
  border-top: 5px solid var(--secondary);
}
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}
.problem-icon {
  background: #e74c3c;
}
.solution-icon {
  background: var(--secondary);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.step-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 10px rgba(60,165,214,0.3);
}

/* Trust Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.trust-item {
  padding: 1rem;
}
.trust-item i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.stars {
  color: #f1c40f;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

/* Products Container */
.products-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.products-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.product-list {
  list-style: none;
  margin-top: 1.5rem;
}
.product-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
}
.product-list li i {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.5s; }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: -100px;
  right: 30px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(140, 198, 63, 0.5);
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.3s;
  z-index: 999;
}
.sticky-cta:hover {
  transform: scale(1.05);
  color: var(--white);
}
.sticky-cta.visible {
  bottom: 30px;
}

/* Helper */
.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --header-height: 120px;
  }
  .logo img {
    height: 90px;
  }
  .header.scrolled .logo img {
    height: 70px;
  }
  .header.scrolled {
    height: 90px;
  }
  .about-grid, .problem-solution-grid, .products-container {
    grid-template-columns: 1fr;
  }
  .about-image, .products-image {
    order: -1;
  }
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 120px;
  }
  .logo img {
    height: 95px;
  }
  .header.scrolled .logo img {
    height: 75px;
  }
  .header.scrolled {
    height: 90px;
  }
  .section {
    padding: 3rem 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .antrag-form {
    padding: 1.5rem;
  }
  
  .antrag-form fieldset {
    padding: 1rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .footer-logo {
    height: auto;
    max-height: 120px;
  }
}
