/* =====================================================================
   ZD LOGISTIK – Global Stylesheet
   ===================================================================== */

/* ---------- Basis (Critical: verhindert FOUC) ---------- */
html, body {
  background-color: #000;
  color: #fff;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .font-display {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img { max-width: 100%; display: block; }

/* Brand-Gradient-Text – eigene Klasse statt reine Tailwind-Utility,
   damit der Text auch bei verzögertem/fehlgeschlagenem Tailwind-CDN
   (transparente Schrift ohne sichtbaren Gradient) sichtbar bleibt. */
.text-gradient-brand {
  color: #f97316;                          /* Fallback: solides Orange */
  background: linear-gradient(to right, #f97316, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Falls der Browser background-clip:text NICHT unterstützt,
   fällt color:#f97316 oben automatisch durch. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-gradient-brand {
    -webkit-text-fill-color: #f97316;
    background: none;
  }
}

/* Formularfelder: weiße Schrift, weißer Cursor, passende Selektion */
input, textarea, select, button {
  color: #fff;
  caret-color: #f97316;
}
input::placeholder,
textarea::placeholder {
  color: #6b7280;       /* gray-500 */
  opacity: 1;
}
input::selection,
textarea::selection {
  background: #f97316;
  color: #000;
}
/* Autofill-Hintergrund von Chrome/Edge überschreiben (sonst weiß-blau) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6) inset !important;
  caret-color: #f97316 !important;
  transition: background-color 9999s ease-in-out 0s;
}
/* Optionen im Select sichtbar (dunkles Dropdown sehen sonst weiß aus) */
select option {
  background: #0a0a0a;
  color: #fff;
}

/* Sprachumschalter */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  background: rgba(255,255,255,0.03);
}
.lang-switch button {
  font: 600 11px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9ca3af;
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.lang-active {
  background: #f97316;
  color: #000;
}

/* Banner, der nur im EN-Modus erscheint (über html[lang="en"]-Selektor) */
.lang-en-only { display: none; }
html[lang="en"] .lang-en-only { display: block; }

/* ---------- Grain-Overlay ---------- */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------- Animierter Gradient ---------- */
.anim-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(234,88,12,0.15), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,237,213,0.05), transparent 60%);
}

/* ---------- FAQ ---------- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.active .faq-content { max-height: 400px; padding-top: 14px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* ---------- Reveal-on-Scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Swiper-Anpassungen ---------- */
.swiper { padding-bottom: 60px !important; }
.swiper-pagination-bullet {
  background: #6b7280 !important;
  opacity: .6;
}
.swiper-pagination-bullet-active {
  background: #f97316 !important;
  opacity: 1;
  transform: scale(1.3);
}
.swiper-button-prev,
.swiper-button-next {
  color: #f97316 !important;
  background: rgba(0,0,0,0.6);
  width: 48px !important;
  height: 48px !important;
  border-radius: 9999px;
  border: 1px solid rgba(249,115,22,0.4);
  backdrop-filter: blur(8px);
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px !important;
  font-weight: 800;
}
.swiper-slide { height: auto; }

/* ---------- Marquee (Partner-Logos) ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Service-Card Glow ---------- */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249,115,22,0.7), rgba(249,115,22,0) 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }

/* ---------- Mobile Menu ---------- */
.menu-open { transform: translateX(0) !important; }

/* ---------- Primary Button ---------- */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 14px 30px -10px rgba(249,115,22,0.55);
  transition: filter .2s ease, transform .2s ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.7);
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.08); }

/* =====================================================================
   Unterseiten (Impressum, Datenschutz, AGB) – prose-Style
   ===================================================================== */
.prose-zd h2 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  color: #f97316;
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  scroll-margin-top: 80px;
}
.prose-zd h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.prose-zd p {
  color: #d1d5db;
  line-height: 1.75;
  margin-bottom: .75rem;
}
.prose-zd ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #d1d5db;
  margin-bottom: .75rem;
}
.prose-zd ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.prose-zd ul.glossary li,
.prose-zd ul.m-elements li,
.prose-zd ul.index li {
  margin-bottom: .5rem;
  line-height: 1.75;
}
.prose-zd a { color: #f97316; }
.prose-zd a:hover { text-decoration: underline; }
.prose-zd strong { color: #fff; }
.prose-zd .seal {
  font-size: .8rem;
  color: #6b7280;
  margin-top: 2rem;
}

/* Inhaltsverzeichnis (Datenschutz) */
.index {
  list-style: none !important;
  padding-left: 0 !important;
  columns: 1;
}
@media (min-width: 640px) {
  .index { columns: 2; }
}
.index li { break-inside: avoid; }
.index-link { color: #f97316; }
