/* =========================================================
   GOOGLE FONT (Hero-Titel)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Nosifer&display=swap');

/* =========================================================
   THEME VARS (Farben/Abstände/Schatten)
   ========================================================= */
:root{
  /* Hintergrund */
  --bg:#05070b;
  --bg2:#070b12;

  /* Text */
  --text:#e9f2ff;
  --muted: rgba(233,242,255,.72);

  /* Linien/Rahmen */
  --stroke: rgba(120,180,255,.16);
  --stroke2: rgba(255,255,255,.06);

  /* Card Hintergründe */
  --card: rgba(10,14,20,.68);
  --card2: rgba(10,14,20,.56);

  /* Glow (Neon) */
  --glow: rgba(80,190,255,.22);
  --glow2: rgba(140,120,255,.12);

  /* Rundungen */
  --radius: 22px;
  --radius2: 18px;

  /* Schatten */
  --shadow: 0 20px 80px rgba(0,0,0,.62);
  --shadow2: 0 10px 40px rgba(0,0,0,.55);

  /* Navigation */
  --nav-h: 64px;
}

/* =========================================================
   GLOBAL / RESET
   ========================================================= */
*{box-sizing:border-box}

/* === Scrollbar-Fix: KEIN Shift, KEIN Doppel-Scrollbar === */
html{
  height: 100%;
  scrollbar-gutter: stable;
}

body{
  min-height: 100%;
  margin: 0;
  overflow-y: auto;   /* NUR body scrollt */
  overflow-x: hidden; /* kein horizontaler Müll */

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  color:var(--text);
  background: var(--bg);
}

/* Global background layer (verhindert harte Kanten/Seams) */
body::before{
  content:"";
  position:fixed;
  inset:-20%;
  z-index:-2;
  background:
    radial-gradient(1100px 760px at 25% 10%, rgba(40,170,255,.18), transparent 60%),
    radial-gradient(900px 680px at 75% 25%, rgba(140,120,255,.13), transparent 55%),
    radial-gradient(900px 900px at 50% 80%, rgba(80,190,255,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  filter: saturate(1.02);
}

/* Soft vignette */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1200px 800px at 50% 20%, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

/* =========================================================
   Sticky / Glass Nav
   ========================================================= */
.nav{
  position:sticky;
  top:0;
  z-index:80;
  height: var(--nav-h);
  display:flex;
  align-items:center;
  gap:14px;
  padding: 0 22px;

  background: rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--stroke2);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.nav__brand{
  font-weight: 850;
  letter-spacing:.6px;
  margin-right: 10px;
  text-shadow: 0 0 26px var(--glow);
}

.nav a{
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: all .18s ease;
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(120,180,255,.20);
  background: rgba(10,14,20,.46);
  box-shadow: 0 0 26px rgba(80,190,255,.12);
}
.nav__admin{
  margin-left:auto;
  color: var(--text) !important;
  border-color: rgba(120,180,255,.25) !important;
  background: rgba(10,14,20,.26);
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  width:100%;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background-image: url("/assets/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  min-height: 300px;
}
@media (max-width: 820px){
  .hero{ min-height: 300px; }
}

.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(980px 3600px at 50% 20%, rgba(20,220,255,.18), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.72));
}

/* Hero-Content breiter -> wirkt „weiter links“ (dein Fix) */
.hero__content{
  position:relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px 22px 44px;
}

/* =========================================================
   HERO TITLE – NOSIFER BLOOD (Option B+C+D + Bluttropf)
   ========================================================= */
.hero__content h1{
  margin:0;
  font-size: clamp(28px, 3.6vw, 48px); /* bleibt kleiner */
  line-height: 1.03;

  font-family: "Nosifer", system-ui, cursive;
  font-weight: 400;
  letter-spacing: 0.20em;

  /* wichtig für Bluttropf-Pseudoelement */
  position: relative;
  display: inline-block; /* Breite = Textbreite */

  /* blutige Basis */
  text-shadow:
    0 0 4px rgba(90,0,0,.95),
    0 0 10px rgba(140,0,0,.80),
    0 0 18px rgba(220,20,40,.55),
    0 0 42px rgba(60,0,0,.85),
    0 4px 0 rgba(0,0,0,1),
    0 18px 46px rgba(0,0,0,.90);

  filter:
    drop-shadow(0 0 10px rgba(150,0,0,.55));

  /* B: Hover stärker | C: Flicker | D: Live-Modus */
  animation:
    bloodPulseIdle 3.4s ease-in-out infinite,
    horrorFlicker 11s steps(1,end) infinite;

  transition: filter .25s ease, text-shadow .25s ease, opacity .2s ease;

  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* =========================
   Bluttropf-Effekt (nur CSS)
   ========================= */
.hero__content h1::after{
  content:"";
  position:absolute;
  left: 1%;
  right: 1%;
  top: 100%;
  height: 18px;
  pointer-events:none;

  /* „Blut“ aus mehreren Flecken + Tropfen */
  background:
    radial-gradient(12px 10px at 8% 15%, rgba(180,0,0,.95), rgba(180,0,0,0) 70%),
    radial-gradient(16px 12px at 26% 25%, rgba(220,20,40,.92), rgba(220,20,40,0) 72%),
    radial-gradient(14px 12px at 54% 18%, rgba(160,0,0,.92), rgba(160,0,0,0) 74%),
    radial-gradient(18px 14px at 78% 22%, rgba(240,40,60,.88), rgba(240,40,60,0) 74%),

    /* Tropf-Fäden */
    linear-gradient(to bottom,
      rgba(190,0,0,.0) 0%,
      rgba(190,0,0,.85) 35%,
      rgba(120,0,0,.0) 100%);

  /* Form der Tropfen (clip-path) */
  clip-path: polygon(
    0% 0%,
    6% 0%, 8% 70%, 10% 70%, 12% 0%,
    20% 0%, 22% 45%, 24% 45%, 26% 0%,
    38% 0%, 40% 85%, 42% 85%, 44% 0%,
    56% 0%, 58% 55%, 60% 55%, 62% 0%,
    74% 0%, 76% 78%, 78% 78%, 80% 0%,
    92% 0%, 94% 60%, 96% 60%, 98% 0%,
    100% 0%,
    100% 100%,
    0% 100%
  );

  filter: blur(.2px) drop-shadow(0 3px 6px rgba(0,0,0,.65));
  opacity: .55;

  animation: dripWiggle 6.5s ease-in-out infinite;
}

@keyframes dripWiggle{
  0%,100%{ transform: translateY(0); opacity:.50; }
  50%{ transform: translateY(2px); opacity:.65; }
}

/* =========================================================
   Option B – Hover: Pulsar stärker
   ========================================================= */
.hero__content h1:hover{
  filter: drop-shadow(0 0 18px rgba(220,0,0,.85));
  text-shadow:
    0 0 6px rgba(120,0,0,.95),
    0 0 14px rgba(200,0,0,.85),
    0 0 28px rgba(255,40,60,.65),
    0 0 56px rgba(90,0,0,.92),
    0 5px 0 rgba(0,0,0,1),
    0 24px 60px rgba(0,0,0,1);
}
.hero__content h1:hover::after{
  opacity: .80;
  transform: translateY(2px);
}

/* =========================================================
   Pulsar Idle (kleiner)
   ========================================================= */
@keyframes bloodPulseIdle{
  0%,100%{
    filter: drop-shadow(0 0 10px rgba(150,0,0,.55));
  }
  50%{
    filter: drop-shadow(0 0 16px rgba(200,0,0,.75));
  }
}

/* =========================================================
   Option C – Ultra dezentes Horror-Flicker
   ========================================================= */
@keyframes horrorFlicker{
  0%,92%,100%{ opacity: 1; }
  93%{ opacity: .86; }
  94%{ opacity: 1; }
  97%{ opacity: .92; }
}

/* =========================================================
   Option D – LIVE Modus
   Aktiv wenn <body class="is-live"> oder <html class="is-live">
   ========================================================= */
.is-live .hero__content h1{
  animation:
    bloodPulseLive 2.4s ease-in-out infinite,
    horrorFlicker 8s steps(1,end) infinite;
}
.is-live .hero__content h1::after{
  opacity: .78;
  animation: dripWiggle 4.8s ease-in-out infinite;
}

@keyframes bloodPulseLive{
  0%,100%{ filter: drop-shadow(0 0 16px rgba(220,0,0,.80)); }
  50%{ filter: drop-shadow(0 0 26px rgba(255,0,0,1)); }
}

/* =========================================================
   HERO SUBTITLE – kräftig & lesbar
   ========================================================= */
.hero__subtitle{
  margin-top: 8px;
  max-width: 78ch;
  color: rgba(233,242,255,.94);
  font-weight: 800;
  font-size: clamp(15px, 1.25vw, 19px);
  letter-spacing: .02em;
  text-shadow:
    0 2px 0 rgba(0,0,0,.9),
    0 0 18px rgba(0,0,0,.65),
    0 0 22px rgba(80,190,255,.10);
}
@media (max-width: 820px){
  .hero__subtitle{
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
  }
  .hero__content h1{
    animation:
      bloodPulseIdle 3.8s ease-in-out infinite,
      horrorFlicker 14s steps(1,end) infinite;
  }
}

/* =========================================================
   MAIN container
   ========================================================= */
.container{
  max-width:1180px;
  margin: 0 auto;
  padding: 22px;
}

/* Global surface section to avoid “ugly seams” */
.surface{
  position:relative;
  border-radius: calc(var(--radius) + 4px);
  padding: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
}

/* Cards */
.card{
  position:relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Glow border (soft) */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background:
    radial-gradient(700px 260px at 20% 10%, rgba(80,190,255,.18), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(140,120,255,.14), transparent 62%);
  opacity:.9;
  pointer-events:none;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding:1px;
  box-sizing:border-box;
}

.card__inner{
  position:relative;
  padding: 18px 18px 20px;
}
.card__inner h2{margin:0 0 10px 0}

.grid{display:grid; gap: 14px;}
.grid--2{grid-template-columns: 1fr 1fr;}
@media (max-width: 820px){ .grid--2{ grid-template-columns: 1fr; } }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120,180,255,.25);
  background: rgba(10,14,20,.55);
  color: var(--text);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover{
  box-shadow: 0 0 26px rgba(80,190,255,.14);
  border-color: rgba(120,180,255,.34);
}
.btn:active{ transform: translateY(1px); }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

/* Forms */
.form label{display:block; margin-top: 12px; color: var(--muted)}
.form input, .form textarea, .form select{
  width:100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120,180,255,.18);
  background: rgba(0,0,0,.28);
  color: var(--text);
  outline:none;
}
.form textarea{ min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus{
  border-color: rgba(120,180,255,.35);
  box-shadow: 0 0 0 4px rgba(80,190,255,.10);
}

/* Flash + Adminbar */
.flash{
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120,180,255,.18);
  background: rgba(0,0,0,.26);
}

.adminbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(120,180,255,.18);
  background: rgba(10,14,20,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hint{color: var(--muted); font-size: 14px}

/* Badges */
.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,180,255,.22);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-size: 13px;
}
.badge--live{
  border-color: rgba(255,80,120,.30);
  box-shadow: 0 0 22px rgba(255,80,120,.12);
}

/* Tables */
.table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(120,180,255,.18);
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(120,180,255,.12);
  color: var(--muted);
  vertical-align: top;
}
.table th{
  color: var(--text);
  text-align:left;
  background: rgba(0,0,0,.22);
}
.table tr:last-child td{ border-bottom:none; }

/* Footer */
.footer{
  padding: 18px 22px 30px;
  color: var(--muted);
  border-top: 1px solid rgba(120,180,255,.12);
  background: rgba(0,0,0,.18);
}

/* Small helpers */
.hr{
  height:1px;
  background: rgba(255,255,255,.06);
  margin: 14px 0;
}

/* =========================================================
   Mobile Dropdown Navigation
   ========================================================= */
.nav__links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1;
}

.nav__mobile{
  display:none;
  margin-left:auto;
  position:relative;
}

.nav__burger{
  list-style:none;
  cursor:pointer;
  user-select:none;

  display:inline-flex;
  align-items:center;
  gap:10px;

  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120,180,255,.25);
  background: rgba(10,14,20,.35);
  color: var(--text);
}

.nav__burger::-webkit-details-marker{ display:none; }

.nav__burgerIcon{
  width: 18px;
  height: 12px;
  position:relative;
  display:inline-block;
}
.nav__burgerIcon::before,
.nav__burgerIcon::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: rgba(233,242,255,.85);
  border-radius: 10px;
}
.nav__burgerIcon::before{ top:0; box-shadow: 0 5px 0 rgba(233,242,255,.85); }
.nav__burgerIcon::after{ bottom:0; }

.nav__dropdown{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 220px;

  border-radius: 18px;
  border: 1px solid rgba(120,180,255,.18);
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow:hidden;
  padding: 8px;
  z-index: 99;
}

.nav__dropdown a{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav__dropdown a:hover{
  color: var(--text);
  border-color: rgba(120,180,255,.20);
  background: rgba(10,14,20,.50);
}

.nav__divider{
  height:1px;
  background: rgba(255,255,255,.06);
  margin: 8px 6px;
}

.nav__adminLink{
  color: var(--text) !important;
  border-color: rgba(120,180,255,.25) !important;
  background: rgba(10,14,20,.25);
}

/* Mobile: Desktop Links aus, Dropdown an */
@media (max-width: 980px){
  .nav__links{ display:none; }
  .nav__mobile{ display:block; }
  .nav__brand{ margin-right:auto; }
}
