/* 
 * Main stylesheet for domain - German accounting services
 * Colors:
 * Background: #FAF3E0
 * Accents: #FF5F7E, #6A0572
 * Buttons: #FF9A8B (gradient #FF6A88 -> #FF99AC)
 * Text: #2E2E2E
 * Elements: #F2E9E4
 */

/* Base styles */
:root {
  --background: #faf3e0;
  --accent1: #ff5f7e;
  --accent2: #6a0572;
  --button-light: #ff99ac;
  --button-dark: #ff6a88;
  --text: #2e2e2e;
  --element: #f2e9e4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 4rem 0;
  scroll-margin-top: 40px;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  color: var(--accent1);
}

img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(
    to right,
    var(--button-dark),
    var(--button-light)
  );
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: white;
}

/* Header */
header {
  background-color: rgba(250, 243, 224, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent2);
}

/* Mobile menu using checkbox hack */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

/* Hero section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About section */
.about {
  background-color: var(--element);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
  flex: 1;
}

/* Advantages section */
.advantages {
  background-color: var(--element);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-item {
  padding: 1.5rem;
  border-left: 4px solid var(--accent1);
}

/* Testimonials section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
  font-weight: bold;
  margin-top: 1rem;
  color: var(--accent2);
}

/* FAQ section */
.faq {
  background-color: var(--element);
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  background-color: white;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.faq-checkbox:checked ~ .faq-question::after {
  content: "-";
}

/* Steps section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.step-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    to right,
    var(--button-dark),
    var(--button-light)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Form section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.checkbox-group {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: var(--accent2);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
}

.footer-links a:hover {
  color: var(--accent1);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Thank you page */
.thank-you {
  margin: 8rem auto 5rem;
  max-width: 600px;
  border: 1px solid var(--accent1);
  padding: 3rem;
  text-align: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Policy pages */
.policy-container {
  background-color: white;
  padding: 3rem;
  margin: 3rem auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  margin-bottom: 2rem;
  color: var(--accent2);
}

.policy-container h2 {
  margin: 1.5rem 0 1rem;
  color: var(--accent1);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  max-width: 90%;
  width: 400px;
  display: none;
}

.cookie-popup.active {
  display: block;
}

.cookie-popup p {
  margin-bottom: 1rem;
}

.cookie-popup .btn {
  margin-right: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    font-size: 1.5rem;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--background);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
  }

  .menu-toggle:checked ~ .nav-menu {
    max-height: 410px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 3rem 0;
  }

  .contact-form {
    padding: 2rem;
  }
}
