/* ==========================
   RESET & GLOBAL STYLES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f9f9f9;
  line-height: 1.6;
}

/* Farb-Akzent (Numinux-Grün) */
:root {
  --accent-color: #18cb96;
  --secondary-color: #007bff; /* Zweitfarbe (Beispiel) */
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
a:hover {
  opacity: 0.8;
}

/* ==========================
   SCROLL PROGRESS BAR
========================== */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-color);
  z-index: 9999;
}

/* ==========================
   PRELOADER
========================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader .loader {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================
   COOKIE BANNER
========================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  max-width: 600px;
  display: flex;
  gap: 15px;
  align-items: center;
  animation: fadeInUp 0.8s ease;
}
.cookie-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
}
.cookie-banner button {
  margin-left: auto;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
}
.cookie-banner button:hover {
  background: #0da77c;
}
@keyframes fadeInUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0%);
    opacity: 1;
  }
}

/* ==========================
   HEADER & NAV
========================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
}

.logo-container {
  display: flex;
  align-items: center;
}

/* Logo oben auf 180px */
.logo {
  width: 180px;
  margin-right: 10px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav ul li a {
  font-weight: 500;
  display: inline-block;
  padding: 8px 12px;
  color: #333;
  border-radius: 4px;
}
.main-nav ul li a:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
}

/* Sticky Header beim Scrollen */
#header.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* ==========================
   HERO SECTION (Parallax)
========================== */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-1.jpg') center / cover no-repeat;
  background-attachment: fixed;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
}
/* Hero-Überschrift jetzt als h1 */
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-align: center !important;
  margin: 0 auto; 
}

.btn-cta {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.3s, box-shadow 0.3s;
  font-weight: 500;
}
.btn-cta:hover {
  background: #0da77c; /* Abgedunkelte Variante von #18cb96 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Spezieller Hover-Effekt (Glühen) */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, transparent 50%);
  transform: translateX(0) scale(0.5);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}
.btn-glow:hover::after {
  transform: translateX(200%) scale(1.5);
  opacity: 1;
}

/* Accent Highlight */
.accent {
  color: var(--accent-color);
}

/* ==========================
   MINI-CTA SECTION
========================== */
.mini-cta {
  background: var(--accent-color);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.mini-cta-content {
  max-width: 800px;
  margin: 0 auto;
}
.mini-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.mini-cta-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* ==========================
   SECTION HEADINGS
========================== */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.section-heading p {
  font-size: 1rem;
  color: #555;
}

/* ==========================
   ABOUT SECTION
========================== */
.about {
  padding-top: 100px; /* wegen fixiertem Header */
  padding-bottom: 60px;
}
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}
.facts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.fact-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 220px;
}
.fact-box i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}
.fact-box h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

/* ==========================
   SERVICES SECTION
========================== */
.services {
  padding: 60px 20px;
  background: #f5f5f5;
}
.services-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 40px;
}
.service-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.service-box:hover {
  transform: translateY(-5px);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}
.service-box h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ==========================
   TESTIMONIALS SECTION
========================== */
.portfolio {
  padding: 60px 20px;
  background: #fff;
}
.testi-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.testi-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #555;
}
.testi-author {
  font-weight: 600;
  color: var(--accent-color);
}
.swiper-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.portfolio-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color);
}
.swiper-pagination-bullet-active {
  background: var(--accent-color) !important;
}

/* ==========================
   FAQ SECTION
========================== */
.faq {
  padding: 60px 20px;
  background: #f5f5f5;
}
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: #eee;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-question:hover {
  background: #ddd;
}
.faq-question i {
  transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 15px 20px;
  display: none; /* Fallback, wir steuern per aria-hidden */
}
.faq-answer[aria-hidden="false"] {
  display: block;
}

/* ==========================
   CONTACT SECTION
========================== */
.contact {
  padding: 60px 20px;
  background: #fff;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}
.contact-info p {
  line-height: 1.5;
  margin-bottom: 20px;
}
.info-list {
  list-style: none;
}
.info-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-list li i {
  color: var(--accent-color);
  font-size: 1.2rem;
}
.contact-form-box {
  display: flex;
  align-items: center;
}
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form label {
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
}

/* ==========================
   FOOTER
========================== */
footer {
  background: #222;
  color: #fff;
  padding-top: 60px;
  margin-top: 60px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 0 20px 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Footer-Logo (white) */
.footer-logo {
  width: 120px;
  margin-bottom: 10px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #fff;
}
.footer-links a:hover {
  color: var(--accent-color);
}
.footer-contact a {
  color: var(--accent-color);
}
.footer-social .social-icons a {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s;
}
.footer-social .social-icons a:hover {
  color: var(--accent-color);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 20px;
  color: #ccc;
}
.footer-bottom a {
  color: #ccc;
  margin: 0 8px;
}
.footer-bottom a:hover {
  color: var(--accent-color);
}

/* ==========================
   SCROLL-TO-TOP BUTTON
========================== */
#scrollToTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  outline: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}
#scrollToTopBtn i {
  font-size: 1.5rem;
}
#scrollToTopBtn:hover {
  background: #0da77c;
}

/* Sichtbar, wenn .show-button hinzugefügt wird (im Script) */
#scrollToTopBtn.show-button {
  opacity: 1;
  visibility: visible;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 992px) {
  /* Navigation auf mobile umstellen */
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav ul li a {
    color: #333;
    border-radius: 0;
    display: block;
    padding: 10px 15px;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    height: 80vh;
  }
  .hero-bg {
    background-attachment: scroll; /* Kein Parallax-Effekt auf Mobile */
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
