/* ===== Reset & Basis ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f8f9fa;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Navbar (transparent, über dem Karussell) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 172px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: height 0.3s;
}

.navbar.scrolled .navbar-logo img {
  height: 56px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

nav a:hover {
  color: #e94560;
}

/* ===== Hero Carousel (Fullscreen) ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-content {
  text-align: center;
  color: #fff;
  padding: 24px;
  max-width: 900px;
}

.slide-content .hero-logo {
  width: min(700px, 85vw);
  display: block;
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.slide-content .slide-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.slide-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.slide-content h1 span {
  color: #e94560;
}

.slide-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 32px;
  color: #bbc;
}

.hero-btn {
  display: inline-block;
  background: #e94560;
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    background 0.3s,
    transform 0.2s;
}

.hero-btn:hover {
  background: #c73650;
  transform: translateY(-2px);
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(233, 69, 96, 0.6);
  border-color: #e94560;
}

.carousel-prev {
  left: 24px;
}

.carousel-next {
  right: 24px;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.dot.active {
  background: #e94560;
  border-color: #e94560;
  transform: scale(1.2);
}

.dot:hover {
  border-color: #e94560;
}

/* Aufbau-Hinweis im Carousel */
.hero-carousel > .hinweis-aufbau {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
}

/* ===== Sections allgemein ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.section-subtitle {
  text-align: center;
  color: #777;
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Leistungen (Services) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== Über uns ===== */
.about-bg {
  background: #1a1a2e;
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  background: #2a2a4e;
  border-radius: 8px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a4e;
  color: #667;
  font-size: 0.9rem;
  border-radius: 8px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.about-text h2 span {
  color: #e94560;
}

.about-text p {
  color: #aab;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ===== Galerie / Projekte ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: #e0e0e0;
  border-radius: 8px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
  overflow: hidden;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Kontakt ===== */
.contact-bg {
  background: #f0f0f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.contact-info .icon {
  margin-right: 8px;
  color: #e94560;
}

/* Honeypot – versteckt für Menschen */
.ht-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e94560;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  background: #e94560;
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #c73650;
}

.form-status {
  margin-top: 16px;
  padding: 0;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s;
}

.form-status.success {
  padding: 14px;
  background: #1a4d2e;
  color: #6fcf97;
  border: 1px solid #2d8a54;
}

.form-status.error {
  padding: 14px;
  background: #4d1a1a;
  color: #f09090;
  border: 1px solid #8a2d2d;
}

/* ===== Karriere / Bewerbung ===== */
.karriere-bg {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  color: #fff;
}

.karriere-bg .section-title {
  color: #fff;
}

.karriere-bg .section-subtitle {
  color: #aab;
}

.karriere-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.karriere-text h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #e94560;
}

.karriere-text h3:first-child {
  margin-top: 0;
}

.karriere-benefits {
  list-style: none;
  margin-bottom: 12px;
}

.karriere-benefits li {
  padding: 6px 0;
  color: #ccd;
  font-size: 0.95rem;
}

.job-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #e94560;
  padding: 18px 20px;
  border-radius: 0 6px 6px 0;
}

.job-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #fff;
}

.job-card p {
  color: #99a;
  font-size: 0.9rem;
}

.bewerbung-box {
  background: rgba(233, 69, 96, 0.1);
  border: 2px solid #e94560;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
}

.bewerbung-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.bewerbung-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.bewerbung-box p {
  color: #aab;
  margin-bottom: 12px;
}

.bewerbung-email {
  display: inline-block;
  background: #e94560;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0 16px;
  transition:
    background 0.3s,
    transform 0.2s;
}

.bewerbung-email:hover {
  background: #c73650;
  transform: translateY(-2px);
}

.bewerbung-hint {
  font-size: 0.85rem;
  color: #889;
  font-style: italic;
}

/* ===== Aufbau-Hinweise ===== */
.hinweis-aufbau {
  margin-top: 24px;
  padding: 10px 20px;
  background: rgba(233, 69, 96, 0.12);
  border: 1px dashed #e94560;
  border-radius: 6px;
  color: #e94560;
  font-size: 0.9rem;
  display: inline-block;
}

.hero-carousel .hinweis-aufbau {
  color: #f0a0b0;
  background: rgba(233, 69, 96, 0.15);
}

.hinweis-dark {
  color: #e94560;
  text-align: center;
  margin-bottom: 24px;
}

.aufbau-hinweis {
  border-left-color: #e9a045;
  background: rgba(233, 160, 69, 0.08);
}

/* ===== Legal Pages (Datenschutz, Impressum) ===== */
.legal-page {
  padding-top: 120px;
}

.legal-page h1 {
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.8;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #555;
  line-height: 2;
}

.legal-page .legal-date {
  margin-top: 40px;
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  background: #0f0f1a;
  color: #888;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

footer a {
  color: #e94560;
}

/* ===== Burger Button ===== */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Carousel */
  .hero-carousel {
    min-height: 100vh;
  }

  .slide-content .hero-logo {
    width: min(400px, 80vw);
  }

  .slide-content h1 {
    font-size: 1.6rem;
  }

  .slide-content h2 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 0.95rem;
  }

  .slide-content .slide-icon {
    font-size: 3rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    top: 220px;
    transform: none;
  }

  .carousel-prev {
    left: 12px;
  }

  .carousel-next {
    right: 12px;
  }

  .carousel-dots {
    bottom: 100px;
  }

  /* Grids */
  .about-grid,
  .contact-grid,
  .karriere-grid {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    padding: 4px 16px;
  }

  .navbar-logo img {
    height: 156px;
  }

  .navbar.scrolled .navbar-logo img {
    height: 48px;
  }

  /* Burger sichtbar */
  .burger {
    display: block;
  }

  /* Nav versteckt, slide-in von rechts */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 100px;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }

  nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    text-shadow: none;
  }

  /* Hinweis im Carousel */
  .hero-carousel > .hinweis-aufbau {
    font-size: 0.75rem;
    padding: 8px 14px;
    bottom: 16px;
    transform: translateX(-50%) scale(0.75);
    transform-origin: center bottom;
  }
}

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 1.3rem;
  }

  .slide-content h2 {
    font-size: 1.3rem;
  }

  .slide-content p {
    font-size: 0.85rem;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .section {
    padding: 60px 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
