/* 
 * Styles for domain website
 * Financial audit company in Germany
 */

/* ===== Base Styles ===== */
:root {
  --color-primary: #3e518d;
  --color-secondary: #98c1d9;
  --color-accent: #c0ff33;
  --color-dark: #2a2e35;
  --color-light: #ffffff;
  --font-primary: "IBM Plex Sans", sans-serif;
  --font-secondary: "Lato", sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

section {
  word-break: break-word;
  overflow-wrap: break-word;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-dark);
  background: linear-gradient(
      135deg,
      var(--color-primary) 0%,
      var(--color-secondary) 100%
    )
    fixed;
  min-height: 100vh;
  padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(
    90deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-header h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--color-dark);
  opacity: 0.8;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ===== Clean Header & Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 0 0 2rem;
}

.main-nav a {
  color: var(--color-dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  height: 24px;
  width: 30px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--color-dark);
  height: 2px;
  width: 100%;
  position: absolute;
  transition: all 0.3s ease;
}

.nav-toggle-label span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  bottom: -8px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
  }

  :root {
    --header-height: 60px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    z-index: 2;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: white;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-toggle:checked ~ .main-nav {
    height: 100vh;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 80px 0 0;
    width: 100%;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 1.5rem 0;
    font-size: 1.2rem;
  }
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 0;
  height: 80vh;
  min-height: 500px;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 46, 53, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-light);
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--color-light);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1 1 600px;
}

.about-stats {
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: rgba(152, 193, 217, 0.1);
  box-shadow: var(--shadow);
  min-width: 150px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1rem;
  color: var(--color-dark);
  opacity: 0.8;
}

/* ===== Services Section ===== */
.services-section {
  background-color: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-content ul {
  list-style-type: none;
  margin-top: 1rem;
}

.service-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-content ul li:before {
  content: "•";
  color: var(--color-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== Advantages Section ===== */
.advantages-section {
  background-color: var(--color-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advantage-item {
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--color-primary);
  border-radius: 50%;
  color: var(--color-light);
}

.advantage-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.advantage-item p {
  color: var(--color-dark);
  opacity: 0.8;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background-color: #f9f9f9;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.testimonial {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-content {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-content blockquote {
  flex-grow: 1;
  margin: 0;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-style: italic;
  color: var(--color-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--color-primary);
}

.author-title {
  font-size: 0.9rem;
  opacity: 0.7;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-controls label {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-dark);
  opacity: 0.3;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-controls label:hover {
  opacity: 0.5;
}

/* Testimonial carousel functionality */
input[type="radio"] {
  display: none;
}

#testimonial1:checked ~ .testimonials-container .testimonial:nth-child(1),
#testimonial2:checked ~ .testimonials-container .testimonial:nth-child(2),
#testimonial3:checked ~ .testimonials-container .testimonial:nth-child(3) {
  opacity: 1;
}

#testimonial1:checked ~ .carousel-controls label:nth-child(1),
#testimonial2:checked ~ .carousel-controls label:nth-child(2),
#testimonial3:checked ~ .carousel-controls label:nth-child(3) {
  opacity: 1;
  background-color: var(--color-accent);
}

/* ===== Infographic Section ===== */
.infographic-section {
  background-color: var(--color-light);
}

.infographic {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.infographic-step {
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-light);
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.infographic-connector {
  height: 30px;
  width: 2px;
  background-color: var(--color-primary);
  margin-left: 20px;
  margin-bottom: 1rem;
}

/* ===== FAQ Section ===== */
.faq-section {
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 1.5rem;
  background-color: var(--color-light);
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(62, 81, 141, 0.05);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--color-light);
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
  background-color: rgba(62, 81, 141, 0.1);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-toggle:checked ~ .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: var(--color-light);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info,
.contact-form {
  flex: 1 1 350px;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.map-container iframe {
  border-radius: var(--border-radius);
}

.contact-form {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group select {
  background-color: var(--color-light);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%233E518D' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.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 1rem center;
}

.form-group select option {
  background-color: var(--color-light);
  color: var(--color-dark);
  padding: 10px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(62, 81, 141, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.3rem;
}

/* ===== Footer ===== */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding-top: 3rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-info {
  flex: 1 1 300px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-light);
}

.footer-links {
  flex: 1 1 200px;
}

.footer-links h4 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-links h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Legal Pages ===== */
.legal-section {
  background-color: var(--color-light);
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.legal-content h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.legal-last-updated {
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.7;
  margin-bottom: 2rem;
}

.legal-text h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-text p,
.legal-text ul,
.legal-text li {
  margin-bottom: 1rem;
}

.legal-text ul {
  padding-left: 1.5rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.cookie-table th {
  background-color: #f9f9f9;
  font-weight: 500;
}

/* ===== Thank You Page ===== */
.thankyou-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  background-color: var(--color-light);
}

.thankyou-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.thankyou-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: var(--color-primary);
  border-radius: 50%;
  color: var(--color-light);
}

.thankyou-card h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.thankyou-card p {
  margin-bottom: 1.5rem;
}

.thankyou-card .btn-primary {
  margin-top: 1rem;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: var(--transition);
  opacity: 0;
}

.cookie-popup.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content h3 {
  margin-bottom: 0.5rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
  max-width: 800px;
}

.cookie-content button {
  white-space: nowrap;
}

/* ===== Additional Responsive Styles ===== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  section {
    padding: 4rem 0;
  }

  .stat-item {
    min-width: 120px;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .site-header {
    height: 60px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero-section {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .advantages-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    width: 100%;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .thankyou-card {
    padding: 2rem 1.5rem;
  }
}
