/* ===========================
   Burwitz IT – style.css
   Abhängigkeiten (über CDN in index.html):
   - Bootstrap 5.3
   - Inter Variable Font
   - AOS (eigene CSS via CDN)
   =========================== */

/* Typografie & Design-Variablen */
:root {
  --btz-blue-500: #0d6efd; /* Bootstrap primary */
  --btz-blue-600: #0b5ed7;
  --btz-overlay: rgba(10, 20, 30, .55); /* Abdunkelung für Hero-Bild */
  --btz-glass: rgba(255,255,255,.88);   /* Glasfläche für dunklen Text */
  --btz-blur: 12px;
}

html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #111827; /* sehr dunkles Grau für hohe Lesbarkeit */
  background-color: #ffffff;
}

/* Preloader */
.preloader {
  z-index: 2000;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.preloader-hide {
  opacity: 0;
  visibility: hidden;
}

/* ---------------------------
   HERO
   --------------------------- */
.hero-welcome { position: relative; overflow: hidden; }

/* Hintergrundbild im Hero: echtes <img>, füllt den Viewport */
.hero-welcome .hero-bg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: scale(1.03);
  transition: transform 1.2s ease;
  z-index: -10; /* Backup, zusätzlich zu Bootstrap .z-n1 in HTML */
}

/* Abdunkelung über dem Bild für Kontrast der Glas-Box */
.hero-overlay {
  background: var(--btz-overlay);
  z-index: 2; /* Bild liegt darunter, Content liegt darüber */
}

/* Glas-Box für dunklen Text, gute Lesbarkeit */
.glass-box {
  background: var(--btz-glass);
  backdrop-filter: blur(var(--btz-blur));
  -webkit-backdrop-filter: blur(var(--btz-blur));
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1rem;
}

/* Animierte Gradient-Unterstreichung der H1 */
.gradient-underline { position: relative; display: inline-block; }
.gradient-underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--btz-blue-500), var(--btz-blue-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s ease;
}
.gradient-underline:hover::after { transform: scaleX(1); }

/* ---------------------------
   LEISTUNGEN / CARDS
   --------------------------- */
.card {
  border-radius: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}
.card-gradient {
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

/* Icon-Badge oben in der Karte */
.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13,110,253,.12);
  color: var(--btz-blue-500);
  font-size: 22px;
}

/* ---------------------------
   PORTRÄT (eckig, Rahmen, Schatten)
   --------------------------- */
.object-cover { object-fit: cover; }
.img-frame {
  border-radius: .75rem;
  border: 2px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}

/* ---------------------------
   SEKTIONEN / HINTERGRUND
   --------------------------- */
.bg-body-tertiary { background-color: #eef2f6 !important; } /* gedämpft statt grell */

/* ---------------------------
   FOOTER MIT PARTICLES
   --------------------------- */
.footer-particles {
  background: #0b0d12; /* sehr dunkles Blau/Anthrazit */
  color: #e8eef9;
}
.footer-particles a { color: #b7c2d6; }
.footer-particles a:hover { color: #ffffff; }
/* Stelle sicher, dass der Content über dem Canvas liegt */
.footer-particles .container,
.footer-particles .row,
.footer-particles p,
.footer-particles h3 {
  position: relative;
  z-index: 2;
}
.footer-particles .particles {
  z-index: 1;
  pointer-events: none;
}

/* ---------------------------
   ACCESSIBILITY / UX
   --------------------------- */
/* Skip-Link sichtbar beim Fokus */
.visually-hidden-focusable:focus {
  position: fixed !important;
  z-index: 1050;
  clip: auto !important;
  width: auto; height: auto;
}

/* Bewegungen reduzieren: respektiere Nutzerpräferenz */
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none !important; }
  .hero-welcome .hero-bg { transform: none !important; }
}
