/**
 * Datei: demmel-ci-glow.css
 *
 * Zweck/Aufgabe:
 * Gemeinsame Demmel-Kfz CI-Styles für Soft-Glow-Elemente und den Cursor-Worm-Effekt.
 *
 * Wichtigste Funktionen/Verantwortung:
 * - Definiert CI-Farbvariablen für Magenta, Blau und dunkle Cinematic-Hintergründe.
 * - Stellt die Canvas-Klasse .dkfz-cursor-worm bereit.
 * - Stellt dezente Utility-Klassen für Glow-Linien, Hero-Flächen und Karten bereit.
 * - Respektiert Touchgeräte und prefers-reduced-motion.
 *
 * Grundsatz/Abgrenzung:
 * - Keine Fachlogik.
 * - Kein Austausch des echten Mauszeigers.
 * - Kein Eingriff in bestehende App-Layouts, solange Klassen gezielt verwendet werden.
 */

:root {
  --dkfz-bg-1: #0b0c0f;
  --dkfz-bg-2: #0f1014;
  --dkfz-bg-3: #16171c;

  --dkfz-magenta: #ff00b7;
  --dkfz-magenta-dark: #c8009f;
  --dkfz-magenta-soft: #a60085;

  --dkfz-blue: #006eff;
  --dkfz-blue-soft: #4d8aff;

  --dkfz-text: #f4f6fb;
  --dkfz-muted: rgba(244, 246, 251, 0.68);

  --dkfz-glow-magenta: rgba(255, 0, 183, 0.38);
  --dkfz-glow-blue: rgba(0, 110, 255, 0.34);
}

/*
 * Fullscreen-Canvas für die bestehende index.html.
 * Der Canvas blockiert keine Klicks, Formulare oder Menüs.
 */
.dkfz-cursor-worm {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: screen;
}

/*
 * Variante für einen begrenzten Hero-/Header-Bereich.
 * Dafür Canvas IN den Container legen und dem Container position:relative geben.
 */
.dkfz-cursor-worm--area {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.dkfz-hero-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(0, 110, 255, 0.20), transparent 34%),
    radial-gradient(circle at 25% 54%, rgba(255, 0, 183, 0.15), transparent 32%),
    linear-gradient(135deg, var(--dkfz-bg-1), var(--dkfz-bg-2) 48%, var(--dkfz-bg-3));
}

.dkfz-hero-glow::before,
.dkfz-hero-glow::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 110, 255, 0.78),
    rgba(255, 0, 183, 0.84),
    transparent
  );
  filter: blur(0.35px);
}

.dkfz-hero-glow::before {
  top: 72px;
  opacity: 0.68;
}

.dkfz-hero-glow::after {
  bottom: 72px;
  opacity: 0.38;
}

.dkfz-soft-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(9, 11, 18, 0.58);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 72px rgba(0, 110, 255, 0.11),
    0 0 72px rgba(255, 0, 183, 0.09);
  backdrop-filter: blur(18px);
}

.dkfz-glow-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--dkfz-blue),
    var(--dkfz-magenta),
    transparent
  );
  box-shadow:
    0 0 18px var(--dkfz-glow-blue),
    0 0 18px var(--dkfz-glow-magenta);
}

.dkfz-glow-text {
  background: linear-gradient(90deg, #ffffff, #ffd7f5 36%, #8db7ff 72%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* DEMMEL-KFZ LIGHT SIGNATURE - HEADER/FOOTER */
.dkfz-light-signature-line {
  position: relative;
  width: 100%;
  height: 1px;
  pointer-events: none;
  overflow: visible;
  z-index: 20;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 110, 255, 0.45) 18%,
    rgba(75, 72, 255, 0.55) 48%,
    rgba(255, 0, 183, 0.60) 76%,
    transparent 100%
  );

  box-shadow:
    0 0 6px rgba(0, 110, 255, 0.20),
    0 0 8px rgba(255, 0, 183, 0.22);
}

.dkfz-light-signature-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  height: 14px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 110, 255, 0.13) 22%,
    rgba(75, 72, 255, 0.12) 52%,
    rgba(255, 0, 183, 0.13) 78%,
    transparent 100%
  );

  filter: blur(14px);
  opacity: 0.85;
}

.dkfz-light-signature-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 16px;

  background: linear-gradient(
    180deg,
    rgba(255, 0, 183, 0.13) 0%,
    rgba(0, 110, 255, 0.05) 48%,
    transparent 100%
  );

  filter: blur(10px);
  opacity: 0.75;
}

/* FOOTER: Richtung umdrehen, damit es zur alten Footer-Logik passt */
.dkfz-light-signature-line-footer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 0, 183, 0.55) 18%,
    rgba(75, 72, 255, 0.50) 52%,
    rgba(0, 110, 255, 0.48) 78%,
    transparent 100%
  );
}
/* =========================================================
   DEMMEL-KFZ PAGE GLOW - FINAL
   Dezenter globaler Cinematic-Hintergrundverlauf
   ========================================================= */
.dkfz-page-glow {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 20 !important;
  display: block !important;
  overflow: hidden !important;

  background:
    radial-gradient(circle at 18% 38%,
      rgba(255, 0, 183, 0.18) 0%,
      rgba(255, 0, 183, 0.080) 24%,
      transparent 54%),
    radial-gradient(circle at 82% 18%,
      rgba(0, 110, 255, 0.19) 0%,
      rgba(0, 110, 255, 0.085) 26%,
      transparent 56%),
    radial-gradient(circle at 58% 72%,
      rgba(80, 72, 255, 0.070) 0%,
      transparent 50%),
    linear-gradient(115deg,
      rgba(255, 0, 183, 0.050) 0%,
      transparent 40%,
      rgba(0, 110, 255, 0.060) 100%) !important;

  mix-blend-mode: screen !important;
  opacity: 0.90 !important;
  filter: blur(8px) !important;
}

/* Cursor-Worm über dem Page-Glow */
.dkfz-cursor-worm {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 30 !important;
  mix-blend-mode: screen !important;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .dkfz-cursor-worm {
    display: none !important;
  }

  .dkfz-page-glow {
    opacity: 0.55 !important;
    filter: blur(10px) !important;
  }
}
/* =========================================================
   DEMMEL-KFZ HERO PREMIUM CARD
   Für gebaute HTML-Seiten ohne Tailwind-Neubuild
   ========================================================= */

.dkfz-hero-card-wrap {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.dkfz-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  background: rgba(8, 10, 18, 0.58);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.52),
    0 0 82px rgba(0, 110, 255, 0.11),
    0 0 82px rgba(255, 0, 183, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(32px, 5vw, 58px);
}

.dkfz-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 52%,
      rgba(255, 0, 183, 0.16) 0%,
      rgba(255, 0, 183, 0.055) 30%,
      transparent 62%),
    radial-gradient(circle at 92% 12%,
      rgba(0, 110, 255, 0.16) 0%,
      rgba(0, 110, 255, 0.055) 32%,
      transparent 66%),
    linear-gradient(115deg,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 36%,
      rgba(255, 255, 255, 0.018) 100%);
  opacity: 0.95;
}

.dkfz-hero-card > * {
  position: relative;
  z-index: 1;
}

.dkfz-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dkfz-hero-eyebrow::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #006EFF, #FF00B7);
  box-shadow: 0 0 18px rgba(255, 0, 183, 0.55);
}

.dkfz-hero-brand {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.55rem, 3vw, 2.9rem);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.dkfz-hero-title {
  margin: 0;
  color: #f3f4f8;
  font-size: clamp(2.5rem, 5.8vw, 5.8rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.dkfz-hero-title span {
  background: linear-gradient(90deg, #ffffff, #ffe1f7 42%, #9ec2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dkfz-hero-subline {
  margin-top: 28px;
  color: #c8c9cd;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.dkfz-hero-buttons {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.dkfz-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.dkfz-hero-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.dkfz-hero-button-blue {
  color: #ffffff;
  background: #006eff;
  box-shadow: 0 0 26px rgba(0, 110, 255, 0.32);
}

.dkfz-hero-button-magenta {
  color: #0b0c0f;
  background: #ff00b7;
  box-shadow: 0 0 28px rgba(255, 0, 183, 0.34);
}

.dkfz-hero-team {
  max-width: 760px;
  margin: 34px auto 0;
  color: rgba(200, 201, 205, 0.86);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.65;
}

.dkfz-hero-note {
  max-width: 760px;
  margin: 34px auto 0;
  color: rgba(191, 194, 200, 0.86);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .dkfz-hero-card-wrap {
    padding: 0 16px;
  }

  .dkfz-hero-card {
    border-radius: 24px;
    padding: 30px 22px;
  }

  .dkfz-hero-buttons {
    gap: 12px;
  }

  .dkfz-hero-button {
    width: 100%;
  }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .dkfz-cursor-worm {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .dkfz-soft-card {
    border-radius: 22px;
  }
}
