/* ============================================================
   shared.css — Design-Development.world
   Gemeinsame Bausteine aller Seiten (Design-System).
   Wird von jeder Seite vor dem seiten­spezifischen CSS eingebunden.
   ============================================================ */

/* ---------- Basis-Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: none;
}

/* ---------- Isometrischer Platinen-Hintergrund ----------
   Original nutzte platine.jpg / web.png (beide fehlten -> 404).
   Die Flaeche bleibt wie vorher unsichtbar (schwarz mit dezentem Glow) —
   kein sichtbares Raster, kein Netzwerk-Request. */
.isometric-grid {
  position: relative;
  flex: none;
  width: 200vw; height: 200vh;
  transform: rotateX(60deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  background-color: #000000;
  background-position: center;
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.9);
  opacity: 0.55;
}
.isometric-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center,
              rgba(0, 150, 255, 0.13) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- Hero-Text (Gradient) ---------- */
.hero-text h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5.6vw, 5.2rem);
  line-height: .98; letter-spacing: -.025em; font-weight: 900;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  margin: 0;
  font-size: clamp(.75rem, 1.05vw, 1rem);
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(190, 230, 255, .58); font-weight: 600;
}

/* ---------- Hintergrund-Marquee ----------
   Läuft hinter der zentralen Animation, verschwindet in der Mitte. */
.bg-marquee {
  position: fixed;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16vw;
  min-height: 420px;
  max-height: 1200px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  opacity: .25;
  rotate: -30deg;
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0%, #000 10%, #000 24%, transparent 38%,
      transparent 62%, #000 76%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg,
      transparent 0%, #000 10%, #000 24%, transparent 38%,
      transparent 62%, #000 76%, #000 90%, transparent 100%);
}
.bg-marquee__track {
  display: flex; align-items: center; flex: none;
  white-space: nowrap;
  animation: bg-marquee-run 300s linear infinite;
  will-change: transform;
}
.bg-marquee__track > * {
  flex: none;
  margin-right: clamp(60px, 8vw, 140px);
}
.bg-marquee__word {
  font-weight: 900;
  font-size: 20vw;
  letter-spacing: .02em; text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 220, 255, .45))
          drop-shadow(0 0 34px rgba(255, 0, 255, .25));
}
.bg-marquee__dot {
  width: clamp(14px, 1.6vw, 22px);
  height: clamp(14px, 1.6vw, 22px);
  border-radius: 50%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  box-shadow: 0 0 22px rgba(0, 210, 255, .7);
}
@keyframes bg-marquee-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Footer-Links (Impressum / Datenschutz) ---------- */
.footer-links {
  position: fixed;
  right: 12px; bottom: 12px;
  z-index: 10;
  font-size: .6rem;
  color: #dff2ff;
  pointer-events: auto;
}
.footer-links a {
  color: inherit;
  text-decoration: underline;
  margin-left: 8px;
}

/* ---------- Info-Box (Rechtstexte: Impressum / Datenschutz) ---------- */
.info-box {
  position: fixed; left: 6%; bottom: 8%;
  z-index: 10;
  max-width: 46vw; max-height: 78vh;
  overflow-y: auto;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(150deg,
    rgba(255,255,255,.09) 0%, rgba(0,170,255,.04) 100%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(160,225,255,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16);
  color: #dff2ff;
}
.info-box h2 {
  margin: 1rem 0 .4rem;
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.info-box h2:first-child { margin-top: 0; }
.info-box p, .info-box a, .info-box li {
  color: #eaf7ff;
  line-height: 1.55;
  font-size: .9rem;
}
.info-box p { margin: .35rem 0; }
.info-box a { text-decoration: underline; }
.info-box ul { margin: .35rem 0; padding-left: 1.25rem; }
.info-box li { margin: .2rem 0; }
.info-box strong { color: #b9f0ff; }

/* ---------- Bewegungs-Reduktion (Barrierefreiheit) ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-marquee__track { animation: none; }
}

/* ---------- Mobile (vereinheitlicht, Phase 4) ----------
   Grundsätzlich: oben Headline, darunter Animation,
   eingeblendete Inhalte unten. Details pro Seite. */
@media (max-width: 900px) {
  .bg-marquee { display: none; }

  .hero-text { top: 4% !important; left: 6% !important; max-width: 88vw !important; }
  .info-box { left: 4% !important; right: 4% !important; bottom: 4% !important;
              max-width: 92vw !important; max-height: 70vh !important;
              padding: 16px 18px; }
}