/* 
* Domain - Buchhaltungsdienstleistungen
* Main Stylesheet
*/

:root {
  --deep-navy: #1a1f36;
  --bright-yellow: #ffd93d;
  --light-gray: #f4f4f4;
  --coral: #ff6b6b;
  --text-color: #333;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --container-width: 1200px;
  --section-spacing: 5rem;
  --border-radius: 8px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--deep-navy);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--bright-yellow);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--deep-navy);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--coral);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--section-spacing) 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--bright-yellow);
  color: var(--deep-navy);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--deep-navy);
  color: var(--bright-yellow);
}

.text-center {
  text-align: center;
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px 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;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--deep-navy);
}

.logo svg {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#mobile-menu-checkbox {
  display: none;
}

/* Hero Section */
.hero {
  background-color: var(--deep-navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 09, 09, 0.8);
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Grid layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Card styles */
.card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--bright-yellow);
  margin-bottom: 1rem;
}

/* Form styles */
.form-container {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

/* FAQ accordion */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

.faq-question {
  padding: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked + .faq-question:after {
  content: "-";
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* Footer styles */
footer {
  background-color: var(--deep-navy);
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--light-gray);
}

.footer-links ul li a:hover {
  color: var(--bright-yellow);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact info */
.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.contact-info i {
  margin-right: 10px;
  color: var(--bright-yellow);
}

/* Map */
.map-container {
  height: 400px;
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--deep-navy);
  color: #fff;
  padding: 1rem;
  z-index: 1010;
  display: none;
}

.cookie-popup.show {
  display: block;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  padding-right: 1rem;
}

.cookie-buttons {
  display: flex;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
}

.cookie-accept {
  background-color: var(--bright-yellow);
  color: var(--deep-navy);
}

.cookie-decline {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

/* Policy pages */
.policy-container {
  max-width: 800px;
  margin: 8rem auto 5rem;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

/* Thank you page */
.thank-you {
  text-align: center;
  max-width: 600px;
  margin: 8rem auto 5rem;
  padding: 3rem 2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

/* Mobile menu */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    order: 2;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  #mobile-menu-checkbox:checked ~ nav ul {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .cookie-content {
    flex-direction: column;
  }

  .cookie-text {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}
