/* 
 * domain.com Stylesheet
 * Responsive, Mobile-First Design mit CSS-Animationen
 */

/* ---------- VARIABLEN ---------- */
:root {
  /* Farbpalette */
  --color-primary: #1A2A40;     /* Deep Midnight Blue */
  --color-secondary: #FF6F3C;   /* Electric Tangerine */
  --color-background: #F8F4EE;  /* Pale Sandstone */
  --color-accent1: #4FD1C5;     /* Aqua Cyan */
  --color-accent2: #E6399B;     /* Magenta Pulse */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-gray-light: #F5F5F5;
  --color-gray: #DDDDDD;
  
  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Container-Breiten */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  
  /* Typografie */
  --font-size-base: clamp(16px, 2vw, 20px);
  --line-height-base: 1.5;
  --font-family-base: 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- RESET & BASIS ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

/* Исправление позиционирования якорей */
section {
  scroll-margin-top: 80px; /* Высота шапки + отступ */
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- CONTAINER & LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-text,
.col-image,
.col-info,
.col-form {
  width: 100%;
  padding: 0 15px;
}

/* Desktop-Layout */
@media (min-width: 768px) {
  .col-text,
  .col-image,
  .col-info,
  .col-form {
    width: 50%;
  }
}

.text-center {
  text-align: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.8em;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent2));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 111, 60, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 7px 20px rgba(255, 111, 60, 0.4);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(26, 42, 64, 0.2);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  box-shadow: 0 7px 20px rgba(26, 42, 64, 0.4);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-small {
  padding: 0.5em 1.2em;
  font-size: 0.9rem;
}

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
  background-color: var(--color-white);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo a {
  color: var(--color-primary);
  position: relative;
}

.logo a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: block;
}

.mobile-toggle a {
  color: var(--color-primary);
  font-weight: 700;
}

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 110;
  transition: right 0.3s ease;
  display: flex;
  align-items: center;
}

.main-nav.active {
  right: 0;
}

.main-nav ul {
  list-style: none;
  width: 100%;
  padding: var(--space-lg);
}

.main-nav ul li {
  margin-bottom: var(--space-sm);
}

.main-nav ul li a {
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 600;
}

.main-nav ul li a:hover {
  color: var(--color-secondary);
}

.nav-cta {
  background-color: var(--color-secondary);
  padding: 0.5em 1.2em;
  border-radius: 50px;
  color: var(--color-white) !important;
}

.nav-cta:hover {
  background-color: var(--color-accent2);
  color: var(--color-white) !important;
}

/* Desktop-Navigation */
@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
  
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
  }
  
  .main-nav ul {
    display: flex;
    align-items: center;
    padding: 0;
  }
  
  .main-nav ul li {
    margin: 0 0 0 var(--space-md);
  }
  
  .main-nav ul li a {
    color: var(--color-primary);
    font-size: 1rem;
  }
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent1));
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-section h1,
.hero-section h2 {
  color: var(--color-white);
}

.hero-section h2 {
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

/* ---------- ABOUT SECTION ---------- */
.about-section .row {
  align-items: center;
}

.about-section img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-section img:hover {
  transform: scale(1.02);
}

.smaller-image {
  max-width: 380px;
  margin: 0 auto;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
  background-color: var(--color-gray-light);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-image {
  margin-bottom: var(--space-sm);
}

.larger-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto;
  border: none;
  padding: 0;
}

/* ---------- BENEFITS SECTION ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.benefit-item {
  text-align: center;
}

.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
  margin: 0 auto var(--space-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  color: var(--color-white);
  font-size: 2rem;
  font-style: normal;
}

.icon-box::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
  top: 0;
  left: -100%;
  transition: left 0.5s ease;
}

.benefit-item:hover .icon-box::after {
  left: 100%;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.testimonials-section h2 {
  color: var(--color-white);
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 200px;
}

.testimonial-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.testimonial-slide.active {
  opacity: 1;
  z-index: 2;
}

.testimonial-slide blockquote {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.testimonial-slide cite {
  font-style: normal;
  color: var(--color-accent1);
  font-weight: 600;
}

.carousel-dots {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--color-white);
}

/* ---------- PROCESS SECTION ---------- */
.timeline-container {
  margin: var(--space-lg) 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.timeline-item {
  position: relative;
  padding: var(--space-sm);
  text-align: center;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-number {
  width: 40px;
  height: 40px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto var(--space-sm);
  position: relative;
  z-index: 2;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent1));
  color: var(--color-white);
  text-align: center;
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  border-radius: 50%;
}

.cta-section h2,
.cta-section p {
  color: var(--color-white);
  position: relative;
  z-index: 2;
}

.cta-section .btn {
  margin-top: var(--space-md);
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  background-color: var(--color-white);
}

.small-map {
  margin-top: var(--space-md);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.small-map img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---------- FORM STYLES ---------- */
.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-gray);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--color-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent1);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2);
}

.fixed-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

.order-form h3 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: var(--space-lg);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-accent2);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links li a {
  color: var(--color-gray);
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: var(--color-accent1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: var(--space-md) 0;
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-banner.active {
  bottom: 0;
}

.cookie-banner.hiding {
  bottom: -200px;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  color: #000000;
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-box {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--color-gray);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Anwenden der Animationen */
.hero-section h1 {
  animation: slideInUp 1s ease forwards;
}

.hero-section h2 {
  animation: slideInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-section .btn {
  animation: slideInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.service-card:hover {
  animation: pulse 1s infinite;
}

/* ---------- RESPONSIVE ANPASSUNGEN ---------- */
@media (max-width: 768px) {
  section {
    padding: var(--space-md) 0;
  }
  
  .container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  .timeline-container {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-item {
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .timeline-number {
    position: relative;
    margin: 0 auto var(--space-sm);
  }
  
  .cookie-banner .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .testimonials-carousel {
    min-height: 300px;
  }
  
  .thank-you-box {
    margin: 0 15px;
    width: calc(100% - 30px);
  }
}