/* --- General Styling & Variables --- */
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* New palette */
  --color-1: #edeae5; /* lightest */
  --color-2: #dad3c7;
  --color-3: #afb5a3;
  --color-4: #9d9488;
  --color-5: #66716c;
  --color-6: #4b4d4c; /* darkest */

  /* Semantic tokens */
  --primary-color: var(--color-5);
  --secondary-color: var(--color-4);
  --accent-color: var(--color-3);
  --text-color: var(--color-6);
  --heading-color: var(--color-6);
  --bg-color: var(--color-1);
  --light-gray: var(--color-2);
  --border-color: var(--color-2);
  --header-height: 70px;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  overflow: hidden;
}

.bg-light-gray {
  background-color: var(--light-gray);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}
.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* --- Navigation --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: var(--header-height);
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo svg {
  height: 35px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- Side Navigation --- */
.side-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-color);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
}

.side-nav.open {
  right: 0;
}

.side-nav-links a {
  display: block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.side-nav-links a:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* --- Main Content --- */
main {
  margin-top: var(--header-height);
}

/* --- Hero Section --- */
.hero {
  /* background: url('img/Home_Banner-Mobile.png') no-repeat center center/cover; */
  display: flex;
  align-items: center;
  text-align: left;
  min-height: 80vh;
  padding: 4rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-content {
  max-width: 50%;
  flex-shrink: 0;
}
.hero-content h1 {
  font-size: 3.5rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin: 1.5rem 0 2.5rem 0;
}

.hero-images {
  position: relative;
  flex-grow: 1;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideAnimation 9s infinite ease-in-out;
}

.hero-slide:nth-child(2) {
  animation-delay: 3s;
}

.hero-slide:nth-child(3) {
  animation-delay: 6s;
}

@keyframes slideAnimation {
  0% {
    opacity: 0;
    transform: scale(1.05) translateX(20px);
  }
  11% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  33% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  44% {
    opacity: 0;
    transform: scale(1.05) translateX(-20px);
  }
  100% {
    opacity: 0;
  }
}

/* --- Grid Layout --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-item-image img {
  width: 100%;
  border-radius: 12px;
}
.grid-item-text ul {
  list-style: none;
  padding: 0;
}
.grid-item-text ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.grid-item-text ul li i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
}

/* --- Angebote Section --- */
.angebote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.angebot-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.angebot-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.angebot-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}
.angebot-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--heading-color);
  margin: 1rem 0;
}
.angebot-card ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
}
.angebot-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.angebot-card ul li i {
  color: var(--accent-color);
  margin-top: 5px;
}

/* --- Timeline (Ablauf) --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 3rem auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--primary-color);
  opacity: 0.2;
  top: 0;
  bottom: 0;
  left: 25px;
}
.timeline-item {
  padding: 1rem 0 2rem 70px;
  position: relative;
}
.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 3px solid var(--primary-color);
  left: 0;
  top: 15px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* --- Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.testimonial {
  background: var(--light-gray);
  padding: 2rem;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: var(--heading-color);
}

.testimonial-text .full-text {
  display: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-answer p {
  padding: 0 0 1.5rem;
  margin: 0;
}

/* Inline accordion variant inside #birkman */
#birkman .birkman-inline {
  margin-top: 1.5rem;
}
#birkman .birkman-inline .faq-item {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.06);
}
#birkman .birkman-inline .faq-question {
  color: #ffffff;
  padding: 1rem 0;
}
#birkman .birkman-inline .faq-answer {
  color: #ffffff;
}
#birkman .birkman-inline h5 {
  color: var(--color-2);
  margin: 1rem 0 0.5rem;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--color-6);
  color: white;
  position: relative;
}

/* Keep headings and buttons styles */
.cta-section h2 {
  color: white;
}
.cta-section .btn-primary {
  background-color: var(--accent-color);
  color: white;
}
.cta-section .btn-primary:hover {
  background-color: var(--primary-color);
}

/* --- Über Mich --- */
.profile-pic {
  border-radius: 50%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

/* --- Footer --- */
.footer {
  background-color: var(--heading-color);
  color: #e0e0e0;
  padding: 4rem 0 2rem 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.footer .logo svg {
  height: 40px;
}
.footer .logo path {
  fill: white;
}
.footer .impressum p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/* --- Responsive Design --- */
@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    gap: 1rem;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-item-text.order-last {
    order: 1;
  }
  .angebote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .hero .container {
    flex-direction: column;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-images {
    width: 100%;
    height: 300px;
    margin-top: 2rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
  .grid-item-image {
    order: -1;
  }
}

@media (max-width: 767px) {
  .timeline::after {
    left: 25px;
  }
  .timeline-item {
    /* width: 100%; */
    left: 0;
    padding-left: 70px;
  }
  .timeline-icon {
    left: 0;
  }
}

/* --- Custom Section Colors --- */
#birkman {
  background-color: var(--color-5);
}

#birkman h2 {
  color: var(--color-2);
}

#birkman h4,
#birkman p,
#birkman li {
  color: #ffffff;
}

#birkman .grid-item-text ul li i {
  color: var(--accent-color);
}

#angebote {
  background-color: #e9e6df;
}

#angebote h2 {
  color: var(--heading-color);
}

#angebote .angebot-card {
  background-color: #f5f2ec;
  color: var(--text-color);
  border-color: #d9d2c6;
}

#angebote .angebot-card h3,
#angebote .angebot-card .price {
  color: var(--heading-color);
}

#angebote .angebot-card p {
  color: var(--text-color);
}

.angebot-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d9d2c6;
  text-align: left;
}

.angebot-details p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Mobile Overflow Fixes for Timeline --- */
.timeline-content {
  overflow-wrap: anywhere;
  word-break: keep-all;
  min-width: 0;
}

@media (max-width: 767px) {
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    padding-left: 60px;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    top: 10px;
  }
}

/* --- Correct Root Variables (fallback if older block had typo) --- */
:root {
  --color-1: #edeae5;
  --color-2: #dad3c7;
  --color-3: #afb5a3;
  --color-4: #9d9488;
  --color-5: #66716c;
  --color-6: #4b4d4c;

  --primary-color: var(--color-5);
  --secondary-color: var(--color-4);
  --accent-color: var(--color-3);
  --text-color: var(--color-6);
  --heading-color: var(--color-6);
  --bg-color: var(--color-1);
  --light-gray: var(--color-2);
  --border-color: var(--color-2);
  --header-height: 70px;
}
