/* =====================================================
   Michael Zimmermann – Cassiopeia user.css (Joomla 5)
   Ablage: /media/templates/site/cassiopeia/css/user.css
   Bilder empfohlen: /images/backgrounds/network.png
                     /images/backgrounds/nordschleife.png
===================================================== */

/* ---------- Design Tokens ---------- */
:root{
  --mz-accent: #20e3a2;
  --mz-bg-0: #000;
  --mz-bg-1: #060b09;
  --mz-bg-2: #0f2e24;

  --mz-text: #e9f1ee;
  --mz-muted: #a6b5ae;

  --mz-card-bg: rgba(8, 16, 13, 0.72);
  --mz-card-border: rgba(32, 227, 162, 0.22);

  --mz-radius-hero: 36px;
  --mz-radius-card: 18px;
}

/* ---------- Startseite: Standard-Header ausblenden (Itemid 101) ---------- */
body.itemid-101 header,
body.itemid-101 .site-header,
body.itemid-101 .header,
body.itemid-101 .container-header{
  display: none !important;
}

/* Optional: Abstand oben entfernen, falls Cassiopeia noch Padding setzt */
body.itemid-101{
  padding-top: 0 !important;
}

/* ---------- Hero Container ---------- */
.mz-hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 var(--mz-radius-hero) var(--mz-radius-hero);
  color: var(--mz-text);

  /* Grundfläche */
  background:
    radial-gradient(circle at 28% 18%, var(--mz-bg-2) 0%, var(--mz-bg-1) 55%, var(--mz-bg-0) 100%);
}

/* Netzwerk-Background (liegt auf dem Hero, aber hinter allem) */
.mz-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../../../..//images/backgrounds/network.png") center/cover no-repeat;
  opacity: 0.26;
  z-index: 0;
  pointer-events:none;
}

/* Sanfter Vignette/Glow Layer, macht’s “mockup-like” */
.mz-hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 30% 25%, rgba(32,227,162,0.10) 0%, rgba(0,0,0,0) 40%),
    radial-gradient(circle at 75% 55%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
  pointer-events:none;
}

/* ---------- Nordschleife Overlay (IMG) ---------- */
.mz-hero .hero-track{
  position:absolute;
  right: -3%;
  top: 10%;
  width: min(520px, 55vw);
  height: auto;

  /* wichtig gegen “dunklen Rahmen”: */
  background: transparent !important;
  mix-blend-mode: screen;          /* lässt dunkle Pixel verschwinden */
  opacity: 0.62;

  /* Glow */
  filter: drop-shadow(0 0 28px rgba(32, 227, 162, 0.55))
          drop-shadow(0 0 10px rgba(32, 227, 162, 0.25));

  z-index: 2;
  pointer-events:none;
}

/* ---------- Hero Inner ---------- */
.mz-hero-inner{
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.25rem) 1.25rem;
}

/* ---------- Text ---------- */
.mz-kicker{
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--mz-accent);
  margin: 0 0 1.15rem;
  letter-spacing: 0.2px;
}

.mz-title{
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  font-weight: 800;
}

.mz-title .accent{
  color: var(--mz-accent);
  text-shadow: 0 0 18px rgba(32,227,162,0.18);
}

.mz-lead{
  max-width: 62ch;
  color: var(--mz-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Cards ---------- */
.mz-cards{
  margin-top: 2.75rem;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.mz-card{
  background: var(--mz-card-bg);
  border: 1px solid var(--mz-card-border);
  border-radius: var(--mz-radius-card);
  padding: 1.6rem 1.6rem 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 38px rgba(0,0,0,0.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mz-card:hover{
  transform: translateY(-2px);
  border-color: rgba(32, 227, 162, 0.35);
  box-shadow:
    0 0 0 1px rgba(32, 227, 162, 0.12),
    0 18px 48px rgba(0,0,0,0.45);
}

.mz-card .num{
  color: var(--mz-accent);
  font-weight: 700;
  opacity: .65;
  margin-bottom: .65rem;
}

.mz-card h3{
  margin: 0 0 .55rem;
  font-weight: 800;
}

.mz-card p{
  margin: 0;
  color: var(--mz-muted);
  font-size: .98rem;
  line-height: 1.55;
}

/* ---------- Tags ---------- */
.mz-tags{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}

.mz-tag{
  display:inline-flex;
  align-items:center;
  padding: .38rem .72rem;
  border-radius: 999px;
  background: rgba(32, 227, 162, 0.10);
  border: 1px solid rgba(32, 227, 162, 0.28);
  color: var(--mz-text);
  font-size: .82rem;
  line-height: 1;
}

.mz-tag.music{
  background: rgba(255, 80, 80, 0.14);
  border-color: rgba(255, 80, 80, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .mz-cards{
    grid-template-columns: 1fr;
  }

  .mz-hero .hero-track{
    right: 50%;
    top: -14px;
    transform: translateX(50%);
    width: min(340px, 78vw);
    opacity: 0.50;
  }

  .mz-hero{
    border-radius: 0;
  }
}

/* ---------- Kleiner Fix: damit Module im Content nicht “blau Joomla”-Links dominieren ---------- */
body.itemid-101 a{
  text-decoration-thickness: 2px;
}

body.itemid-101 main#main {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.85),
    #000
  );
  color: #e6e6e6;
  padding-top: 6rem;
}

/* STARTSEITE (Itemid 101): Main Content ausblenden (Variante A) */
body.itemid-101 main#main {
  display: none !important;
}

/* Optional: falls noch ein Container/Wrapper auf Startseite Abstand macht */
body.itemid-101 .site-grid,
body.itemid-101 .container-component {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

