/* ==============
   Basis & Layout
   ============== */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Fixierter Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  padding: 12px 10px;
  background: rgba(0,0,0,.8);
  color: #fff;
  z-index: 1000;
  transition: background .3s ease-in-out;
}
header nav { flex: 1 1 auto; min-width: 0; }
nav ul {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin: 0; padding: 0;
}
nav ul li { margin: 0; }
nav ul li a {
  color: #fff; text-decoration: none;
  padding: 8px 12px; border-radius: 5px;
  transition: .3s;
  white-space: nowrap;
}
nav ul li a:hover { background: #ff6600; color: #fff; }

/* Burger-Button (mobil) */
.nav-toggle {
  display: none;
  border: none; background: transparent; color: #fff;
  padding: 6px 10px; font-size: 20px; cursor: pointer;
}
.nav-toggle:hover { color: #ff6600; }

/* Globaler Fallback: geöffnetes Mobile-Menü darf immer sichtbar sein */
#primary-nav.is-open ul { display: flex; }

/* Seiten-Sektionen */
.full-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(45deg, #222, #444);
  color: #fff;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in { opacity: 1; transform: translateY(0); }

/* Hero-Hintergrund soll IMMER gewinnen */
#home {
  background: url('images/hero-bg.jpg') center/cover no-repeat !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,.5);
}

#services {
  background: url('images/services-bg.jpg') center/cover no-repeat;
}

#referenzen {
  background: url('images/referenzen-bg.jpg') center/cover no-repeat;
}

#kontakt {
  background: url('images/kontakt-bg.jpg') center/cover no-repeat;
}

/* =======================
   Service-Kacheln (Cards)
   ======================= */
.service-container {
  display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap;
  gap: 24px; max-width: 1000px; margin: 0 auto; padding: 20px;
}
.service-box {
  flex: 1 1 280px; max-width: 320px;
  background: rgba(0,0,0,.55);
  backdrop-filter: saturate(130%) blur(2px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 24px; color: #fff; text-align: center;
  opacity: 0; transform: scale(.9);
  transition: opacity .8s ease, transform .8s ease;
}
.service-box.visible { opacity: 1; transform: scale(1); }
.service-box h3 { margin: 0 0 10px; color: #ff6600; }
.service-box p { color: #ddd; font-size: .95em; }

/* =========
   Buttons
   ========= */
.btn, a.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #ff6600;
  color: #fff; text-decoration: none; font-weight: 600;
  transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover, a.btn:hover { background: #e65c00; transform: translateY(-1px); }

/* Sekundär-Variante (für „Was wir machen“) */
.btn.secondary {
  background: #0b1224;
  border-color: #293246;
  color: #e5e7eb;
}
.btn.secondary:hover { background: #111a33; }

/* =========
   Zitate
   ========= */
.quote-list {
  list-style: none; margin: 18px auto 0; padding: 0; max-width: 800px;
}
.quote-list li {
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px; margin: 10px 0; color: #e5e7eb;
}
.quote-list li span { color: #9CA3AF; margin-left: 6px; font-size: .95em; }

/* =========
   Kontakt
   ========= */
.contact-card {
  max-width: 900px; width: 92%; margin: 0 auto;
  background: rgba(0,0,0,.55);
  backdrop-filter: saturate(130%) blur(2px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 24px; color: #fff; text-align: left;
}
.contact-card h2 { margin: 0 0 12px; }

.contact-form .form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
.contact-form .grid-full { grid-column: 1 / -1; }
.contact-form label span {
  display: block; font-size: 14px; color: #ccc; margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; padding: 12px 1px;
  border-radius: 10px; border: 1px solid #293246;
  background: #0b1224; color: #e5e7eb; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: #ff6600; box-shadow: 0 0 0 2px rgba(255,102,0,.2);
}
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 6px; }
.contact-form .consent a { color: #ff6600; text-decoration: underline; }

.contact-status {
  margin-bottom: 12px; padding: 10px 12px;
  border-radius: 10px; background: rgba(10,18,36,.85);
  border: 1px solid #1f2937; color: #e5e7eb;
}

/* ======
   Footer
   ====== */
footer { text-align: center; padding: 20px; background: #222; color: #fff; }

/* ===========
   Preloader
   =========== */
#preloader {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; justify-content: center; align-items: center;
  z-index: 10000;
}
.spinner {
  width: 50px; height: 50px;
  border: 5px solid rgba(0,0,0,.2); border-top-color: #ff6600;
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }

/* ================
   Back-to-top Btn
   ================ */
#back-to-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 50px; height: 50px;
  background: #ff6600; color: #fff;
  border: none; border-radius: 50%;
  font-size: 20px; display: none;
  align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,.3);
  transition: opacity .3s, transform .3s;
}
#back-to-top:hover { background: #e65c00; }
#back-to-top.show { display: flex; }

/* =================
   Cookie-Banner Dark
   ================= */
#cookie-banner {
  position: fixed; left: 0; bottom: 0; width: 100%;
  background: rgba(0,0,0,.9); color: #fff;
  padding: 20px; text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,.6);
  display: none; z-index: 1100;
}
.cookie-content { max-width: 700px; margin: auto; color: #fff; }
.cookie-content h3 { margin-top: 0; color: #ff6600; }
.cookie-content a { color: #ff6600; text-decoration: underline; }
.cookie-options { text-align: left; margin: 15px 0; color: #fff; }
.cookie-buttons button {
  margin: 5px; padding: 10px 16px; border: none; border-radius: 4px;
  cursor: pointer; font-weight: 600;
}
#accept-all { background: #28a745; color: #fff; }
#reject-all { background: #dc3545; color: #fff; }
#customize  { background: #ff6600; color: #fff; }

/* =====================
   Legal-Seiten (Cards)
   ===================== */
body.legal-bg {
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
}
.legal {
  padding: 100px 20px 80px; /* Platz für fixen Header/Foot */
  min-height: calc(100vh - 160px);
}
.legal-card {
  max-width: 900px; margin: 0 auto;
  background: rgba(0,0,0,.55);
  backdrop-filter: saturate(130%) blur(2px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 24px; color: #fff;
}
.legal-card h1, .legal-card h2, .legal-card h3 { margin-top: 0; }
.legal-card a { color: #ff6600; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

/* ==============
   Responsive
   ============== */
@media (max-width: 920px) {
  header { flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .logo { flex: 1 0 auto; text-align: left; cursor: pointer; } 
  .nav-toggle { display: inline-block; }
  #primary-nav { width: 100%; }
  #primary-nav ul {
    display: none; flex-direction: column; align-items: flex-start;
    gap: 8px; padding: 8px 0;
  }
  #primary-nav.is-open ul { display: flex; }

  .legal { padding: 92px 16px 72px; }
  .legal-card { padding: 18px; }

  .contact-form .form-grid { grid-template-columns: 1fr; }
}
