:root {
  --bg-color: #0a0a0a;
  --text-color: #f0f0f0;
  --accent-color: #888;
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}


/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.214);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}


nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  position: relative;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
  transform: translateY(-3px) scale(1.05);
  color: #CE3233; /* Azuki-ähnlicher Farbton – optional anpassbar */
}

/* Animierter Unterstrich wie bei Azuki */
nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #CE3233;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* --- Icon-Link-Effekt --- */
.nav-icon-link {
  position: relative;
  display: inline-block;
}

.nav-icon-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-icon-link:hover::after {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
}

.nav-icon-link img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
  position: relative;
  z-index: 1; /* damit Bild über dem Effekt liegt */
}

.nav-icon-link img:hover {
  transform: scale(1.1) rotate(-2deg);
  opacity: 1;
}


/* Parasite-Logo */
.logo {
  width: 180px;         /* feste Breite */
  height: auto;        /* Höhe proportional */
  object-fit: contain; /* saubere Skalierung */
  margin-right: 1rem;
}

/* HERO */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

/* ABOUT SECTION */

 h2 {
  text-align: center;
  font-size: 0.5rem;
  margin-bottom: 3rem;
}

.text-block {
  margin-bottom: 30px; /* Abstand nach unten */
}


#about {
  margin-top: 10vh;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 2;
}

.about-img {
  flex: 1;
}

.about-img img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
}

.about-social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
}

.about-social-icons a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.about-social-icons a:hover img {
  transform: scale(1.1);
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 36px;
  height: 36px;
  fill: #ffffff;
  filter: brightness(0) invert(1); /* Weiß auf dunklem Hintergrund */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(7490%) hue-rotate(357deg) brightness(93%) contrast(107%); /* Azuki-Rot */
}

footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-color);
  font-size: 0.75rem;
  text-align: right;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

}


footer a {
  color: var(--accent-color);
  text-decoration: none;
  pointer-events: auto; /* Links wieder klickbar machen */
}

footer a:hover {
  text-decoration: underline;
}

/* ===========================
   Unterseiten – Hero Single
   =========================== */

/* Hero-Container passt sich dynamisch dem Bild an */
.subpage .hero-single {
  position: relative;
  width: 100%;
  height: auto; /* Höhe passt sich automatisch an */
  background-color: #000; /* Optionaler Hintergrund, falls das Bild zentriert wird */
  display: flex;
  align-items: center;
  justify-content: left;
  overflow: hidden;
}

/* Bild vollständig anzeigen, Seitenverhältnis erhalten */
.subpage .hero-single img {
  width: 100%;
  height: auto;
  object-fit: contain; /* vollständige Darstellung ohne Beschnitt */
  object-position: left;
  display: block;
  z-index: 1;
}

.back-to-home {
  position: fixed;       /* fixiert den Button im Viewport */
  bottom: 2rem;          /* Abstand von unten */
  right: 2rem;           /* Abstand von rechts */
  font-size: 2rem;
  text-decoration: none;
  color: white;
  background-color: #c03541d0;
  padding: 0.4rem 0.7rem;
  border-radius: 20%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.back-to-home img {
  width: 32px;
  height: auto;
  transition: transform 0.2s ease;
}

.back-to-home:hover {
  background-color: #fdaeb4;
}

/* Slider-Container */
.slider-section {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
  overflow: hidden;
}

.slider-heading {
  text-align: center;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Slider-Wrapper */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Animierter Track */
.slider-track {
  display: flex;
  animation: scroll 40s linear infinite;
}

.slide {
  flex: 0 0 auto;       /* Slide Breite automatisch */
  height: 400px;        /* feste Höhe für alle Slides */
  margin-right: 0.5rem;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;  /* Bild vertikal zentrieren */
  justify-content: center; /* Bild horizontal zentrieren */
}

.slide img {
  height: 100%;       /* Bild füllt Höhe des Slides */
  width: auto;        /* Breite proportional */
  object-fit: contain; /* Ganze Bildhöhe sichtbar */
  display: block;
  transition: transform 0.3s ease;
}

.slide img:hover {
  transform: scale(1.03);
}

/* Animierter Track */
.slider-track {
  display: flex;
  animation: scroll 40s linear infinite; /* Desktop Standard */
}

/* Endlos-Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animation langsamer auf Tablets */
@media (max-width: 1024px) {
  .slider-track {
    animation: scroll 60s linear infinite; /* langsamer */
  }
}

/* Animation langsamer auf Mobile */
@media (max-width: 768px) {
  .slider-track {
    animation: scroll 80s linear infinite; /* noch langsamer */
  }
}



.contact-socials {
  background-color: #0f0f0f;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 36px;
  height: 36px;
  fill: #ffffff;
  filter: brightness(0) invert(1); /* Weiß auf dunklem Hintergrund */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(7490%) hue-rotate(357deg) brightness(93%) contrast(107%); /* Azuki-Rot */
}

/* -------------------------
   Mobile Header & Burger Menu
------------------------- */

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.463);
  }

  header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;

  }

  /* Burger Icon sichtbar */
  .burger {
    display: block;
    cursor: pointer;
    font-size: 2rem;
    margin: 0.5rem;
    background: none;
    border: none;
    color: white;
  }

  /* Navigation verstecken */
  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  /* Wenn aktiv (per JS) */
  nav.active {
    display: flex;
  }
}

/* Standardmäßig Burger-Icon ausblenden */
.burger {
  display: none;
}


@media screen and (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
  }

  .burger {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-bottom: 1rem;
    
    /* Zentrierung */
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    transform: translateX(-50%);
  }
}

/* -------------------------
   Logo-Responsive-Styles
------------------------- */

/* Mobiloptimierung (iPhone / iPad) */
@media screen and (max-width: 768px) {
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* zentriert Bild & Text */
    text-align: center;
    padding: 1rem;
  }

  .about-img {
    order: -1; /* Bild erscheint vor dem Text */
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center; /* 👈 sorgt für echte horizontale Zentrierung */
  }

  .about-img img {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .about-text {
    order: 1;
    width: 100%;
  }

  .about-text p {
    text-align: center;
  }
}

/* === Bestehender Code bleibt, nur responsive Ergänzungen hinzugefügt === */

/* --- Responsive Header & Navigation --- */
@media (max-width: 1024px) {
  header {
    padding: 1rem;
  }
  nav {
    gap: 1rem;
  }
  nav a {
    font-size: 0.9rem;
  }
  .nav-icon-link img {
    width: 40px;
    height: 40px;
  }
}

/* Mobile Navigation - z.B. bei 768px kleineren Geräten */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  nav {
    width: 100%;
    justify-content: space-around;
    gap: 0.7rem;
    margin-top: 0.5rem;
  }
  nav a {
    font-size: 0.85rem;
  }
  .nav-icon-link img {
    width: 35px;
    height: 35px;
  }
}


/* --- Responsive Hero --- */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .carousel-caption {
    font-size: 1.8rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }
  .carousel-caption {
    font-size: 1.2rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }
}

/* --- About Section --- */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .about-text, .about-img {
    flex: none;
    width: 100%;
    text-align: center;
  }
  .about-img img {
    max-width: 80%;
    margin: 0 auto;
  }
  .about-social-icons {
    justify-content: center;
  }
}

/* --- Gallery --- */
@media (max-width: 1024px) {
  .gallery {
       grid-template-columns: repeat(2, 1fr); /* Standard: 2 Spalten für Tablets */
    grid-auto-rows: 200px;
  }
}

@media (max-width: 768px) {
  .gallery {
       grid-template-columns: repeat(2, 1fr); /* Standard: 2 Spalten für Tablets */
    grid-auto-rows: 150px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-rows: 120px;
  }
}

/* --- Clients Section --- */
@media (max-width: 768px) {
  .clients {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    max-width: 100%;
    gap: 1.5rem 2rem;
  }
  .client-logo img {
    max-width: 90px;
  }
}

@media (max-width: 480px) {
  .clients {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 1rem 1.5rem;
  }
  .client-logo img {
    max-width: 70px;
  }
}

/* --- Contact Section --- */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 0 0.5rem;
  }
  .contact-info, .contact-form {
    flex: none;
    width: 100%;
  }
  .contact-wrapper {
    flex-direction: column;
  }
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
  }
  .contact-form button {
    font-size: 1rem;
  }
}

/* --- Footer --- */
@media (max-width: 480px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  #scrollToTop {
    margin: 0.5rem auto 0 auto;
  }
}

/* === Bestehender Code bleibt, nur responsive Ergänzungen hinzugefügt === */

/* --- Responsive Header & Navigation --- */
@media (max-width: 1024px) {
  header {
    padding: 1rem;
  }
  nav {
    gap: 1rem;
  }
  nav a {
    font-size: 1.3rem;
  }
  .nav-icon-link img {
    width: 40px;
    height: 40px;
  }
}

/* Mobile Navigation - z.B. bei 768px kleineren Geräten */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  nav {
    width: 100%;
    justify-content: space-around;
    gap: 0.7rem;
    margin-top: 0.5rem;
  }
  nav a {
    font-size: 1.3rem;
  }
  .nav-icon-link img {
    width: 35px;
    height: 35px;
  }
}

.logo {
  height: 60px;       /* Standardhöhe */
  width: auto;        /* proportional */
  display: inline-block;
  margin: 0;
}

/* Responsive ab 900px */
@media (max-width: 768px) {
  .logo {
    display: block;       /* macht margin auto wirksam */
    margin: 0 auto;       /* zentriert horizontal */
  }
}