/* Finanzprüfung "domain" - Hauptstilblatt
   Erstellt für domain.com
   Responsive Design mit CSS Flexbox und Grid */

/* --- Grundlegende Einstellungen --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --color-primary: #0E3A53;    /* Deep Aurora Blue */
  --color-accent: #FFD447;     /* Solar Citrine */
  --color-secondary: #6B1F54;  /* Velvet Plum */
  --color-background: #E4EAE6; /* Alpine Mist */
  --color-text: #1E1E1E;       /* Graphite Black */
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-background);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section h2, .section > .container > p {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #5a1a47;
}

/* --- Header --- */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Fix for anchor links to account for fixed header */
:target {
  scroll-margin-top: 100px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop li {
  margin-left: 1.5rem;
}

.nav-desktop a {
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- About Section --- */
.about {
  background-color: var(--color-background);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-icons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 3rem;
}

.about-icon {
  text-align: center;
  transition: var(--transition);
}

.about-icon:hover {
  transform: translateY(-10px);
}

.about-icon i {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

/* --- Services Section --- */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--color-background);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* --- Why Choose Us Section --- */
.why-us {
  background-color: var(--color-background);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit {
  background-color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.benefit:hover::before {
  width: 100%;
  opacity: 0.1;
}

/* --- Process Section --- */
.process {
  background-color: white;
}

.timeline {
  margin-top: 3rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--color-secondary);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  width: 80%;
  background-color: var(--color-background);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border-radius: 50%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* --- Testimonial Section --- */
.testimonials {
  background-color: var(--color-background);
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease;
  margin-top: 2rem;
}

.testimonial {
  min-width: 100%;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 1rem;
}

@keyframes testimonialSlide {
  0%, 100% { transform: translateX(0); }
  33.33% { transform: translateX(-100%); }
  66.66% { transform: translateX(-200%); }
}

.testimonial-slider {
  animation: testimonialSlide 20s infinite;
}

.testimonial-slider:hover {
  animation-play-state: paused;
}

/* --- CTA Section --- */
.cta {
  background-color: var(--color-accent);
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.cta .btn {
  background-color: var(--color-primary);
  color: white;
}

.cta .btn:hover {
  background-color: var(--color-secondary);
}

/* --- Form Section --- */
.contact-form {
  background-color: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  background-color: rgba(228, 234, 230, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(14, 58, 83, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.2);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  margin-right: 0.5rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-text);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bbb;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #bbb;
}

/* --- Policy Pages --- */
.policy-content {
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--color-secondary);
  max-width: 900px;
  margin: 100px auto 0;
}

.policy-content h2 {
  color: var(--color-secondary);
  margin-top: 2rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.back-link:before {
  content: '←';
  margin-right: 0.5rem;
}

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-text);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  margin-right: 1rem;
  font-size: 0.875rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

/* --- Mobile Navigation --- */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 0;
  background-color: white;
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  height: auto;
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 80px;
  }
  
  .timeline-dot {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    padding: 7rem 0 5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .about-icons {
    flex-direction: column;
    gap: 1.5rem;
  }
}
