/* ========================================
   Engelssauber — Custom Styles
   ======================================== */

/* Fonts — lokal gehostet (DSGVO-konform) */
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa.woff2') format('woff2'),
       url('../fonts/Comfortaa.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #0690F5;
  --blue-dark: #0570C0;
  --navy: #2C3E6B;
  --black: #000000;
  --white: #FFFFFF;
  --light-blue: #E8F4FD;
  --light-gray: #f5f5f5;
  --green: #22c55e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Comfortaa', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Comfortaa', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ========================================
   Header — Glassmorphism
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header .logo-img {
  height: 160px;
  width: auto;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav Links */
.nav-link {
  position: relative;
  color: var(--black);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: var(--light-blue);
  color: var(--blue);
}

/* ========================================
   CTA Button
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 144, 245, 0.3);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 144, 245, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 144, 245, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--white);
}

.section-gray {
  background: var(--light-gray);
}

.section-blue {
  background: var(--light-blue);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--black);
}

.section-subtitle {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(6, 144, 245, 0.15);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: gap 0.3s;
}

.service-card:hover .service-card-link {
  gap: 0.65rem;
}

/* ========================================
   USP Section
   ======================================== */
.usp-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(6, 144, 245, 0.1);
}

.usp-icon {
  width: 64px;
  height: 64px;
  background: var(--light-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--blue);
}

.usp-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.usp-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ========================================
   Stats / Counter
   ======================================== */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #777;
}

/* ========================================
   FAQ
   ======================================== */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #0d1117;
  color: #ccc;
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ========================================
   Floating CTA (Mobile)
   ======================================== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.floating-cta.visible {
  display: block;
}

.floating-cta .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1rem;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  padding: 2rem;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a:hover {
  color: var(--blue);
}

/* ========================================
   Animations
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

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

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ========================================
   Container
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Grid
   ======================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4-steps { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 100px 0 3rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4-steps { grid-template-columns: 1fr !important; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2.25rem; }
  .desktop-nav { display: none !important; }
  .burger-btn { display: flex !important; }
  .header .btn-primary { display: none !important; }
  .hero-image { margin-top: 2rem; }
  .header .logo-img { height: 60px; }
  .hero-title { font-size: 1.85rem !important; line-height: 1.2 !important; }
  .hero p { font-size: 1rem !important; }
  .hero .btn-primary, .hero .btn-secondary { width: 100%; justify-content: center; font-size: 0.95rem; padding: 0.85rem 1.5rem; }
  .trust-bar { padding: 1rem 0; }
  .trust-item { font-size: 0.85rem; gap: 0.5rem; }
  .trust-icon { width: 22px; height: 22px; }
  .section-subtitle { font-size: 1rem; }
  .usp-card { padding: 1.5rem 1rem; }
  .testimonial-card { padding: 1.5rem; }
  .cta-section h2 { font-size: 1.75rem !important; }
  .footer .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-5 { grid-template-columns: 1fr; }
  .header .logo-img { height: 60px; }
  .hero h1 { font-size: 1.75rem !important; }
  .trust-bar .container > div { gap: 1.5rem !important; }
  .trust-item { font-size: 0.8rem; }
  .footer .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================
   Formular
   ======================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Comfortaa', 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(6, 144, 245, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
