/* =========================================================
   GuardBase — INDEX.CSS (CALM + PREMIUM)
   ========================================================= */

/* =========================
   BACKGROUND AMBIENCE (ruhiger)
   ========================= */
:root{
  --gb-aurora-1: rgba(63,116,181,0.22);
  --gb-aurora-2: rgba(21,53,88,0.18);
  --gb-aurora-3: rgba(148,163,184,0.16);
  --gb-aurora-4: rgba(221,230,243,0.14);
}

@keyframes gbIndexAurora {
  0%   { transform: translate3d(-1.6%, -0.8%, 0) scale(1.02) rotate(0deg); opacity: 0.78; }
  45%  { transform: translate3d(1.8%, 1.0%, 0) scale(1.05) rotate(7deg); opacity: 0.96; }
  100% { transform: translate3d(-1.6%, -0.8%, 0) scale(1.02) rotate(0deg); opacity: 0.78; }
}
@keyframes gbIndexGrid {
  0%   { transform: translate3d(0,0,0); opacity: 0.12; }
  50%  { transform: translate3d(-12px, 8px, 0); opacity: 0.18; }
  100% { transform: translate3d(0,0,0); opacity: 0.12; }
}
@keyframes gbIndexSweep {
  0%   { transform: translate3d(-120%, 0, 0) skewX(-14deg); opacity: 0; }
  10%  { opacity: 0.10; }
  55%  { opacity: 0.08; }
  100% { transform: translate3d(120%, 0, 0) skewX(-14deg); opacity: 0; }
}
@keyframes gbIndexGrain {
  0%,100% { opacity: 0.07; }
  50%     { opacity: 0.10; }
}

body.page-index{ position: relative; overflow-x:hidden; }

/* Aurora */
body.page-index::before {
  content: "";
  position: fixed;
  inset: -30vh -30vw;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  background:
    radial-gradient(circle at 22% 18%, var(--gb-aurora-1) 0, transparent 52%),
    radial-gradient(circle at 70% 22%, var(--gb-aurora-2) 0, transparent 55%),
    radial-gradient(circle at 52% 70%, var(--gb-aurora-3) 0, transparent 58%),
    radial-gradient(circle at 86% 78%, var(--gb-aurora-4) 0, transparent 62%);
  filter: saturate(1.02);
  animation: gbIndexAurora 18s ease-in-out infinite;
}

/* Grid (dezenter) */
body.page-index::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(21,53,88,0.022) 0px,
      rgba(21,53,88,0.022) 1px,
      transparent 1px,
      transparent 68px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(21,53,88,0.018) 0px,
      rgba(21,53,88,0.018) 1px,
      transparent 1px,
      transparent 68px
    );
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.85) 0, rgba(0,0,0,0.50) 58%, rgba(0,0,0,0) 84%);
  opacity: 1;
  animation: gbIndexGrid 14s ease-in-out infinite;
}

/* Sweep (ruhiger) */
body.page-index .gb-sweep{ position: fixed; inset:0; pointer-events:none; z-index:0; }
body.page-index .gb-sweep::before{
  content:"";
  position:absolute; top:-10%; bottom:-10%; width:44%; left:0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(63,116,181,0.08),
    rgba(221,230,243,0.08),
    rgba(63,116,181,0.06),
    transparent
  );
  filter: blur(0.5px);
  opacity: 0;
  will-change: transform, opacity;
  animation: gbIndexSweep 11s ease-in-out infinite;
}

/* Grain (weniger Noise) */
body.page-index .gb-grain{
  position: fixed; inset:0; z-index:0; pointer-events:none;
  opacity: .09;
  mix-blend-mode: multiply;
  animation: gbIndexGrain 8s ease-in-out infinite;
}
body.page-index .gb-grain::before{
  content:"";
  position:absolute; inset:-40px;
  background:
    radial-gradient(circle at 10% 20%, rgba(0,0,0,0.045) 0, transparent 35%),
    radial-gradient(circle at 60% 30%, rgba(0,0,0,0.035) 0, transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(0,0,0,0.035) 0, transparent 42%),
    radial-gradient(circle at 80% 78%, rgba(0,0,0,0.045) 0, transparent 44%);
  transform: translateZ(0);
}

body.page-index header,
body.page-index main,
body.page-index footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  body.page-index::before,
  body.page-index::after,
  body.page-index .gb-sweep,
  body.page-index .gb-grain { display:none !important; }
}

/* =========================
   HERO LEFT (Titelbild)
   ========================= */
body.page-index .hero-left.hero-left--with-bg{
  position: relative;
  overflow: hidden;

  background-image:
    linear-gradient(135deg,
      rgba(255,255,255,0.16) 0%,
      rgba(255,255,255,0.12) 38%,
      rgba(255,255,255,0.16) 100%
    ),
    url("img/guardbase-hero.jpg") !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Overlay */
body.page-index .hero-left.hero-left--with-bg::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 18%, rgba(63,116,181,0.06) 0, transparent 55%),
    radial-gradient(circle at 84% 78%, rgba(221,230,243,0.06) 0, transparent 60%),
    linear-gradient(to bottom,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.08) 40%,
      rgba(255,255,255,0.10)
    ) !important;
}

/* Glass Edge */
body.page-index .hero-left.hero-left--with-bg::after{
  content:"";
  position:absolute;
  inset: -2px;
  pointer-events:none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    inset 0 0 0 1px rgba(148,163,184,0.24);
  opacity: .9;
}

body.page-index .hero-left.hero-left--with-bg .hero-inner{
  position: relative;
  z-index: 2;
  max-width: 74ch;
}

/* Headline */
body.page-index .hero-left.hero-left--with-bg h1{
  font-size: calc(var(--fs-3xl) * 1.18) !important;
  letter-spacing: -0.014em !important;
}

/* Hero-Sub */
body.page-index .hero-left.hero-left--with-bg .hero-sub{
  font-size: clamp(15.5px, 1.25vw, 18px) !important;
  line-height: 1.58 !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
  max-width: 66ch !important;
}

/* Body im Hero */
body.page-index .hero-left.hero-left--with-bg p{
  line-height: 1.72 !important;
  max-width: 72ch !important;
}

/* Hero-Highlight */
body.page-index .hero-left.hero-left--with-bg .hero-highlight{
  margin-top: 16px !important;
  margin-bottom: 18px !important;

  padding: 14px 16px !important;
  max-width: 66ch;
  margin-right: auto;
  border-radius: 16px !important;

  background: rgba(255,255,255,0.16) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,0.07) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dot raus */
body.page-index .hero-highlight .hero-dot{ display:none !important; }
body.page-index .hero-highlight{ padding-left: 16px !important; }

/* Meta-Zeilen */
body.page-index .hero-left.hero-left--with-bg .hero-micro,
body.page-index .hero-left.hero-left--with-bg .meta-pill,
body.page-index .hero-left.hero-left--with-bg .hero-eyebrow,
body.page-index .hero-left.hero-left--with-bg .hero-meta{
  color: rgba(15, 38, 64, 0.86) !important;
  font-weight: 540 !important;
}

/* Pills */
body.page-index .hero-left.hero-left--with-bg .meta-pill{
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(148,163,184,0.48) !important;
}

@media (max-width: 720px){
  body.page-index .hero-left.hero-left--with-bg{ padding-top: 28px !important; }
  body.page-index .hero-left.hero-left--with-bg .hero-highlight{
    max-width: 100%;
    padding: 14px 14px !important;
  }
}

/* SECTION PADDING */
body.page-index .trust-section,
body.page-index .quotes,
body.page-index .faq,
body.page-index .process{
  padding: 28px 26px 24px !important;
}

@media (max-width: 720px){
  body.page-index .trust-section,
  body.page-index .quotes,
  body.page-index .faq,
  body.page-index .process{
    padding: 22px 18px 18px !important;
  }
}

/* Trust */
body.page-index .trust-grid{ gap: 14px !important; }
body.page-index .trust-badge{ padding: 16px 16px !important; }
body.page-index .trust-badge__text{ font-weight: 500 !important; opacity: 0.96; }

/* Compare */
body.page-index .cbox{ padding: 26px 24px 22px !important; }
@media (max-width: 720px){ body.page-index .cbox{ padding: 20px 18px 18px !important; } }

/* FAQ spacing */
body.page-index .faq-q{ padding: 18px 18px !important; }
body.page-index .faq-a{ padding: 0 18px 18px !important; }

/* TRUST HERO */
.trust-hero{
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15,23,42,0.14);
}

.trust-hero-media{ position: relative; height: 240px; }

.trust-hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 18% !important;
}

.trust-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,18,32,0.06),
    rgba(8,18,32,0.48)
  ) !important;
}

.trust-hero-text{
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  color: #ffffff !important;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 560 !important;
  text-shadow: 0 10px 22px rgba(0,0,0,0.55) !important;
}
.trust-hero-text strong{ color:#fff !important; font-weight: 700 !important; }

@media (min-width: 720px){
  .trust-hero-media{ height: 300px; }
  .trust-hero-text{ font-size: 16.5px; }
}

/* HERO RIGHT – STAT CARDS (Bilder) */
.stat-grid{ grid-auto-rows: 1fr; }

.stat-card{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.42);
  box-shadow: 0 18px 38px rgba(15,23,42,0.34);

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  transition: transform .35s ease, box-shadow .35s ease;
}

.stat-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(10,18,30,0.54),
    rgba(10,18,30,0.78)
  );
  pointer-events:none;
}

.stat-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(circle at 20% 20%, rgba(63,116,181,0.16), transparent 55%);
  pointer-events:none;
  opacity:.85;
}

.stat-card > *{ position: relative; z-index: 2; }

.stat-label{ color: rgba(226,232,240,0.78) !important; }
.stat-value{ color: rgba(248,250,252,0.96) !important; }
.stat-text { color: rgba(226,232,240,0.92) !important; }

@media (hover:hover){
  .stat-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 26px 56px rgba(15,23,42,0.44);
  }
}

/* Bilder */
.stat-grid .stat-card:nth-child(1){ background-image: url("img/stat-ausrichtung.jpg"); }
.stat-grid .stat-card:nth-child(2){ background-image: url("img/stat-qualitaet.jpg"); }
.stat-grid .stat-card:nth-child(3){ background-image: url("img/stat-einsatz.jpg"); }
.stat-grid .stat-card:nth-child(4){
  background-image: url("img/stat-zielbild.jpg");
  background-position: center 65%;
}

@media (max-width: 720px){
  .stat-card{ min-height: 140px; }
}

/* CTA STRIP — Buttons sicher */
body.page-index .cta-strip{
  background:
    radial-gradient(circle at 18% 18%, rgba(63,116,181,0.20), transparent 55%),
    linear-gradient(135deg, rgba(21,53,88,0.98), rgba(35,75,123,0.92)) !important;
  border: 1px solid rgba(148,163,184,0.40) !important;
}

body.page-index .cta-strip-text{
  position: relative;
  z-index: 2;
  color: rgba(241,245,249,0.92) !important;
}

body.page-index .cta-strip-buttons{
  position: relative;
  z-index: 2;
  gap: 10px !important;
}

body.page-index .cta-strip .btn{
  opacity: 1 !important;
  filter: none !important;
  min-height: 44px;
  padding: 12px 18px;
}

body.page-index .cta-strip .btn-light{
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(229,231,235,0.96)) !important;
  color: rgba(21,53,88,0.98) !important;
  border: 1px solid rgba(255,255,255,0.65) !important;
  box-shadow: 0 16px 34px rgba(15,23,42,0.28) !important;
}

body.page-index .cta-strip .btn-primary{
  background: rgba(15,23,42,0.10) !important;
  border: 1px solid rgba(241,245,249,0.92) !important;
  color: rgba(241,245,249,0.95) !important;
  box-shadow: 0 12px 26px rgba(15,23,42,0.22) !important;
}

@media (hover:hover){
  body.page-index .cta-strip .btn:hover{ transform: translateY(-1px); }
}
body.page-index .cta-strip .btn:active{ transform: translateY(0px); }

/* FINAL: HERO GLASS FIX */
body.page-index .hero-left.hero-left--with-bg{
  padding: 0 !important;
  min-height: 520px;
  display: block;
}

@media (max-width: 900px){
  body.page-index .hero-left.hero-left--with-bg{ min-height: 520px; }
}
@media (max-width: 720px){
  body.page-index .hero-left.hero-left--with-bg{ min-height: 560px; }
}

body.page-index .hero-left.hero-left--with-bg .hero-glass{
  position: relative !important;
  inset: auto !important;

  border-radius: inherit;
  width: 100%;
  height: 100%;
  display: block;

  padding: clamp(18px, 3.2vw, 36px);

  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.22);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 0 0 1px rgba(148,163,184,0.14),
    0 18px 54px rgba(15,23,42,0.14);
}

body.page-index .hero-left.hero-left--with-bg h1,
body.page-index .hero-left.hero-left--with-bg p,
body.page-index .hero-left.hero-left--with-bg .hero-eyebrow,
body.page-index .hero-left.hero-left--with-bg .hero-sub,
body.page-index .hero-left.hero-left--with-bg .hero-micro{
  color: rgba(21,53,88,0.96) !important;
  text-shadow: none !important;
}

body.page-index .hero-left.hero-left--with-bg h1 span{
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.page-index .hero-left.hero-left--with-bg .hero-highlight{
  display: block !important;
  max-width: 72ch;
  background: rgba(255,255,255,0.20) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
}

@media (max-width: 720px){
  body.page-index .hero-left.hero-left--with-bg .hero-glass{
    padding: 18px 16px !important;
    background: rgba(255,255,255,0.34);
  }
  body.page-index .hero-left.hero-left--with-bg .hero-inner{
    max-width: 100% !important;
  }
}
/* =========================================
   INDEX – SO ARBEITET GUARDBASE
   Milchiger Glas-Tab (gewinnt gegen update-design.css)
   ========================================= */

body.page-index .so-section.so-glass{
  position: relative;

  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.45), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(221,230,243,0.35), transparent 60%),
    rgba(255,255,255,0.42) !important;

  border: 1px solid rgba(148,163,184,0.42) !important;
  border-radius: 22px !important;

  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 0 0 1px rgba(148,163,184,0.18),
    0 26px 64px rgba(15,23,42,0.18) !important;
}

/* feine Innenkante */
body.page-index .so-section.so-glass::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 0 1px rgba(148,163,184,0.20);
}

/* Cards innen ruhiger, damit Glas wirkt */
body.page-index .so-section.so-glass .so-card{
  background: rgba(255,255,255,0.70) !important;
  border: 1px solid rgba(148,163,184,0.32) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10) !important;
}
/* =========================================
   INDEX — SO ARBEITET GUARDBASE (GLAS TAB)
   ========================================= */
body.page-index .so-section.so-glass{
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,0.28), transparent 55%),
    radial-gradient(circle at 88% 86%, rgba(221,230,243,0.26), transparent 60%),
    rgba(255,255,255,0.34) !important;

  border: 1px solid rgba(255,255,255,0.38) !important;
  border-radius: 22px !important;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 0 0 1px rgba(148,163,184,0.18),
    0 22px 58px rgba(15,23,42,0.18) !important;
}
/* ==================================================
   INDEX OVERRIDE — SO ARBEITET GUARDBASE (GLAS)
   ================================================== */
body.page-index section.so-section.so-glass{
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,0.30), transparent 55%),
    radial-gradient(circle at 88% 86%, rgba(221,230,243,0.28), transparent 60%),
    rgba(255,255,255,0.36) !important;

  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,0.42) !important;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 0 0 1px rgba(148,163,184,0.22),
    0 26px 64px rgba(15,23,42,0.22) !important;
}
/* =========================================
   INDEX – EINHEITLICHER SECTION-ABSTAND
   Hero → erste Section FIX
   ========================================= */


/* ==================================================
   INDEX – EINHEITLICHER SECTION-ABSTAND (FINAL)
   ================================================== */

/* =========================================
   INDEX – SECTION-SPACING (wie Über-uns)
   ========================================= */

body.page-index main{
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Desktop etwas mehr Ruhe */
@media (min-width: 980px){
  body.page-index main{
    gap: 34px;
  }
}

/* Mobile */
@media (max-width: 720px){
  body.page-index main{
    gap: 24px;
  }
}
/* ==================================================
   INDEX – RESET SECTION MARGINS (entscheidend!)
   ================================================== */

body.page-index main > section{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* ==================================================
   INDEX – CARD SPACING RESET (ENTSCHEIDEND)
   ================================================== */

/* Alle Karten-Abstände neutralisieren */
body.page-index .card{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Auch Kombi-Regeln killen */
body.page-index .card + .card{
  margin-top: 0 !important;
}
/* ==================================================
   INDEX – EINHEITLICHER FLOW WIE ÜBER-UNS
   ================================================== */

body.page-index main{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 980px){
  body.page-index main{
    gap: 32px;
  }
}

@media (max-width: 720px){
  body.page-index main{
    gap: 24px;
  }
}
/* ==================================================
   INDEX – HARTE SECTION-NEUTRALISIERUNG
   ================================================== */

body.page-index section{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ==================================================
   INDEX – FLOW WIE ÜBER-UNS
   ================================================== */



@media (max-width: 720px){
  body.page-index main{
    row-gap: 22px;
  }
}
/* TAB 1 – Hero → nächster Tab */


@media (max-width: 720px){
  body.page-index section.hero{
    margin-bottom: 24px !important;
  }
}
/* TAB 2 – GuardBase auf einen Blick */


@media (max-width: 720px){
  body.page-index .hero-right{
    margin-bottom: 24px !important;
  }
}
/* TAB 3 – So arbeitet GuardBase */


@media (max-width: 720px){
  body.page-index .so-section{
    margin-bottom: 24px !important;
  }
}
/* TAB 4+ – Standard Sections */


body.page-index main > section:last-of-type{
  margin-bottom: 0 !important;
}

@media (max-width: 720px){
  body.page-index main > section{
    margin-bottom: 24px !important;
  }
}