/* 
  main.css - German Accounting Services Website
  Color Palette:
  - Primary: Sapphire Blue (#1F4E79)
  - Secondary: Golden Sand (#FFD36E)
  - Accent: Coral Sunset (#FF6F5B)
  - Background: Porcelain White (#F9F9F6)
  - Text: Slate Charcoal (#2B2B2B)
  - Highlight: Mint Frost (#9BE7C4)
*/

/* ========== BASE STYLES ========== */
:root {
  --primary: #1F4E79;
  --secondary: #FFD36E;
  --accent: #FF6F5B;
  --background: #F9F9F6;
  --text: #2B2B2B;
  --highlight: #9BE7C4;
  --white: #FFFFFF;
  --light-gray: #EEEEEE;
  --medium-gray: #999999;
  --dark-gray: #555555;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px = 1rem for easy calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 2rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

/* Section dividers with rounded edges */
.section-divider {
  position: relative;
  height: 8rem;
  overflow: hidden;
  margin-top: -4rem;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10rem;
  background-color: var(--white);
  border-radius: 50% 50% 0 0;
}

.section-divider.alt::before {
  background-color: var(--light-gray);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.button:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button.secondary {
  background-color: var(--secondary);
  color: var(--text);
}

.button.secondary:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Logo */
.logo {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.1rem;
  color: var(--secondary);
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 2rem 0;
  box-shadow: var(--shadow);
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  flex: 0 0 auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.main-nav li {
  margin-left: 3rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav .active a::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
}

/* ========== MOBILE NAVIGATION ========== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
  }

  .menu-toggle-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 2rem;
    width: 3rem;
    background: transparent;
    border: none;
    padding: 0;
  }

  .menu-toggle-button .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
  }

  .main-nav {
    position: fixed;
    top: 8rem;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    height: auto;
    padding: 2rem 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav li a {
    display: block;
    padding: 1.5rem;
  }
}

/* General utility classes */
.text-center {
  text-align: center;
}

.extra-top-padding {
  padding-top: 15rem !important;
}

/* ========== HERO SECTION ========== */
.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -5%;
  left: 0;
  right: 0;
  height: 10rem;
  background-color: var(--white);
  border-radius: 50% 50% 0 0;
}

.hero-content {
  max-width: 60rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 4.8rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  animation: fadeInUp 1.2s ease;
}

.hero .button {
  animation: fadeInUp 1.4s ease;
}

.hero-button {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--primary);
  font-weight: 700;
  padding: 1.5rem 3rem;
  border-radius: 3rem;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 10rem 0;
}

.section-header {
  margin-bottom: 5rem;
}

.section-underline {
  width: 6rem;
  height: 3px;
  background-color: var(--accent);
  margin: 0 auto;
  margin-top: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.smaller-image {
  width: 85%;
  height: auto;
  margin-top: 2rem;
}

/* ========== SERVICES SECTION ========== */
.services {
  background-color: var(--light-gray);
  padding: 10rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 6rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
  width: 100%;
  height: 20rem;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 3rem;
}

.service-card h3 {
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* ========== WHY CHOOSE US SECTION ========== */
.why-us {
  padding: 10rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* ========== STATS SECTION ========== */
.stats {
  background-color: var(--primary);
  color: var(--white);
  padding: 8rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: attr(data-target);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--secondary);
}

.stat-text {
  font-size: 1.8rem;
  color: var(--white);
  opacity: 0.9;
}

/* CSS Counter Animation */
.stat-number {
  counter-reset: count 0;
  animation: count-up 3s forwards;
}

@keyframes count-up {
  to {
    counter-increment: count attr(data-target);
    content: counter(count);
  }
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
  padding: 10rem 0;
  background-color: var(--background);
  overflow: hidden;
}

.testimonials-slider {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  height: 35rem;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-slide:nth-child(1) {
  animation: slide1 15s infinite;
}

.testimonial-slide:nth-child(2) {
  animation: slide2 15s infinite;
}

.testimonial-slide:nth-child(3) {
  animation: slide3 15s infinite;
}

@keyframes slide1 {
  0%, 100% { opacity: 1; z-index: 3; }
  33.3% { opacity: 0; z-index: 0; }
  66.6% { opacity: 0; z-index: 0; }
}

@keyframes slide2 {
  0%, 100% { opacity: 0; z-index: 0; }
  33.3% { opacity: 1; z-index: 3; }
  66.6% { opacity: 0; z-index: 0; }
}

@keyframes slide3 {
  0%, 100% { opacity: 0; z-index: 0; }
  33.3% { opacity: 0; z-index: 0; }
  66.6% { opacity: 1; z-index: 3; }
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-role {
  color: var(--medium-gray);
  font-size: 1.4rem;
}

/* ========== FORM SECTION ========== */
.order-form-section {
  padding: 10rem 0;
  background-color: var(--light-gray);
}

.form-container {
  max-width: 60rem;
  margin: 0 auto;
  background-color: var(--white);
  padding: 4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  font-size: 1.6rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232B2B2B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
}

.checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 1rem;
  margin-top: 0.4rem;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ========== FAQ SECTION ========== */
.faq {
  padding: 10rem 0;
}

.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  background-color: var(--white);
  padding: 2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 2.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-question.active::after {
  content: "−";
}

.faq-answer {
  background-color: var(--light-gray);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer-inner {
  padding: 2rem;
}

.faq-question.active + .faq-answer {
  max-height: 50rem;
  padding: 2rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-info .logo {
  margin-bottom: 2rem;
}

.footer-info p {
  opacity: 0.9;
  font-size: 1.4rem;
}

.footer-contact ul,
.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
}

.footer-contact li,
.footer-links li,
.footer-services li {
  margin-bottom: 1rem;
}

.footer-links a,
.footer-services a {
  color: var(--white);
  opacity: 0.9;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 1.4rem;
  opacity: 0.8;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner p {
  margin-bottom: 0;
  margin-right: 2rem;
}

#cookie-accept {
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

#cookie-accept:hover {
  background-color: var(--accent);
}

/* ========== POLICY PAGES ========== */
.policy-section {
  padding-top: 12rem;
}

.policy-container {
  max-width: 80rem;
  margin: 0 auto;
  background-color: var(--white);
  padding: 4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-content h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.policy-content p, 
.policy-content ul, 
.policy-content ol {
  margin-bottom: 1.5rem;
}

.policy-content ul li, 
.policy-content ol li {
  margin-bottom: 0.8rem;
}

.policy-update {
  margin-top: 4rem;
  font-style: italic;
  color: var(--medium-gray);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.cookie-table th, 
.cookie-table td {
  padding: 1rem;
  border: 1px solid var(--light-gray);
  text-align: left;
}

.cookie-table th {
  background-color: var(--light-gray);
  font-weight: 600;
}

/* Thank You Page */
.thank-you-content {
  margin-top: 3rem;
}

.thank-you-cta {
  margin-top: 4rem;
  text-align: center;
}

/* Form Errors */
.form-errors {
  background-color: rgba(255, 111, 91, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
}

.form-errors ul {
  margin-bottom: 0;
  padding-left: 2rem;
}

.form-errors li {
  color: var(--accent);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  html {
    font-size: 58%;
  }
}

@media (max-width: 992px) {
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 3rem;
  }
  
  .policy-container {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 56%;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .policy-container {
    padding: 2.5rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 54%;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .form-container {
    padding: 2.5rem;
  }
  
  .policy-container {
    padding: 2rem;
  }
}
